/* ============================================
   思维导图首页专用样式
   ============================================ */

.mindmap-index-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    padding-top: calc(var(--header-height, 64px) + 20px);
}

body {
    background: radial-gradient(circle at 10% 20%, #f0f4fa, #e2e8f0);
    font-family: 'Inter', 'Segoe UI', 'PingFang SC', 'Roboto', system-ui, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero .hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e2f3a, #2c5f6e);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.hero p {
    color: #4a6a78;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.grade-section {
    margin-bottom: 3rem;
}

.grade-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 5px solid;
}

.junior-title {
    color: #2c7a7a;
    border-left-color: #33A6B8;
}

.primary-title {
    color: #c05640;
    border-left-color: #f0bc9a;
}

.category-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 1.5rem;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.1);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 1.2rem;
    transition: all 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-3px);
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.junior .card .card-icon {
    background: linear-gradient(135deg, #5fb0bc, #3d8d9c);
}

.primary .card .card-icon {
    background: linear-gradient(135deg, #f0bc9a, #e8a06c);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.card-icon svg {
    width: 26px;
    height: 26px;
    stroke: white;
    stroke-width: 1.5;
    fill: none;
}

.card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a2c36;
    margin-bottom: 0.3rem;
}

.card .card-desc {
    font-size: 0.8rem;
    color: #5f7f8c;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.junior .card .btn {
    color: #3d8d9c;
    border-color: #8bc1cb;
}

.junior .card .btn:hover {
    background: #5fb0bc;
    border-color: #5fb0bc;
    color: white;
}

.primary .card .btn {
    color: #e8a06c;
    border-color: #f0bc9a;
}

.primary .card .btn:hover {
    background: #f0bc9a;
    border-color: #f0bc9a;
    color: white;
}

.footer-note {
    text-align: center;
    margin-top: 3rem;
    color: #8aa8b8;
    font-size: 0.75rem;
    border-top: 1px solid rgba(100, 120, 130, 0.15);
    padding-top: 1.2rem;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .mindmap-index-wrapper {
        padding: 0.5rem !important;
        padding-top: calc(var(--header-height, 64px) + 20px) !important;
    }
    .mindmap-index-wrapper .container {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .mindmap-index-wrapper .card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }
    .mindmap-index-wrapper .card {
        padding: 0.8rem !important;
    }
    .mindmap-index-wrapper .card-icon {
        width: 40px !important;
        height: 40px !important;
    }
    .mindmap-index-wrapper .card-icon svg {
        width: 22px !important;
        height: 22px !important;
    }
    .mindmap-index-wrapper .card .card-title {
        font-size: 1rem !important;
    }
    .mindmap-index-wrapper .card .card-desc {
        font-size: 0.7rem !important;
    }
    .mindmap-index-wrapper .btn {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.8rem !important;
    }
}

/* 暗色模式适配 */
body.dark {
    background: radial-gradient(circle at 10% 20%, #1a2a30, #0f1a1f);
}

body.dark .category-card {
    background: rgba(30, 40, 45, 0.6);
}

body.dark .category-card:hover {
    background: rgba(30, 40, 45, 0.8);
}

body.dark .card {
    background: #2a3a40;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .card .card-title {
    color: #f0f4fa;
}

body.dark .card .card-desc {
    color: #9bb7c4;
}

body.dark .btn {
    border-color: #5a7e8c;
}

body.dark .junior .card .btn {
    color: #9fd3e0;
}

body.dark .primary .card .btn {
    color: #f0bc9a;
}

body.dark .footer-note {
    color: #8aa8b8;
    border-top-color: rgba(255, 255, 255, 0.08);
}