﻿:root {
            --bg: #f6f3ee;
            --bg-deep: #eae5da;
            --surface: #ffffff;
            --surface-alt: #faf8f4;
            --accent: #c4372e;
            --accent-dark: #a12d26;
            --accent-light: #f0d4d2;
            --navy: #1a2744;
            --navy-light: #2d3f66;
            --gold: #d4a843;
            --gold-light: #f5ecd0;
            --text-primary: #1a1a1a;
            --text-secondary: #4a4a4a;
            --text-muted: #8a8580;
            --border: #e0dbd2;
            --shadow-sm: 0 1px 3px rgba(26,26,26,0.06);
            --shadow-md: 0 4px 16px rgba(26,26,26,0.08);
            --shadow-lg: 0 8px 32px rgba(26,26,26,0.12);
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 16px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        button, input, select, textarea { font-family: inherit; }

        body {
            font-family: 'Noto Sans SC', -apple-system, sans-serif;
            background: var(--bg);
            color: var(--text-primary);
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
        }

        body::before {
            content: '';
            position: fixed; inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: 9999;
        }

        a { color: inherit; text-decoration: none; }
        ul { list-style: none; }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* Ad banner */
        .ad-banner {
            max-width: 1440px;
            margin: 0 auto;
            position: relative;
        }
        .ad-banner a { display: block; }
        .ad-banner img {
            display: block;
            width: 100%;
            margin: 20px 0;
        }

        /* ===== TOP BAR ===== */
        .top-bar {
            background: var(--navy);
            color: rgba(255,255,255,0.7);
            font-size: 12px;
            padding: 6px 0;
        }
        .top-bar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .top-bar a {
            color: rgba(255,255,255,0.7);
            transition: color 0.2s;
        }
        .top-bar a:hover { color: var(--gold); }
        .top-bar-links { display: flex; gap: 16px; align-items: center; }
        .top-bar-links span { opacity: 0.4; }
        .top-bar-right { display: flex; gap: 12px; align-items: center; }
        .btn-login {
            padding: 2px 12px;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 3px;
            color: rgba(255,255,255,0.8) !important;
            transition: all 0.2s;
            cursor: pointer;
        }
        .btn-login:hover {
            border-color: var(--gold);
            color: var(--gold) !important;
            background: rgba(212,168,67,0.1);
        }
        .btn-register {
            padding: 2px 12px;
            background: var(--gold);
            border-radius: 3px;
            color: var(--navy) !important;
            font-weight: 600;
            transition: all 0.2s;
            cursor: pointer;
        }
        .btn-register:hover { background: #e0b84f; }

        /* ===== HEADER ===== */
        .header {
            background: var(--surface);
            padding: 20px 0;
            border-bottom: 3px solid var(--accent);
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: var(--shadow-md);
        }
        .header .container {
            display: flex;
            align-items: center;
            gap: 32px;
        }
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }
        .logo-icon {
            width: 48px;
            height: 48px;
            background: var(--accent);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-family: 'Noto Serif SC', serif;
            font-weight: 900;
            font-size: 20px;
            position: relative;
            box-shadow: 0 2px 8px rgba(196,55,46,0.3);
        }
        .logo-icon::after {
            content: '';
            position: absolute;
            inset: 2px;
            border: 1.5px solid rgba(255,255,255,0.3);
            border-radius: 4px;
        }
        .logo-text h1 {
            font-family: 'Noto Serif SC', serif;
            font-size: 24px;
            font-weight: 900;
            color: var(--navy);
            letter-spacing: 2px;
            line-height: 1.2;
        }
        .logo-text p {
            font-size: 11px;
            color: var(--text-muted);
            letter-spacing: 4px;
        }

        /* Search */
        .search-box {
            flex: 1;
            max-width: 560px;
            position: relative;
        }
        .search-wrapper {
            display: flex;
            border: 2px solid var(--navy);
            border-radius: var(--radius-sm);
            overflow: hidden;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        .search-wrapper:focus-within {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-light);
        }
        .search-select {
            padding: 10px 12px;
            border: none;
            background: var(--navy);
            color: white;
            font-size: 13px;
            font-family: inherit;
            cursor: pointer;
            outline: none;
            min-width: 90px;
        }
        .search-input {
            flex: 1;
            padding: 10px 16px;
            border: none;
            font-size: 14px;
            font-family: inherit;
            outline: none;
            background: white;
        }
        .search-btn {
            padding: 10px 24px;
            background: var(--accent);
            border: none;
            color: white;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .search-btn:hover { background: var(--accent-dark); }
        .search-hot {
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: var(--text-muted);
        }
        .search-hot a {
            color: var(--text-secondary);
            padding: 2px 8px;
            background: var(--bg);
            border-radius: 3px;
            transition: all 0.2s;
        }
        .search-hot a:hover {
            color: var(--accent);
            background: var(--accent-light);
        }
        .hot-tag {
            color: var(--accent) !important;
            font-weight: 600;
        }

        .header-stats {
            text-align: center;
            flex-shrink: 0;
        }
        .header-stats .num {
            font-family: 'Noto Serif SC', serif;
            font-size: 28px;
            font-weight: 900;
            color: var(--accent);
            line-height: 1;
        }
        .header-stats .label {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* ===== NAV ===== */
        .main-nav {
            background: var(--navy);
            position: sticky;
            top: 89px;
            z-index: 99;
        }
        .nav-list {
            display: flex;
            align-items: center;
        }
        .nav-item {
            position: relative;
        }
        .nav-item > a {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 14px 20px;
            color: rgba(255,255,255,0.85);
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .nav-item > a:hover,
        .nav-item.active > a {
            background: rgba(255,255,255,0.1);
            color: var(--gold);
        }
        .nav-item .arrow {
            font-size: 10px;
            opacity: 0.5;
        }
        .nav-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: var(--surface);
            min-width: 200px;
            box-shadow: var(--shadow-lg);
            border-radius: 0 0 var(--radius-sm) var(--radius-sm);
            z-index: 200;
            padding: 8px 0;
            border-top: 3px solid var(--gold);
        }
        .nav-item:hover .nav-dropdown {
            display: block;
        }
        .nav-dropdown a {
            display: block;
            padding: 8px 20px;
            font-size: 13px;
            color: var(--text-secondary);
            transition: all 0.2s;
        }
        .nav-dropdown a:hover {
            background: var(--gold-light);
            color: var(--navy);
            padding-left: 24px;
        }

        /* ===== BREADCRUMB ===== */
        .breadcrumb {
            padding: 12px 0;
            font-size: 12px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
        .breadcrumb a:hover { color: var(--accent); }
        .breadcrumb .sep { opacity: 0.4; }
        .breadcrumb .current { color: var(--text-secondary); }

        /* ===== HERO BANNER ===== */
        .hero {
            padding: 24px 0 32px;
        }
        .hero-grid {
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 20px;
            min-height: 320px;
        }
        .hero-slider {
            background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #3d5a8a 100%);
            border-radius: var(--radius-lg);
            padding: 48px;
            color: white;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .hero-slider::before {
            content: '';
            position: absolute;
            top: -50%; right: -20%;
            width: 400px; height: 400px;
            background: radial-gradient(circle, rgba(212,168,67,0.15) 0%, transparent 70%);
            border-radius: 50%;
        }
        .hero-slider::after {
            content: '试卷';
            position: absolute;
            right: 40px; bottom: -20px;
            font-family: 'Noto Serif SC', serif;
            font-size: 140px;
            font-weight: 900;
            opacity: 0.04;
            letter-spacing: 20px;
        }
        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 14px;
            background: rgba(212,168,67,0.2);
            border: 1px solid rgba(212,168,67,0.4);
            border-radius: 20px;
            font-size: 12px;
            color: var(--gold);
            margin-bottom: 16px;
            width: fit-content;
        }
        .hero-slider h2 {
            font-family: 'Noto Serif SC', serif;
            font-size: 36px;
            font-weight: 900;
            line-height: 1.3;
            margin-bottom: 12px;
            position: relative;
        }
        .hero-slider p {
            font-size: 15px;
            opacity: 0.8;
            max-width: 480px;
            line-height: 1.8;
            margin-bottom: 24px;
        }
        .hero-btns { display: flex; gap: 12px; }
        .btn-primary {
            padding: 12px 28px;
            background: var(--gold);
            color: var(--navy);
            border: none;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .btn-primary:hover { background: #e0b84f; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,168,67,0.4); }
        .btn-outline {
            padding: 12px 28px;
            background: transparent;
            color: white;
            border: 1.5px solid rgba(255,255,255,0.3);
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s;
        }
        .btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

        /* Hero sidebar */
        .hero-sidebar {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .hero-side-card {
            flex: 1;
            border-radius: var(--radius-md);
            padding: 24px;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .hero-side-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
        .hero-side-card.card-mid {
            background: linear-gradient(135deg, #2d6a4f, #40916c);
            color: white;
        }
        .hero-side-card.card-high {
            background: linear-gradient(135deg, #9b2226, #e63946);
            color: white;
        }
        .hero-side-card h3 {
            font-family: 'Noto Serif SC', serif;
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 6px;
        }
        .hero-side-card p { font-size: 12px; opacity: 0.8; }
        .hero-side-card .card-icon {
            position: absolute;
            right: 16px; bottom: 12px;
            font-size: 56px;
            opacity: 0.15;
            font-family: 'Noto Serif SC', serif;
            font-weight: 900;
        }

        /* ===== CATEGORY GRID ===== */
        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--border);
        }
        .section-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: 'Noto Serif SC', serif;
            font-size: 20px;
            font-weight: 700;
            color: var(--navy);
        }
        .section-title::before {
            content: '';
            width: 4px; height: 22px;
            background: var(--accent);
            border-radius: 2px;
        }
        .section-more {
            font-size: 13px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 4px;
            transition: color 0.2s;
        }
        .section-more:hover { color: var(--accent); }

        .category-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 14px;
            margin-bottom: 40px;
        }
        .cat-card {
            background: var(--surface);
            border-radius: var(--radius-md);
            padding: 20px 16px;
            text-align: center;
            border: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }
        .cat-card:hover {
            border-color: var(--accent);
            box-shadow: var(--shadow-md);
            transform: translateY(-3px);
        }
        .cat-card:hover .cat-icon { transform: scale(1.1); }
        .cat-icon {
            width: 52px; height: 52px;
            margin: 0 auto 10px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            transition: transform 0.3s;
        }
        .cat-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
        .cat-card .count { font-size: 11px; color: var(--text-muted); }
        .cat-yuwen .cat-icon { background: #fce4ec; color: #c62828; }
        .cat-shuxue .cat-icon { background: #e3f2fd; color: #1565c0; }
        .cat-yingyu .cat-icon { background: #f3e5f5; color: #7b1fa2; }
        .cat-wuli .cat-icon { background: #e0f2f1; color: #00695c; }
        .cat-huaxue .cat-icon { background: #fff3e0; color: #e65100; }
        .cat-shengwu .cat-icon { background: #e8f5e9; color: #2e7d32; }
        .cat-zhengzhi .cat-icon { background: #fce4ec; color: #ad1457; }
        .cat-lishi .cat-icon { background: #efebe9; color: #4e342e; }
        .cat-dili .cat-icon { background: #e0f7fa; color: #00838f; }
        .cat-kexue .cat-icon { background: #f1f8e9; color: #558b2f; }
        .cat-daode .cat-icon { background: #fff8e1; color: #f57f17; }
        .cat-xinxi .cat-icon { background: #e8eaf6; color: #283593; }

        /* ===== MAIN LAYOUT ===== */
        .main-layout {
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 28px;
            margin-bottom: 40px;
        }

        /* ===== FILTER BAR ===== */
        .filter-bar {
            background: var(--surface);
            border-radius: var(--radius-md);
            padding: 16px 20px;
            margin-bottom: 20px;
            border: 1px solid var(--border);
        }
        .filter-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
        }
        .filter-row:last-child { margin-bottom: 0; }
        .filter-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--navy);
            min-width: 56px;
            flex-shrink: 0;
        }
        .filter-tags { display: flex; flex-wrap: wrap; gap: 6px; }
        .filter-tag {
            padding: 4px 14px;
            font-size: 12px;
            border-radius: 20px;
            border: 1px solid var(--border);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
            background: transparent;
            font-family: inherit;
        }
        .filter-tag:hover {
            border-color: var(--accent);
            color: var(--accent);
        }
        .filter-tag.active {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }

        /* ===== EXAM LIST ===== */
        .exam-list { display: flex; flex-direction: column; gap: 12px; }

        .exam-card {
            background: var(--surface);
            border-radius: var(--radius-md);
            padding: 20px 24px;
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 20px;
            transition: all 0.3s;
            cursor: pointer;
            position: relative;
        }
        .exam-card:hover {
            border-color: var(--accent);
            box-shadow: var(--shadow-md);
            transform: translateX(4px);
        }
        .exam-card .exam-icon {
            width: 56px; height: 56px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 700;
            flex-shrink: 0;
            line-height: 1.2;
            text-align: center;
        }
        .exam-icon.type-end { background: linear-gradient(135deg, #1a2744, #2d3f66); color: white; }
        .exam-icon.type-mid { background: linear-gradient(135deg, #c4372e, #e05550); color: white; }
        .exam-icon.type-sim { background: linear-gradient(135deg, #2d6a4f, #40916c); color: white; }
        .exam-icon.type-real { background: linear-gradient(135deg, #d4a843, #e8c060); color: white; }
        .exam-icon.type-unit { background: linear-gradient(135deg, #6a4c93, #8b6db0); color: white; }

        .exam-info { flex: 1; min-width: 0; }
        .exam-info h4 {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .exam-info h4 .new-badge {
            padding: 1px 6px;
            background: var(--accent);
            color: white;
            font-size: 10px;
            font-weight: 600;
            border-radius: 3px;
        }
        .exam-info h4 .hot-badge {
            padding: 1px 6px;
            background: var(--gold);
            color: var(--navy);
            font-size: 10px;
            font-weight: 600;
            border-radius: 3px;
        }
        .exam-meta {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 12px;
            color: var(--text-muted);
        }
        .exam-meta span { display: flex; align-items: center; gap: 4px; }
        .exam-tags {
            display: flex;
            gap: 6px;
            margin-top: 6px;
        }
        .exam-tag-item {
            padding: 2px 8px;
            font-size: 10px;
            background: var(--bg);
            border-radius: 3px;
            color: var(--text-muted);
        }
        .exam-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; }
        .exam-score {
            font-family: 'Noto Serif SC', serif;
            font-size: 13px;
            color: var(--gold);
            font-weight: 700;
        }
        .btn-download {
            padding: 8px 20px;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
        }
        .btn-download:hover { background: var(--accent-dark); transform: scale(1.03); }

        /* Pagination */
        .pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 24px;
        }
        .page-btn {
            min-width: 36px; height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
            background: var(--surface);
            font-family: inherit;
        }
        .page-btn:hover { border-color: var(--accent); color: var(--accent); }
        .page-btn.active {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }
        .page-btn.disabled { opacity: 0.4; cursor: default; }

        /* ===== SIDEBAR ===== */
        .sidebar { display: flex; flex-direction: column; gap: 20px; }

        .side-card {
            background: var(--surface);
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            overflow: hidden;
        }
        .side-card-header {
            padding: 14px 18px;
            font-size: 15px;
            font-weight: 700;
            color: var(--navy);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: 'Noto Serif SC', serif;
        }
        .side-card-body { padding: 12px 18px; }

        /* Hot downloads */
        .hot-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px dashed var(--border);
            cursor: pointer;
            transition: all 0.2s;
        }
        .hot-item:last-child { border-bottom: none; }
        .hot-item:hover { padding-left: 4px; }
        .hot-rank {
            width: 22px; height: 22px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
            flex-shrink: 0;
            background: var(--bg-deep);
            color: var(--text-muted);
        }
        .hot-rank.top { background: var(--accent); color: white; }
        .hot-item-info { flex: 1; min-width: 0; }
        .hot-item-info h5 {
            font-size: 13px;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .hot-item-info span { font-size: 11px; color: var(--text-muted); }
        .hot-item:hover .hot-item-info h5 { color: var(--accent); }

        /* Grade filter */
        .grade-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            padding: 12px 18px;
        }
        .grade-btn {
            padding: 8px 4px;
            text-align: center;
            font-size: 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s;
            background: transparent;
            color: var(--text-secondary);
            font-family: inherit;
        }
        .grade-btn:hover {
            border-color: var(--navy);
            color: var(--navy);
            background: var(--gold-light);
        }
        .grade-btn.active {
            background: var(--navy);
            color: white;
            border-color: var(--navy);
        }

        /* Recently updated */
        .recent-item {
            padding: 10px 0;
            border-bottom: 1px dashed var(--border);
            cursor: pointer;
        }
        .recent-item:last-child { border-bottom: none; }
        .recent-item h5 {
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 4px;
            transition: color 0.2s;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .recent-item:hover h5 { color: var(--accent); }
        .recent-item .recent-meta {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: var(--text-muted);
        }

        /* Tags cloud */
        .tags-cloud { padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px; }
        .tag-cloud-item {
            padding: 4px 12px;
            font-size: 12px;
            border: 1px solid var(--border);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--text-secondary);
        }
        .tag-cloud-item:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-light);
        }
        .tag-cloud-item.size-lg { font-size: 13px; font-weight: 600; }

        /* Quick links */
        .quick-links { padding: 14px 18px; }
        .quick-link-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 0;
            font-size: 13px;
            color: var(--text-secondary);
            transition: all 0.2s;
            cursor: pointer;
        }
        .quick-link-item:hover { color: var(--accent); padding-left: 4px; }
        .quick-link-item .ql-icon {
            width: 28px; height: 28px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }

        /* ===== INFO SECTIONS ===== */
        .info-section {
            padding: 40px 0;
        }
        .info-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }
        .info-card {
            background: var(--surface);
            border-radius: var(--radius-md);
            padding: 24px;
            border: 1px solid var(--border);
        }
        .info-card h3 {
            font-family: 'Noto Serif SC', serif;
            font-size: 16px;
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .info-card ul li {
            padding: 6px 0;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
        }
        .info-card ul li::before {
            content: '';
            width: 5px; height: 5px;
            border-radius: 50%;
            background: var(--accent);
            flex-shrink: 0;
        }

        /* ===== FOOTER ===== */
        .footer {
            background: var(--navy);
            color: rgba(255,255,255,0.7);
            padding: 48px 0 0;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
            gap: 32px;
            padding-bottom: 36px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .footer-brand h3 {
            font-family: 'Noto Serif SC', serif;
            font-size: 22px;
            font-weight: 900;
            color: white;
            margin-bottom: 12px;
        }
        .footer-brand p {
            font-size: 13px;
            line-height: 1.8;
            margin-bottom: 16px;
        }
        .footer-social { display: flex; gap: 10px; }
        .footer-social a {
            width: 34px; height: 34px;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: all 0.2s;
        }
        .footer-social a:hover {
            background: var(--gold);
            border-color: var(--gold);
            color: var(--navy);
        }
        .footer-col h4 {
            font-size: 14px;
            font-weight: 600;
            color: white;
            margin-bottom: 16px;
        }
        .footer-col a {
            display: block;
            padding: 4px 0;
            font-size: 13px;
            transition: color 0.2s;
        }
        .footer-col a:hover { color: var(--gold); }
        .footer-bottom {
            padding: 20px 0;
            text-align: center;
            font-size: 12px;
            opacity: 0.6;
        }

        /* ===== BACK TO TOP ===== */
        .back-to-top {
            position: fixed;
            bottom: 32px;
            right: 32px;
            width: 44px; height: 44px;
            background: var(--navy);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-lg);
            transition: all 0.3s;
            opacity: 0;
            transform: translateY(20px);
            z-index: 50;
        }
        .back-to-top.visible { opacity: 1; transform: translateY(0); }
        .back-to-top:hover { background: var(--accent); }

        /* ===== MODAL ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        .modal-overlay.show { display: flex; }
        .modal {
            background: var(--surface);
            border-radius: var(--radius-lg);
            padding: 36px;
            max-width: 420px;
            width: 90%;
            position: relative;
            animation: modalIn 0.3s ease;
        }
        @keyframes modalIn {
            from { opacity: 0; transform: scale(0.95) translateY(10px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }
        .modal-close {
            position: absolute;
            top: 14px; right: 14px;
            width: 30px; height: 30px;
            border: none;
            background: var(--bg);
            border-radius: 50%;
            cursor: pointer;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            transition: all 0.2s;
        }
        .modal-close:hover { background: var(--accent-light); color: var(--accent); }
        .modal h2 {
            font-family: 'Noto Serif SC', serif;
            font-size: 22px;
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 8px;
        }
        .modal p { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
        .modal-form .form-group { margin-bottom: 14px; }
        .modal-form label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 6px;
            color: var(--text-secondary);
        }
        .modal-form input {
            width: 100%;
            padding: 10px 14px;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-family: inherit;
            outline: none;
            transition: border-color 0.2s;
        }
        .modal-form input:focus { border-color: var(--accent); }
        .modal-form .input-code { width: 60%; display: inline-block; }
        .btn-full {
            width: 100%;
            padding: 12px;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: background 0.2s;
            margin-top: 4px;
        }
        .btn-full:hover { background: var(--accent-dark); }
        .btn-code {
            width: 36%;
            padding: 10px;
            background: var(--navy);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 12px;
            cursor: pointer;
        }
        .btn-code:hover { background: var(--navy-light); }
        .modal-footer {
            text-align: center;
            margin-top: 14px;
            font-size: 12px;
            color: var(--text-muted);
        }
        .modal-footer a { color: var(--accent); font-weight: 500; }

        /* ===== NOTIFICATION TOAST ===== */
        .toast {
            position: fixed;
            top: 100px; right: 32px;
            background: var(--navy);
            color: white;
            padding: 14px 24px;
            border-radius: var(--radius-sm);
            font-size: 13px;
            box-shadow: var(--shadow-lg);
            z-index: 2000;
            transform: translateX(120%);
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .toast.show { transform: translateX(0); }
        .toast .toast-icon { font-size: 16px; }

        /* ===== LOADING SKELETON ===== */
        @keyframes shimmer {
            0% { background-position: -400px 0; }
            100% { background-position: 400px 0; }
        }
        .skeleton {
            background: linear-gradient(90deg, var(--bg-deep) 25%, var(--bg) 50%, var(--bg-deep) 75%);
            background-size: 800px 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 4px;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .hero-grid { grid-template-columns: 1fr; }
            .hero-sidebar { flex-direction: row; }
            .main-layout { grid-template-columns: 1fr; }
            .category-grid { grid-template-columns: repeat(4, 1fr); }
            .info-grid { grid-template-columns: 1fr 1fr; }
            .footer-grid { grid-template-columns: repeat(3, 1fr); }
            .header .container { flex-wrap: wrap; }
            .search-box { order: 3; max-width: 100%; flex-basis: 100%; }
        }
        @media (max-width: 640px) {
            .category-grid { grid-template-columns: repeat(3, 1fr); }
            .nav-item > a { padding: 12px 12px; font-size: 13px; }
            .hero-slider { padding: 28px; }
            .hero-slider h2 { font-size: 24px; }
            .info-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr 1fr; }
            .exam-card { flex-direction: column; align-items: flex-start; }
            .exam-actions { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
        }

        /* Animations */
        .fade-in {
            opacity: 0;
            transform: translateY(16px);
            animation: fadeIn 0.5s ease forwards;
        }
        @keyframes fadeIn {
            to { opacity: 1; transform: translateY(0); }
        }
        .cat-card { opacity: 0; animation: fadeIn 0.4s ease forwards; }
        .cat-card:nth-child(1) { animation-delay: 0.05s; }
        .cat-card:nth-child(2) { animation-delay: 0.1s; }
        .cat-card:nth-child(3) { animation-delay: 0.15s; }
        .cat-card:nth-child(4) { animation-delay: 0.2s; }
        .cat-card:nth-child(5) { animation-delay: 0.25s; }
        .cat-card:nth-child(6) { animation-delay: 0.3s; }
        .cat-card:nth-child(7) { animation-delay: 0.35s; }
        .cat-card:nth-child(8) { animation-delay: 0.4s; }
        .cat-card:nth-child(9) { animation-delay: 0.45s; }
        .cat-card:nth-child(10) { animation-delay: 0.5s; }
        .cat-card:nth-child(11) { animation-delay: 0.55s; }
        .cat-card:nth-child(12) { animation-delay: 0.6s; }

        .exam-card { opacity: 0; animation: fadeIn 0.4s ease forwards; }
        .exam-card:nth-child(1) { animation-delay: 0.1s; }
        .exam-card:nth-child(2) { animation-delay: 0.15s; }
        .exam-card:nth-child(3) { animation-delay: 0.2s; }
        .exam-card:nth-child(4) { animation-delay: 0.25s; }
        .exam-card:nth-child(5) { animation-delay: 0.3s; }
        .exam-card:nth-child(6) { animation-delay: 0.35s; }
        .exam-card:nth-child(7) { animation-delay: 0.4s; }
        .exam-card:nth-child(8) { animation-delay: 0.45s; }
