﻿.nav-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 15px;
    margin-bottom: 25px;
}

.nav-card-3d {
    background: white;
    border-radius: 20px;
    padding: 20px 15px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 160px;
}

/* 3D立体效果 */
.nav-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: 20px 20px 0 0;
    background: rgba(255,255,255,0.3);
}

.nav-card-3d::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    height: 100%;
    background: inherit;
    border-radius: 20px;
    transform: perspective(500px) rotateX(2deg);
    transform-origin: top;
    z-index: -1;
}

/* 不同颜色的卡片 */
.card-pink {
    background: linear-gradient(135deg, #FF6B9D, #FF477E);
    color: white;
}

.card-blue {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
}

.card-orange {
    background: linear-gradient(135deg, #FFB347, #FF8C00);
    color: white;
}

.card-green {
    background: linear-gradient(135deg, #98D8C8, #4CAF50);
    color: white;
}

/* 图标样式 */
.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-card-3d:hover .card-icon::before {
    opacity: 1;
}

.card-icon i {
    font-size: 24px;
    color: white;
    position: relative;
    z-index: 1;
}

/* 文字样式 */
.nav-card-3d h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-desc {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
}

/* 角落箭头 */
.card-corner {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.card-corner i {
    font-size: 12px;
    color: white;
}

/* 悬停效果 */
.nav-card-3d:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.nav-card-3d:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255,255,255,0.3);
}

.nav-card-3d:hover .card-corner {
    opacity: 1;
    transform: translateX(0);
}

/* 装饰元素 */
.nav-card-3d {
    position: relative;
}

.nav-card-3d .decoration {
    position: absolute;
    font-size: 20px;
    opacity: 0.1;
}

.card-pink .decoration { color: white; }
.card-blue .decoration { color: white; }
.card-orange .decoration { color: white; }
.card-green .decoration { color: white; }

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-cards-grid {
        gap: 12px;
        padding: 0 12px;
    }
    
    .nav-card-3d {
        padding: 18px 12px;
        height: 150px;
        border-radius: 18px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .card-icon i {
        font-size: 20px;
    }
    
    .nav-card-3d h3 {
        font-size: 15px;
    }
    
    .card-desc {
        font-size: 11px;
    }
}

@media (max-width: 375px) {
    .nav-cards-grid {
        gap: 10px;
        padding: 0 10px;
    }
    
    .nav-card-3d {
        padding: 15px 10px;
        height: 140px;
        border-radius: 16px;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }
}