/* AIé¢åº PC ç«ç¹æ ·å¼
 * åºäº Bootstrap 5ï¼ç»ä¸åçè² + æåå¡ç + å¾®äº¤äº
 */

:root {
    /* === åçè² === */
    --brand-primary: #2563eb;
    --brand-primary-dark: #1e40af;
    --brand-primary-soft: #eff6ff;
    --brand-secondary: #ea580c;
    --brand-secondary-soft: #fff7ed;
    --brand-success: #16a34a;
    --brand-success-soft: #f0fdf4;
    --brand-danger: #dc2626;
    --brand-danger-soft: #fef2f2;
    --brand-vip: #d97706;
    --brand-vip-soft: #fef3c7;

    /* === ææ¬ === */
    --site-text: #1f2937;
    --site-muted: #6b7280;
    --site-bg: #f8fafc;
    --site-border: #e5e7eb;

    /* === é´å½± === */
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);

    /* === åè§ === */
    --card-radius: 14px;
    --btn-radius: 8px;

    /* === å®å¨åº === */
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* === Bootstrap è¦ç === */
    --bs-primary: var(--brand-primary);
    --bs-primary-rgb: 37, 99, 235;
    --bs-warning: var(--brand-vip);
    --bs-warning-rgb: 217, 119, 6;
    --bs-success: var(--brand-success);
    --bs-danger: var(--brand-danger);
    --bs-border-radius: var(--btn-radius);

    /* === è¯­ä¹å«åï¼--site-* ç»ä¸æååç tokenï¼ === */
    --site-primary: var(--brand-primary);
    --site-primary-dark: var(--brand-primary-dark);
    --site-primary-soft: var(--brand-primary-soft);
    --site-shadow: var(--card-shadow);
    --site-shadow-hover: var(--card-shadow-hover);

    /* === é´è·é¶æ¢¯ === */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;

    /* === å¨æ token === */
    --ease-standard: cubic-bezier(.4, 0, .2, 1);
    --dur-fast: .15s;
    --dur-base: .2s;
    --dur-slow: .3s;
}

/* å¨ç«åè§ç»ä¸ */
.card { border-radius: var(--card-radius); }
.btn { border-radius: var(--btn-radius); }

/* å­éè§èï¼åºåæ é¢ 600 / å¡çæ é¢ 500 / æ ç­¾ 500 / æ­£æ 400ï¼é¿å"æ´é¡µé½ç²" */
h1, h2, h3, h4, h5, h6 { font-weight: 600; }
.badge { font-weight: 500; letter-spacing: .2px; }

/* === å¾®äº¤äºç»ä¸ === */
.btn {
    transition: color var(--dur-fast) var(--ease-standard),
                background-color var(--dur-fast) var(--ease-standard),
                border-color var(--dur-fast) var(--ease-standard),
                box-shadow var(--dur-fast) var(--ease-standard),
                transform var(--dur-fast) var(--ease-standard);
}
.btn:active { transform: scale(.96); }

/* å¯ç¹å»å¡çç»ä¸æ¬åè´¨æ */
.subject-card, .nav-tile, .paid-card, .paper-item, .subject-tile, .qd-nav-card {
    will-change: transform, box-shadow;
}

/* å¨ææ éç¢éçº§ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .btn:active { transform: none; }
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--site-text);
    background-color: var(--site-bg);
}

a { color: var(--site-primary); text-decoration: none; }
a:hover { color: var(--site-primary-dark); }

/* é¡¶é¨å¯¼èª */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid var(--site-border);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-brand { font-weight: 700; color: var(--site-text); }
.brand-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px;
    background: linear-gradient(135deg, var(--site-primary), var(--site-primary-dark));
    color: #fff; font-size: 1.25rem; margin-right: .5rem;
}
.brand-name { font-size: 1.25rem; }

.navbar-nav .nav-link { color: var(--site-text); font-weight: 500; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus { color: var(--site-primary); }
.dropdown-menu { border: 1px solid var(--site-border); border-radius: 8px; box-shadow: var(--site-shadow-hover); }
.dropdown-item:hover { background-color: #eff6ff; color: var(--site-primary); }

/* ä¸»åºå */
.site-main { min-height: 60vh; }

/* é¦é¡µ Banner */
.home-banner-img { max-height: 360px; object-fit: cover; }

/* å¾æ å¯¼èª */
.nav-tile {
    display: block; padding: 12px 8px; border-radius: 10px;
    background: #fff; box-shadow: var(--site-shadow);
    transition: all .2s ease;
}
.nav-tile:hover { box-shadow: var(--site-shadow-hover); transform: translateY(-2px); color: var(--site-primary); }
.nav-tile-img { width: 48px; height: 48px; object-fit: contain; }
.nav-tile-title { font-size: 13px; color: var(--site-text); margin-top: 6px; }

/* æ¨¡åæ é¢ï¼æ é¢ 600 / å°åä¿¡æ¯ 400ï¼é¿åæ´é¡µé½æ¯ç²ä½ */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; border-bottom: 1px solid var(--site-border); padding-bottom: 10px;
}
.section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: .2px;
    margin: 0; color: var(--site-text);
}
.section-title i { font-size: 17px; color: var(--brand-primary); }
.section-more {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 13px; font-weight: 400; color: var(--site-muted);
    padding: 4px 10px; border: 1px solid var(--site-border); border-radius: 999px;
    background: #fff; transition: all var(--dur-fast) var(--ease-standard);
}
.section-more:hover {
    color: var(--brand-primary); border-color: var(--brand-primary);
    background: var(--brand-primary-soft);
}
.section-more i { font-size: 12px; }

/* ä¸çº§ç§ç®åç±»å¡ */
.subject-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px; border-radius: 12px;
    background: linear-gradient(135deg, #fff, #f8fafc);
    border: 1px solid var(--site-border);
    box-shadow: var(--card-shadow);
    transition: all .2s ease;
    height: 100%;
}
.subject-card:hover {
    border-color: var(--site-primary);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
    color: var(--site-primary);
}
.subject-card-body { flex: 1; }
.subject-card-name { font-size: 16px; font-weight: 600; color: var(--site-text); margin-bottom: 4px; }
.subject-card:hover .subject-card-name { color: var(--site-primary); }
.subject-card-meta { font-size: 12px; color: var(--site-muted); }
.subject-card-arrow { color: var(--site-muted); }
.subject-card:hover .subject-card-arrow { color: var(--site-primary); }

/* èªéåºç½æ ¼ 5 å */
@media (min-width: 992px) {
    .col-lg-2-4 { flex: 0 0 auto; width: 20%; }
}

/* è¯å·å¡ç */
.paper-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: #fff; border-radius: 10px;
    border: 1px solid var(--site-border); box-shadow: var(--site-shadow);
    transition: all .2s ease; height: 100%;
}
.paper-card:hover { border-color: var(--site-primary); color: var(--site-primary); }
.paper-card-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.paper-card-meta { font-size: 12px; }
.paper-card-icon { font-size: 28px; color: var(--site-muted); }

/* èµè®¯åè¡¨ */
.news-item { border: none; border-bottom: 1px solid var(--site-border); padding: 12px 16px; }
.news-item:last-child { border-bottom: none; }
.news-title { font-weight: 500; max-width: 70%; }
.news-time { white-space: nowrap; }

/* ä»è´¹å¥å£å¡ */
.paid-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-radius: 12px; box-shadow: var(--site-shadow);
    transition: all .2s ease;
}
.paid-card:hover { box-shadow: var(--site-shadow-hover); transform: translateY(-2px); }
.paid-card-vip { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; }
.paid-card-code { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border: 1px solid #bae6fd; }
.paid-card-title { font-weight: 700; color: var(--site-text); margin-bottom: 4px; }
.paid-card-vip .paid-card-title { color: #92400e; }
.paid-card-code .paid-card-title { color: #075985; }

/* é¡µè */
.site-footer { background-color: #fff; border-top: 1px solid var(--site-border); }
.footer-title { font-weight: 600; color: var(--site-text); margin-bottom: 12px; }
.footer-link a { color: var(--site-muted); display: inline-block; padding: 2px 0; }
.footer-link a:hover { color: var(--site-primary); }
.footer-divider { margin: 16px 0; border-color: var(--site-border); opacity: 1; }

/* åé¡µ
 * ThinkPHP é»è®¤è¾åº <ul class="pagination"><li><a>/<span></li>ï¼
 * è¿éç»ä¸åæ 40px é«çå¤§ç­åºåè§æé®ï¼é¿åé»è®¤çº¯æå­é¾ä»¥ç¹å» */
.pagination {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 8px; padding: 0; margin-top: 1.5rem; list-style: none;
}
.pagination li { list-style: none; }
.pagination li a, .pagination li span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--site-border); border-radius: 10px;
    background: #fff; color: var(--site-text);
    font-size: 15px; font-weight: 500; line-height: 1;
    transition: all .15s ease;
}
.pagination li a:hover {
    border-color: var(--brand-primary); color: var(--brand-primary);
    background: var(--brand-primary-soft); transform: translateY(-1px);
}
.pagination li.active span {
    background: var(--brand-primary); border-color: var(--brand-primary);
    color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, .3);
}
.pagination li.disabled span, .pagination li.disabled a {
    color: #cbd5e1; background: #f8fafc; pointer-events: none;
}
/* å¼å®¹ Bootstrap 5 ç»æï¼page-item / page-linkï¼ */
.pagination .page-link { color: var(--site-primary); border-radius: 10px; margin: 0; }
.pagination .page-item.active .page-link { background-color: var(--site-primary); border-color: var(--site-primary); }

/* åå®¹è¯¦æé¡µ */
.detail-article { background: #fff; border-radius: 12px; box-shadow: var(--site-shadow); padding: 24px 32px; }
.detail-article h1, .detail-article h2, .detail-article h3 { color: var(--site-text); }
.detail-article img { max-width: 100%; height: auto; border-radius: 8px; }

/* ============ è¯å·åè¡¨é¡µ ============ */
/* é¡µé¢å¤´é¨ */
.paper-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.paper-head-title {
    display: flex; align-items: center; gap: 8px;
    margin: 0; font-size: 22px; font-weight: 600; color: var(--site-text);
}
.paper-head-title i { color: var(--brand-primary); font-size: 20px; }
.paper-head-sub { margin: 6px 0 0; font-size: 13px; color: var(--site-muted); }
.paper-head-count { font-size: 13px; color: var(--site-muted); white-space: nowrap; }
.paper-head-count .num {
    font-size: 20px; font-weight: 600; color: var(--brand-primary); margin-right: 4px;
}

/* ç­éåºï¼ç½è²å¡ç + è¶åæ ç­¾ */
.paper-filter {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
    box-shadow: var(--card-shadow);
}
.paper-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.paper-filter-row + .paper-filter-row {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px dashed var(--site-border);
}
.paper-filter-label {
    flex: 0 0 auto; min-width: 48px; text-align: center;
    padding: 3px 10px; font-size: 12px; font-weight: 600; line-height: 22px;
    color: var(--brand-primary); background: var(--brand-primary-soft);
    border-radius: 999px;
}
.filter-chip {
    display: inline-block; padding: 3px 14px;
    font-size: 13px; line-height: 22px; border-radius: 999px;
    border: 1px solid var(--site-border); color: var(--site-text);
    background: #fff; white-space: nowrap;
    transition: all .15s ease;
}
.filter-chip:hover {
    border-color: var(--brand-primary); color: var(--brand-primary);
    background: var(--brand-primary-soft);
}
.filter-chip.active {
    background: var(--brand-primary); border-color: var(--brand-primary);
    color: #fff; box-shadow: 0 2px 6px rgba(37, 99, 235, .25);
}
.filter-chip.chip-vip { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.filter-chip.chip-vip:hover { color: #92400e; border-color: #f59e0b; background: #fef3c7; }
.filter-chip.chip-vip.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #d97706; color: #fff;
    box-shadow: 0 2px 6px rgba(217, 119, 6, .28);
}

/* è¯å·å¡çåè¡¨ */
.paper-list { display: flex; flex-direction: column; gap: 12px; }
.paper-item {
    display: flex; align-items: center; gap: 20px;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: var(--card-shadow);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.paper-item:hover {
    border-color: #bfdbfe;
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}
.paper-main { flex: 1; min-width: 0; }
.paper-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.paper-title {
    margin: 0; font-size: 15px; font-weight: 500;
    line-height: 1.5; color: var(--site-text);
}
.paper-item:hover .paper-title { color: var(--brand-primary); }
.paper-badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 0 8px; font-size: 11px; font-weight: 500; line-height: 18px;
    border-radius: 999px; border: 1px solid transparent;
}
.paper-badge.badge-vip { color: #b45309; background: #fef3c7; border-color: #fde68a; }
.paper-badge.badge-free { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.paper-badge.badge-done { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.paper-meta {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 6px 16px; margin-top: 8px;
    font-size: 12px; color: var(--site-muted);
}
.paper-meta-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.paper-meta-item i { font-size: 12px; opacity: .8; }
.paper-meta-strong { color: var(--site-text); }
.paper-meta-success { color: var(--brand-success); }
.paper-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.paper-actions .btn { white-space: nowrap; }
.paper-empty {
    text-align: center; color: var(--site-muted);
    padding: 48px 0; background: #fff;
    border: 1px solid var(--site-border); border-radius: 14px;
}
.paper-empty i { display: block; font-size: 28px; margin-bottom: 8px; opacity: .6; }

@media (max-width: 767px) {
    .paper-head-title { font-size: 20px; }
    .paper-item { flex-direction: column; align-items: stretch; padding: 14px 16px; }
    .paper-actions { width: 100%; margin-top: 4px; }
    .paper-actions .btn {
        flex: 1; min-height: 40px;
        display: inline-flex; align-items: center; justify-content: center;
    }
}

/* ============ é¢ç®/ç­é¢å¡éç¨ ============ */
.question-title { font-size: 16px; line-height: 1.8; }
/* èè¯/åé¢é¡µé¢å¹²å¾åç¬æè¡ + å·¦å¯¹é½ */
.question-title img { max-width: 100%; height: auto; display: block; margin: 8px 8px 8px 0; clear: both; }
.option-item {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 10px 14px; border: 1px solid var(--site-border);
    border-radius: 8px; margin-bottom: 10px; cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease-standard),
                background-color var(--dur-fast) var(--ease-standard),
                box-shadow var(--dur-base) var(--ease-standard);
    background: #fff;
}
.option-item:hover { border-color: var(--site-primary); background: #f8faff; }
.option-item .opt-code {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--site-border); font-size: 12px; color: var(--site-muted);
    background: #fff;
    transition: border-color var(--dur-fast) var(--ease-standard),
                background-color var(--dur-fast) var(--ease-standard),
                color var(--dur-fast) var(--ease-standard);
}
.option-item.active { border-color: var(--site-primary); background: #eff6ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.option-item.active .opt-code { border-color: var(--site-primary); background: var(--site-primary); color: #fff; }
.option-item.is-right { border-color: #16a34a; background: #f0fdf4; }
.option-item.is-right .opt-code { border-color: #16a34a; background: #16a34a; color: #fff; }
.option-item.is-wrong { border-color: #dc2626; background: #fef2f2; }
.option-item.is-wrong .opt-code { border-color: #dc2626; background: #dc2626; color: #fff; }
.answer-result { border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-top: 10px; }
.answer-result.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.answer-result.no { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* ============ è¯å·è¯¦æï¼èªæµï¼é¡µ ============ */
.paper-view-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    background: #fff; border: 1px solid var(--site-border);
    border-radius: 14px; box-shadow: var(--card-shadow);
    padding: 18px 20px; margin-bottom: 16px;
}
.paper-view-title {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    margin: 0; font-size: 18px; font-weight: 600; line-height: 1.5;
    color: var(--site-text);
}
.paper-view-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
    margin-top: 8px; font-size: 12px; color: var(--site-muted);
}
.paper-view-back {
    display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
    padding: 6px 14px; font-size: 13px; color: var(--site-muted);
    background: #fff; border: 1px solid var(--site-border); border-radius: 999px;
    transition: all .15s ease;
}
.paper-view-back:hover {
    color: var(--brand-primary); border-color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

/* é¢ç®å¡çï¼exam.js æ¸²æ .question-box.cardï¼ */
.question-box {
    border: 1px solid var(--site-border) !important;
    border-radius: 14px !important;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.question-box:hover { border-color: #bfdbfe !important; box-shadow: var(--card-shadow-hover); }
.question-box .card-body { padding: 18px 20px; }
/* é¢åå¾½æ æ¹ä¸ºå°è¶å */
.question-box .badge {
    padding: 2px 10px; font-size: 11px; font-weight: 500; border-radius: 999px;
    background: var(--brand-primary-soft) !important; color: var(--brand-primary) !important;
}

/* æäº¤ç­å·åº */
.exam-submit-bar {
    margin: 16px 0; text-align: center;
    background: #fff; border: 1px solid var(--site-border);
    border-radius: 14px; box-shadow: var(--card-shadow);
    padding: 20px;
}
.exam-submit-bar .btn { min-width: 220px; }
.exam-submit-tip { margin-top: 8px; font-size: 12px; color: var(--site-muted); }

/* ============ ç­é¢å¡ï¼å³ä¾§æ¬æµ®ï¼ ============ */
.exam-layout { position: relative; }
.exam-aside { position: sticky; top: 84px; }
.answer-card {
    background: #fff; border: 1px solid var(--site-border);
    border-radius: 12px; box-shadow: var(--site-shadow);
    padding: 14px 16px;
}
.answer-card-title { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.answer-card-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.answer-card-grid .qnum {
    width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--site-border);
    background: #fff; color: var(--site-muted); font-size: 13px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .15s ease;
}
.answer-card-grid .qnum:hover { border-color: var(--site-primary); color: var(--site-primary); }
/* ===== ç­é¢å¡ 4 æ ===== */
.answer-card-grid .qnum.answered { background: #2563eb; border-color: #2563eb; color: #fff; }
.answer-card-grid .qnum.marked  { background: #f59e0b; border-color: #f59e0b; color: #fff; position: relative; }
.answer-card-grid .qnum.marked::after {
    content: ''; position: absolute; top: -2px; right: -2px;
    width: 8px; height: 8px; border-radius: 50%; background: #dc2626;
}
.answer-card-grid .qnum.skipped {
    background: repeating-linear-gradient(45deg, #f3f4f6 0 4px, #e5e7eb 4px 8px);
    border-color: #9ca3af; color: #6b7280;
}
.answer-card-grid .qnum.current { background: #fff; border: 2px solid #111827; color: #111827; font-weight: 700; }
.answer-card-grid .qnum.is-right { background: #16a34a; border-color: #16a34a; color: #fff; }
.answer-card-grid .qnum.is-wrong { background: #dc2626; border-color: #dc2626; color: #fff; }
.answer-card-legend { font-size: 12px; color: var(--site-muted); }
.answer-card-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; }

/* èè¯å¤´ / åè®¡æ¶ */
.exam-head {
    background: #fff; border: 1px solid var(--site-border); border-radius: 12px;
    padding: 12px 16px; margin-bottom: 16px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.exam-timer { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--site-primary); padding: 4px 10px; border-radius: 6px; background: rgba(37,99,235,.08); }
.exam-timer.timer-warn {
    color: #ea580c; background: rgba(234,88,12,.1);
    animation: timer-blink 1.5s infinite;
}
.exam-timer.timer-critical {
    color: #dc2626; background: rgba(220,38,38,.1);
    font-weight: 700; animation: timer-blink .6s infinite;
}
@keyframes timer-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}
.exam-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }

/* ============ ç»å½ / æ³¨å / ä¼åä¸­å¿ ============ */
.auth-card { max-width: 420px; margin: 0 auto; }
.auth-card .card-body { padding: 28px 32px; }
.auth-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; text-align: center; }
.auth-switch { text-align: center; font-size: 14px; color: var(--site-muted); margin-top: 14px; }
.vip-item {
    border: 1px solid var(--site-border); border-radius: 10px; padding: 12px 16px;
    background: #fff; margin-bottom: 10px;
}
.vip-item .vip-name { font-weight: 600; }
.vip-item .vip-time { font-size: 13px; color: var(--site-muted); }
.plan-card {
    border: 1px solid var(--site-border); border-radius: 12px; padding: 18px;
    background: #fff; height: 100%; text-align: center;
}
.plan-card .plan-price { font-size: 1.6rem; font-weight: 700; color: var(--site-accent); }

/* ============ Hero é¦å± ============ */
.home-hero {
    position: relative; border-radius: 20px; overflow: hidden;
    background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 40%, #fff7ed 100%);
    border: 1px solid #dbeafe;
}
.home-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(37,99,235,.08) 0, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(249,115,22,.07) 0, transparent 40%);
}
.hero-bg { position: relative; }
.hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    background: linear-gradient(90deg, var(--site-primary) 0%, #7c3aed 50%, #ea580c 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: .02em;
}
.hero-subtitle { font-size: clamp(.85rem, 1.8vw, 1.05rem); max-width: 680px; margin: 0 auto; line-height: 1.8; }
.hero-search { max-width: 560px; }
.hero-search .form-control-lg {
    border-radius: 10px; font-size: 16px;
    box-shadow: 0 2px 8px rgba(37,99,235,.08);
}
.hero-stats { max-width: 520px; }
/* Hero å¿«æ·ç§ç®è¶å */
.hero-subject-pill {
    display: inline-flex; align-items: center;
    padding: 6px 16px; border-radius: 999px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(37,99,235,.18);
    color: var(--site-text); font-size: 13px; text-decoration: none;
    transition: all .15s;
    backdrop-filter: blur(4px);
}
.hero-subject-pill:hover {
    background: var(--site-primary); color: #fff;
    border-color: var(--site-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.hero-stat-num {
    font-size: clamp(1.3rem, 2.8vw, 1.8rem);
    background: linear-gradient(90deg, var(--site-primary), #7c3aed);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stat-label { white-space: nowrap; }

/* ============ æ¯æ¥ä¸ç»æ¨ªæ¡ ============ */
.home-daily .card {
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(37,99,235,.08) 0%, rgba(249,115,22,.06) 100%);
    border: 1px solid rgba(37,99,235,.15);
}
.home-daily .badge.bg-gradient {
    background: linear-gradient(135deg, var(--site-primary), #ea580c) !important;
    font-size: 12px; padding: 5px 10px;
}
.home-daily a { color: var(--site-text); }
.home-daily a:hover { color: var(--site-primary); }

/* ============ å¯¼èªæ ï¼æç´¢æ¡å å®½ + æ¯æ¥ä¸ç»å¥å£ ============ */
.navbar .d-flex.me-2 { flex: 0 0 200px; }
.navbar .form-control-sm { min-width: 180px; }

/* ============ ä»è´¹å¡ç ============ */
.paid-card-desc { font-size: 13px; }
.paid-card-body { flex: 1; }

/* ============ banner/section é´è· ============ */
@media (max-width: 575.98px) {
    .hero-title { font-size: 1.5rem; }
    .hero-search .btn-lg, .hero-search .form-control-lg { font-size: 14px; padding: 8px 12px; }
    .hero-actions .btn { font-size: 14px; padding: 8px 14px; }
}

/* ============ P1 æ°å¢ï¼ç§»å¨ç«¯ç­é¢å¡æ½å± + è§¦æ¸ç­åº ============ */
@media (max-width: 991.98px) {
    .exam-layout .col-lg-3 {
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050;
        transform: translateY(calc(100% - 48px)); transition: transform .3s ease;
    }
    .exam-layout .col-lg-3.drawer-open { transform: translateY(0); }
    .answer-card { border-radius: 16px 16px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,.12); }
    .answer-card::before {
        content: ''; display: block; width: 40px; height: 4px; border-radius: 2px;
        background: #d1d5db; margin: -4px auto 10px;
    }
    .exam-layout { padding-bottom: 56px; }
    .exam-head { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 767.98px) {
    .option-item { padding: 14px 16px; min-height: 44px; font-size: 15px; }
    .option-item .opt-code { width: 26px; height: 26px; font-size: 13px; }
    .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; }
    .form-control { min-height: 44px; }
    input, select, textarea { font-size: 16px !important; }
    .nav-link { min-height: 44px; display: flex; align-items: center; }
    .exam-head .btn { padding: 6px 10px; font-size: 13px; }
}
/* é¿åå®¹æ¨ªåæº¢åºé²æ¤ */
pre, code, table { max-width: 100% !important; overflow-x: auto; }
pre { white-space: pre-wrap; word-break: break-word; }
code { white-space: pre-wrap; word-break: break-all; }

/* ç§»å¨ç«¯ç­é¢å¡æ½å±æµ®å¨æé® */
.exam-card-toggle {
    position: fixed; right: 16px; bottom: 60px; z-index: 1045;
    width: 52px; height: 52px; border-radius: 50%; border: none;
    background: var(--site-primary, #2563eb); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(37,99,235,.4); font-size: 22px; cursor: pointer;
}
.exam-card-toggle .badge {
    position: absolute; top: -4px; right: -4px; background: #dc2626; color: #fff;
    font-size: 11px; min-width: 20px; height: 20px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid #fff;
}


/* ============ é¦é¡µ UI åçº§ï¼Batch 2ï¼============ */

/* æ¯æ¥ä¸ç» mini ç­é¢å¡å¡ç */
.daily-card {
    border-radius: var(--card-radius);
    border: 1px solid rgba(234,88,12,.18);
    background: linear-gradient(135deg, rgba(37,99,235,.06) 0%, rgba(234,88,12,.05) 100%);
    padding: 20px 24px;
}
.daily-header .badge-daily {
    display: inline-flex; align-items: center;
    background: linear-gradient(135deg, #2563eb, #ea580c);
    color: #fff; font-weight: 700; font-size: 13px;
    padding: 5px 12px; border-radius: 20px;
}
.btn-mini-expand {
    border: 1px solid var(--site-border);
    background: #fff; border-radius: 12px;
    padding: 14px 16px; transition: all .15s;
}
.btn-mini-expand:hover { border-color: var(--brand-primary); background: #f8faff; }
.btn-mini-expand .toggle-icon { transition: transform .25s; color: var(--site-muted); }
.btn-mini-expand[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }

.daily-mini-q .question-text { font-size: 15px; line-height: 1.8; }
.daily-options-wrap .btn-option {
    display: flex; align-items: flex-start; gap: 10px;
    width: 100%; text-align: left;
    padding: 12px 14px; margin-bottom: 8px;
    border: 1px solid var(--site-border); border-radius: 10px;
    background: #fff; cursor: pointer; transition: all .15s;
    font-size: 14px; color: var(--site-text);
}
.daily-options-wrap .btn-option:hover { border-color: var(--brand-primary); background: var(--brand-primary-soft); }
.daily-options-wrap .btn-option .opt-code-badge {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    background: #f3f4f6; color: var(--site-muted); font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--site-border);
}
.daily-options-wrap .btn-option.option-correct { border-color: var(--brand-success); background: var(--brand-success-soft); }
.daily-options-wrap .btn-option.option-correct .opt-code-badge { background: var(--brand-success); color: #fff; border-color: var(--brand-success); }
.daily-options-wrap .btn-option.option-wrong { border-color: var(--brand-danger); background: var(--brand-danger-soft); }
.daily-options-wrap .btn-option.option-wrong .opt-code-badge { background: var(--brand-danger); color: #fff; border-color: var(--brand-danger); }

/* ç§ç®å½©è² tile */
.subject-tile {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 16px 14px; border-radius: var(--card-radius);
    background: #fff; border: 1px solid var(--site-border);
    box-shadow: var(--card-shadow); transition: all .2s;
    height: 100%; text-decoration: none;
    overflow: hidden;
}
.subject-tile::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--tile-color, var(--brand-primary));
    border-radius: 4px 0 0 4px;
}
.subject-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--tile-color, var(--brand-primary));
    color: var(--tile-color, var(--brand-primary));
}
.subject-tile:hover .tile-arrow { transform: translateX(4px); }
.subject-tile .tile-icon {
    font-size: 26px; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 10px;
    background: #f1f5f9;
    background: color-mix(in srgb, var(--tile-color, var(--brand-primary)) 12%, #fff);
    display: flex; align-items: center; justify-content: center;
}
.subject-tile .tile-main { flex: 1; min-width: 0; }
.subject-tile .tile-name {
    font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--site-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.subject-tile:hover .tile-name { color: inherit; }
.subject-tile .tile-sub { margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--site-muted); }
.subject-tile .tile-arrow { color: var(--site-muted); transition: transform .2s; }

/* è¯å·å¡çï¼é¦é¡µ"ææ°è¯å·"ï¼ï¼æ é¢ 500ãæ ç­¾ 500ãæ¬¡è¦ä¿¡æ¯ 400ï¼å±çº§åå¶ */
.paper-card-new {
    display: flex; flex-direction: column;
    padding: 16px 18px 14px;
    background: #fff; border-radius: 12px;
    border: 1px solid var(--site-border); box-shadow: none;
    transition: border-color var(--dur-base) var(--ease-standard),
                box-shadow var(--dur-base) var(--ease-standard),
                transform var(--dur-base) var(--ease-standard);
    text-decoration: none; height: 100%;
}
.paper-card-new:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}
.pc-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-bottom: 10px;
}
.pc-tag {
    display: inline-block; max-width: 70%;
    font-size: 12px; font-weight: 500; line-height: 20px;
    color: var(--brand-primary); background: var(--brand-primary-soft);
    padding: 0 8px; border-radius: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-vip, .pc-free {
    flex: none; font-size: 11px; font-weight: 500; line-height: 18px;
    padding: 0 7px; border-radius: 5px; letter-spacing: .2px;
}
.pc-vip { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; }
.pc-free { color: var(--brand-success); background: var(--brand-success-soft); border: 1px solid #bbf7d0; }
.paper-title-new {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 44px;
    font-size: 14px; font-weight: 500; line-height: 1.55;
    color: var(--site-text);
}
.paper-card-new:hover .paper-title-new { color: var(--brand-primary); }
.pc-meta {
    margin-top: auto; padding-top: 10px;
    border-top: 1px dashed var(--site-border);
    display: flex; align-items: center; gap: 16px;
    font-size: 12px; font-weight: 400; color: var(--site-muted);
}
.pc-meta span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pc-meta i { font-size: 12px; opacity: .75; }

/* VIP CTA å¡ */
.vip-cta-card {
    border-radius: var(--card-radius);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    border: 1px solid #fde68a; box-shadow: var(--card-shadow);
    height: 100%; overflow: hidden; position: relative;
}
.vip-cta-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle at 80% 10%, rgba(217,119,6,.15) 0, transparent 50%);
}
.vip-cta-inner { padding: 24px; position: relative; }
.vip-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: linear-gradient(135deg, #d97706, #ea580c);
    color: #fff; font-weight: 700; font-size: 13px;
    padding: 5px 14px; border-radius: 20px;
}
.vip-features li { font-size: 14px; padding: 3px 0; color: var(--site-text); }

/* å¯¼èªæ ä¸æç¾å */
.dropdown-menu {
    border: 1px solid var(--site-border); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1); padding: 8px 0; min-width: 200px;
}
.dropdown-item {
    padding: 8px 16px; font-size: 14px; font-weight: 500;
    color: var(--site-text); transition: all .1s;
}
.dropdown-item:hover { background: var(--brand-primary-soft); color: var(--brand-primary); padding-left: 20px; }

/* ç§»å¨ç«¯å®å¨åº + æ½å±åºé¨ */
@media (max-width: 767.98px) {
    .subject-tile { padding: 12px; }
    .subject-tile .tile-icon { width: 38px; height: 38px; font-size: 22px; }
    .hero-title { font-size: 1.5rem; }
    .daily-card { padding: 16px; }
    .vip-cta-inner { padding: 18px; }
    /* åé¡µæ§ä»¶ç§»å¨ç«¯ç­åº â¥36px */
    .pagination li a, .pagination li span {
        min-width: 36px; height: 36px; padding: 0 8px; font-size: 14px;
    }
    .pagination { gap: 6px; }
    /* ç­éè¶åç§»å¨ç«¯ç­åº â¥32px */
    .filter-chip { min-height: 32px; display: inline-flex; align-items: center; }
    /* Hero ç§ç®è¶åç§»å¨ç«¯ç­åº */
    .hero-subject-pill { min-height: 36px; }
    /* è¯å·å¡çç§»å¨ç«¯ï¼ä¿¡æ¯åºä¸æé®åºçºµåæåï¼æé®å¨å®½åå */
    .paper-item .paper-actions { width: 100%; }
    /* è¯å·è¯¦æé¡µç§»å¨ç«¯çç½æ¶æ */
    .paper-view-head { padding: 14px 16px; }
    .question-box .card-body { padding: 14px 16px; }
    .exam-submit-bar { padding: 14px 16px; }
    .paper-item .paper-actions .btn {
        flex: 1; min-height: 40px;
        display: inline-flex; align-items: center; justify-content: center;
    }
    /* å¯¼èªæå åæç´¢æ¡å¨å®½ */
    .navbar .nav-search { flex: none !important; width: 100%; margin: 8px 0; }
    .navbar .nav-search .form-control { flex: 1; min-width: 0; }
    /* å¯¼èªæå åºç»å½/æ³¨åæé®å¨å®½ */
    .navbar-collapse > .d-flex.align-items-center { width: 100%; }
    .navbar-collapse > .d-flex.align-items-center .btn { flex: 1; min-height: 40px; }
}
@media (max-width: 991.98px) {
    .exam-layout .col-lg-3 { padding-bottom: calc(48px + var(--safe-bottom)); }
}

/* ============ ä¿¡ä»»èä¹¦å¢ ============ */
.trust-card { background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%); border-radius: var(--card-radius); }
.trust-block { padding: 8px 0; }
.trust-label { font-size: 13px; font-weight: 600; color: var(--brand-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.trust-logo-chip, .trust-media-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px; border-radius: 20px;
    background: #fff; border: 1px solid var(--site-border);
    font-size: 13px; font-weight: 500; color: var(--site-text);
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    transition: all .15s;
}
.trust-logo-chip:hover, .trust-media-chip:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-1px);
}
.trust-quote { font-size: 15px; line-height: 1.8; color: var(--site-text); padding-left: 12px; border-left: 3px solid var(--brand-primary); }
.trust-quote-author { font-size: 13px; color: var(--site-muted); margin-top: 8px; }

/* ============ èè¯åè®¡æ¶é¡µ ============ */
.exam-event-card {
    border-radius: var(--card-radius);
    border: 1px solid var(--site-border);
    background: #fff;
    padding: 20px 24px;
    box-shadow: var(--card-shadow);
    transition: all .15s;
}
.exam-event-card:hover { box-shadow: var(--card-shadow-hover); border-color: var(--brand-primary); }
.exam-event-urgent { border-color: var(--brand-danger); background: linear-gradient(135deg, #fef2f2 0%, #fff 30%); }
.exam-event-soon { border-color: var(--brand-vip); background: linear-gradient(135deg, #fffbeb 0%, #fff 30%); }
.exam-countdown-big { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--brand-primary); font-variant-numeric: tabular-nums; line-height: 1; }
.exam-countdown-big.urgent { color: var(--brand-danger); }
.exam-countdown-big.soon { color: var(--brand-vip); }
.exam-countdown-unit { font-size: 13px; color: var(--site-muted); font-weight: 500; }

/* ============ AI ä¸æ¡£è§£æ ============ */
.ai-explain{border:1px solid #dbeafe;background:linear-gradient(135deg,#f8fafc,#eff6ff);border-radius:10px;padding:14px;}
.ai-explain-body{font-size:14px;line-height:1.8;color:#1f2937;}
.ai-explain-body p{margin:0 0 8px;}
.ai-code{background:#0f172a;color:#e2e8f0;padding:12px;border-radius:8px;overflow-x:auto;font-size:13px;line-height:1.6;}
.ai-h3{font-weight:700;font-size:15px;margin:10px 0 4px;color:#1e40af;}
.ai-h4{font-weight:600;margin:8px 0 2px;color:#1e40af;}
.ai-li{margin:2px 0;}
.ai-loading{color:#6b7280;font-size:13px;padding:6px 0;}
@media (max-width: 575.98px){
    .ai-explain{padding:11px;}
    .ai-level-tabs .btn{padding:2px 7px;font-size:12px;}
}

/* ============ é¢åå± ============ */
.qb-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;color:var(--site-muted);margin-bottom:14px;}
.qb-crumb a{color:var(--site-muted);text-decoration:none;}
.qb-crumb a:hover{color:var(--brand-primary);}
.qb-crumb .sep{color:#cbd5e1;}
.qb-crumb .cur{color:var(--site-text);font-weight:600;}

/* ============ éª¨æ¶å± ============ */
.sk-block{background:linear-gradient(90deg,#eef2f7 25%,#f8fafc 37%,#eef2f7 63%);background-size:400% 100%;animation:sk-shimmer 1.4s ease-in-out infinite;border-radius:8px;}
.sk-line{height:14px;margin-bottom:10px;}
.sk-line.w-40{width:40%;} .sk-line.w-60{width:60%;} .sk-line.w-80{width:80%;} .sk-line.w-100{width:100%;}
.sk-title{height:26px;margin-bottom:14px;}
.sk-card{height:132px;border-radius:14px;margin-bottom:12px;}
.sk-hero{height:168px;border-radius:14px;margin-bottom:16px;}
.skeleton-wrap{display:block;}
.skeleton-wrap.is-loaded{display:none;}
@keyframes sk-shimmer{0%{background-position:100% 50%;}100%{background-position:0 50%;}}

/* ============ ç©ºç¶æ ============ */
.empty-state{text-align:center;padding:44px 18px;background:#fff;border:1px solid var(--site-border);border-radius:var(--card-radius);}
.empty-emoji{font-size:2.6rem;line-height:1;margin-bottom:12px;}
.empty-title{font-size:16px;font-weight:700;color:var(--site-text);margin-bottom:6px;}
.empty-desc{font-size:14px;color:var(--site-muted);max-width:420px;margin:0 auto 16px;line-height:1.7;}
.empty-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}

/* ============ å¨æéçº§ï¼æ éç¢ï¼ ============ */
@media (prefers-reduced-motion: reduce){
    *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important;}
    .sk-block{animation:none;background:#eef2f7;}
}

/* ============ é®çç¦ç¹å¯è§ ============ */
:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px;border-radius:4px;}
.opt-btn:focus-visible,.opt-key:focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px;}

/* ============ åäº«å¡ ============ */
.share-card{max-width:560px;margin:0 auto;background:#fff;border-radius:16px;border:1px solid var(--site-border);box-shadow:var(--card-shadow);overflow:hidden;}
.share-card-head{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;padding:18px 20px;}
.share-card-body{padding:20px;}
.share-card-foot{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:#f8fafc;font-size:13px;color:var(--site-muted);}

/* ============ æç´¢èæ³ ============ */
.search-suggest{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:1050;background:#fff;border:1px solid var(--site-border);border-radius:10px;box-shadow:0 8px 24px rgba(15,23,42,.12);overflow:hidden;}
.suggest-item{display:flex;align-items:center;gap:10px;padding:10px 14px;cursor:pointer;border-bottom:1px solid #f1f5f9;}
.suggest-item:last-child{border-bottom:0;}
.suggest-item:hover,.suggest-item.active{background:#eff6ff;}
.suggest-type{flex-shrink:0;font-size:12px;padding:1px 7px;border-radius:4px;background:#e0e7ff;color:#3730a3;}
.suggest-text{font-size:14px;color:var(--site-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.suggest-loading{padding:12px 14px;font-size:13px;color:var(--site-muted);}
.hot-word:hover{background:#dbeafe !important;color:#1d4ed8 !important;}

/* ============ AI è¿½é®å¯¹è¯ ============ */
.ai-chat{margin-top:12px;padding-top:12px;border-top:1px dashed #c7d2fe;}
.ai-chat-list{margin-bottom:8px;}
.ai-chat-list:empty{display:none;}
.ai-msg{max-width:92%;margin:6px 0;padding:9px 12px;border-radius:10px;font-size:13.5px;line-height:1.75;word-break:break-word;}
.ai-msg p{margin:0 0 6px;}
.ai-msg p:last-child{margin-bottom:0;}
.ai-msg.user{margin-left:auto;background:#2563eb;color:#fff;border-bottom-right-radius:2px;}
.ai-msg.ai{background:#fff;border:1px solid #dbeafe;color:#1f2937;border-bottom-left-radius:2px;}
.ai-msg.ai-wait{color:#64748b;}
.ai-msg .ai-code{margin:6px 0;}

/* ============ é¡¶é¨å¯¼èªç´§åå¸å±ï¼é¿åèåæ¥æ¤ï¼ ============ */
.nav-tight .nav-link {
    padding-left: .55rem;
    padding-right: .55rem;
    font-size: .93rem;
    white-space: nowrap;
}
.nav-tight .nav-item + .nav-item { margin-left: 0; }
.nav-tight .dropdown-toggle::after { margin-left: .28em; }
.nav-tight .dropdown-menu { min-width: 11rem; }
.nav-search input { width: 150px; }
@media (min-width: 992px) and (max-width: 1440px) {
    .nav-tight .nav-link { padding-left: .4rem; padding-right: .4rem; font-size: .88rem; }
    .nav-search input { width: 120px; }
    .brand-name { font-size: 1.1rem; }
}
@media (max-width: 991.98px) {
    .nav-tight .nav-link { padding-left: 0; }
    .nav-search { width: 100%; margin: .5rem 0; }
    .nav-search input { width: 100%; }
}

/* ============ ç§»å¨ç«¯ä½éªè¡¥é½ ============ */
@media (max-width: 991.98px) {
    /* ç­é¢å¡æ½å±é®ç½© */
    .exam-layout::after {
        content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.4);
        opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 1049;
    }
    .exam-layout.drawer-mask::after { opacity: 1; visibility: visible; }
    /* ç­é¢å¡æ½å±æ»å¨æå¿åºå */
    .exam-layout .col-lg-3 { max-height: 70vh; overflow-y: auto; }
    .exam-layout .col-lg-3.drawer-open { padding-bottom: env(safe-area-inset-bottom, 20px); }
}

@media (max-width: 767.98px) {
    /* é²æ­¢æ¨ªåæ»å¨ */
    body { overflow-x: hidden; }
    .container { padding-left: 12px; padding-right: 12px; }

    /* æ±å ¡èåæé®å å¤§ */
    .navbar-toggler { padding: 8px 12px; font-size: 1.25rem; min-width: 44px; min-height: 44px; }

    /* å¯¼èªèåå±å¼æ ·å¼ */
    .navbar-collapse { padding: 12px 0; }
    .navbar-collapse .nav-link { padding: 12px 16px; border-radius: 8px; margin: 2px 0; }
    .navbar-collapse .nav-link:hover, .navbar-collapse .nav-link:active { background: #f1f5f9; }
    .navbar-collapse .dropdown-menu { border: none; box-shadow: none; padding-left: 16px; }
    .navbar-collapse .dropdown-item { padding: 10px 16px; min-height: 44px; display: flex; align-items: center; }

    /* å¡çä¸æé® */
    .card { border-radius: 10px; }
    .card-body { padding: 14px; }
    .btn { min-height: 44px; font-size: 15px; }
    .btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }

    /* ç­é¢é¡µå¤´é¨ */
    .exam-head { padding: 10px 12px; }
    .exam-head .btn { min-height: 38px; font-size: 13px; padding: 6px 10px; }
    .exam-head .exam-timer { font-size: 14px; font-weight: 600; }

    /* éé¡¹æ¡ç® */
    .option-item { padding: 14px 12px; min-height: 48px; font-size: 15px; }
    .option-item .opt-code { width: 28px; height: 28px; font-size: 14px; }

    /* ç­é¢å¡æ½å±æé® */
    .exam-card-toggle { width: 56px; height: 56px; font-size: 24px; bottom: 70px; }

    /* æ¯æ¥ä¸ç» */
    .daily-card { padding: 16px; }
    .daily-q-item { padding: 12px; }

    /* è¡¨æ ¼/ä»£ç åé²æº¢åº */
    .table-responsive { font-size: 13px; }
    pre, code { font-size: 12px; }

    /* åºé¨å®å¨åºå */
    .site-footer { padding-bottom: env(safe-area-inset-bottom, 0); }
}

/* è¶å°å± (<375px) è¿ä¸æ­¥æ¶ç´§ */
@media (max-width: 374.98px) {
    .brand-name { font-size: 1rem; }
    .btn { font-size: 14px; }
    .exam-head .btn { font-size: 12px; padding: 5px 8px; }
    .answer-card-grid .qnum { width: 30px; height: 30px; font-size: 12px; }
}

/* ============ VIP è´­ä¹°é¡µ ============ */
.pay-hero {
    text-align: center;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #ffedd5 100%);
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 36px 20px 28px;
    margin-bottom: 24px;
}
.pay-hero-title {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 0 8px; font-size: 26px; font-weight: 700; color: #92400e;
}
.pay-hero-sub { margin: 0 0 14px; font-size: 14px; color: #a16207; }
.pay-hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pay-hero-badges span {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; font-size: 12px; color: #92400e;
    background: rgba(255,255,255,.75); border: 1px solid #fde68a; border-radius: 999px;
}

.plan-card-vip {
    border-radius: 18px; border: 1px solid #fde68a;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    box-shadow: 0 4px 20px rgba(217, 119, 6, .15);
    position: relative; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card-vip::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 120px; height: 120px;
    background: radial-gradient(circle at 100% 0%, rgba(217,119,6,.2), transparent 60%);
}
.plan-card-vip:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(217,119,6,.22); }
.plan-card-hot { border-color: #d97706; box-shadow: 0 6px 30px rgba(217, 119, 6, .25); }
.plan-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.plan-popular { background: linear-gradient(135deg, #d97706, #ea580c); color: #fff; }
.plan-best { background: linear-gradient(135deg, #7c3aed, #ea580c); color: #fff; }
.plan-normal { background: #e5e7eb; color: #374151; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--brand-vip); }
.plan-period { font-size: 13px; color: var(--site-muted); }
.plan-feature { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; padding: 4px 0; }
.plan-feature i { margin-top: 3px; }
.plan-feature.not { color: #9ca3af; }
.plan-cta-btn { background: linear-gradient(135deg, #d97706, #ea580c); border: none; color: #fff; font-weight: 700; }
.plan-cta-btn:hover { background: linear-gradient(135deg, #b45309, #c2410c); color: #fff; }

.testimonial-card {
    border: 1px solid var(--site-border); border-radius: 14px;
    background: #fff; padding: 18px; height: 100%;
    transition: box-shadow .18s ease, transform .18s ease;
}
.testimonial-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.testimonial-quote { color: var(--site-muted); font-size: 36px; line-height: 1; margin-bottom: 8px; font-family: Georgia, serif; }
.testimonial-text { font-size: 14px; color: var(--site-text); line-height: 1.8; margin-bottom: 12px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.testimonial-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--brand-primary-soft); color: var(--brand-primary);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.pay-panel {
    background: #fff; border: 1px solid var(--site-border);
    border-radius: 14px; box-shadow: var(--card-shadow);
    padding: 20px;
}
.pay-vip-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-radius: 12px;
    background: var(--brand-vip-soft); border: 1px solid #fde68a;
}

/* .section-tip å·²å¨ question.css å®ä¹ï¼æ­¤å¤ååºï¼pay é¡µæªå¼å¥ question.cssï¼ */
.section-tip { font-size: 12px; color: var(--site-muted); }

/* ç§»å¨ç«¯æé®ç­åºä¸å°äº 36pxï¼æ¯æ¥ä¸ç» / å­¦ä¹ è·¯å¾ / èè¯æ¥å / éé¢å¾è°± / æè¡ / ä¸é¢ */
@media (max-width: 768px) {
    .daily-options .opt-btn,
    .lp-wrap .btn,
    .exam-calendar-wrap .btn,
    .wm-wrap .btn,
    .rank-empty .btn,
    .topics-empty .btn { min-height: 36px; }
}

/* ============================================================
   é¡¶é¨å¯¼èª v2ï¼æ¯ç»ç + åçæ¸åé¡¶çº¿ + è¶åæç´¢ï¼
   ============================================================ */
.site-header {
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, .85);
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: box-shadow var(--dur-base) var(--ease-standard);
}
.header-accent {
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #6366f1 45%, #ea580c 100%);
}
.site-header .navbar { padding-top: 10px; padding-bottom: 10px; }

.site-header .navbar-brand { gap: 10px; }
.site-header .brand-logo {
    width: 42px; height: 42px;
    border-radius: 12px;
    font-size: 1.3rem;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
    transition: transform var(--dur-base) var(--ease-standard);
}
.site-header .navbar-brand:hover .brand-logo { transform: translateY(-1px) scale(1.03); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-header .brand-name { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.brand-slogan {
    font-size: 11px; font-weight: 400; color: var(--site-muted);
    letter-spacing: .06em;
}

/* å¯¼èªé¡¹ï¼hover èæ¯è¶å + åºé¨æç¤ºæ¡ */
.nav-tight .nav-link {
    position: relative;
    border-radius: 8px;
    padding: 8px 10px;
    color: #374151;
    transition: color var(--dur-fast) var(--ease-standard),
                background-color var(--dur-fast) var(--ease-standard);
}
.nav-tight .nav-link::after {
    content: '';
    position: absolute; left: 8px; right: 8px; bottom: 2px;
    height: 2px; border-radius: 2px;
    background: var(--brand-primary);
    transform: scaleX(0); transform-origin: center;
    transition: transform var(--dur-base) var(--ease-standard);
}
.nav-tight .nav-link:hover { color: var(--brand-primary); background: #f1f5f9; }
.nav-tight .nav-link:hover::after { transform: scaleX(.6); }

/* ä¸æèåï¼æ´æåçåç»æ é¢ä¸é´å½± */
.navbar .dropdown-menu {
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
    margin-top: 8px;
}
.navbar .dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    transition: background-color var(--dur-fast) var(--ease-standard),
                padding-left var(--dur-fast) var(--ease-standard);
}
.navbar .dropdown-header {
    font-size: 11px; font-weight: 600; letter-spacing: .08em;
    color: #94a3b8; text-transform: uppercase;
    padding: 8px 12px 4px;
}

/* è¶åæç´¢æ¡ */
.site-header .nav-search { position: relative; display: flex; align-items: center; }
.site-header .nav-search > i {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    font-size: 14px; color: #94a3b8; pointer-events: none;
}
.site-header .nav-search .form-control {
    height: 38px;
    width: 220px;
    padding-left: 36px;
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #f1f5f9;
    transition: width var(--dur-slow) var(--ease-standard),
                background-color var(--dur-fast) var(--ease-standard),
                border-color var(--dur-fast) var(--ease-standard),
                box-shadow var(--dur-fast) var(--ease-standard);
}
.site-header .nav-search .form-control:focus {
    width: 250px;
    background: #fff;
    border-color: #bfdbfe;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

/* å³ä¾§æä½åº */
.header-actions { gap: 8px; }
.header-actions .btn { white-space: nowrap; }
.user-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    font-size: 14px; color: #374151; background: #f1f5f9;
    max-width: 150px;
    transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip:hover { background: var(--brand-primary-soft); color: var(--brand-primary); }
.btn-ghost { color: #374151; background: transparent; border: 1px solid #e2e8f0; }
.btn-ghost:hover { color: var(--brand-primary); border-color: var(--brand-primary); background: var(--brand-primary-soft); }
.btn-vip {
    color: #92400e;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(217, 119, 6, .18);
}
.btn-vip:hover { color: #78350f; background: linear-gradient(135deg, #fde68a, #fcd34d); border-color: #f59e0b; }

@media (min-width: 992px) and (max-width: 1200px) {
    .site-header .nav-search .form-control { width: 160px; }
    .site-header .nav-search .form-control:focus { width: 190px; }
    .brand-slogan { display: none; }
}
@media (max-width: 991.98px) {
    .site-header .nav-search .form-control,
    .site-header .nav-search .form-control:focus { width: 100%; }
    .site-header .nav-search { margin: 8px 0; }
    .header-actions { width: 100%; padding-top: 4px; }
}

/* ============================================================
   é¡µè v2ï¼æ·±è²å¤æ  + åçä»ç» + ä¿¡ä»»æ ç­¾ï¼
   ============================================================ */
.site-footer {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    border-top: 0;
    color: #cbd5e1;
}
.site-footer::before {
    content: '';
    position: absolute; top: -120px; right: -80px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .28), transparent 68%);
    pointer-events: none;
}
.footer-main { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 36px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-logo {
    width: 38px; height: 38px; border-radius: 11px; font-size: 1.15rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    box-shadow: 0 6px 18px rgba(37, 99, 235, .35);
}
.footer-brand-name { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.footer-text {
    font-size: 13px; line-height: 1.9; color: #94a3b8;
    max-width: 420px; margin-bottom: 16px;
}
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tags span {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; border-radius: 999px;
    font-size: 12px; color: #cbd5e1;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(148, 163, 184, .22);
}
.footer-tags span i { color: #60a5fa; font-size: 12px; }
.site-footer .footer-title {
    font-size: 13px; font-weight: 600; color: #f1f5f9;
    letter-spacing: .04em; margin-bottom: 14px;
}
.site-footer .footer-link { margin-bottom: 0; }
.site-footer .footer-link li { margin-bottom: 2px; }
.site-footer .footer-link a {
    display: inline-block;
    padding: 4px 0;
    font-size: 13.5px; color: #94a3b8;
    transition: color var(--dur-fast) var(--ease-standard),
                transform var(--dur-fast) var(--ease-standard);
}
.site-footer .footer-link a:hover { color: #fff; transform: translateX(3px); }
.footer-kf { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 13.5px; color: #94a3b8; }
.footer-kf i { color: #34d399; }
.footer-bottom {
    position: relative; z-index: 1;
    border-top: 1px solid rgba(148, 163, 184, .18);
    background: rgba(2, 6, 23, .45);
}
.footer-bottom-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px; padding-top: 14px; padding-bottom: 14px;
    font-size: 12.5px; color: #7d8ea8;
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom-links a { color: #94a3b8; }
.footer-bottom-links a:hover { color: #fff; }
.footer-bottom-inner > span > a { color: #94a3b8; }
.footer-bottom-inner > span > a:hover { color: #fff; }

@media (max-width: 767.98px) {
    /* 移动端不再展示深色多栏页脚：一屏高度全被品牌介绍 + 三栏导航 + 底栏吃掉，
       手指滑动时像一块突兀的蓝黑幕布。这里折叠成一条浅色版权行：
       导航类入口在页面上方的移动端菜单里都有，不必重复；
       版权信息属于必须保留内容，所以不做整体 display:none。 */
    .site-footer {
        margin-top: 1.5rem !important;
        background: #f8fafc;
        color: #64748b;
        border-top: 1px solid var(--site-border);
    }

    .site-footer::before { display: none; }

    .footer-main { display: none; }

    .footer-bottom {
        background: transparent;
        border-top: 0;
    }

    .footer-bottom-inner {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 12px 0;
        font-size: 12px;
        color: #64748b;
        text-align: center;
    }

    .footer-bottom-links { display: none; }
}

/* ============================================================
   ç»ä¸é¡µé¢ Heroï¼å­¦ä¹ ç±»é¡µé¢å±ç¨ï¼
   ============================================================ */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 26px 28px;
    border-radius: 18px;
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f5f3ff 100%);
    margin-bottom: 20px;
}
.page-hero::after {
    content: '';
    position: absolute; right: -50px; top: -70px;
    width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .16), transparent 66%);
    pointer-events: none;
}
.page-hero-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.page-hero-icon {
    flex: 0 0 auto;
    width: 54px; height: 54px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .3);
}
.page-hero-body { flex: 1 1 260px; min-width: 0; }
.page-hero-title {
    margin: 0; font-size: 22px; font-weight: 700;
    color: #0f172a; letter-spacing: -.01em;
}
.page-hero-sub { margin: 5px 0 0; font-size: 13.5px; color: #64748b; line-height: 1.65; }
.page-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ä¸»é¢åä½ */
.page-hero.v-warn { border-color: #fde68a; background: linear-gradient(135deg, #fffbeb 0%, #fff 55%, #fff7ed 100%); }
.page-hero.v-warn::after { background: radial-gradient(circle, rgba(217, 119, 6, .18), transparent 66%); }
.page-hero.v-warn .page-hero-icon { background: linear-gradient(135deg, #f59e0b, #ea580c); box-shadow: 0 10px 22px rgba(217, 119, 6, .3); }
.page-hero.v-danger { border-color: #fecaca; background: linear-gradient(135deg, #fef2f2 0%, #fff 55%, #fff7ed 100%); }
.page-hero.v-danger::after { background: radial-gradient(circle, rgba(220, 38, 38, .16), transparent 66%); }
.page-hero.v-danger .page-hero-icon { background: linear-gradient(135deg, #ef4444, #f97316); box-shadow: 0 10px 22px rgba(220, 38, 38, .28); }
.page-hero.v-success { border-color: #bbf7d0; background: linear-gradient(135deg, #f0fdf4 0%, #fff 55%, #ecfdf5 100%); }
.page-hero.v-success::after { background: radial-gradient(circle, rgba(22, 163, 74, .16), transparent 66%); }
.page-hero.v-success .page-hero-icon { background: linear-gradient(135deg, #22c55e, #059669); box-shadow: 0 10px 22px rgba(22, 163, 74, .28); }
.page-hero.v-purple { border-color: #ddd6fe; background: linear-gradient(135deg, #f5f3ff 0%, #fff 55%, #faf5ff 100%); }
.page-hero.v-purple::after { background: radial-gradient(circle, rgba(124, 58, 237, .16), transparent 66%); }
.page-hero.v-purple .page-hero-icon { background: linear-gradient(135deg, #8b5cf6, #6366f1); box-shadow: 0 10px 22px rgba(124, 58, 237, .28); }

@media (max-width: 767.98px) {
    .page-hero { padding: 20px 18px; border-radius: 14px; }
    .page-hero-icon { width: 46px; height: 46px; font-size: 20px; border-radius: 12px; }
    .page-hero-title { font-size: 19px; }
    .page-hero-actions { width: 100%; }
}

/* ============================================================
   ä¼åä¸­å¿ Â· å­é¡µé¢åæ¢å¯¼èªï¼inc_user_nav.htmlï¼
   ============================================================ */
.uc-nav {
    display: flex; flex-wrap: wrap; gap: 4px;
    padding: 6px; margin-bottom: 18px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.uc-nav-item {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 13.5px; font-weight: 500;
    color: #475569; text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.uc-nav-item i { font-size: 15px; opacity: .85; }
.uc-nav-item:hover { background: #f1f5f9; color: #1f2937; }
.uc-nav-item.is-active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}
.uc-nav-item.is-active:hover { color: #fff; }
@media (max-width: 575.98px) {
    .uc-nav { gap: 2px; padding: 4px; }
    .uc-nav-item { padding: 7px 10px; font-size: 12.5px; }
}

/* ============================================================
   é¦é¡µ Hero æç´¢ï¼è¾å¥æ¡ä¸æé®å§ç»åä¸è¡ï¼ç¦æ­¢æ¢è¡
   ============================================================ */
.hero-search { width: 100%; }
.hero-search form > .d-flex { flex-wrap: nowrap; }
.hero-search .form-control-lg {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}
.hero-search .btn-lg {
    flex: 0 0 auto;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .hero-search .btn-lg { padding-left: 14px; padding-right: 14px; }
    .hero-search .btn-lg .me-1 { display: none; }
}

/* ä¸­ç­å±ï¼åç¼©å¯¼èªä¸æç´¢å®½åº¦ï¼é¿åå³ä¾§æé®è¢«æ¤åºæ¢è¡ */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .site-header .nav-search .form-control { width: 120px; }
    .site-header .nav-search .form-control:focus { width: 150px; }
    .nav-tight .nav-link { padding-left: 6px; padding-right: 6px; font-size: .88rem; }
    .header-actions { gap: 6px; }
    .site-header .nav-tight .nav-link::after { left: 5px; right: 5px; }
}
@media (min-width: 1400px) {
    .site-header .nav-search .form-control { width: 200px; }
    .site-header .nav-search .form-control:focus { width: 230px; }
}

/* 正文富文本里的配图。
   题干/选项/解析是从旧站编辑器搬过来的 HTML，宽高常被写成内联像素值
   （style="width:358px;height:254px"）。窄屏下 max-width 能把宽度压下来，
   但内联的 height 优先级高于样式表，图会被纵向拉长变形。
   两个属性都加 !important，才能真正做到「等比缩放到容器宽度」。 */
.stem img,
.quiz-stem img,
.quiz-opt img,
.detail-article img,
.analysis img,
.share-body img {
    max-width: 100% !important;
    height: auto !important;
}

/* 图片缺失占位（yexam.js 把加载失败的 <img> 替换成这个 span）。
   用虚线框弱化存在感：用户知道「这里本来有张图」，但页面不被大红叉破坏。 */
.img-missing {
    display: inline-block;
    min-width: 160px;
    min-height: 56px;
    max-width: 100%;
    padding: 0 12px;
    border: 1px dashed #c9d1d9;
    border-radius: 8px;
    background: #f6f8fa;
    color: #8b949e;
    font-size: 12px;
    line-height: 56px;
    text-align: center;
    vertical-align: middle;
}



/* ============================================================
   题库页（首页 / 分类 / 列表）与试卷详情页对齐原站版式
   规则取自原站 question.css + style.css，变量映射到本文件顶部已定义的
   --brand-primary / --site-text / --site-muted / --site-border 等。
   加载顺序：site.css → bootstrap → yexam.css，故本段能覆盖前两者，
   且不影响 index / 会员中心等既有页面。
   ============================================================ */

/* ── 页面头部（标题卡） ── */
.qb-head {
    background: #fff; border: 1px solid var(--site-border);
    border-radius: 12px; box-shadow: var(--card-shadow);
    padding: 16px 20px; margin-bottom: 16px;
}
.qb-title { font-size: 1.35rem; font-weight: 700; margin: 0; color: var(--site-text); }
.qb-title a { color: inherit; }
.qb-sub { font-size: 14px; color: var(--site-muted); margin-top: 6px; }
.qb-sub .num { color: var(--brand-primary); font-weight: 600; }

/* ── 筛选条：浅蓝渐变底 + 白色胶囊 ── */
.qb-filter {
    background: linear-gradient(180deg, aliceblue 0%, #eaf4ff 100%);
    border: 1px solid #d9e8f8; border-radius: 14px;
    padding: 14px 18px; margin-bottom: 18px;
    box-shadow: inset 0 1px 0 #fff, 0 2px 10px rgba(37, 99, 235, .05);
}
.qb-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qb-filter-row + .qb-filter-row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #cfe2f5; }
.qb-filter-label {
    flex: 0 0 auto; min-width: 48px; text-align: center; padding: 3px 10px;
    font-size: 12px; font-weight: 600; line-height: 22px;
    color: var(--brand-primary); background: #fff;
    border: 1px solid #dbeafe; border-radius: 999px;
    box-shadow: 0 1px 2px rgba(37, 99, 235, .06);
}
.qb-chip {
    display: inline-block; padding: 3px 12px; font-size: 13px; line-height: 22px;
    border-radius: 999px; border: 1px solid #dbeafe; color: var(--site-text);
    background: #fff; white-space: nowrap; transition: all .15s ease;
}
.qb-chip:hover {
    border-color: var(--brand-primary); color: var(--brand-primary);
    background: var(--brand-primary-soft); text-decoration: none; transform: translateY(-1px);
}
.qb-chip.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #2563eb; color: #fff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .28);
}
.qb-chip.active:hover { transform: none; }
.qb-chip .cnt { opacity: .7; font-size: 12px; margin-left: 2px; }

/* ── 级别卡片网格 ── */
.level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.level-card {
    display: block; padding: 12px 14px; border: 1px solid var(--site-border);
    border-radius: 10px; background: #fff; transition: all .18s ease;
    text-decoration: none;
}
.level-card:hover {
    border-color: var(--brand-primary); background: #f8faff;
    transform: translateY(-2px); text-decoration: none;
}
.level-card.active { border-color: var(--brand-primary); background: var(--brand-primary-soft); }
.level-card-name { font-size: 14px; font-weight: 600; color: var(--site-text); margin-bottom: 4px; line-height: 1.4; }
.level-card-num { font-size: 12px; color: var(--site-muted); }
.level-card:hover .level-card-name { color: var(--brand-primary); }

/* ── 题库首页：按编程语言分区 ── */
.lang-panel {
    border: 1px solid var(--site-border); border-left: 3px solid var(--site-border);
    border-radius: 12px; padding: 14px 16px 16px; background: #fff;
}
.lang-panel + .lang-panel { margin-top: 12px; }
.lang-panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.lang-panel-head::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--site-border); }
.lang-panel-name { font-size: 13px; font-weight: 600; line-height: 22px; padding: 0 10px; border-radius: 6px; letter-spacing: .2px; }
.lang-panel-meta { font-size: 12px; font-weight: 400; color: var(--site-muted); }
.lang-python  { border-left-color: #93c5fd; }
.lang-python  .lang-panel-name { color: #1d4ed8; background: #eff6ff; }
.lang-scratch { border-left-color: #fdba74; }
.lang-scratch .lang-panel-name { color: #c2410c; background: #fff7ed; }
.lang-cpp     { border-left-color: #c4b5fd; }
.lang-cpp     .lang-panel-name { color: #6d28d9; background: #f5f3ff; }
.qb-section { margin-bottom: 26px; }
.section-tip { font-size: 12px; color: var(--site-muted); }

/* ── 分类页：各级别精选题目 ── */
.level-q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.level-q-panel {
    background: #fff; border: 1px solid var(--site-border); border-radius: 12px;
    box-shadow: var(--card-shadow); padding: 14px 16px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.level-q-panel:hover { border-color: #bfdbfe; box-shadow: var(--card-shadow-hover); }
.level-q-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px dashed #e2e8f0; }
.level-q-name { min-width: 0; font-size: 14px; font-weight: 600; color: var(--site-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.level-q-num { flex: 0 0 auto; font-size: 12px; color: var(--site-muted); }
.level-q-all { flex: 0 0 auto; margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--site-muted); }
.level-q-all:hover { color: var(--brand-primary); }
.level-q-list { display: flex; flex-direction: column; gap: 2px; }
.level-q-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; transition: background .15s ease; }
.level-q-item:hover { background: var(--brand-primary-soft); }
.level-q-title { flex: 1; min-width: 0; font-size: 13px; color: var(--site-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.level-q-item:hover .level-q-title { color: var(--brand-primary); }
.level-q-group + .level-q-group { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #eef2f7; }
.level-q-group-title { display: flex; width: fit-content; align-items: center; gap: 6px; padding: 1px 10px; margin-bottom: 4px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 20px; }
.level-q-group-title.gt-choice { color: #1d4ed8; background: #eff6ff; }
.level-q-group-title.gt-judge  { color: #c2410c; background: #fff7ed; }
.level-q-group-title.gt-essay  { color: #6d28d9; background: #f5f3ff; }
.level-q-group-num { padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 500; line-height: 17px; color: inherit; background: rgba(255, 255, 255, .8); }
.level-q-idx { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; font-size: 11px; font-weight: 700; color: var(--brand-primary); background: var(--brand-primary-soft); }

/* ── 题库列表页：完整题目卡片 q-item ── */
.q-list { display: flex; flex-direction: column; gap: 12px; }
.q-item {
    background: #fff; border: 1px solid var(--site-border); border-radius: 12px;
    box-shadow: var(--card-shadow); padding: 14px 18px; transition: box-shadow .18s ease;
}
.q-item:hover { box-shadow: var(--card-shadow-hover); }
.q-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.q-no {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; height: 24px; padding: 0 7px; border-radius: 6px;
    background: #f1f5f9; color: var(--site-muted); font-size: 12px; font-weight: 600;
}
.q-type { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; background: var(--brand-primary-soft); color: var(--brand-primary); }
.q-type.t2 { background: #f5f3ff; color: #7c3aed; }
.q-type.t3 { background: #fff7ed; color: #c2410c; }
.q-type.t4 { background: #ecfdf5; color: #047857; }
.q-type.t5 { background: #fdf2f8; color: #be185d; }
.q-diff { display: inline-flex; align-items: center; gap: 3px; padding: 0 8px; border-radius: 999px; font-size: 12px; line-height: 20px; font-weight: 500; border: 1px solid transparent; }
.q-diff.d1 { color: #16a34a; background: #f0fdf4; border-color: #bbf7d0; }
.q-diff.d2 { color: #65a30d; background: #f7fee7; border-color: #d9f99d; }
.q-diff.d3 { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
.q-diff.d4 { color: #ea580c; background: #fff7ed; border-color: #fed7aa; }
.q-diff.d5 { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.q-meta { font-size: 12px; color: var(--site-muted); }
.q-meta a { color: var(--site-muted); }
.q-meta a:hover { color: var(--brand-primary); }
.q-stem { font-size: 15px; line-height: 1.85; color: var(--site-text); word-break: break-word; }
.q-stem p { margin-bottom: .4em; }
.q-stem img, .q-opt img, .q-answer-note img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 8px 8px 8px 0; clear: both; }
.q-stem pre, .q-opt .opt-text pre {
    margin: 8px 0; padding: 12px 16px; background: #f1f5f9; border: 1px solid #e2e8f0;
    border-radius: 8px; font-size: 13px; line-height: 1.6;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre; overflow-x: auto; max-width: 100%; tab-size: 4;
}
.q-stem pre code, .q-opt .opt-text pre code { background: transparent; padding: 0; color: #0f172a; }
.q-stem .code-toolbar .toolbar, .q-stem .toolbar { display: none !important; }
.q-stem.clamp { display: block; max-height: 11.1em; overflow: hidden; transition: max-height .2s ease; }
.q-stem.clamp.is-measuring { max-height: none; overflow: visible; transition: none; }
.q-item > .js-stem-toggle {
    display: flex; margin: 9px 0 0 auto; padding: 2px 10px; font-size: 12px;
    line-height: 22px; color: var(--site-muted); background: #fff;
    border: 1px solid var(--site-border); border-radius: 999px; cursor: pointer;
}
.q-item > .js-stem-toggle:hover { color: var(--brand-primary); border-color: var(--brand-primary); background: var(--brand-primary-soft); }
.q-opts { margin-top: 10px; }
.q-opt {
    display: flex; align-items: flex-start; gap: 8px; padding: 7px 12px; margin-bottom: 6px;
    border: 1px solid var(--site-border); border-radius: 8px; background: #fff;
    font-size: 14px; line-height: 1.7;
    transition: border-color .2s var(--ease-standard), background-color .2s var(--ease-standard);
}
.q-opt .opt-text { flex: 1 1 auto; min-width: 0; }
.q-opt .opt-text > div, .q-opt .opt-text > p { margin: 0; }
.q-opt .opt-code {
    flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--site-border); font-size: 12px;
    color: var(--site-muted); background: #fff;
}
/* 只在展开答案后高亮正确选项，避免未作答就泄露答案 */
.q-item.answered .q-opt.is-right { border-color: #16a34a; background: #f0fdf4; }
.q-item.answered .q-opt.is-right .opt-code { border-color: #16a34a; background: #16a34a; color: #fff; }
.q-answer {
    display: block; margin-top: 0; border-radius: 12px; border: 1px solid transparent;
    background: transparent; padding: 0 18px; font-size: 14px; overflow: hidden;
    max-height: 0; opacity: 0; pointer-events: none;
    transition: max-height .45s var(--ease-standard), opacity .3s ease, padding .3s ease, margin .3s ease, border-color .3s ease, background .3s ease;
}
.q-answer.open {
    margin-top: 12px; border: 1px solid #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    padding: 16px 18px; max-height: 2000px; opacity: 1; pointer-events: auto;
}
.q-answer-title { font-weight: 700; color: #15803d; margin-bottom: 6px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.q-answer-ans { color: #15803d; font-weight: 600; margin-bottom: 6px; }
.q-answer-note { color: #166534; line-height: 1.8; }
.q-item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ── 试卷详情：题型分组与题号导航 ── */
.paper-group-title { font-size: 16px; font-weight: 600; color: var(--site-text); margin: 22px 0 12px; }
.paper-group-title:first-of-type { margin-top: 0; }
.q-card { position: relative; padding-top: 14px; }
.q-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.q-card-no { font-size: 15px; font-weight: 700; color: var(--site-text); }
.q-card-stem { font-size: 15px; line-height: 1.8; color: var(--site-text); word-break: break-word; }
.q-card-stem p { margin-bottom: .4em; }
.q-card-stem img, .q-card .options img { max-width: 100%; height: auto; }
.q-card .options li { align-items: flex-start; }
.q-card .options .code {
    width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--site-border);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; color: var(--site-muted); background: #fff; flex-shrink: 0;
}
.q-card .options .opt-text { flex: 1; min-width: 0; }
.answer-card-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.answer-card-grid .qnum {
    width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--site-border);
    background: #fff; color: var(--site-muted); font-size: 13px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .15s ease; text-decoration: none;
}
.answer-card-grid .qnum:hover { border-color: var(--brand-primary); color: var(--brand-primary); background: var(--brand-primary-soft); text-decoration: none; }
.answer-card-grid .qnum.current { border: 2px solid var(--brand-primary); color: var(--brand-primary); font-weight: 700; }
.answer-card-legend { font-size: 12px; color: var(--site-muted); }

@media (max-width: 767px) {
    .qb-filter { padding: 12px; }
    .qb-chip { min-height: 36px; display: inline-flex; align-items: center; padding: 4px 14px; }
    .q-item { padding: 12px 14px; }
    .level-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .level-q-grid { grid-template-columns: 1fr; }
}

/* 列表页动作按钮：site.css 的 .btn 定义了品牌色，bootstrap 的 btn-outline-* 会被它盖住，
   这里按原站的绿/蓝描边小按钮显式定死，避免「蓝底蓝字」。 */
.q-item-actions .btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 12px; font-size: 12px; line-height: 22px; border-radius: 6px;
    border: 1px solid transparent; white-space: nowrap; background: #fff;
}
.q-item-actions .btn-outline-success { color: #15803d; border-color: #86efac; }
.q-item-actions .btn-outline-success:hover { color: #15803d; background: #f0fdf4; border-color: #16a34a; }
.q-item-actions .btn-outline-primary { color: var(--brand-primary); border-color: #bfdbfe; }
.q-item-actions .btn-outline-primary:hover { color: #fff; background: var(--brand-primary); border-color: var(--brand-primary); }
.q-item > .js-stem-toggle.is-hidden { display: none; }

/* 试卷列表卡片：标题链接与描边小按钮 */
.paper-title a { color: inherit; text-decoration: none; }
.paper-title a:hover { color: var(--brand-primary); text-decoration: none; }
.paper-actions .btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 14px; font-size: 13px; border-radius: 6px;
    color: var(--brand-primary); border: 1px solid #bfdbfe; background: #fff;
    white-space: nowrap;
}
.paper-actions .btn:hover { color: #fff; background: var(--brand-primary); border-color: var(--brand-primary); text-decoration: none; }

/* 答案区里的历史代码块（简答题答案常是 <pre class="brush:cpp"> 一整段程序） */
.q-answer-note pre, .q-answer pre {
    margin: 8px 0; padding: 12px 14px; background: #f8fafc;
    border: 1px solid #dbeafe; border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px; line-height: 1.65; color: #0f172a;
    white-space: pre-wrap; word-break: break-word; overflow-x: auto; max-width: 100%;
}
.q-answer-note .code-toolbar .toolbar, .q-answer-note .toolbar { display: none !important; }

/* 列表页左栏是 grid 的 1fr 项，默认 min-width:auto 会让题目里的代码块把
   整列按最小内容宽度撑开（390px 屏实测被顶到 2015px，整页横向滚动）。
   给网格项与题目卡片链路逐层补 min-width:0，代码块才能按 overflow-x 内部滚动。 */
.cols > *,
.q-list,
.q-item,
.q-stem,
.q-opts,
.q-opt,
.q-opt .opt-text,
.q-answer,
.q-answer-note { min-width: 0; }

/* 题目卡片内容收敛：
   1) level-q-grid 是 grid，1fr 项的 min-width:auto 会按「不换行的标题」取最小宽度，
      390px 屏实测把一列顶到 987px；给网格项补 min-width:0 后可正常收缩。
   2) 题干/选项里存在历史富文本残留（宽 0 的块、inline-block 占位图、长英文串），
      个别会横向顶出卡片。卡片自身用 overflow-x:clip 兜底，避免单卡溢出扩散成整页横向滚动。 */
.level-q-grid > * { min-width: 0; }

.q-item { overflow-x: hidden; overflow-x: clip; }

.q-stem, .q-opt .opt-text, .q-answer-note { overflow-wrap: anywhere; word-break: break-word; }

.q-stem img, .q-opt img, .q-answer-note img,
.q-stem .img-missing, .q-opt .img-missing, .q-answer-note .img-missing {
    max-width: 100%;
    height: auto;
}

/* ============ VIP 开通页（/pay.html） ============ */
/* 旧站 style.css 的 pay 区块，变量映射到本站 --brand-vip 系 */
.pay-hero {
    text-align: center;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #ffedd5 100%);
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 36px 20px 28px;
    margin-bottom: 24px;
}
.pay-hero-title {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 0 8px; font-size: 26px; font-weight: 700; color: #92400e;
}
.pay-hero-sub { margin: 0 0 14px; font-size: 14px; color: #a16207; }
.pay-hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pay-hero-badges span {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; font-size: 12px; color: #92400e;
    background: rgba(255,255,255,.75); border: 1px solid #fde68a; border-radius: 999px;
}

.plan-card-vip {
    border-radius: 18px; border: 1px solid #fde68a;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    box-shadow: 0 4px 20px rgba(217, 119, 6, .15);
    position: relative; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card-vip::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 120px; height: 120px;
    background: radial-gradient(circle at 100% 0%, rgba(217,119,6,.2), transparent 60%);
}
.plan-card-vip:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(217,119,6,.22); }
.plan-card-hot { border-color: #d97706; box-shadow: 0 6px 30px rgba(217, 119, 6, .25); }
.plan-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.plan-popular { background: linear-gradient(135deg, #d97706, #ea580c); color: #fff; }
.plan-best { background: linear-gradient(135deg, #7c3aed, #ea580c); color: #fff; }
.plan-normal { background: #e5e7eb; color: #374151; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--brand-vip); }
.plan-period { font-size: 13px; color: var(--site-muted); }
.plan-feature { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; padding: 4px 0; }
.plan-feature i { margin-top: 3px; }
.plan-feature.not { color: #9ca3af; }
.plan-cta-btn { background: linear-gradient(135deg, #d97706, #ea580c); border: none; color: #fff; font-weight: 700; }
.plan-cta-btn:hover:not(.disabled) { background: linear-gradient(135deg, #b45309, #c2410c); color: #fff; }

.testimonial-card {
    border: 1px solid var(--site-border); border-radius: 14px;
    background: #fff; padding: 18px; height: 100%;
    transition: box-shadow .18s ease, transform .18s ease;
}
.testimonial-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.testimonial-quote { color: var(--site-muted); font-size: 36px; line-height: 1; margin-bottom: 8px; font-family: Georgia, serif; }
.testimonial-text { font-size: 14px; color: var(--site-text); line-height: 1.8; margin-bottom: 12px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.testimonial-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--brand-primary-soft); color: var(--brand-primary);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.pay-panel {
    background: #fff; border: 1px solid var(--site-border);
    border-radius: 14px; box-shadow: var(--card-shadow);
    padding: 20px;
}
.pay-vip-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-radius: 12px;
    background: var(--brand-vip-soft); border: 1px solid #fde68a;
}
.section-tip { font-size: 12px; color: var(--site-muted); }

/* ============ 题目详情页（/question/{id}.html）对齐原站 qd-* ============ */
.qd-card {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 20px 24px;
}
.qd-card.qd-hero-wrap { padding: 0; }
.qd-hero {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 14px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    border-radius: 12px 12px 0 0;
}
.qd-hero-left { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qd-hero-right { flex-shrink: 0; }
.qd-type-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 11px; border-radius: 999px;
    background: #eff6ff; color: #1d4ed8;
    font-size: 12.5px; font-weight: 500; letter-spacing: .2px;
    border: 1px solid #dbeafe;
}
.qd-type-pill.t2 { background: #f5f3ff; color: #6d28d9; border-color: #ede9fe; }
.qd-type-pill.t3 { background: #fff7ed; color: #c2410c; border-color: #ffedd5; }
.qd-type-pill.t4 { background: #ecfdf5; color: #047857; border-color: #d1fae5; }
.qd-type-pill.t5 { background: #fdf2f8; color: #be185d; border-color: #fce7f3; }
.qd-no-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 24px; padding: 0 10px;
    border-radius: 999px;
    background: #fff; color: #94a3b8;
    border: 1px solid #e2e8f0;
    font-size: 12px; font-weight: 600; letter-spacing: .5px;
}
.qd-paper-bar {
    padding: 10px 24px;
    background: #fff; border-bottom: 1px solid #eef2f7;
    font-size: 13px; color: #475569;
}
.qd-paper-bar a { color: var(--brand-primary); font-weight: 500; text-decoration: none; }
.qd-paper-bar a:hover { text-decoration: underline; }

.qd-stem-wrap { padding: 24px 28px 4px; }
.qd-stem { font-size: 17px; line-height: 2; color: var(--site-text); word-break: break-word; letter-spacing: .15px; }
.qd-stem p { margin-bottom: .5em; }
.qd-stem img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 8px 10px 0; display: block; clear: both; }
.qd-stem code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: .92em; }

/* 选项区：字母圆徽 + 边框卡；radio/checkbox 视觉隐藏，:has 选中的高亮 */
.qd-opts { padding: 8px 28px; margin-top: 8px; }
.qd-opts .q-opt { padding: 12px 16px; margin-bottom: 10px; border-radius: 10px; font-size: 15px; line-height: 1.8; cursor: pointer; transition: all .15s ease; }
.qd-opts .q-opt:hover { border-color: #93c5fd; background: #f8faff; }
.qd-opts .q-opt:has(input:checked) { border-color: var(--brand-primary); background: var(--brand-primary-soft); }
.qd-opts .q-opt:has(input:checked) .opt-code { border-color: var(--brand-primary); background: var(--brand-primary); color: #fff; }
.qd-card.answered .q-opt.is-right { border-color: #16a34a; background: #f0fdf4; }
.qd-card.answered .q-opt.is-right .opt-code { border-color: #16a34a; background: #16a34a; color: #fff; }

.qd-answer-section { padding: 4px 28px 0; margin-top: 16px; }
.qd-answer-trigger {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac; border-radius: 12px;
    color: #15803d; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s ease;
}
.qd-answer-trigger:hover { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(34,197,94,.18); }
.qd-answer-trigger .qd-answer-icon { font-size: 16px; }
.qd-answer-trigger .qd-answer-arrow { margin-left: auto; transition: transform .25s ease; }
.qd-card.answered .qd-answer-trigger .qd-answer-arrow { transform: rotate(180deg); }
.qd-answer-explain { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #86efac; }
.qd-answer-explain-title { font-weight: 600; color: #166534; margin-bottom: 4px; font-size: 13px; display: flex; align-items: center; gap: 5px; }

.qd-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 28px 24px; margin-top: 0; border-top: 1px dashed #e2e8f0; }
.qd-actions .btn { padding: 8px 18px; font-size: 13.5px; border-radius: 8px; }

/* 上下题导航卡 */
.qd-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.qd-nav-card {
    display: block; padding: 14px 18px;
    border-radius: 12px; background: #fff; border: 1px solid #e2e8f0;
    text-decoration: none; transition: all .2s ease; overflow: hidden;
}
.qd-nav-card:hover { text-decoration: none; border-color: var(--brand-primary); background: #f8faff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,.12); }
.qd-nav-prev { text-align: left; }
.qd-nav-next { text-align: right; }
.qd-nav-dir { font-size: 12px; color: #64748b; font-weight: 500; margin-bottom: 4px; display: inline-flex; align-items: center; gap: 4px; }
.qd-nav-title { font-size: 14px; font-weight: 600; color: var(--site-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.qd-nav-next .qd-nav-title { text-align: right; }
.qd-nav-empty { border: 1px dashed #cbd5e1; background: #f8fafc; height: 66px; border-radius: 12px; }

/* 右侧栏：题库卡 + 相关题目 */
.qd-side { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 1px 3px rgba(15,23,42,.05); padding: 16px 18px; }
.qd-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.qd-side-title { font-weight: 700; font-size: 15px; color: var(--site-text); }
.qd-side-head .qd-side-title { display: flex; align-items: center; gap: 6px; }
.qd-side-num { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--brand-primary-soft); color: var(--brand-primary); font-size: 12px; font-weight: 600; }
.qd-side-desc { font-size: 13px; color: #64748b; margin-bottom: 12px; line-height: 1.6; }
.qd-side-hint { font-size: 11.5px; color: #94a3b8; flex: 0 0 auto; }
.qd-side-list { list-style: none; margin: 0; padding: 0; }
.qd-side-list li { padding: 0; border-bottom: 1px dashed #eef2f7; }
.qd-side-list li:last-child { border-bottom: none; }
.qd-side-list .qd-rel-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 8px; border-radius: 9px; text-decoration: none; transition: background-color .15s ease; }
.qd-side-list .qd-rel-item:hover { background: #f8faff; text-decoration: none; }
.qd-rel-no { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; background: var(--brand-primary-soft); color: var(--brand-primary); font-size: 11px; font-weight: 700; transition: background-color .15s ease, color .15s ease; }
.qd-side-list .qd-rel-item:hover .qd-rel-no { background: var(--brand-primary); color: #fff; }
.qd-rel-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.6; color: #334155; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.qd-side-list .qd-rel-item:hover .qd-rel-text { color: #1d4ed8; }
.qd-rel-arrow { flex: 0 0 auto; margin-top: 3px; font-size: 12px; color: #cbd5e1; transition: color .15s ease, transform .15s ease; }
.qd-side-list .qd-rel-item:hover .qd-rel-arrow { color: var(--brand-primary); transform: translateX(2px); }

@media (max-width: 575px) {
    .qd-hero { padding: 12px 14px; }
    .qd-stem-wrap { padding: 18px 16px 4px; }
    .qd-opts, .qd-answer-section { padding-left: 16px; padding-right: 16px; }
    .qd-actions { padding: 14px 16px; }
    .qd-prevnext { grid-template-columns: 1fr; }
}
