/* 顶级分类区域样式 - Premium Design */

.categories {
    padding: 8rem 0;
    background: linear-gradient(180deg, rgba(10, 10, 30, 0.95) 0%, rgba(20, 20, 40, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(155, 89, 182, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

/* Premium Card Design */
.premium-card {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.8) 0%, rgba(20, 20, 40, 0.9) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transform-style: preserve-3d;
}

/* 发光效果 */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.gold-glow {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
}

.silver-glow {
    background: radial-gradient(circle, rgba(192, 192, 192, 0.3) 0%, transparent 70%);
}

.purple-glow {
    background: radial-gradient(circle, rgba(155, 89, 182, 0.3) 0%, transparent 70%);
}

.premium-card:hover .card-glow {
    opacity: 1;
}

/* 悬停效果 */
.premium-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(74, 144, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(74, 144, 226, 0.5);
}

.premium-card[data-category="xauusd"]:hover {
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
}

.premium-card[data-category="silver"]:hover {
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(192, 192, 192, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(192, 192, 192, 0.6);
}

.premium-card[data-category="gold"]:hover {
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(155, 89, 182, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(155, 89, 182, 0.6);
}

/* 图标包装器 */
.category-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

/* 图标样式 */
.category-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2) 0%, rgba(155, 89, 182, 0.2) 100%);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(74, 144, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-card[data-category="xauusd"] .category-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-card[data-category="silver"] .category-icon {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(169, 169, 169, 0.2) 100%);
    box-shadow: 
        0 10px 30px rgba(192, 192, 192, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-card[data-category="gold"] .category-icon {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2) 0%, rgba(142, 68, 173, 0.2) 100%);
    box-shadow: 
        0 10px 30px rgba(155, 89, 182, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.category-icon svg {
    width: 45px;
    height: 45px;
    color: #4a90e2;
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.5));
}

.premium-card[data-category="xauusd"] .category-icon svg {
    color: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.premium-card[data-category="silver"] .category-icon svg {
    color: #c0c0c0;
    filter: drop-shadow(0 0 10px rgba(192, 192, 192, 0.5));
}

.premium-card[data-category="gold"] .category-icon svg {
    color: #9b59b6;
    filter: drop-shadow(0 0 10px rgba(155, 89, 182, 0.5));
}

.premium-card:hover .category-icon {
    transform: scale(1.15) rotateY(360deg);
    box-shadow: 
        0 20px 50px rgba(74, 144, 226, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.premium-card:hover .category-icon svg {
    color: #fff;
    filter: drop-shadow(0 0 20px currentColor);
}

/* 粒子效果 */
.icon-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.icon-particles::before,
.icon-particles::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.icon-particles::after {
    animation-delay: 1.5s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* 徽章 */
.category-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2) 0%, rgba(155, 89, 182, 0.2) 100%);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #4a90e2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.premium-card[data-category="xauusd"] .category-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.premium-card[data-category="silver"] .category-badge {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(169, 169, 169, 0.2) 100%);
    border-color: rgba(192, 192, 192, 0.3);
    color: #c0c0c0;
}

.premium-card[data-category="gold"] .category-badge {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2) 0%, rgba(142, 68, 173, 0.2) 100%);
    border-color: rgba(155, 89, 182, 0.3);
    color: #9b59b6;
}

.premium-card:hover .category-badge {
    transform: scale(1.05);
    box-shadow: 0 0 20px currentColor;
}

/* 标题 */
.premium-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: #fff;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.premium-card:hover h3 {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

/* 描述 */
.premium-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* 特性标签 */
.category-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.feature-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.premium-card:hover .feature-tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 操作按钮 */
.category-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2) 0%, rgba(155, 89, 182, 0.2) 100%);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    color: #4a90e2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.premium-card[data-category="xauusd"] .category-action {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.premium-card[data-category="silver"] .category-action {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(169, 169, 169, 0.2) 100%);
    border-color: rgba(192, 192, 192, 0.3);
    color: #c0c0c0;
}

.premium-card[data-category="gold"] .category-action {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2) 0%, rgba(142, 68, 173, 0.2) 100%);
    border-color: rgba(155, 89, 182, 0.3);
    color: #9b59b6;
}

.category-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.premium-card:hover .category-action::before {
    width: 300px;
    height: 300px;
}

.premium-card:hover .category-action {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.4) 0%, rgba(155, 89, 182, 0.4) 100%);
    border-color: rgba(74, 144, 226, 0.6);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
}

.premium-card[data-category="xauusd"]:hover .category-action {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4) 0%, rgba(255, 165, 0, 0.4) 100%);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.premium-card[data-category="silver"]:hover .category-action {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.4) 0%, rgba(169, 169, 169, 0.4) 100%);
    border-color: rgba(192, 192, 192, 0.6);
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.4);
}

.premium-card[data-category="gold"]:hover .category-action {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.4) 0%, rgba(142, 68, 173, 0.4) 100%);
    border-color: rgba(155, 89, 182, 0.6);
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.4);
}

.action-text {
    position: relative;
    z-index: 1;
}

.action-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.premium-card:hover .action-arrow {
    transform: translateX(8px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .categories {
        padding: 5rem 0;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .premium-card {
        padding: 2.5rem 2rem;
    }
    
    .premium-card h3 {
        font-size: 1.5rem;
    }
    
    .category-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .category-icon {
        width: 80px;
        height: 80px;
    }
    
    .category-icon svg {
        width: 35px;
        height: 35px;
    }
}

/* 3D 倾斜效果 */
@media (hover: hover) {
    .premium-card {
        transition: all 0.3s ease, transform 0.1s ease;
    }
    
    .premium-card:hover {
        transform: translateY(-15px) scale(1.02);
    }
}
