        /* ===== 搜索结果分页器 ===== */
        .hnc-search-total {
            font-size: 14px;
            color: #64748b;
            padding: 8px 0 12px;
            border-bottom: 1px solid #e2e8f0;
            margin-bottom: 12px;
        }

        .hnc-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 16px;
            padding: 20px 0 8px;
            margin-top: 12px;
            border-top: 1px solid #e2e8f0;
        }

        .hnc-pagination-btn {
            padding: 8px 20px;
            border: 1px solid #d1d5db;
            background: #ffffff;
            color: #374151;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .hnc-pagination-btn:hover:not(.disabled) {
            background: #3b82f6;
            color: #ffffff;
            border-color: #3b82f6;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
        }

        .hnc-pagination-btn.disabled {
            color: #c0c4cc;
            border-color: #e5e7eb;
            background: #f9fafb;
            cursor: not-allowed;
        }

        .hnc-pagination-info {
            font-size: 15px;
            color: #475569;
            user-select: none;
        }

        .hnc-pagination-info strong {
            font-weight: 700;
            color: #1e293b;
        }

        /* ===== 复习指南Tab切换样式 ===== */
        .hnc-exam-guide-area {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px dashed #cbd5e1;
        }

        .hnc-guide-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }

        .hnc-guide-tab {
            padding: 10px 20px;
            border: 2px solid #e2e8f0;
            background: #ffffff;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .hnc-guide-tab:hover {
            border-color: #94a3b8;
            color: #475569;
        }

        .hnc-guide-tab.active {
            background: #3b82f6;
            border-color: #3b82f6;
            color: #ffffff;
        }

        .hnc-guide-content {
            display: none;
        }

        .hnc-guide-content.active {
            display: block;
        }

        /* ===== 按考试模块指南样式 ===== */
        .hnc-module-guide-container {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border-radius: 16px;
            padding: 20px;
            border: 1px solid #e2e8f0;
        }

        .hnc-modules-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        @media (max-width: 700px) {
            .hnc-modules-grid {
                grid-template-columns: 1fr;
            }
        }

        /* 模块卡片通用 */
        .hnc-mod-card {
            border-radius: 12px;
            padding: 16px;
            border: 2px solid;
        }

        /* 写作 - 橙色 */
        .hnc-mod-writing {
            background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
            border-color: #fed7aa;
        }
        .hnc-mod-writing .hnc-mod-icon { background: linear-gradient(135deg, #f97316, #ea580c); }
        .hnc-mod-writing .hnc-mod-header { border-bottom-color: #fed7aa; }

        /* 听力 - 蓝色 */
        .hnc-mod-listening {
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            border-color: #93c5fd;
        }
        .hnc-mod-listening .hnc-mod-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }
        .hnc-mod-listening .hnc-mod-header { border-bottom-color: #93c5fd; }

        /* 阅读 - 绿色 */
        .hnc-mod-reading {
            background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
            border-color: #86efac;
        }
        .hnc-mod-reading .hnc-mod-icon { background: linear-gradient(135deg, #22c55e, #16a34a); }
        .hnc-mod-reading .hnc-mod-header { border-bottom-color: #86efac; }

        /* 翻译 - 紫色 */
        .hnc-mod-translation {
            background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
            border-color: #d8b4fe;
        }
        .hnc-mod-translation .hnc-mod-icon { background: linear-gradient(135deg, #a855f7, #9333ea); }
        .hnc-mod-translation .hnc-mod-header { border-bottom-color: #d8b4fe; }

        /* 模块头部 */
        .hnc-mod-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-bottom: 12px;
            margin-bottom: 12px;
            border-bottom: 2px dashed;
        }

        .hnc-mod-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: white;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
            flex-shrink: 0;
        }

        .hnc-mod-name {
            font-size: 16px;
            font-weight: 700;
            color: #1e293b;
        }

        .hnc-mod-exam-info {
            font-size: 12px;
            color: #64748b;
        }

        /* 资源列表 */
        .hnc-resource-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .hnc-resource-item {
            padding: 10px 12px;
            background: rgba(255,255,255,0.7);
            border-radius: 8px;
        }

        .hnc-resource-book {
            font-size: 13px;
            font-weight: 600;
            color: #334155;
            margin-bottom: 2px;
        }

        .hnc-resource-detail {
            font-size: 12px;
            color: #64748b;
            margin-bottom: 6px;
        }

        /* 标签 */
        .hnc-res-tag {
            display: inline-block;
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 20px;
            font-weight: 600;
            margin-right: 4px;
        }

        .hnc-tag-website {
            background: #dcfce7;
            color: #166534;
        }

        .hnc-tag-app {
            background: #dbeafe;
            color: #1e40af;
        }

        .hnc-tag-book {
            background: #fef3c7;
            color: #92400e;
        }

        /* 底部图例 */
        .hnc-guide-legend {
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px solid #e2e8f0;
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .hnc-legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: #64748b;
        }

        .hnc-legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }

        .hnc-dot-website { background: #22c55e; }
        .hnc-dot-app { background: #3b82f6; }
        .hnc-dot-book { background: #f59e0b; }

        /* ===== 学期信息栏样式 ===== */
        #hnc-teaching-resources .hnc-semester-info-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
            border: 1px solid #ffc107;
            border-left: 4px solid #ff9800;
            border-radius: 8px;
            padding: 12px 20px;
            margin: 12px 0 16px;
            width: min(100%, 1100px) !important;
            max-width: 1100px !important;
            flex-wrap: wrap;
            gap: 12px;
            box-sizing: border-box;
        }

        .hnc-deadline-warning {
            display: flex;
            align-items: center;
            color: #856404;
        }

        .hnc-deadline-text { font-size: 15px; }
        .hnc-deadline-text strong { color: #d63031; font-weight: 600; }

        .hnc-grade-composition-btn {
            background: #4a90d9;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s ease;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 40px;
            line-height: 1.2;
            width: 240px;
            max-width: 100%;
            box-sizing: border-box;
        }

        .hnc-grade-composition-btn:hover {
            background: #3a7fc8;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
        }

        /* ===== 弹窗样式（自适应内容大小） ===== */
        #hnc-grade-modal.hnc-modal-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            padding: 20px;
            box-sizing: border-box;
        }

        #hnc-grade-modal .hnc-modal-content {
            background: white;
            border-radius: 12px;
            display: inline-block;
            width: auto !important;
            max-width: none !important;
            max-height: none !important;
            overflow: visible;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: hnc-modal-appear 0.3s ease;
            padding: 0 !important;
            text-align: left;
        }

        @keyframes hnc-modal-appear {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }

        #hnc-grade-modal .hnc-modal-header {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px 56px;
            border-bottom: 1px solid #eee;
            background: #f8f9fa;
        }

        #hnc-grade-modal .hnc-modal-header h3 {
            margin: 0;
            font-size: 18px;
            color: #333;
            width: 100%;
            text-align: center;
            white-space: nowrap;
        }

        #hnc-grade-modal .gc-zoom-controls {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            gap: 6px;
        }

        #hnc-grade-modal .gc-zoom-btn {
            border: 1px solid #d1d5db;
            background: #ffffff;
            color: #374151;
            font-size: 12px;
            padding: 4px 8px;
            border-radius: 6px;
            cursor: pointer;
        }

        #hnc-grade-modal .gc-zoom-btn:hover {
            background: #f3f4f6;
        }

        #hnc-grade-modal .hnc-modal-close-btn {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            font-size: 28px;
            color: #999;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }

        #hnc-grade-modal .hnc-modal-close-btn:hover { color: #333; }

        #hnc-grade-modal .hnc-modal-body {
            padding: 20px;
            overflow: visible;
            background: linear-gradient(135deg, #fdfcf0 0%, #f9f6e8 100%);
            display: inline-block;
        }

        /* ===== 成绩图表容器（固定尺寸保证图表完整） ===== */
        .gc-container {
            position: relative;
            width: 800px;
            height: 470px;
            min-width: 800px;
            transform-origin: top left;
        }

        .gc-scale-wrap {
            position: relative;
            width: 800px;
            height: 470px;
        }

        /* ===== 盒子样式 ===== */
        .gc-box {
            position: absolute;
            padding: 10px 16px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            line-height: 1.4;
            white-space: nowrap;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        .gc-dark {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            font-size: 16px;
            padding: 12px 24px;
        }

        .gc-blue {
            background: linear-gradient(135deg, #5b7fa3 0%, #4a6d8c 100%);
            color: white;
        }

        .gc-blue-light {
            background: linear-gradient(135deg, #6a8eb5 0%, #5a7ea5 100%);
            color: white;
        }

        .gc-cyan {
            background: linear-gradient(135deg, #e8f4f8 0%, #d4ebf2 100%);
            color: #2c3e50;
            border: 1px solid #b8d4e3;
            white-space: normal;
        }

        .gc-small {
            padding: 8px 12px;
            font-size: 13px;
        }

        .gc-small-cyan {
            padding: 8px 10px;
            font-size: 12px;
            width: 110px;
        }

        .gc-sub { font-size: 12px; opacity: 0.9; }
        .gc-divider { height: 1px; background: #aaa; margin: 6px 0; }
        .gc-detail { font-size: 11px; color: #555; }

        /* ===== 连接线 ===== */
        .gc-lines {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        /* ===== 响应式适配 ===== */
        @media (max-width: 900px) {
            #hnc-grade-modal .hnc-modal-body {
                overflow-x: auto; 
                -webkit-overflow-scrolling: touch;
            }

            #hnc-grade-modal.hnc-modal-overlay {
                align-items: flex-start;
                overflow: auto;
            }
        }

        @media (max-width: 600px) {
            .hnc-semester-info-bar {
                flex-direction: column;
                align-items: flex-start;
                padding: 12px 16px;
            }

            #hnc-teaching-resources .hnc-grade-composition-btn {
                width: 100% !important;
                text-align: center;
            }

            .hnc-guide-tabs {
                flex-direction: column;
            }

            .hnc-guide-tab {
                width: 100%;
                text-align: center;
            }
        }

        @media (min-width: 601px) {
            #hnc-teaching-resources .hnc-grade-composition-btn {
                width: 240px !important;
            }
        }
        


    #hnc-teaching-resources .hnc-title-row {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 0;
    }

    #hnc-teaching-resources .hnc-title-row .hnc-module-title {
        margin: 0;
    }

    #hnc-teaching-resources .hnc-faq-btn {
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        border-radius: 999px !important;
        margin-left: 0 !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
        flex: 0 0 auto !important;
    }

    #hnc-faq-modal.hnc-faq-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10000;
        padding: 20px;
        box-sizing: border-box;
    }

    #hnc-faq-modal .hnc-faq-modal-content {
        background: white;
        border-radius: 16px;
        width: 100%;
        max-width: 600px;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        animation: hnc-faq-appear 0.3s ease;
    }

    @keyframes hnc-faq-appear {
        from { opacity: 0; transform: scale(0.9) translateY(-20px); }
        to { opacity: 1; transform: scale(1) translateY(0); }
    }

    #hnc-faq-modal .hnc-faq-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
        border-radius: 16px 16px 0 0;
    }

    #hnc-faq-modal .hnc-faq-modal-header h3 {
        margin: 0;
        font-size: 18px;
        color: white;
        font-weight: 700;
    }

    #hnc-faq-modal .hnc-faq-close {
        background: rgba(255,255,255,0.2);
        border: none;
        color: white;
        font-size: 24px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
        line-height: 1;
    }

    #hnc-faq-modal .hnc-faq-close:hover {
        background: rgba(255,255,255,0.3);
    }

    #hnc-faq-modal .hnc-faq-modal-body {
        padding: 16px;
        overflow-y: auto;
        flex: 1;
    }

    #hnc-faq-modal .hnc-faq-item {
        background: #f8fafc;
        border-radius: 10px;
        margin-bottom: 10px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
    }

    #hnc-faq-modal .hnc-faq-item:last-child {
        margin-bottom: 0;
    }

    #hnc-faq-modal .hnc-faq-question {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 600;
        color: #1e40af;
        transition: background 0.2s;
    }

    #hnc-faq-modal .hnc-faq-question:hover {
        background: #e0f2fe;
    }

    #hnc-faq-modal .hnc-faq-icon {
        color: #3b82f6;
        font-size: 12px;
        flex-shrink: 0;
    }

    #hnc-faq-modal .hnc-faq-answer {
        border-top: 1px solid #e2e8f0;
        background: white;
    }

    #hnc-faq-modal .hnc-faq-answer-inner {
        padding: 16px;
        font-size: 14px;
        line-height: 1.7;
        color: #334155;
    }

    #hnc-faq-modal .hnc-faq-answer-inner h4 {
        font-size: 14px;
        font-weight: 700;
        color: #1e40af;
        margin: 16px 0 8px 0;
    }

    #hnc-faq-modal .hnc-faq-answer-inner h4:first-child {
        margin-top: 0;
    }

    #hnc-faq-modal .hnc-faq-answer-inner p {
        margin: 8px 0;
    }

    #hnc-faq-modal .hnc-highlight-box {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border: 2px solid #f59e0b;
        border-radius: 12px;
        padding: 16px;
        text-align: center;
    }

    #hnc-faq-modal .hnc-highlight-date {
        font-size: 18px;
        font-weight: 700;
        color: #92400e;
        margin-bottom: 4px;
    }

    #hnc-faq-modal .hnc-highlight-time {
        font-size: 22px;
        font-weight: 800;
        color: #d97706;
    }

    #hnc-faq-modal .hnc-formula-box {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border: 2px solid #f59e0b;
        border-radius: 8px;
        padding: 12px 16px;
        text-align: center;
        font-size: 15px;
        color: #92400e;
        margin: 10px 0;
    }

    #hnc-faq-modal .hnc-warning-box {
        background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
        border: 2px solid #ef4444;
        border-left: 4px solid #dc2626;
        border-radius: 8px;
        padding: 12px 16px;
        color: #991b1b;
        margin: 10px 0;
        font-size: 14px;
    }

    #hnc-faq-modal .hnc-table-wrap {
        overflow-x: auto;
        margin: 10px 0;
        -webkit-overflow-scrolling: touch;
    }

    #hnc-faq-modal .hnc-faq-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 12px;
        min-width: 380px;
    }

    #hnc-faq-modal .hnc-faq-table th,
    #hnc-faq-modal .hnc-faq-table td {
        padding: 8px 10px;
        text-align: center;
        border: 1px solid #e2e8f0;
    }

    #hnc-faq-modal .hnc-faq-table th {
        background: #1e40af;
        color: white;
        font-weight: 600;
    }

    #hnc-faq-modal .hnc-faq-table tbody tr:nth-child(even) {
        background: #f8fafc;
    }

    #hnc-faq-modal .hnc-row-fail {
        background: #fee2e2 !important;
    }

    #hnc-faq-modal .hnc-rule-box {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 10px 0;
    }

    #hnc-faq-modal .hnc-rule {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        background: #f8fafc;
        border-radius: 8px;
        padding: 10px 14px;
        border: 1px solid #e2e8f0;
    }

    #hnc-faq-modal .hnc-rule-num {
        width: 24px;
        height: 24px;
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 13px;
        flex-shrink: 0;
    }

    #hnc-faq-modal .hnc-rule-text {
        flex: 1;
        font-size: 13px;
    }

    #hnc-faq-modal .hnc-rule-sub {
        color: #64748b;
        font-size: 12px;
    }

    #hnc-faq-modal .hnc-feature-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 10px 0;
    }

    #hnc-faq-modal .hnc-feature-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        background: #f0f9ff;
        border-radius: 8px;
        padding: 10px 14px;
        border: 1px solid #bae6fd;
    }

    #hnc-faq-modal .hnc-feature-num {
        width: 22px;
        height: 22px;
        background: #0ea5e9;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 12px;
        flex-shrink: 0;
    }

    #hnc-faq-modal .hnc-feature-text {
        flex: 1;
        font-size: 13px;
    }

    #hnc-faq-modal .hnc-checklist {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 10px 0;
    }

    #hnc-faq-modal .hnc-checklist-item {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #f0fdf4;
        border-radius: 8px;
        padding: 12px 14px;
        border: 2px solid #86efac;
    }

    #hnc-faq-modal .hnc-check-icon {
        font-size: 18px;
        flex-shrink: 0;
    }

    #hnc-faq-modal .hnc-check-text {
        font-size: 14px;
    }

    @media (max-width: 600px) {
        #hnc-faq-modal.hnc-faq-modal {
            padding: 10px;
        }

        #hnc-faq-modal .hnc-faq-modal-content {
            max-height: 90vh;
            border-radius: 12px;
        }

        #hnc-faq-modal .hnc-faq-modal-header {
            padding: 14px 16px;
            border-radius: 12px 12px 0 0;
        }

        #hnc-faq-modal .hnc-faq-modal-header h3 {
            font-size: 16px;
        }

        #hnc-faq-modal .hnc-faq-modal-body {
            padding: 12px;
        }

        #hnc-faq-modal .hnc-faq-question {
            padding: 12px 14px;
            font-size: 14px;
        }

        #hnc-faq-modal .hnc-faq-answer-inner {
            padding: 14px;
            font-size: 13px;
        }

        #hnc-faq-modal .hnc-highlight-date {
            font-size: 16px;
        }

        #hnc-faq-modal .hnc-highlight-time {
            font-size: 18px;
        }

        #hnc-teaching-resources .hnc-faq-btn {
            margin-left: auto !important;
            width: auto !important;
            padding: 4px 10px !important;
            font-size: 12px !important;
        }
    }
    
