/* Global layout and shared components. Page-specific styles live in /css/<page>.css. */
:root {
  --brand: #17926f;
  --brand-600: #0f7a5c;
  --brand-50: #eaf6f1;
  --brand-100: #d3eee3;
  --bg: #f4f7f6;
  --card: #ffffff;
  --line: #e3e9e7;
  --text: #1d2a26;
  --muted: #53635e;
  --danger: #c63c2f;
  --danger-50: #fdeeec;
  --warn: #b86e09;
  --warn-50: #fdf4e4;
  --ok: #117d5f;
  --info: #255ec0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 40, 32, 0.04), 0 4px 16px rgba(16, 40, 32, 0.05);
  --topbar: 56px;
  --sidebar: 196px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flow-root; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.en { font-family: Georgia, "Times New Roman", serif; }
.svg-ic { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }

.skip-link {
  position: fixed; left: 12px; top: -48px; z-index: 300;
  padding: 8px 14px; border-radius: 8px;
  background: var(--brand-600); color: #fff; font-weight: 600; font-size: 13px;
  transition: top 0.15s;
}
.skip-link:focus { top: 10px; color: #fff; outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Shell ---------- */
body.nav-collapsed { --sidebar: 64px; }
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar); z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; }
.brand-text small { color: var(--muted); font-size: 11px; letter-spacing: 0.02em; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.link-muted { color: var(--muted); font-size: 13px; }
.sidebar {
  position: fixed; top: var(--topbar); bottom: 0; left: 0; width: var(--sidebar); z-index: 10;
  padding: 14px 10px; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  transition: width 0.18s ease;
}
.nav-links { display: flex; flex-direction: column; gap: 2px; }
.sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  color: var(--text); font-size: 14px;
}
.sidebar a:hover { background: var(--bg); }
.sidebar a.active { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
.nav-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-foot { border-top: 1px solid var(--line); padding-top: 8px; }
.nav-collapse-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  cursor: pointer; font-size: 13px;
}
.nav-collapse-btn:hover { background: var(--bg); color: var(--text); }
@media (min-width: 861px) {
  body.nav-collapsed .sidebar { padding: 14px 8px; }
  body.nav-collapsed .sidebar a,
  body.nav-collapsed .nav-collapse-btn { justify-content: center; padding: 9px 0; gap: 0; }
  body.nav-collapsed .nav-label { display: none; }
}
.main { margin: var(--topbar) 0 0 var(--sidebar); padding: 28px 40px 60px; min-height: calc(100vh - var(--topbar)); outline: none; transition: margin-left 0.18s ease; }
.page { max-width: 1120px; margin: 0 auto; }
body.focus-mode .sidebar { display: none; }
body.focus-mode .main { margin-left: 0; padding: 0; }

@media (max-width: 860px) {
  .topbar { padding: 0 12px; }
  .topbar-right { gap: 6px; }
  .sidebar {
    top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: 60px;
    flex-direction: row; align-items: stretch; justify-content: space-around;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    border-right: 0; border-top: 1px solid var(--line); overflow-x: hidden; gap: 2px;
  }
  .nav-links { flex: 1; display: flex; flex-direction: row; align-items: stretch; justify-content: space-around; gap: 2px; min-width: 0; }
  .sidebar a {
    flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; align-items: center;
    gap: 2px; padding: 4px 2px; font-size: 11px; white-space: nowrap; text-align: center;
  }
  .sidebar a .nav-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .sidebar-foot { display: none; }
  .main { margin-left: 0; padding: 18px 14px 82px; }
  .link-muted { display: none; }
}

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.eyebrow { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.page-head h1 { font-size: 26px; }
.page-head .sub { color: var(--muted); margin-top: 6px; }

/* ---------- Cards and layout helpers ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.notice { background: var(--warn-50); color: #7a4d06; border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.notice.info { background: var(--brand-50); color: var(--brand-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--text); cursor: pointer; font-size: 14px; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { border-color: var(--brand); color: var(--brand-600); }
.btn.primary { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn.primary:hover { background: #0b634a; border-color: #0b634a; color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.pill { border-radius: 999px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.icon-btn { border: 0; background: transparent; cursor: pointer; width: 34px; height: 34px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.icon-btn:hover { background: var(--bg); color: var(--text); }
.link-btn { border: 0; background: none; padding: 0; color: var(--brand-600); cursor: pointer; font-size: inherit; }
.link-btn:hover { color: #0b634a; text-decoration: underline; }
@media (max-width: 860px) {
  .btn.small { min-height: 36px; padding: 0 12px; }
  .icon-btn { min-width: 36px; min-height: 36px; }
  .chip { min-height: 34px; display: inline-flex; align-items: center; padding: 6px 12px; }
  .seg button { min-height: 36px; display: inline-flex; align-items: center; padding: 6px 14px; }
  .pager .pages button { min-width: 36px; height: 36px; }
}

/* ---------- Segmented tabs, chips, tags ---------- */
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); font-size: 13px; }
.seg button.active { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 12px; font-size: 13px; cursor: pointer; color: var(--text); }
.chip.active { border-color: var(--brand); background: var(--brand-50); color: var(--brand-600); }
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 1px 10px; font-size: 12px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tag.brand { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand-100); }
.tag.warn { background: var(--warn-50); color: #9a5f05; border-color: #f4dfb8; }
.tag.danger { background: var(--danger-50); color: var(--danger); border-color: #f6cdc8; }
.tag.ok { background: var(--brand-50); color: var(--ok); border-color: var(--brand-100); }

/* ---------- Progress, stats ---------- */
.bar { height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width 0.3s; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--brand-600); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 12px; }

/* ---------- Forms ---------- */
.input, .select, .textarea {
  border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 12px; height: 36px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { height: auto; padding: 12px; resize: vertical; line-height: 1.7; width: 100%; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
label.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }

/* ---------- Tables / lists ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 500; font-size: 12px; background: #fafcfb; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }

/* ---------- Pagination ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.pager .pages { display: flex; gap: 4px; align-items: center; }
.pager .pages button { min-width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pager .pages button.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Modal, toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(18, 30, 26, 0.38); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade 0.15s; }
.modal { background: #fff; border-radius: 14px; width: min(520px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18); }
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.confirm-text { line-height: 1.8; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; top: 72px; transform: translate(-50%, -10px); background: #1d2a26; color: #fff; padding: 9px 18px; border-radius: 8px; z-index: 200; opacity: 0; transition: 0.25s; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* ---------- Answer marks shared by practice / result / review ---------- */
.mark-ok { color: var(--ok); font-weight: 600; }
.mark-bad { color: var(--danger); font-weight: 600; }
.passage p { margin: 0 0 14px; line-height: 1.85; font-size: 15px; }
.passage { font-family: Georgia, "Times New Roman", serif; }

/* ---------- components.js ---------- */
.cx-explain { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 860px) { .cx-explain { grid-template-columns: 1fr; } }
.cx-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cx-right { display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--line); padding-left: 20px; min-width: 0; }
@media (max-width: 860px) { .cx-right { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; } }
.cx-tabs { align-self: flex-start; }
.cx-pane { display: flex; flex-direction: column; gap: 10px; }
.cx-pane[hidden], .cx-manage[hidden], .cx-source[hidden] { display: none; }
.cx-label { color: var(--muted); font-size: 12px; margin-right: 10px; }
.cx-stem { font-size: 15px; line-height: 1.75; }
.cx-opts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cx-opt { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.cx-opt b { margin-right: 4px; }
.cx-opt.ok, .cx-bank-word.ok { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-600); }
.cx-opt.bad, .cx-bank-word.bad { border-color: #f6cdc8; background: var(--danger-50); color: var(--danger); }
.cx-bank { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cx-bank-word { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 13px; }
.cx-bank-word b { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; color: var(--muted); margin-right: 2px; }
.cx-bank-word.ok b, .cx-bank-word.bad b { color: inherit; }
.cx-blank { display: inline-block; padding: 0 6px; border-bottom: 2px solid var(--brand); background: var(--brand-50); color: var(--brand-600); font-weight: 600; border-radius: 3px 3px 0 0; }
.cx-blank-other { color: var(--muted); }
.cx-answers { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 12px 14px; background: #fafcfb; border: 1px solid var(--line); border-radius: 10px; }
.cx-block-title { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.cx-evidence { padding: 10px 14px; border: 1px solid var(--brand-100); background: var(--brand-50); border-radius: 8px; line-height: 1.8; font-size: 14px; }
.cx-hl { background: #fff1c2; color: inherit; padding: 1px 2px; border-radius: 3px; }
.cx-speaker, .cx-para-label { display: inline-block; min-width: 22px; margin-right: 8px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 12px; font-weight: 600; color: var(--brand-600); }
.cx-explain-text { line-height: 1.8; }
.cx-source { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; max-height: 340px; overflow: auto; }
.cx-source-title { font-size: 15px; margin-bottom: 10px; }
.cx-source-tools { margin-bottom: 10px; }
.cx-script p { margin: 0 0 8px; line-height: 1.75; padding: 2px 6px; border-radius: 6px; transition: background 0.15s; }
.cx-script p.cx-playing { background: var(--brand-50); }
.cx-notes { min-height: 160px; }
.cx-manage { padding: 10px; border: 1px dashed var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 8px; }
.cx-manage-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-manage .input { flex: 1; min-width: 0; }
.cx-x { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 0 0 2px; font-size: 11px; }
.cx-x:hover { color: var(--danger); }
.cx-ai-log { padding: 24px 12px; text-align: center; border: 1px dashed var(--line); border-radius: 8px; }
.cx-ai-input .input { flex: 1; min-width: 0; }

.cx-lookup { display: flex; flex-direction: column; gap: 14px; }
.cx-lookup-bar .input { flex: 1; min-width: 0; }
.cx-entry { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.cx-entry-word { font-size: 22px; }
.cx-entry-ex { color: var(--muted); font-style: italic; line-height: 1.7; }
.cx-entry .cx-manual-zh { width: 100%; }

.cx-pager-tools .select { height: 30px; padding: 0 8px; }
.cx-jump { width: 64px; height: 30px; padding: 0 8px; }
.cx-ellipsis { padding: 0 4px; color: var(--muted); }
.pager .pages button:disabled { opacity: 0.4; cursor: not-allowed; }

.cx-chart { display: block; overflow: visible; }
.cx-chart .cx-grid { stroke: var(--line); stroke-width: 1; }
.cx-chart .cx-axis { fill: var(--muted); font-size: 11px; }
.cx-chart .cx-area { fill: var(--brand-50); opacity: 0.8; }
.cx-chart .cx-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cx-chart .cx-dot { fill: #fff; stroke: var(--brand); stroke-width: 2.5; }
.cx-chart .cx-val { fill: var(--brand-600); font-size: 11px; font-weight: 600; }
.cx-chart-empty { padding: 32px 0; text-align: center; }

.cx-subj-listening { background: #eaf1fc; color: #2f6fd6; border-color: #d3e1f8; }
.cx-subj-reading { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand-100); }
.cx-subj-translation { background: #f3edfb; color: #7a4fc4; border-color: #e3d7f5; }
.cx-subj-writing { background: var(--warn-50); color: #9a5f05; border-color: #f4dfb8; }
.cx-subj-review { background: var(--danger-50); color: var(--danger); border-color: #f6cdc8; }

/* ===== components.js · 题目解析弹窗 v2 (.cx-ex-*) — owned by components.js ===== */
.modal.cx-ex-modal { width: min(960px, 100%); }
.cx-ex-modal .modal-head { align-items: flex-start; padding: 18px 22px 14px; border-bottom: 0; }
.cx-ex-modal .modal-head h3 { font-size: 18px; }
.cx-ex-modal .modal-body { padding: 0; }
.cx-ex-titlebox { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cx-ex-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 12px; color: var(--muted); }
.cx-ex-sub b { font-weight: 500; color: var(--text); }
.cx-ex-unit { color: var(--muted); }
.cx-ex-status { font-weight: 600; }
.cx-ex-status.bad { color: var(--danger); }
.cx-ex-status.ok { color: var(--ok); }
.cx-ex-status.none { color: var(--warn); }

.cx-ex-tabs { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 24px; padding: 0 22px; background: #fff; border-bottom: 1px solid var(--line); }
.cx-ex-tabs [data-tab] { border: 0; background: none; padding: 10px 0; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cx-ex-tabs [data-tab].active { color: var(--text); font-weight: 600; border-bottom-color: var(--brand); }
.cx-ex-tabs .spacer { flex: 1; }

.cx-ex-cols { display: grid; grid-template-columns: minmax(0, 1fr) 248px; min-height: min(520px, calc(100vh - 180px)); }
.cx-ex-main { padding: 18px 22px 22px; min-width: 0; }
.cx-ex-pane { display: flex; flex-direction: column; gap: 14px; }
.cx-ex-pane[hidden], .cx-ex-newtag[hidden] { display: none; }
.cx-ex-side { padding: 18px 18px 22px; border-left: 1px solid var(--line); background: #fbfcfc; display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.cx-ex-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cx-ex-side-title { font-size: 13px; font-weight: 600; }
.cx-ex-notes { min-height: 110px; resize: vertical; font-size: 13px; }
.cx-ex-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cx-ex-tag { position: relative; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 8px; font-size: 12px; color: var(--text); cursor: pointer; text-align: center; line-height: 1.35; transition: border-color 0.15s, background 0.15s; }
.cx-ex-tag:hover { border-color: var(--brand-100); }
.cx-ex-tag.active { border-color: var(--brand); background: var(--brand-50); color: var(--brand-600); font-weight: 500; }
.cx-ex-tag-x { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 14px; display: none; }
.cx-ex-tag:hover .cx-ex-tag-x { display: block; }
.cx-ex-tag-x:hover { color: var(--danger); border-color: var(--danger); }
.cx-ex-newtag .input { flex: 1; min-width: 0; height: 30px; font-size: 12px; }

.cx-ex-q { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.cx-ex-q .cx-stem { margin: 0; }
.cx-ex-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cx-ex-card-head h4 { font-size: 15px; }
.cx-ex-locate { color: var(--brand-600); border-color: var(--brand-100); }
.cx-ex-context { padding: 14px 18px; background: #f6f8f7; border: 1px solid var(--line); border-radius: 10px; }
.cx-ex-plabel { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.cx-ex-ptext { font-size: 15px; line-height: 1.8; color: #34413d; }
.cx-ex-ptext p { margin: 0 0 4px; }
.cx-ex-ev { font-weight: 700; color: var(--text); background: linear-gradient(transparent 12%, #dff1e8 12%, #dff1e8 92%, transparent 92%); padding: 0 1px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cx-ex-ev .cx-blank { font-weight: 700; }
.cx-ex-zh { margin: 8px 0 0; font-size: 13px; line-height: 1.75; color: var(--muted); }

.cx-ex-table { margin: 0; border-top: 1px solid var(--line); }
.cx-ex-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.7; }
.cx-ex-row dt { color: var(--muted); }
.cx-ex-row dd { margin: 0; min-width: 0; }
.cx-ex-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-ex-kw { padding: 0 8px; border-radius: 4px; background: var(--brand-50); color: var(--brand-600); font-size: 13px; }
.cx-ex-para { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 14px; }
.cx-ex-arrow { color: var(--brand); font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.cx-ex-word { font-size: 15px; font-weight: 600; }
.cx-ex-explain { margin: 0; line-height: 1.85; font-size: 14px; }
.cx-ex-explain:empty { display: none; }
.cx-ex-more .cx-source { margin-top: 10px; }

.cx-ex-ai-note { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cx-ex-ai-note b { margin-right: 6px; }
.cx-ex-ai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-ex-ai-chips .chip { border-radius: 999px; border-color: var(--brand-100); color: var(--brand-600); }
.cx-ex-ai-log { display: flex; flex-direction: column; gap: 10px; min-height: 180px; max-height: 360px; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; }
.cx-ex-ai-empty { margin: auto; }
.cx-ex-ai-q { align-self: flex-end; max-width: 80%; padding: 7px 12px; border-radius: 12px 12px 2px 12px; background: var(--brand); color: #fff; font-size: 13px; }
.cx-ex-ai-a { align-self: flex-start; max-width: 92%; padding: 10px 14px; border-radius: 12px 12px 12px 2px; background: #fff; border: 1px solid var(--line); font-size: 13px; line-height: 1.75; }
.cx-ex-ai-a p { margin: 0 0 4px; }
.cx-ex-ai-a p:last-child { margin: 0; }
.cx-ex-ai-input .input { flex: 1; min-width: 0; }

@media (max-width: 760px) {
  .cx-ex-cols { grid-template-columns: 1fr; }
  .cx-ex-side { border-left: 0; border-top: 1px solid var(--line); }
  .cx-ex-row { grid-template-columns: 64px minmax(0, 1fr); }
}
/* ===== end .cx-ex-* ===== */
