/* ============================================================
   考试语法专项 · 统一视觉层（对齐「国际音标学习平台」设计语言）
   v20261101a
   ============================================================ */

:root {
    --gx-bg: #f8fafc;
    --gx-card: #ffffff;
    --gx-line: #eef2f7;
    --gx-line-strong: #e2e8f0;
    --gx-ink: #0f172a;
    --gx-ink-2: #475569;
    --gx-muted: #94a3b8;
    --gx-blue: #3b82f6;
    --gx-blue-d: #2563eb;
    --gx-blue-soft: #eff6ff;
    --gx-violet: #8b5cf6;
    --gx-green: #10b981;
    --gx-shadow-1: 0 1px 2px rgba(15, 23, 42, .04);
    --gx-shadow-2: 0 10px 26px rgba(15, 23, 42, .08);
    --gx-radius: 14px;
}

body.dark {
    --gx-bg: #0b1220;
    --gx-card: #111b2e;
    --gx-line: #1e293b;
    --gx-line-strong: #273449;
    --gx-ink: #e8eef8;
    --gx-ink-2: #b8c6da;
    --gx-muted: #7c8ea8;
    --gx-blue: #60a5fa;
    --gx-blue-d: #3b82f6;
    --gx-blue-soft: #16233a;
    --gx-shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --gx-shadow-2: 0 10px 26px rgba(0, 0, 0, .5);
}

/* ---------- 顶部品牌栏 ---------- */
body {
    background: var(--gx-bg);
    color: var(--gx-ink);
}

.gx-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--gx-line);
}

body.dark .gx-header {
    background: rgba(11, 18, 32, .9);
}

.gx-nav-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.gx-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.gx-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--gx-blue), var(--gx-violet));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, .28);
    flex-shrink: 0;
}

.gx-brand-text {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--gx-ink);
    letter-spacing: .2px;
    white-space: nowrap;
}

.gx-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 6px;
    flex: 1;
    min-width: 0;
}

.gx-nav a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--gx-ink-2);
    text-decoration: none;
    padding: 6px 2px;
    position: relative;
    white-space: nowrap;
    transition: color .18s;
}

.gx-nav a:hover { color: var(--gx-blue); }

.gx-nav a.on {
    color: var(--gx-blue);
    font-weight: 600;
}

.gx-nav a.on::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--gx-blue);
}

.gx-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid var(--gx-line-strong);
    background: var(--gx-card);
    color: var(--gx-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: .18s;
    flex-shrink: 0;
    margin-left: auto;
}

.gx-nav-btn:hover {
    border-color: var(--gx-blue);
    color: var(--gx-blue);
    background: var(--gx-blue-soft);
}

.gx-nav-btn.primary {
    background: var(--gx-blue);
    border-color: var(--gx-blue);
    color: #fff;
}

.gx-nav-btn.primary:hover {
    background: var(--gx-blue-d);
    border-color: var(--gx-blue-d);
    color: #fff;
}

/* ---------- Hero ---------- */
.gx-hero {
    position: relative;
    padding: 58px 24px 46px;
    text-align: center;
    background:
        radial-gradient(900px 320px at 50% -60px, rgba(59, 130, 246, .10), transparent 70%),
        linear-gradient(180deg, #f7faff 0%, var(--gx-bg) 100%);
    border-bottom: 1px solid var(--gx-line);
    overflow: hidden;
}

body.dark .gx-hero {
    background:
        radial-gradient(900px 320px at 50% -60px, rgba(59, 130, 246, .18), transparent 70%),
        linear-gradient(180deg, #0d1728 0%, var(--gx-bg) 100%);
}

.gx-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--gx-line-strong);
    background: var(--gx-card);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--gx-ink-2);
    box-shadow: var(--gx-shadow-1);
    margin-bottom: 20px;
}

.gx-pill b {
    color: var(--gx-blue);
    font-weight: 700;
}

.gx-hero h1 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--gx-ink);
    margin: 0 0 14px;
}

.gx-hero h1 em {
    font-style: normal;
    color: var(--gx-blue);
}

.gx-hero-sub {
    max-width: 640px;
    margin: 0 auto 22px;
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--gx-ink-2);
}

.gx-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    padding: 0 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: .18s;
    white-space: nowrap;
}

.gx-btn.primary {
    background: var(--gx-blue);
    color: #fff;
    box-shadow: 0 6px 18px rgba(59, 130, 246, .28);
}

.gx-btn.primary:hover {
    background: var(--gx-blue-d);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(59, 130, 246, .34);
}

.gx-btn.ghost {
    background: var(--gx-card);
    border-color: var(--gx-line-strong);
    color: var(--gx-ink);
}

.gx-btn.ghost:hover {
    border-color: var(--gx-blue);
    color: var(--gx-blue);
}

/* ---------- 统计条 ---------- */
.gx-stats {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 24px 6px;
}

.gx-stats-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    background: var(--gx-card);
    border: 1px solid var(--gx-line);
    border-radius: var(--gx-radius);
    padding: 20px 10px;
    box-shadow: var(--gx-shadow-1);
}

.gx-stat {
    text-align: center;
    border-right: 1px solid var(--gx-line);
}

.gx-stat:last-child { border-right: none; }

.gx-stat b {
    display: block;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.4px;
    color: var(--gx-ink);
    line-height: 1.2;
}

.gx-stat b.blue { color: var(--gx-blue); }

.gx-stat span {
    font-size: 12.5px;
    color: var(--gx-muted);
}

/* ---------- 主体与区块 ---------- */
.gx-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 24px 56px;
}

.gx-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 34px 0 16px;
    flex-wrap: wrap;
}

.gx-sec-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gx-ink);
    letter-spacing: -.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gx-sec-title .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gx-blue);
    display: inline-block;
}

.gx-sec-title small {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--gx-muted);
}

.gx-sec-sub {
    font-size: 13px;
    color: var(--gx-muted);
    margin-top: 6px;
}

/* 搜索 + 筛选 */
.gx-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gx-search {
    position: relative;
    display: flex;
    align-items: center;
    height: 38px;
    width: 260px;
    max-width: 100%;
    border: 1px solid var(--gx-line-strong);
    border-radius: 10px;
    background: var(--gx-card);
    padding: 0 12px;
    gap: 8px;
    transition: .18s;
}

.gx-search:focus-within {
    border-color: var(--gx-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.gx-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    color: var(--gx-ink);
    font-family: inherit;
}

.gx-search input::placeholder { color: var(--gx-muted); }

.gx-chips {
    display: flex;
    gap: 6px;
    background: var(--gx-card);
    border: 1px solid var(--gx-line-strong);
    border-radius: 10px;
    padding: 3px;
    height: 38px;
    align-items: center;
}

.gx-chips button {
    border: none;
    background: transparent;
    padding: 0 13px;
    height: 30px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gx-ink-2);
    cursor: pointer;
    font-family: inherit;
    transition: .15s;
    white-space: nowrap;
}

.gx-chips button:hover { color: var(--gx-blue); }

.gx-chips button.on {
    background: var(--gx-blue);
    color: #fff;
    font-weight: 600;
}

/* ---------- 卡片网格 ---------- */
.gx-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--gx-card);
    border: 1px solid var(--gx-line);
    border-radius: var(--gx-radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    box-shadow: var(--gx-shadow-1);
    overflow: hidden;
}

.gx-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--gx-shadow-2);
    border-color: #dbe6f7;
}

body.dark .gx-card:hover { border-color: #2c3f5c; }

.gx-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.gx-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 26px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    background: var(--gx-blue-soft);
    color: var(--gx-blue);
    flex-shrink: 0;
}

.gx-code.b {
    background: rgba(139, 92, 246, .10);
    color: #7c3aed;
}

body.dark .gx-code.b { color: #a78bfa; }

.gx-card-title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--gx-ink);
    letter-spacing: -.1px;
    margin-bottom: 6px;
}

.gx-card-sub {
    font-size: 13px;
    color: var(--gx-ink-2);
    line-height: 1.6;
    margin-bottom: 10px;
}

.gx-card-desc {
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--gx-muted);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.gx-tag {
    font-size: 11.5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--gx-bg);
    color: var(--gx-ink-2);
    border: 1px solid var(--gx-line);
    white-space: nowrap;
}

body.dark .gx-tag { background: #16233a; }

.gx-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--gx-line);
    font-size: 12.5px;
    color: var(--gx-muted);
}

.gx-card-foot .go {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--gx-blue);
    font-weight: 600;
    font-size: 13px;
}

.gx-card:hover .gx-card-foot .go { gap: 9px; }

.gx-done {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--gx-green);
    font-weight: 600;
}

/* 空状态 */
.gx-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 56px 20px;
    color: var(--gx-muted);
    font-size: 14px;
    background: var(--gx-card);
    border: 1px dashed var(--gx-line-strong);
    border-radius: var(--gx-radius);
}

/* ---------- 页脚 ---------- */
.gx-footer {
    border-top: 1px solid var(--gx-line);
    background: var(--gx-card);
    padding: 40px 24px 24px;
    margin-top: 20px;
}

.gx-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 28px;
}

.gx-footer-about p {
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--gx-muted);
    margin-top: 12px;
    max-width: 320px;
}

.gx-footer h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--gx-ink);
    margin-bottom: 12px;
}

.gx-footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.gx-footer ul a {
    font-size: 12.5px;
    color: var(--gx-ink-2);
    text-decoration: none;
    transition: color .15s;
}

.gx-footer ul a:hover { color: var(--gx-blue); }

.gx-footer-bar {
    max-width: 1180px;
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--gx-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--gx-muted);
}

.gx-footer-bar a {
    color: var(--gx-muted);
    text-decoration: none;
}

.gx-footer-bar a:hover { color: var(--gx-blue); }

/* ============================================================
   练习页（body.gx-page）覆盖层
   ============================================================ */
body.gx-page {
    padding: 0 !important;
    background: var(--gx-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
}

body.gx-page .container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 22px 24px 60px;
}

/* 面包屑条 */
.gx-pagebar {
    max-width: 1040px;
    margin: 0 auto;
    padding: 14px 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--gx-muted);
    flex-wrap: wrap;
}

.gx-pagebar a {
    color: var(--gx-ink-2);
    text-decoration: none;
}

.gx-pagebar a:hover { color: var(--gx-blue); }

.gx-pagebar .sep { color: var(--gx-line-strong); }

.gx-pagebar b { color: var(--gx-blue); font-weight: 600; }

.gx-pagebar .ttl {
    color: var(--gx-ink);
    font-weight: 600;
}

/* 模式切换：贴近音标平台的分段控件 */
body.gx-page .mode-switcher {
    max-width: 100%;
    width: fit-content;
    gap: 4px;
    padding: 4px;
    border-radius: 11px;
    border: 1px solid var(--gx-line-strong);
    background: var(--gx-card);
    box-shadow: var(--gx-shadow-1);
    margin-bottom: 16px;
}

body.gx-page .mode-btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gx-ink-2);
}

body.gx-page .mode-btn.active {
    background: var(--gx-blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, .3);
}

body.gx-page .mode-btn:hover:not(.active) {
    background: var(--gx-blue-soft);
    color: var(--gx-blue);
}

/* 试卷容器 */
body.gx-page .paper {
    border-radius: var(--gx-radius);
    border: 1px solid var(--gx-line);
    box-shadow: var(--gx-shadow-1);
    margin-bottom: 20px;
    overflow: hidden;
}

body.gx-page .section-title {
    background: var(--gx-card);
    border-bottom: 1px solid var(--gx-line);
    padding: 18px 22px;
}

body.gx-page .section-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gx-ink);
    letter-spacing: -.2px;
    gap: 10px;
}

body.gx-page .section-title h2 > span {
    background: var(--gx-bg);
    color: var(--gx-ink-2);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid var(--gx-line);
}

body.gx-page .questions-area {
    padding: 18px 22px 6px;
    background: var(--gx-bg);
}

/* 单题卡片化 */
body.gx-page .question-item {
    background: var(--gx-card);
    border: 1px solid var(--gx-line);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: box-shadow .18s, border-color .18s;
}

body.gx-page .question-item:hover {
    border-color: #dbe6f7;
    box-shadow: var(--gx-shadow-1);
}

body.gx-page .question-item:last-child {
    border-bottom: 1px solid var(--gx-line);
    margin-bottom: 0;
    padding-bottom: 18px;
}

body.gx-page .q-title {
    background: var(--gx-blue-soft);
    color: var(--gx-blue);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

body.gx-page .question-text {
    font-size: 14.5px;
    line-height: 1.8;
    font-weight: 500;
    color: var(--gx-ink);
}

body.gx-page .question-text .blank {
    border-bottom: 2px dashed var(--gx-blue);
    color: var(--gx-blue);
}

body.gx-page .lecture-btn {
    border-radius: 8px;
    font-size: 12.5px;
    padding: 5px 13px;
    background: var(--gx-blue-soft);
    color: var(--gx-blue);
    border: 1px solid transparent;
}

body.gx-page .lecture-btn:hover {
    background: var(--gx-blue);
    color: #fff;
    transform: none;
}

body.gx-page .lecture-btn.playing {
    background: #fee2e2;
    color: #b91c1c;
}

body.gx-page .lecture-btn.playing:hover { background: #fecaca; color: #b91c1c; }

/* 选项 */
body.gx-page .options { padding-left: 0; gap: 9px; }

body.gx-page .option {
    border-radius: 9px;
    padding: 8px 15px;
    background: var(--gx-card);
    border: 1px solid var(--gx-line-strong);
    font-size: 13.5px;
}

body.gx-page .option:hover {
    border-color: var(--gx-blue);
    background: var(--gx-blue-soft);
}

body.gx-page .option.selected {
    background: var(--gx-blue);
    border-color: var(--gx-blue);
}

body.gx-page .option-letter { color: var(--gx-blue); }

/* 答案 / 解析块 */
body.gx-page .learn-mode .answer-display,
body.gx-page .practice-result-box.correct {
    border-radius: 10px;
    border-left-width: 3px;
}

body.gx-page .learn-mode .explain-box {
    border-radius: 10px;
    border-left-width: 3px;
    background: var(--gx-blue-soft);
    font-size: 13.5px;
    line-height: 1.85;
    padding: 14px 16px;
}

body.gx-page .learn-mode .explain-box .knowledge-tip {
    border-radius: 9px;
    border-left-width: 3px;
    font-size: 13px;
}

/* 提交栏 */
body.gx-page .submit-bar {
    border-radius: 0;
    border-top: 1px solid var(--gx-line);
    background: var(--gx-card);
    padding: 16px 22px;
}

body.gx-page .btn {
    border-radius: 9px;
    padding: 9px 22px;
    font-size: 13.5px;
}

body.gx-page .btn-success {
    background: var(--gx-blue);
    box-shadow: 0 4px 14px rgba(59, 130, 246, .26);
}

body.gx-page .btn-success:hover { background: var(--gx-blue-d); }

body.gx-page .summary-box {
    border-radius: 12px;
    background: var(--gx-blue-soft);
    border: 1px solid var(--gx-line);
}

body.gx-page .summary-box h3 { color: var(--gx-blue); }

/* 旧返回链接统一 */
body.gx-page .back-link {
    border-radius: 9px;
    padding: 8px 16px;
    font-size: 13px;
    border-color: var(--gx-line-strong);
    background: var(--gx-card);
    color: var(--gx-ink);
}

/* ---------- 深色模式兜底（练习页原本没有 dark 变量） ---------- */
body.dark.gx-page {
    --bg-primary: #0b1220;
    --bg-card: #111b2e;
    --text-primary: #e8eef8;
    --text-secondary: #b8c6da;
    --text-muted: #7c8ea8;
    --border: #1e293b;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --accent-soft: #16233a;
    --success: #34d399;
    --success-light: #0f2b23;
    --error: #f87171;
    --error-light: #2b1416;
    --warning: #fbbf24;
    --warning-light: #2a2113;
    background: var(--gx-bg);
    color: var(--gx-ink);
}

body.dark.gx-page .question-text,
body.dark.gx-page .section-title h2,
body.dark.gx-page .option-text,
body.dark.gx-page .learn-mode .answer-display .answer-value,
body.dark.gx-page .learn-mode .answer-display .answer-label { color: var(--gx-ink); }

body.dark.gx-page .learn-mode .answer-display .answer-value { color: #7ee2b8; }

body.dark.gx-page .learn-mode .answer-display .answer-label { color: #9fd6bd; }

body.dark.gx-page .learn-mode .explain-box { color: var(--gx-ink-2); }

body.dark.gx-page .learn-mode .explain-box .knowledge-tip { color: #f3d18b; }

body.dark.gx-page .option { background: var(--gx-card); }

body.dark.gx-page .option:hover { background: var(--gx-blue-soft); }

body.dark.gx-page .option.selected { background: var(--gx-blue); color: #fff; }

/* ---------- 12 天计划页：把深色横幅改成浅色 Hero ---------- */
body.gx-page .nav-bar { display: none; }

body.gx-page .hero-section {
    background:
        radial-gradient(720px 260px at 22% -30%, rgba(59, 130, 246, .16), transparent 70%),
        linear-gradient(180deg, #f5f9ff, #eef4ff);
    color: var(--gx-ink);
    border: 1px solid var(--gx-line);
    border-radius: 18px;
    padding: 32px 36px;
    box-shadow: var(--gx-shadow-1);
}

body.gx-page .hero-title { color: var(--gx-ink); font-size: 2rem; }
body.gx-page .hero-title span {
    background: rgba(59, 130, 246, .12);
    color: var(--gx-blue);
    padding: 0 12px;
    border-radius: 10px;
}
body.gx-page .hero-sub { color: var(--gx-ink-2); opacity: 1; font-size: 1rem; }
body.gx-page .hero-badge {
    background: var(--gx-card);
    border: 1px solid var(--gx-line-strong);
    color: var(--gx-blue);
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .6px;
}
body.gx-page .hero-meta-item {
    background: var(--gx-card);
    border: 1px solid var(--gx-line);
    color: var(--gx-ink-2);
    opacity: 1;
    border-radius: 999px;
}

body.dark.gx-page .hero-section {
    background:
        radial-gradient(720px 260px at 22% -30%, rgba(59, 130, 246, .22), transparent 70%),
        linear-gradient(180deg, #0d1728, #111b2e);
    border-color: var(--gx-line);
}
body.dark.gx-page .hero-title { color: var(--gx-ink); }
body.dark.gx-page .hero-badge,
body.dark.gx-page .hero-meta-item { background: #16233a; border-color: var(--gx-line); }

/* 计划页其它卡片统一圆角 */
body.gx-page .stat-card,
body.gx-page .progress-section,
body.gx-page .day-card,
body.gx-page .point-card { border-radius: var(--gx-radius); }

body.gx-page .progress-section { border-color: var(--gx-line); }

body.gx-page .progress-fill {
    background: linear-gradient(90deg, var(--gx-blue), var(--gx-violet));
}

/* ---------- 嵌入 iframe 时：保留品牌导航（外壳只有侧栏，顶部需要这条导航），仅收掉页脚 ---------- */
body.gx-embedded .gx-footer { display: none; }
body.gx-embedded .gx-nav-wrap { height: 54px; }
body.gx-embedded .gx-pagebar { padding-top: 10px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gx-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 768px) {
    .gx-nav-wrap { height: 56px; padding: 0 14px; gap: 12px; overflow: hidden; }
    .gx-nav { gap: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .gx-nav::-webkit-scrollbar { display: none; }
    .gx-nav a[href="plan.html"] { display: none; }
    .gx-nav a { font-size: 12.5px; }
    .gx-brand-text { font-size: 14px; }
    .gx-nav-btn { display: none; }
    .gx-hero { padding: 38px 18px 32px; }
    .gx-hero-sub { font-size: 13.5px; }
    .gx-stats { padding: 18px 14px 0; }
    .gx-stats-inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px 0;
        padding: 16px 6px;
    }
    .gx-stat:nth-child(3) { border-right: none; }
    .gx-stat b { font-size: 20px; }
    .gx-wrap { padding: 8px 14px 40px; }
    .gx-grid { grid-template-columns: 1fr; gap: 12px; }
    .gx-sec-head { margin: 24px 0 12px; }
    .gx-tools { width: 100%; justify-content: space-between; }
    .gx-search { width: 100%; }
    .gx-footer { padding: 28px 16px 18px; }
    .gx-footer-inner { grid-template-columns: 1fr 1fr; }
    body.gx-page .container { padding: 16px 14px 44px; }
    body.gx-page .questions-area { padding: 14px 14px 4px; }
    body.gx-page .question-item { padding: 14px 14px; }
    .gx-pagebar { padding: 12px 14px 0; }
}

/* ============================================================
   v20261101b｜精讲按钮（音频胶囊）＋ 提交批改栏（进度＋统计）
   ============================================================ */

/* ---------- 精讲按钮 ---------- */
body.gx-page .lecture-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 13px;
    margin-left: 8px;
    border-radius: 999px;
    border: 1px solid var(--gx-line-strong);
    background: var(--gx-card);
    color: var(--gx-blue);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}

body.gx-page .lecture-btn:hover {
    background: var(--gx-blue);
    border-color: var(--gx-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, .25);
    transform: none;
}

.lc-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 11px;
}

.lc-wave i {
    display: block;
    width: 2.5px;
    height: 4px;
    border-radius: 2px;
    background: currentColor;
}

.lc-wave i:nth-child(2) { height: 9px; }
.lc-wave i:nth-child(3) { height: 6px; }

body.gx-page .lecture-btn.playing {
    background: var(--gx-blue);
    border-color: var(--gx-blue);
    color: #fff;
}

body.gx-page .lecture-btn.playing .lc-wave i {
    animation: gxWave .9s ease-in-out infinite;
}

body.gx-page .lecture-btn.playing .lc-wave i:nth-child(2) { animation-delay: .15s; }
body.gx-page .lecture-btn.playing .lc-wave i:nth-child(3) { animation-delay: .3s; }

@keyframes gxWave {
    0%, 100% { height: 3px; }
    50% { height: 11px; }
}

/* ---------- 提交批改栏 ---------- */
body.gx-page .submit-bar {
    display: none;
    padding: 16px 22px;
    background: var(--gx-card);
    border-top: 1px solid var(--gx-line);
    border-radius: 0 0 var(--gx-radius) var(--gx-radius);
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

body.gx-page .submit-bar.show { display: flex; }

.sb-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 240px;
    flex-wrap: wrap;
}

.sb-progress {
    flex: 1;
    min-width: 170px;
    max-width: 320px;
}

.sb-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gx-muted);
    margin-bottom: 7px;
}

.sb-progress-top .sb-count {
    font-size: 12px;
    color: var(--gx-ink-2);
    font-variant-numeric: tabular-nums;
}

.sb-progress-top .sb-count b {
    color: var(--gx-blue);
    font-size: 14px;
    font-weight: 700;
}

.sb-track {
    height: 6px;
    border-radius: 999px;
    background: var(--gx-bg);
    border: 1px solid var(--gx-line);
    overflow: hidden;
}

.sb-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gx-blue), var(--gx-violet));
    transition: width .32s ease;
}

.sb-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sb-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--gx-bg);
    border: 1px solid var(--gx-line);
    font-size: 12px;
    color: var(--gx-ink-2);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.sb-pill b {
    font-size: 13px;
    font-weight: 700;
    color: var(--gx-ink);
}

.sb-pill.ok b { color: #059669; }
.sb-pill.err b { color: #dc2626; }

body.gx-page .submit-bar .btn-success {
    height: 38px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    background: var(--gx-blue);
    box-shadow: 0 6px 16px rgba(59, 130, 246, .26);
    transition: .18s;
}

body.gx-page .submit-bar .btn-success:hover:not(:disabled) {
    background: var(--gx-blue-d);
    transform: translateY(-1px);
}

body.gx-page .submit-bar .btn-success:disabled {
    background: var(--gx-line-strong);
    color: #64748b;
    opacity: 1;
    box-shadow: none;
    cursor: not-allowed;
}

body.dark.gx-page .submit-bar .btn-success:disabled {
    background: #24324a;
    color: var(--gx-muted);
}

/* ---------- 列表页「继续上次练习」 ---------- */
.gx-resume {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 22px 0 0;
    padding: 16px 20px;
    border-radius: var(--gx-radius);
    border: 1px solid var(--gx-line);
    background:
        linear-gradient(90deg, rgba(59, 130, 246, .09), rgba(139, 92, 246, .07));
    box-shadow: var(--gx-shadow-1);
}

body.dark .gx-resume {
    background: linear-gradient(90deg, rgba(59, 130, 246, .16), rgba(139, 92, 246, .12));
}

.gx-resume-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gx-resume-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--gx-card);
    border: 1px solid var(--gx-line-strong);
    color: var(--gx-blue);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.gx-resume-text {
    min-width: 0;
}

.gx-resume-text b {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--gx-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 46vw;
}

.gx-resume-text span {
    font-size: 12px;
    color: var(--gx-muted);
}

.gx-resume .gx-btn {
    height: 38px;
    padding: 0 18px;
    font-size: 13.5px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    body.gx-page .submit-bar { padding: 14px; gap: 12px; }
    .sb-main { gap: 12px; }
    .sb-progress { max-width: none; }
    body.gx-page .submit-bar .btn-success { width: 100%; }
    .gx-resume { padding: 14px; gap: 12px; }
    .gx-resume-text b { max-width: 56vw; font-size: 13.5px; }
    .gx-resume .gx-btn { width: 100%; }
    body.gx-page .lecture-btn { height: 28px; padding: 0 11px; margin-left: 0; }
}

/* hidden 属性优先于 flex */
.gx-resume[hidden] { display: none; }

/* 移动端细节：resume 标题允许两行、选项两列更紧凑 */
.gx-resume-left { flex: 1; }
.gx-resume-text { flex: 1; min-width: 0; }

@media (max-width: 768px) {
    .gx-resume-text b {
        max-width: none;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.45;
    }

    body.gx-page .options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    body.gx-page .option {
        justify-content: flex-start;
        min-width: 0;
        padding: 9px 12px;
    }

    body.gx-page .option .option-text {
        overflow-wrap: anywhere;
    }
}

/* 深色下选项与题卡拉开层次 */
body.dark.gx-page .option {
    background: #0e1626;
    border-color: var(--gx-line-strong);
}
body.dark.gx-page .option:hover { background: var(--gx-blue-soft); border-color: var(--gx-blue); }
body.dark.gx-page .option.selected { background: var(--gx-blue); border-color: var(--gx-blue); color: #fff; }
body.dark.gx-page .option.correct-option { background: #0f2b23; border-color: #1f7a5c; }
body.dark.gx-page .option.wrong-option { background: #2b1416; border-color: #7f2a2a; }
body.dark.gx-page .option-letter { color: var(--gx-blue); }
body.dark.gx-page .option.selected .option-letter,
body.dark.gx-page .option.selected .option-text { color: #fff; }

/* ============================================================
   v20261101c｜去掉各类「左侧加深色条」，统一为整块圆角
   ============================================================ */

/* 学习模式：正确答案 / 解析 / 知识点 */
body.gx-page .learn-mode .answer-display,
body.gx-page .learn-mode .explain-box,
body.gx-page .learn-mode .explain-box .knowledge-tip {
    border-left-width: 0;
    border-left-color: transparent;
}

/* 练习结果框 */
body.gx-page .practice-result-box.correct,
body.gx-page .practice-result-box.wrong {
    border-left-width: 0;
    border-left-color: transparent;
}

/* 练习模式：答对 / 答错整题 → 改为整圈描边，不再用左侧色条 */
body.gx-page .practice-mode .question-item.correct-item {
    border-left-width: 0;
    padding-left: 20px;
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .65);
}

body.gx-page .practice-mode .question-item.wrong-item {
    border-left-width: 0;
    padding-left: 20px;
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .6);
}

/* ============================================================
   v20261101d｜长标题适配：桌面不挤压，手机不被拆成三行
   ============================================================ */
body.gx-page .section-title h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    line-height: 1.45;
}

body.gx-page .section-title h2 > span { flex-shrink: 0; }

.gx-pagebar .ttl {
    max-width: min(620px, 56vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    body.gx-page .section-title { padding: 14px 14px; }

    body.gx-page .section-title h2 {
        display: block;
        font-size: 16px;
        line-height: 1.5;
    }

    body.gx-page .section-title h2 > span {
        display: inline-block;
        vertical-align: middle;
        margin-right: 6px;
        font-size: 11px;
        padding: 3px 9px;
    }

    .gx-pagebar .ttl {
        max-width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}

/* 手机端：题数胶囊固定在标题右上，标题可自由折行 */
@media (max-width: 768px) {
    body.gx-page .section-title h2 { position: relative; padding-right: 58px; }

    body.gx-page .section-title h2 > span#questionCount {
        position: absolute;
        right: 0;
        top: 1px;
        margin: 0;
    }
}

/* ============================================================
   v20261101g｜统一练习页：标题文字不要被 h2 > span 的胶囊样式套住
   ============================================================ */
body.gx-page .section-title h2 > #setTitle {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    color: var(--gx-ink);
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
}

@media (max-width: 768px) {
    body.gx-page .section-title h2 > #setTitle {
        display: inline;
        font-size: inherit;
        padding: 0;
        margin: 0;
        vertical-align: baseline;
    }
}

/* 深色下题号胶囊提高对比度 */
body.dark.gx-page .q-title {
    background: #1b2e4d;
    color: #8ec5ff;
}

/* 内置题库兜底提示 */
body.gx-page .gx-offline-tip {
    margin: 0 0 14px;
    padding: 9px 14px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 12.5px;
    line-height: 1.6;
}

body.dark.gx-page .gx-offline-tip {
    background: #2a1d10;
    border-color: #7c4a1c;
    color: #fcd34d;
}
