/* gre.css — GRE Pro 视觉体系
   ETS PowerPrep / 真实机考风格：深灰蓝顶栏 (#2c3e50/#34495e) + 米白正文区
   铁律：fixed 元素祖先禁 transform；隐藏浮层 opacity:0 + pointer-events:none */

:root {
  --navy: #2c3e50;        /* 顶栏深灰蓝 */
  --navy2: #34495e;       /* 次级灰蓝 */
  --navy3: #46627f;       /* hover */
  --steel: #7f8c9b;
  --paper: #f5f3ec;       /* 米白正文区 */
  --panel: #eceae2;       /* 次级米色（顶栏第二行） */
  --card: #ffffff;
  --ink: #26292e;
  --sub: #6b7280;
  --line: #c9c5b8;
  --line2: #b4bac4;
  --blue: #3d85d1;        /* Next 高亮蓝 / 链接 */
  --blue-d: #2f6cae;
  --ok: #1e7e34;
  --ok-bg: #e8f5e9;
  --bad: #c0392b;
  --bad-bg: #fdecea;
  --mark: #e67e22;
  --shadow: 0 8px 28px rgba(30, 41, 56, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
a { color: var(--blue); }

/* ════════════════ 考试壳（practice.html） ════════════════ */
.g-shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

/* ── 顶栏第一行：深灰蓝 · 考试名 + 方块按钮组 ── */
.g-row1 {
  background: linear-gradient(#33475c, var(--navy));
  color: #fff;
  display: flex;
  align-items: stretch;
  min-height: 58px;
  border-bottom: 3px solid #1f2d3a;
}
.g-title {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6px 16px; min-width: 0; flex: 1;
}
.g-title b { font-size: 15.5px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-title small { font-size: 11.5px; color: #b8c4d0; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.g-btns { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.g-btns::-webkit-scrollbar { display: none; }
.gbtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-width: 62px; padding: 6px 10px;
  background: var(--navy2); color: #fff; border: none;
  border-left: 1px solid rgba(255, 255, 255, .16);
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
  text-decoration: none; user-select: none; -webkit-user-select: none;
  transition: background .12s;
}
.gbtn .ic { font-size: 17px; line-height: 1; }
.gbtn:hover { background: var(--navy3); }
.gbtn:disabled { opacity: .45; cursor: default; }
.gbtn:disabled:hover { background: var(--navy2); }
.gbtn.next { background: var(--blue); }
.gbtn.next:hover { background: var(--blue-d); }
.gbtn.on { background: #7a5a1e; box-shadow: inset 0 0 0 2px #f0b64e; }
.gbtn.on .ic { color: #ffd782; }

/* ── 顶栏第二行：浅色 · Question x of y + 计时 ── */
.g-row2 {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 7px 16px; gap: 10px;
  font-size: 13.5px; color: #3a4450;
}
.g-row2 .qofy { font-weight: 700; }
.g-row2 .fmt-tag {
  font-size: 11px; background: #dedbd0; color: #5b6470;
  border-radius: 4px; padding: 2px 8px; font-weight: 600;
}
.g-row2 .sp { flex: 1; }
.g-timer { display: flex; align-items: center; gap: 8px; }
.g-timer .t { font-variant-numeric: tabular-nums; font-weight: 700; color: #2c3e50; min-width: 46px; text-align: right; }
.g-timer .t.hid { color: var(--sub); font-weight: 600; }
.g-hidetime {
  background: #fff; border: 1px solid var(--line2); border-radius: 4px;
  font-size: 11.5px; padding: 3px 9px; color: #3a4450; font-weight: 600;
}
.g-hidetime:hover { background: #f0efe9; }

/* ── 主体 ── */
.g-main { flex: 1; overflow-y: auto; padding: 22px 18px 120px; }
.g-inner { max-width: 900px; margin: 0 auto; }
.g-cols { display: flex; gap: 0; max-width: 1180px; margin: 0 auto; align-items: stretch; }
.g-passage {
  flex: 1 1 50%; min-width: 0;
  background: var(--card); border: 1px solid var(--line);
  padding: 20px 22px; line-height: 1.75; font-size: 15px;
  max-height: calc(100vh - 240px); overflow-y: auto;
}
.g-passage h4 { font-size: 13px; color: var(--sub); font-weight: 700; margin-bottom: 10px; letter-spacing: .4px; }
.g-qside { flex: 1 1 50%; min-width: 0; padding: 0 0 0 26px; }

/* 指令条（官方斜体指令句） */
.g-direction {
  font-style: italic; color: #414b57; font-size: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 16px;
}

/* QC：Quantity A | Quantity B */
.qc-cond { text-align: center; font-size: 15.5px; margin: 6px auto 18px; max-width: 560px; }
.qc-wrap { display: flex; justify-content: center; gap: 56px; margin: 10px auto 26px; flex-wrap: wrap; }
.qc-col { text-align: center; min-width: 160px; }
.qc-col .qc-h { font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.qc-col .qc-v { font-size: 17px; }

.g-stem { font-size: 16px; line-height: 1.8; margin: 4px 0 18px; }
.g-stem u { text-decoration: underline; }

/* 空位（tc2/tc3 题面回显） */
.blank {
  display: inline-block; min-width: 118px; text-align: center;
  border: 1px solid #8a9099; background: #fff; border-radius: 2px;
  padding: 1px 10px; margin: 0 3px; font-size: 14px; color: #9aa1ab;
  vertical-align: baseline; line-height: 1.5;
}
.blank.filled { color: var(--ink); font-weight: 700; border-color: var(--navy2); background: #eef2f7; }
.blank .bno { font-size: 11px; font-style: italic; color: inherit; }

/* mmc 提示条 */
.allbar {
  font-style: italic; font-size: 13.5px; color: #414b57;
  background: #efeade; border: 1px solid #ddd5bf; border-left: 4px solid var(--navy2);
  padding: 8px 12px; margin: 0 0 14px; border-radius: 3px;
}

/* ── 选项：GRE 长条选项框 ── */
.g-opts { margin: 6px 0 4px; }
.g-opt {
  display: flex; align-items: center; gap: 13px;
  background: var(--card); border: 1px solid var(--line2); border-radius: 3px;
  padding: 12px 15px; margin: 9px 0; cursor: pointer; font-size: 15.5px; line-height: 1.55;
  transition: background .1s, border-color .1s;
}
.g-opt:hover { background: #f4f7fb; }
.g-opt .rd {
  flex: 0 0 auto; width: 19px; height: 19px; border-radius: 50%;
  border: 2px solid #6c7683; background: #fff; position: relative;
}
.g-opt .cb {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 2px;
  border: 2px solid #6c7683; background: #fff; position: relative;
  font-size: 13px; line-height: 14px; text-align: center; color: transparent; font-weight: 900;
}
.g-opt.sel { border-color: var(--navy); background: #e9eff6; box-shadow: inset 0 0 0 1px var(--navy); }
.g-opt.sel .rd::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--navy);
}
.g-opt.sel .cb { background: var(--navy); border-color: var(--navy); color: #fff; }
.g-opt.sel .cb::after { content: "✓"; position: absolute; inset: 0; color: #fff; }
.g-opt.correct { border-color: var(--ok); background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok); }
.g-opt.wrong { border-color: var(--bad); background: var(--bad-bg); box-shadow: inset 0 0 0 1px var(--bad); }
.g-opt.dis { cursor: default; }
.g-opt .tail { margin-left: auto; font-weight: 800; font-size: 14px; }
.g-opt .tail.ok { color: var(--ok); }
.g-opt .tail.bad { color: var(--bad); }

/* se 恰选 2 提示 */
.se-hint {
  font-size: 13px; color: var(--bad); background: var(--bad-bg);
  border: 1px solid #efc4be; border-radius: 4px; padding: 7px 11px; margin: 4px 0 8px;
  opacity: 0; pointer-events: none; transition: opacity .18s; min-height: 0;
}
.se-hint.show { opacity: 1; }

/* ── tc2/tc3：每空一列三选项表格（官方样式） ── */
.tcgrid { border-collapse: collapse; margin: 14px 0 4px; width: 100%; max-width: 640px; }
.tcgrid th {
  border: 1px solid #8a9099; background: var(--panel);
  font-size: 13px; font-style: italic; font-weight: 700; padding: 7px 10px; color: #3a4450;
}
.tcgrid td { border: 1px solid #8a9099; padding: 0; background: var(--card); }
.tcgrid td button {
  display: block; width: 100%; border: none; background: transparent;
  padding: 11px 12px; font-size: 14.5px; text-align: center; color: var(--ink);
  transition: background .1s;
}
.tcgrid td button:hover { background: #f0f4f9; }
.tcgrid td.sel { background: var(--navy); }
.tcgrid td.sel button { color: #fff; font-weight: 700; }
.tcgrid td.correct { background: var(--ok-bg); box-shadow: inset 0 0 0 2px var(--ok); }
.tcgrid td.wrong { background: var(--bad-bg); box-shadow: inset 0 0 0 2px var(--bad); }
.tcgrid td.dis button { cursor: default; }

/* ── ne：数字输入 / 分数双框 ── */
.ne-box { margin: 12px 0 4px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ne-input {
  width: 170px; font-size: 17px; padding: 9px 12px;
  border: 1.5px solid #6c7683; border-radius: 3px; background: #fff; color: var(--ink);
}
.ne-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 133, 209, .18); }
.ne-input.bad { border-color: var(--bad); }
.frac { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.frac .ne-input { width: 130px; text-align: center; }
.frac .bar { width: 150px; height: 2.5px; background: var(--ink); border-radius: 2px; }
.ne-tip { font-size: 12.5px; color: var(--sub); }
.ne-err { font-size: 12.5px; color: var(--bad); margin-top: 6px; opacity: 0; transition: opacity .15s; min-height: 17px; }
.ne-err.show { opacity: 1; }

/* ── 确认 / 反馈 ── */
.g-confirm {
  margin: 18px 0 6px;
  background: var(--blue); color: #fff; border: none; border-radius: 4px;
  font-size: 15px; font-weight: 700; padding: 11px 30px; letter-spacing: .5px;
  box-shadow: 0 2px 0 var(--blue-d);
}
.g-confirm:hover { background: var(--blue-d); }
.g-confirm:disabled { background: #aeb8c2; box-shadow: none; cursor: default; }

.g-feedback {
  display: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 16px 18px; margin: 16px 0 8px;
}
.g-feedback.show { display: block; }
.verdict { font-weight: 800; font-size: 15.5px; margin-bottom: 8px; }
.verdict.ok { color: var(--ok); }
.verdict.bad { color: var(--bad); }
.expl { font-size: 14.5px; line-height: 1.8; color: #333941; border-top: 1px dashed var(--line); padding-top: 10px; }
.aibox { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.aibox .log { font-size: 13.5px; line-height: 1.7; color: #3a4450; }
.aibox .log > div { margin: 5px 0; }
.aibox .log .u { color: var(--blue-d); font-weight: 700; }
.aibox .log .a { color: var(--navy); font-weight: 700; }
.aibox .row { display: flex; gap: 8px; margin-top: 8px; }
.aibox input {
  flex: 1; min-width: 0; border: 1px solid var(--line2); border-radius: 4px;
  padding: 8px 11px; font-size: 13.5px; background: #fff;
}
.aibox input:focus { outline: none; border-color: var(--blue); }
.aibox button {
  background: var(--navy); color: #fff; border: none; border-radius: 4px;
  font-size: 13px; font-weight: 700; padding: 8px 16px;
}
.aibox button:hover { background: var(--navy3); }

/* ════════════════ Review 整屏面板 ════════════════ */
.review-screen {
  position: fixed; inset: 0; z-index: 60; background: var(--paper);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.review-screen.open { opacity: 1; pointer-events: auto; }
.rv-top {
  background: var(--navy); color: #fff; padding: 12px 18px;
  display: flex; align-items: center; gap: 12px;
}
.rv-top b { font-size: 16px; }
.rv-top .sp { flex: 1; }
.rv-body { flex: 1; overflow-y: auto; padding: 18px; }
.rv-note { max-width: 760px; margin: 0 auto 14px; font-size: 13.5px; color: #414b57; line-height: 1.7; }
.rv-table { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; background: var(--card); }
.rv-table th {
  background: var(--navy2); color: #fff; font-size: 13px; font-weight: 700;
  padding: 9px 12px; text-align: left; border: 1px solid #2a3a4a;
}
.rv-table td { border: 1px solid var(--line2); padding: 9px 12px; font-size: 14px; }
.rv-table tr.rv-row { cursor: pointer; }
.rv-table tr.rv-row:hover td { background: #eef2f7; }
.rv-table tr.cur td { background: #e2ebf5; font-weight: 700; }
.rv-table .st-a { color: var(--ok); font-weight: 700; }
.rv-table .st-n { color: var(--bad); font-weight: 700; }
.rv-table .st-e { color: var(--sub); }
.rv-table .mk { color: var(--mark); font-weight: 900; text-align: center; }
.rv-return {
  background: var(--blue); color: #fff; border: none; border-radius: 4px;
  font-size: 13px; font-weight: 700; padding: 8px 18px;
}
.rv-return:hover { background: var(--blue-d); }

/* ════════════════ 计算器浮窗 ════════════════ */
.calc {
  position: fixed; z-index: 70; left: 24px; top: 120px; width: 252px;
  background: #dfe3e8; border: 1px solid #9aa4ae; border-radius: 8px;
  box-shadow: var(--shadow); user-select: none; -webkit-user-select: none;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.calc.open { opacity: 1; pointer-events: auto; }
.calc-head {
  background: var(--navy); color: #fff; border-radius: 7px 7px 0 0;
  padding: 8px 12px; font-size: 13px; font-weight: 700; letter-spacing: .3px;
  display: flex; align-items: center; cursor: move; touch-action: none;
}
.calc-head .sp { flex: 1; }
.calc-head .x { background: none; border: none; color: #cdd6df; font-size: 16px; line-height: 1; padding: 2px 4px; }
.calc-head .x:hover { color: #fff; }
.calc-scr {
  margin: 10px 10px 6px; background: #fff; border: 1px solid #9aa4ae; border-radius: 4px;
  padding: 9px 12px; text-align: right; font-size: 21px; font-variant-numeric: tabular-nums;
  overflow: hidden; white-space: nowrap; min-height: 44px;
}
.calc-mem { font-size: 10.5px; color: var(--sub); text-align: left; float: left; line-height: 24px; }
.calc-keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 6px 10px 10px; }
.calc-keys button {
  border: 1px solid #9aa4ae; border-radius: 4px; background: #f6f8fa;
  font-size: 15px; font-weight: 600; padding: 9px 0; color: var(--ink);
  box-shadow: 0 1px 0 #b7c0c8;
}
.calc-keys button:hover { background: #fff; }
.calc-keys button:active { transform: none; background: #e2e8ee; }
.calc-keys button.op { background: #cfd8e2; }
.calc-keys button.eq { background: var(--blue); color: #fff; border-color: var(--blue-d); }
.calc-keys button.mem { font-size: 12px; background: #e7e2d4; }
.calc-transfer {
  display: block; width: calc(100% - 20px); margin: 0 10px 12px;
  background: var(--navy2); color: #fff; border: none; border-radius: 4px;
  font-size: 12.5px; font-weight: 700; padding: 9px 0; letter-spacing: .3px;
}
.calc-transfer:hover { background: var(--navy3); }
.calc-transfer:disabled { background: #aeb8c2; cursor: default; }

/* ════════════════ 通用弹窗 ════════════════ */
.mask {
  position: fixed; inset: 0; z-index: 80; background: rgba(24, 32, 42, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.mask.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card); border-radius: 10px; box-shadow: var(--shadow);
  max-width: 460px; width: 100%; padding: 24px 26px; max-height: 86vh; overflow-y: auto;
}
.modal h3 { font-size: 17px; margin-bottom: 10px; color: var(--navy); }
.modal p { font-size: 14px; line-height: 1.8; color: #3a4450; }
.modal .row { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; flex-wrap: wrap; }
.result-big { font-size: 40px; font-weight: 800; color: var(--navy); margin: 8px 0 10px; }
.btn {
  display: inline-block; border-radius: 5px; font-size: 14px; font-weight: 700;
  padding: 9px 20px; border: none; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line2); }
.btn-ghost:hover { background: #f0f2f5; }

/* ════════════════ 首页（index.html） ════════════════ */
.topbar {
  background: linear-gradient(#33475c, var(--navy)); color: #fff;
  position: sticky; top: 0; z-index: 40;
  border-bottom: 3px solid #1f2d3a;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.topbar .in { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo .badge {
  background: #fff; color: var(--navy); font-weight: 900; font-size: 15px;
  border-radius: 7px; padding: 6px 9px; letter-spacing: .5px;
}
.logo .txt { font-size: 16.5px; font-weight: 800; line-height: 1.15; }
.logo .txt small { display: block; font-size: 10px; color: #b8c4d0; font-weight: 600; letter-spacing: 1px; }
.nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nv {
  color: #d6dee6; text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 7px 10px; border-radius: 6px; white-space: nowrap;
}
.nv:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-auth { margin-left: auto; white-space: nowrap; }
.chip {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; border-radius: 999px; font-size: 12.5px; padding: 5px 12px;
}
.chip a { color: #9ecdf5; }

.hero { text-align: center; padding: 40px 10px 8px; }
.hero h1 { font-size: 29px; line-height: 1.35; color: var(--navy); }
.hero h1 span { color: var(--blue-d); }
.hero p { color: var(--sub); font-size: 14.5px; line-height: 1.9; margin-top: 12px; }

.statbar {
  display: flex; gap: 12px; margin: 26px 0 8px; flex-wrap: wrap;
}
.stat {
  flex: 1 1 130px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 16px; text-align: center;
}
.stat b { font-size: 25px; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat small { display: block; color: var(--sub); font-size: 12px; margin-top: 5px; }
.stat .est {
  font-size: 10px; background: #efe8d4; color: #8a6d1d; border-radius: 4px;
  padding: 1px 5px; margin-left: 4px; font-weight: 700;
}

.sec-title { font-size: 20px; font-weight: 800; color: var(--navy); margin: 36px 0 14px; }
.sec-title small { display: block; font-size: 12.5px; color: var(--sub); font-weight: 600; margin-top: 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.dcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .15s, border-color .15s;
}
.dcard:hover { border-color: var(--navy2); box-shadow: 0 6px 18px rgba(44, 62, 80, .12); }
.dcard .ico { font-size: 24px; }
.dcard h3 { font-size: 16px; color: var(--navy); }
.dcard h3 small { display: block; font-size: 11.5px; color: var(--sub); font-weight: 600; margin-top: 3px; }
.dcard .skills { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sk {
  font-size: 13px; color: #3a4450; text-decoration: none;
  background: #f2f0e9; border: 1px solid #e3e0d5; border-radius: 8px; padding: 7px 11px;
}
.sk:hover { background: #e9eff6; border-color: var(--navy2); color: var(--navy); }
.dcard .all {
  align-self: flex-start; background: var(--navy); color: #fff; border: none;
  border-radius: 7px; font-size: 13px; font-weight: 700; padding: 8px 15px; text-decoration: none;
}
.dcard .all:hover { background: var(--navy3); }
.dcard.soon { opacity: .78; }
.soon-tag {
  align-self: flex-start; font-size: 11px; background: #efe8d4; color: #8a6d1d;
  border-radius: 4px; padding: 2px 8px; font-weight: 700;
}

footer {
  margin-top: 52px; padding: 26px 18px 40px; text-align: center;
  color: var(--sub); font-size: 12.5px; line-height: 2;
  border-top: 1px solid var(--line);
}
footer a { color: var(--blue-d); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ════════════════ 模考（mock.html） ════════════════ */
.setgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 20px 0 46px; }
.setcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; }
.setcard h3 { font-size: 17px; margin-bottom: 6px; color: var(--navy); }
.setcard .st { font-size: 12px; color: var(--sub); min-height: 40px; line-height: 1.7; }
.setcard .st b { color: var(--blue-d); font-size: 15px; }
.setcard .go {
  margin-top: 8px; width: 100%; padding: 9px 0; border: none; border-radius: 8px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 13.5px;
  display: block; text-align: center; text-decoration: none;
}
.setcard .go:hover { background: var(--blue-d); }
.setcard .go.resume { background: var(--mark); }
.setcard .go.resume:hover { background: #cf6d15; }
.setcard .go.report { background: #fff; border: 1.5px solid var(--blue); color: var(--blue-d); padding: 8px 0; }
.setcard .go.report:hover { background: #eef4fb; }

.interstitial {
  max-width: 640px; margin: 7vh auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 36px 30px; text-align: center;
}
.interstitial h2 { font-size: 21px; margin-bottom: 10px; color: var(--navy); }
.interstitial .big { font-size: 52px; font-weight: 900; color: var(--blue-d); font-variant-numeric: tabular-nums; margin: 14px 0; }
.interstitial p { color: var(--sub); font-size: 13.5px; line-height: 2; margin-bottom: 20px; }
.flowlist {
  text-align: left; font-size: 13.5px; line-height: 2.15; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin: 16px 0 20px; color: var(--ink);
}
.flowlist b { color: var(--blue-d); }

.savebadge {
  position: fixed; right: 16px; bottom: 16px; pointer-events: none; z-index: 85;
  background: #22304a; color: #fff; font-size: 12px; border-radius: 999px; padding: 6px 14px;
  opacity: 0; transition: opacity .3s;
}
.savebadge.show { opacity: .88; }

.g-warnbar {
  display: none; background: #fbe9c9; color: #5a3b00; border-bottom: 1px solid #e8c98a;
  text-align: center; font-size: 13px; font-weight: 700; padding: 6px;
}
.g-warnbar.show { display: block; }
.g-timer .t.warn { color: var(--bad); }

/* AW 写作界面（官方风格：左题面 · 右编辑器） */
.aw-cols { display: flex; gap: 20px; max-width: 1180px; margin: 0 auto; align-items: stretch; }
.aw-prompt {
  flex: 1 1 44%; min-width: 0; background: var(--card); border: 1px solid var(--line);
  padding: 20px 22px; line-height: 1.8; font-size: 15px;
  max-height: calc(100vh - 230px); overflow-y: auto;
}
.aw-prompt h4 { font-size: 13px; color: var(--sub); font-weight: 700; margin-bottom: 10px; letter-spacing: .4px; }
.aw-prompt .instr {
  margin-top: 16px; font-size: 13.5px; color: #414b57; font-style: italic;
  border-top: 1px dashed var(--line); padding-top: 12px; line-height: 1.9;
}
.aw-editor {
  flex: 1 1 56%; min-width: 0; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
}
.aw-toolbar { display: flex; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.aw-toolbar button {
  border: 1px solid var(--line2); background: #fff; border-radius: 3px;
  font-size: 12.5px; font-weight: 700; padding: 5px 16px; color: #3a4450;
}
.aw-toolbar button:hover { background: #eef2f7; }
.aw-toolbar button:disabled { opacity: .4; cursor: default; }
.aw-toolbar button:disabled:hover { background: #fff; }
.aw-ta {
  flex: 1; width: 100%; resize: none; border: none; outline: none;
  padding: 16px 18px; font-size: 15px; line-height: 1.8; font-family: inherit;
  min-height: 320px; background: #fff; color: var(--ink);
}
.aw-count { padding: 7px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--sub); text-align: right; background: #fbfaf6; }

.rv-end {
  background: #fff; color: var(--navy); border: none; border-radius: 4px;
  font-size: 13px; font-weight: 700; padding: 8px 18px;
}
.rv-end:hover { background: #e8edf3; }

/* ════════════════ 模考报告（report.html） ════════════════ */
.rp-hero {
  background: linear-gradient(135deg, #33475c, #1f2d3a); color: #fff;
  border-radius: 16px; padding: 30px 22px 26px; text-align: center; margin-top: 22px;
}
.rp-hero .sub0 { font-size: 13px; opacity: .85; }
.rp-hero .duo { display: flex; justify-content: center; gap: 8px 46px; flex-wrap: wrap; margin-top: 14px; }
.rp-hero .ds small { display: block; font-size: 12px; opacity: .85; margin-bottom: 4px; }
.rp-hero .ds b { font-size: 48px; font-weight: 900; line-height: 1.1; }
.rp-hero .ds .of { font-size: 15px; font-weight: 500; opacity: .8; }
.rp-hero .ds.aw b { font-size: 36px; }
.rp-hero .est {
  font-size: 10.5px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px;
  padding: 1px 8px; margin-left: 6px; vertical-align: 6px; font-weight: 600;
}
.rp-hero .pct { font-size: 13px; opacity: .9; margin-top: 12px; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 16px; }
.rp-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.rp-card h4 { font-size: 14px; margin-bottom: 8px; color: var(--navy); }
.rp-card .sc { font-size: 30px; font-weight: 900; color: var(--blue-d); }
.rp-card .sub2 { font-size: 12px; color: var(--sub); margin-top: 4px; line-height: 1.7; }
.rp-bar { height: 8px; background: #e7e4da; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.rp-bar i { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.routeline {
  margin-top: 10px; font-size: 12.5px; background: #eef2f7; border: 1px solid #ccd8e5;
  border-radius: 10px; padding: 9px 12px; line-height: 1.8;
}
.rp-sec { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-top: 16px; }
.rp-sec h3 { font-size: 16px; margin-bottom: 12px; color: var(--navy); }
.rp-sec p { font-size: 13.5px; color: var(--ink); line-height: 1.9; }
.rp-sec .tip { font-size: 12.5px; color: var(--sub); margin-top: 10px; line-height: 1.8; }
.fmtgroup h5 { font-size: 13px; color: var(--blue-d); margin: 14px 0 4px; }
.fmtgroup h5:first-child { margin-top: 0; }
.fmtrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.fmtrow:last-child { border-bottom: none; }
.fmtrow .nm { flex: 1; min-width: 0; }
.fmtrow .cnt { color: var(--sub); font-size: 12px; white-space: nowrap; }
.fmtrow .cnt .r { color: var(--ok); font-weight: 700; }
.fmtrow .cnt .w { color: var(--bad); font-weight: 700; }
.fmtrow .bar { width: 130px; height: 8px; background: #e7e4da; border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.fmtrow .bar i { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.awdim { border-left: 3px solid var(--navy2); background: var(--paper); border-radius: 0 8px 8px 0; padding: 9px 13px; margin: 8px 0; font-size: 13px; line-height: 1.8; }
.awdim b { color: var(--navy); display: block; margin-bottom: 2px; }
.awpending {
  background: #efe8d4; color: #8a6d1d; border-radius: 10px; padding: 12px 16px;
  font-size: 13.5px; line-height: 1.8;
}
.wrongitem { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; font-size: 13px; line-height: 1.8; }
.wrongitem .tg {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 9px; font-size: 11.5px; color: var(--sub); margin-right: 6px;
}
.sharebox { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.sharebox input {
  flex: 1; min-width: 200px; border: 1.5px solid var(--line); border-radius: 8px;
  padding: 9px 12px; font-size: 12.5px; color: var(--sub); background: #fff;
}

/* ════════════════ 响应式（手机可用铁律） ════════════════ */
@media (max-width: 860px) {
  .g-cols { flex-direction: column; }
  .g-passage { max-height: 42vh; }
  .g-qside { padding: 18px 0 0; }
  .aw-cols { flex-direction: column; }
  .aw-prompt { max-height: 34vh; }
  .aw-ta { min-height: 220px; }
}
@media (max-width: 760px) {
  .g-row1 { flex-wrap: wrap; }
  .g-title { flex: 1 1 100%; padding: 8px 12px 4px; }
  .g-btns { flex: 1 1 100%; justify-content: stretch; border-top: 1px solid rgba(255,255,255,.14); }
  .gbtn { flex: 1 1 0; min-width: 48px; padding: 6px 4px; font-size: 10px; }
  .gbtn .ic { font-size: 15px; }
  .g-main { padding: 16px 14px 90px; }
  .qc-wrap { gap: 26px; }
  .hero h1 { font-size: 22px; }
  .topbar .in { height: auto; flex-wrap: wrap; padding: 10px 0; row-gap: 8px; }
  .nav { order: 3; flex-basis: 100%; }
  .calc { left: 8px; right: 8px; width: auto; max-width: 300px; margin: 0 auto; }
  .modal { padding: 20px 18px; }
}
