/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* 主色调 - 深邃科学蓝 */
  --ink: #1a2332;
  --ink-light: #5a6a7e;
  --paper: #f4f7fa;
  --card: #ffffff;

  /* 强调色 - 化学试剂感 */
  --accent: #0066cc;
  --accent-dark: #004999;
  --accent-light: #e6f0ff;

  /* 功能色 */
  --red: #dc3545;
  --red-dark: #bd2130;
  --red-light: #f8d7da;

  --green: #28a745;
  --green-light: #d4edda;

  --blue: #007bff;
  --blue-dark: #0056b3;
  --blue-light: #cce5ff;

  --gold: #fd7e14;
  --gold-light: #ffe5cc;

  --purple: #6f42c1;

  /* 圆角与阴影 */
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(0,51,102,0.08);
  --shadow-md: 0 6px 18px rgba(0,51,102,0.12);
  --shadow-lg: 0 10px 28px rgba(0,51,102,0.16);

  /* 科学装饰元素（SVG data-uri） */
  --molecule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Ccircle cx='30' cy='40' r='10' fill='%230066cc' fill-opacity='0.15'/%3E%3Ccircle cx='60' cy='25' r='8' fill='%2328a745' fill-opacity='0.15'/%3E%3Ccircle cx='60' cy='55' r='8' fill='%23dc3545' fill-opacity='0.15'/%3E%3Ccircle cx='90' cy='40' r='10' fill='%230066cc' fill-opacity='0.15'/%3E%3Cline x1='38' y1='35' x2='54' y2='29' stroke='%235a6a7e' stroke-width='2' stroke-opacity='0.3'/%3E%3Cline x1='38' y1='45' x2='54' y2='51' stroke='%235a6a7e' stroke-width='2' stroke-opacity='0.3'/%3E%3Cline x1='68' y1='25' x2='82' y2='36' stroke='%235a6a7e' stroke-width='2' stroke-opacity='0.3'/%3E%3Cline x1='68' y1='55' x2='82' y2='44' stroke='%235a6a7e' stroke-width='2' stroke-opacity='0.3'/%3E%3C/svg%3E");
  --flask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 56'%3E%3Cpath d='M16 4v24L4 50c-2 3.5 0 6 4 6h32c4 0 6-2.5 4-6L32 28V4' fill='none' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.2'/%3E%3Ccircle cx='24' cy='46' r='6' fill='%2300cccc' fill-opacity='0.15'/%3E%3Cline x1='20' y1='4' x2='28' y2='4' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.2'/%3E%3C/svg%3E");
  --atom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='32' cy='32' rx='28' ry='10' fill='none' stroke='%230066cc' stroke-width='1.5' stroke-opacity='0.2' transform='rotate(0 32 32)'/%3E%3Cellipse cx='32' cy='32' rx='28' ry='10' fill='none' stroke='%2328a745' stroke-width='1.5' stroke-opacity='0.2' transform='rotate(60 32 32)'/%3E%3Cellipse cx='32' cy='32' rx='28' ry='10' fill='none' stroke='%23dc3545' stroke-width='1.5' stroke-opacity='0.2' transform='rotate(120 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5' fill='%230066cc' fill-opacity='0.2'/%3E%3C/svg%3E");
}

html { font-size: 16px; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(0,102,204,0.04), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(40,167,69,0.03), transparent 46%),
    var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 顶栏 ===== */
.topbar {
  background:
    var(--flask) right 8px top 10px / 52px auto no-repeat,
    linear-gradient(135deg, #0d1b2a 0%, #1a2332 40%, #0066cc 130%);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem 1.7rem;
  position: relative;
}
.topbar::before {
  content: ""; position: absolute; left: 14px; top: 7px;
  width: 34px; height: 34px; background: var(--atom) center/contain no-repeat;
  z-index: 2; pointer-events: none;
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--green) 0%, var(--accent) 48%, var(--purple) 100%);
  opacity: 0.85;
}
.back-home {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--accent); text-decoration: none; font-size: 0.9rem;
  padding: 0.35rem 0.8rem; border: 1px solid var(--accent); border-radius: 8px;
  background: #fff; cursor: pointer;
}
.back-home:hover { background: var(--accent-light); }
.topbar .back-home {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  color: #fff; background: transparent; border-color: rgba(255,255,255,0.4); opacity: 0.9;
  z-index: 3;
}
.topbar .back-home:hover { opacity: 1; background: rgba(255,255,255,0.12); }
.topbar-title { font-size: 1.85rem; letter-spacing: 0.18em; font-weight: 600; animation: chem-float 4s ease-in-out infinite; }
.topbar-sub { margin-top: 0.5rem; font-size: 0.92rem; opacity: 0.85; letter-spacing: 0.1em; }

.container { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 1.4rem 1.8rem 2.8rem; }

.footer {
  text-align: center; font-size: 0.78rem; color: var(--ink-light);
  padding: 1rem; border-top: 1px solid #dde5ed;
}
.footer-note { max-width: 720px; margin: 0 auto 0.5rem; line-height: 1.6; }

/* 轻微漂浮动效 - 分子旋转感 */
@keyframes chem-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* 卡片轻投影，增强层次 */
.module-card, .work-card, .question-card, .result-card, .help-sec,
.recall-card, .summary-box, .stage-card, .wn-card, .docs-content, .docs-sidebar {
  box-shadow: var(--shadow-sm);
}
.module-card:hover, .work-card:hover { box-shadow: var(--shadow-md); }

/* 科学风格分隔（标题下的蓝→绿渐变笔刷） */
.help-title::after, .recall-title::after, .graph-title::after,
.path-title::after, .works-title::after, .result-title::after,
.topbar-title::after {
  content: ""; display: block; width: 52px; height: 6px; margin-top: 0.4rem;
  border-radius: 6px 7px 5px 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--green) 100%);
}
.topbar-title::after { margin: 0.4rem auto 0; }

/* ===== 使用帮助页 ===== */
.topbar-help { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); color: #fff; text-decoration: none; font-size: 0.82rem; opacity: 0.92; padding: 0.28rem 0.7rem; border: 1px solid rgba(255,255,255,0.45); border-radius: 20px; z-index: 3; }
.topbar-help:hover { background: rgba(255,255,255,0.15); opacity: 1; }

.help-wrap { max-width: 1180px; margin: 0 auto; padding: 1.2rem 0.6rem 2.8rem; }
.help-title { font-size: 1.7rem; margin: 0.5rem 0 0.3rem; }
.help-intro { color: var(--ink-light); font-size: 1rem; line-height: 1.7; margin: 0 0 1.3rem; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.2rem; align-items: start; }
.help-sec { background: var(--card); border: 1px solid #d8e3ef; border-radius: var(--radius); padding: 1.15rem 1.3rem; }
.help-sec-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.help-num { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 6px; background: var(--accent); color: #fff; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.45); animation: chem-float 3.5s ease-in-out infinite; }
.help-icon { font-size: 1.3rem; }
.help-sec-title { font-size: 1.05rem; font-weight: 700; color: var(--accent-dark); line-height: 1.3; }
.help-sec-body p { font-size: 0.95rem; line-height: 1.65; margin: 0.35rem 0; }
.help-sec-body .help-steps { padding-left: 1.2rem; margin: 0.4rem 0; }
.help-sec-body .help-steps li { font-size: 0.92rem; line-height: 1.75; margin: 0.25rem 0; }
.help-chip { display: inline-block; background: #e6f0ff; color: var(--accent-dark); border-radius: 8px; padding: 0.05rem 0.5rem; font-size: 0.82rem; margin: 0 0.1rem; }
.help-tip { grid-column: 1 / -1; background: var(--gold-light); border-color: #f0cba8; }
.help-tip .help-sec-title { color: #b56b08; }

/* ===== 首页模式卡 ===== */
.view-home { position: relative; overflow: hidden; }
.view-home::before {
  content: ""; position: absolute; right: -12px; top: -8px;
  width: 168px; height: 96px; background: var(--molecule) center/contain no-repeat;
  opacity: 0.8; transform: rotate(8deg); pointer-events: none; z-index: -1;
  animation: chem-float 6s ease-in-out infinite;
}
.home-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; margin-bottom: 2rem; }
.mode-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem;
  padding: 1.4rem 1.5rem; border: none; border-radius: var(--radius); min-height: 96px;
  cursor: pointer; text-align: left; color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.mode-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mode-random { background: linear-gradient(135deg, #0066cc, #004999); }
.mode-wrong { background: linear-gradient(135deg, #dc3545, #bd2130); }
.mode-docs { background: linear-gradient(135deg, #6f42c1, #5a32a3); }
.mode-name { font-size: 1.2rem; font-weight: 600; }
.mode-desc { font-size: 0.85rem; opacity: 0.9; }
.mode-works { background: linear-gradient(135deg, #007bff, #0056b3); }
.mode-recall { background: linear-gradient(135deg, #fd7e14, #e06c0a); }
.mode-graph { background: linear-gradient(135deg, #28a745, #1e7e34); }
.mode-path { background: linear-gradient(135deg, #17a2b8, #117a8b); }
.mode-solubility { background: linear-gradient(135deg, #e83e8c, #c0392b); text-decoration: none; }

/* ===== 新视图占位 / 通用 ===== */
.placeholder { padding: 2.5rem 1rem; text-align: center; color: var(--ink-light); font-size: 0.95rem; }
.collation-notice {
  background: #fff8e6; border: 1px solid #f0d9a8; border-left: 4px solid var(--gold);
  color: #7a5b16; padding: 0.6rem 0.9rem; border-radius: 8px; font-size: 0.82rem; margin-bottom: 1rem;
}

.section-title { font-size: 1.3rem; margin-bottom: 0.5rem; }
.section-tip { font-size: 0.88rem; color: var(--ink-light); margin-bottom: 1.3rem; }

/* ===== 模块网格 ===== */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.module-card {
  background: var(--card); border: 1px solid #d8e3ef; border-radius: var(--radius);
  padding: 1.15rem 1.3rem; cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s; min-height: 84px;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.module-card:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(0,102,204,0.12); }
.module-name { font-size: 1.1rem; font-weight: 600; }
.module-info { font-size: 0.85rem; color: var(--ink-light); }
.module-best { font-size: 0.75rem; color: var(--gold); }

/* ===== 答题页 ===== */
.quiz-head { margin-bottom: 0.9rem; }
.quiz-progress { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.quiz-module { font-size: 0.9rem; font-weight: 600; color: var(--accent-dark); }
.quiz-step { font-size: 0.85rem; color: var(--ink-light); }
.progress-bar { height: 6px; background: #d8e3ef; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); border-radius: 3px; transition: width 0.25s; }

.question-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid #d8e3ef; padding: 1.9rem 2.2rem 1.5rem;
  max-width: 1020px; margin: 0 auto;
}
.question-meta { display: flex; gap: 0.5rem; margin-bottom: 0.8rem; }
.tag {
  font-size: 0.72rem; padding: 0.15rem 0.6rem; border-radius: 999px; letter-spacing: 0.05em;
}
.tag-type { background: var(--accent-light); color: var(--accent-dark); }
.tag-source { background: #eef2f7; color: var(--ink-light); }

.question-stem { font-size: 1.2rem; line-height: 1.7; margin-bottom: 0.4rem; }
.question-context {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 1.1rem; line-height: 1.9;
  background: #f0f6fc; border-left: 4px solid var(--accent);
  padding: 0.7rem 1rem; margin: 0.7rem 0 0.4rem; border-radius: 0 8px 8px 0;
}
.question-context .hl { color: var(--red); font-weight: 700; border-bottom: 2px solid var(--red); padding-bottom: 1px; }

/* ===== 作答区 ===== */
.answer-area { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.55rem; }

.option-btn {
  display: block; width: 100%; text-align: left;
  padding: 0.75rem 1rem; font-size: 1rem; line-height: 1.55;
  background: #fbfcfe; border: 2px solid #d8e3ef; border-radius: 10px;
  cursor: pointer; transition: border-color 0.1s, background 0.1s;
  font-family: inherit;
}
.option-btn:hover:not(:disabled) { border-color: var(--accent); }
.option-btn:disabled { cursor: default; }
.option-btn .opt-key {
  display: inline-block; width: 1.5em; height: 1.5em; line-height: 1.5em;
  text-align: center; border-radius: 50%; background: #e2eaf3;
  font-size: 0.8em; margin-right: 0.6em; color: var(--ink-light);
}
.option-btn.selected { border-color: var(--accent); background: var(--accent-light); }
.option-btn.selected .opt-key { background: var(--accent); color: #fff; }
.option-btn.correct { border-color: var(--green); background: var(--green-light); }
.option-btn.correct .opt-key { background: var(--green); color: #fff; }
.option-btn.wrong { border-color: var(--red); background: var(--red-light); }
.option-btn.wrong .opt-key { background: var(--red); color: #fff; }

.judge-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.judge-btn {
  padding: 1rem; font-size: 1.15rem; border-radius: 10px; cursor: pointer;
  border: 2px solid #d8e3ef; background: #fbfcfe; transition: border-color 0.1s, background 0.1s;
  font-family: inherit;
}
.judge-btn:hover:not(:disabled) { border-color: var(--accent); }
.judge-btn.correct { border-color: var(--green); background: var(--green-light); }
.judge-btn.wrong { border-color: var(--red); background: var(--red-light); }

.blank-input {
  width: 100%; padding: 0.8rem 1rem; font-size: 1.1rem;
  border: 2px solid #d8e3ef; border-radius: 10px; background: #fbfcfe;
  font-family: inherit; outline: none;
}
.blank-input:focus { border-color: var(--accent); }
.blank-tip { font-size: 0.8rem; color: var(--ink-light); }

/* 匹配题 */
.match-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.match-col { display: flex; flex-direction: column; gap: 0.5rem; }
.match-item {
  padding: 0.65rem 0.8rem; border: 2px solid #d8e3ef; border-radius: 10px;
  background: #fbfcfe; cursor: pointer; font-size: 0.95rem; line-height: 1.5;
  transition: border-color 0.1s, background 0.1s; font-family: inherit; text-align: left;
}
.match-item:hover:not(:disabled) { border-color: var(--accent); }
.match-item.picked { border-color: var(--gold); background: #fff8ec; }
.match-item.done { border-color: var(--green); background: var(--green-light); cursor: default; }
.match-item.bad { border-color: var(--red); background: var(--red-light); }
.match-progress { font-size: 0.8rem; color: var(--ink-light); }

/* ===== 反馈 ===== */
.feedback { margin-top: 1rem; border-radius: 10px; padding: 0.85rem 1rem; }
.feedback.ok { background: var(--green-light); border: 1px solid #bfe3cd; }
.feedback.no { background: var(--red-light); border: 1px solid #f0c6c1; }
.feedback-result { font-weight: 700; margin-bottom: 0.3rem; }
.feedback.ok .feedback-result { color: var(--green); }
.feedback.no .feedback-result { color: var(--red); }
.feedback-explain { font-size: 0.92rem; line-height: 1.7; color: var(--ink); }

.quiz-actions { display: flex; gap: 0.6rem; margin-top: 1.1rem; flex-wrap: wrap; }

/* ===== 按钮 ===== */
.btn {
  padding: 0.65rem 1.4rem; font-size: 0.95rem; border-radius: 10px;
  border: none; cursor: pointer; font-family: inherit;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: #1a5276; color: #fff; }
.btn-secondary:hover { background: #154360; }
.btn-ghost { background: transparent; color: var(--ink-light); border: 1px solid #c5d3e3; box-shadow: none; }
.btn-ghost:hover { background: #eef2f7; }

/* ===== 结果页 ===== */
.result-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid #d8e3ef;
  padding: 1.6rem 1.4rem; text-align: center;
}
.result-title { font-size: 1.2rem; margin-bottom: 0.8rem; }
.result-score { font-size: 3rem; font-weight: 700; color: var(--accent-dark); margin: 0.5rem 0; }
.result-detail { font-size: 0.9rem; color: var(--ink-light); margin-bottom: 1rem; }
.result-wrong-list { text-align: left; margin: 1rem 0; }
.result-wrong-item {
  border: 1px solid #f0c6c1; background: #fdf6f5; border-radius: 8px;
  padding: 0.7rem 0.9rem; margin-bottom: 0.5rem; font-size: 0.88rem; line-height: 1.6;
}
.result-wrong-item .w-stem { font-weight: 600; }
.result-wrong-item .w-ans { color: var(--green); margin-top: 0.2rem; }
.result-wrong-item .w-your { color: var(--red); }
.result-actions { display: flex; gap: 0.6rem; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; }

/* ===== 错题本 ===== */
.wrongbook-list { margin-bottom: 1rem; }
.wrongbook-group { margin-bottom: 1.1rem; }
.wrongbook-group-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--accent-dark); }
.wrongbook-item {
  background: var(--card); border: 1px solid #d8e3ef; border-radius: 8px;
  padding: 0.7rem 0.9rem; margin-bottom: 0.45rem; font-size: 0.88rem; line-height: 1.6;
}
.wrongbook-item .w-stem { font-weight: 600; }
.wrongbook-item .w-ans { color: var(--green); }
.wrongbook-empty { color: var(--ink-light); text-align: center; padding: 2rem 0; }

/* ===== 参考学习库 ===== */
.docs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.4rem; }
.docs-sidebar {
  background: var(--card); border: 1px solid #d8e3ef; border-radius: var(--radius);
  padding: 1.1rem; height: fit-content; max-height: 82vh; overflow-y: auto;
  position: sticky; top: 1rem;
}
.docs-sidebar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.docs-sidebar-head .section-title { margin: 0; font-size: 1rem; }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }
.docs-search { margin-bottom: 0.8rem; }
.docs-search-input {
  width: 100%; padding: 0.55rem 0.8rem; font-size: 0.88rem;
  border: 2px solid #d8e3ef; border-radius: 8px; background: #fbfcfe;
  font-family: inherit; outline: none;
}
.docs-search-input:focus { border-color: var(--accent); }
.docs-search-info { font-size: 0.75rem; color: var(--ink-light); margin-top: 0.35rem; }
.docs-search-info .clear-search { color: var(--accent); cursor: pointer; text-decoration: underline; }
.docs-toc { font-size: 0.85rem; }
.toc-item { margin-bottom: 0.15rem; }
.toc-link {
  display: block; padding: 0.3rem 0.5rem; border-radius: 6px; cursor: pointer;
  color: var(--ink); text-decoration: none; line-height: 1.4;
}
.toc-link:hover { background: var(--accent-light); color: var(--accent-dark); }
.toc-link.active { background: var(--accent); color: #fff; }
.toc-children { margin-left: 0.9rem; border-left: 1px solid #d8e3ef; padding-left: 0.5rem; }
.toc-toggle {
  display: inline-block; width: 1.1em; cursor: pointer; color: var(--ink-light);
  font-size: 0.75em; user-select: none;
}
.docs-content {
  background: var(--card); border: 1px solid #d8e3ef; border-radius: var(--radius);
  padding: 1.6rem 2rem; min-height: 60vh;
}
.doc-heading { margin: 1.4rem 0 0.7rem; line-height: 1.4; }
.doc-heading:first-child { margin-top: 0; }
.doc-h1 { font-size: 1.5rem; border-bottom: 2px solid var(--accent); padding-bottom: 0.4rem; }
.doc-h2 { font-size: 1.25rem; color: var(--accent-dark); }
.doc-h3 { font-size: 1.1rem; }
.doc-h4, .doc-h5, .doc-h6 { font-size: 1rem; color: var(--ink-light); }
.doc-para { font-size: 0.98rem; line-height: 1.85; margin-bottom: 0.85rem; }
.doc-quote {
  border-left: 4px solid var(--accent); background: #f0f6fc;
  padding: 0.75rem 1.1rem; margin: 0.85rem 0; border-radius: 0 8px 8px 0;
  font-family: "SF Mono","Menlo","Consolas",monospace; font-size: 1.05rem; line-height: 1.85;
}
.doc-list { margin: 0.85rem 0 0.85rem 1.5rem; }
.doc-list li { font-size: 0.95rem; line-height: 1.85; margin-bottom: 0.35rem; }
.doc-table-wrap { overflow-x: auto; margin: 0.9rem 0; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.doc-table th, .doc-table td {
  border: 1px solid #d8e3ef; padding: 0.55rem 0.8rem; text-align: left; line-height: 1.65;
}
.doc-table th { background: var(--accent-light); color: var(--accent-dark); font-weight: 600; }
.doc-table tr:nth-child(even) { background: #fbfcfe; }
.doc-highlight { background: #fff3b0; padding: 0 1px; border-radius: 2px; }
.doc-block-hidden { display: none; }
.toc-link.search-hit { color: var(--accent); font-weight: 600; }
.toc-link.search-dim { color: #b0bcc8; }

/* ===== 知识块内容美化 ===== */
.doc-block {
  margin-bottom: 2rem;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, #fafcff 0%, #f5f9ff 100%);
  border: 1px solid #e8eef5;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}
.doc-block:hover { box-shadow: 0 4px 12px rgba(0, 102, 204, 0.08); }

/* 块内段落 */
.doc-block > p {
  font-size: 0.96rem; line-height: 1.85; color: var(--ink); margin-bottom: 0.75rem;
}
.doc-block > p:last-child { margin-bottom: 0; }

/* 强调文本 */
.doc-block strong {
  color: var(--accent-dark); font-weight: 700;
}

/* 无序列表 */
.doc-block > ul {
  list-style: none; padding-left: 0; margin: 0.7rem 0;
}
.doc-block > ul li {
  position: relative; padding: 0.35rem 0 0.35rem 1.6rem;
  font-size: 0.94rem; line-height: 1.7; color: var(--ink);
}
.doc-block > ul li::before {
  content: ''; position: absolute; left: 0.4rem; top: 0.85rem;
  width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
}

/* 有序列表 */
.doc-block > ol {
  padding-left: 1.5rem; margin: 0.7rem 0;
  counter-reset: doc-counter;
}
.doc-block > ol li {
  position: relative; padding: 0.35rem 0 0.35rem 0.5rem;
  font-size: 0.94rem; line-height: 1.7; color: var(--ink);
  counter-increment: doc-counter;
}
.doc-block > ol li::before {
  content: counter(doc-counter); position: absolute; left: -1.4rem;
  width: 1.5rem; height: 1.5rem; background: var(--accent); color: #fff;
  border-radius: 50%; font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; top: 0.4rem;
}

/* 表格美化 */
.doc-block > table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: 0.9rem 0; font-size: 0.9rem; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.doc-block > table thead th {
  background: linear-gradient(135deg, var(--accent) 0%, #0052a3 100%);
  color: #fff; font-weight: 600; padding: 0.7rem 1rem;
  text-align: left; font-size: 0.88rem; letter-spacing: 0.02em;
}
.doc-block > table tbody td {
  padding: 0.65rem 1rem; border-bottom: 1px solid #eef2f7;
  line-height: 1.6; color: var(--ink);
}
.doc-block > table tbody tr:last-child td { border-bottom: none; }
.doc-block > table tbody tr:nth-child(even) { background: #f8fbff; }
.doc-block > table tbody tr:hover { background: #eef4fc; }

/* 嵌套列表 */
.doc-block ul ul, .doc-block ol ol, .doc-block ul ol, .doc-block ol ul {
  margin: 0.3rem 0 0.3rem 1rem;
}

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; max-height: 45vh; }
}

@media (max-width: 560px) {
  .container { padding: 1rem 0.8rem 2rem; }
  .question-stem { font-size: 1.05rem; }
  .question-context { font-size: 1rem; }
  .result-score { font-size: 2.4rem; }
  .docs-content { padding: 1.1rem 1rem; }
  .topbar { padding: 2.6rem 0.7rem 1.2rem; }
  .topbar::before { display: none; }
  .topbar-title { font-size: 1.3rem; letter-spacing: 0.08em; }
  .topbar-sub { font-size: 0.8rem; }
  .topbar .back-home, .topbar .topbar-help { transform: none; top: 0.55rem; padding: 0.25rem 0.6rem; font-size: 0.78rem; }
  .topbar .back-home { left: 0.6rem; }
  .topbar .topbar-help { right: 0.6rem; }
  .question-card { padding: 1.2rem 1rem 1rem; }
  .option-btn { padding: 0.65rem 0.85rem; }
  .recall-stats { gap: 0.5rem; }
  .recall-stats .stat { min-width: 84px; padding: 0.6rem 0.4rem; }
  .path-col { flex: 0 0 168px; }
  .stage-card { padding: 0.5rem 0.55rem; }
  .graph-svg { max-width: 100%; }
  .word-cloud { padding: 0.3rem; gap: 0.4rem 0.6rem; }
  .home-modes, .module-grid, .works-grid, .help-grid { grid-template-columns: 1fr; }
  .help-grid { gap: 0.9rem; }
}

@media (max-width: 380px) {
  .topbar { padding: 2.4rem 0.5rem 1.1rem; }
  .topbar-title { font-size: 1.15rem; letter-spacing: 0.03em; }
  .back-home, .topbar-help { font-size: 0.72rem; padding: 0.22rem 0.5rem; }
  .question-card { padding: 1rem 0.85rem 0.9rem; }
}

/* ===== 知识点精读 ===== */
.works-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.works-title { font-size: 1.2rem; font-weight: 600; }
.works-toolbar { display: flex; gap: 0.6rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.works-select, .works-search {
  padding: 0.5rem 0.7rem; border: 1px solid #c5d3e3; border-radius: 8px; background: var(--card); font-size: 0.9rem; color: var(--ink);
}
.works-search { flex: 1; min-width: 160px; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.work-card {
  background: var(--card); border: 1px solid #d8e3ef; border-radius: var(--radius); padding: 1.1rem 1.2rem; cursor: pointer;
  display: flex; flex-direction: column; gap: 0.25rem; transition: border-color 0.12s, box-shadow 0.12s;
}
.work-card:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(0,51,102,0.08); }
.work-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }
.work-title { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.badge-colla { font-size: 0.66rem; background: var(--accent); color: #fff; border-radius: 4px; padding: 2px 7px; white-space: nowrap; letter-spacing: 0.04em; }
.work-meta { font-size: 0.8rem; color: var(--ink-light); }

.reader-top { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.reader-title { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.reader-sub { font-size: 0.82rem; color: var(--ink-light); }
.step-bar { display: flex; gap: 4px; overflow-x: auto; padding: 0.5rem 0; border-bottom: 1px solid #d8e3ef; margin-bottom: 0.9rem; }
.step-dot { display: flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.55rem; border-radius: 20px; background: #f0f4f8; color: var(--ink-light); cursor: pointer; white-space: nowrap; font-size: 0.82rem; }
.step-dot.active { background: var(--accent); color: #fff; }
.step-dot.done { background: var(--accent-light); color: var(--accent-dark); }
.step-idx { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0,0,0,0.12); font-size: 0.72rem; }
.step-dot.active .step-idx { background: rgba(255,255,255,0.3); }
.step-heading { font-size: 1.05rem; margin-bottom: 0.8rem; color: var(--accent-dark); }
.reader-body { min-height: 200px; }
.reader-nav { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 1.2rem; }

.ctx-box { background: var(--accent-light); border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 0.8rem; }
.ctx-line { font-size: 0.95rem; margin: 0.2rem 0; }
.ctx-tip { font-size: 0.85rem; color: var(--ink-light); margin: 0.5rem 0; }

.decode-block { padding: 0.7rem 0; border-bottom: 1px solid #e8eef5; }
.decode-text { font-size: 1.05rem; margin-bottom: 0.4rem; }
.decode-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.4rem; }
.tag { font-size: 0.75rem; padding: 1px 8px; border-radius: 10px; }
.tag-grammar { background: #e7e0f0; color: #4a3566; }
.decode-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.word-chip { position: relative; border: 1px solid #b8d4e8; background: #e6f0ff; color: var(--accent-dark); border-radius: 8px; padding: 0.3rem 0.6rem; cursor: pointer; font-size: 0.9rem; }
.word-chip .word-mean { display: none; position: absolute; left: 0; top: 110%; z-index: 5; background: #fff; border: 1px solid #d8e3ef; border-radius: 8px; padding: 0.4rem 0.6rem; white-space: nowrap; color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.word-chip.open .word-mean { display: block; }
.decode-none { font-size: 0.82rem; color: var(--ink-light); }

/* ===== 间隔复习 ===== */
.recall-wrap { max-width: 900px; margin: 0 auto; padding: 1rem 0.5rem 2rem; }
.recall-title { font-size: 1.5rem; margin: 0.5rem 0 0.2rem; }
.recall-sub { color: var(--ink-light); font-size: 0.9rem; margin: 0 0 1rem; line-height: 1.5; }
.recall-stats { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.recall-stats .stat { flex: 1; min-width: 90px; background: var(--card); border: 1px solid #d8e3ef; border-radius: 10px; padding: 0.7rem 0.5rem; text-align: center; }
.recall-stats .stat b { display: block; font-size: 1.6rem; color: var(--accent-dark); line-height: 1.1; }
.recall-stats .stat span { font-size: 0.78rem; color: var(--ink-light); }

.recall-due { background: var(--card); border: 1px solid #d8e3ef; border-radius: 10px; padding: 0.4rem 0.9rem; margin-bottom: 1rem; }
.recall-due-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px dashed #e8eef5; font-size: 0.92rem; }
.recall-due-item:last-child { border-bottom: none; }
.recall-due-kind { font-size: 0.7rem; background: #e6f0ff; color: var(--accent-dark); border-radius: 8px; padding: 1px 7px; }
.recall-due-label { flex: 1; }
.recall-overdue { font-size: 0.75rem; color: var(--red); }
.recall-due-now { font-size: 0.75rem; color: var(--accent-dark); }

.recall-empty { background: var(--accent-light); border-radius: 10px; padding: 1rem; color: var(--ink); line-height: 1.6; margin-bottom: 1rem; }

.recall-progress { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.recall-pos { font-size: 0.82rem; color: var(--ink-light); white-space: nowrap; }
.recall-progress .bar { flex: 1; height: 8px; background: #e2eaf3; border-radius: 6px; overflow: hidden; }
.recall-progress .fill { height: 100%; background: var(--accent); width: 0; transition: width .25s; }

.recall-card { background: var(--card); border: 1px solid #d8e3ef; border-radius: 12px; padding: 1.1rem 1.2rem; }
.recall-unit { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.recall-unit .badge { font-size: 0.72rem; border-radius: 4px; padding: 2px 8px; color: #fff; }
.badge-work { background: #8e44ad; }
.badge-word { background: #2980b9; }
.badge-sent { background: #16a085; }
.badge-read { background: #d35400; }
.badge-concept { background: #c0392b; }
.badge-node { background: #7f8c8d; }
.recall-label { font-weight: 600; font-size: 1.02rem; }
.recall-ctx { background: #f0f6fc; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 0.5rem 0.8rem; font-size: 0.95rem; color: var(--ink-light); margin-bottom: 0.6rem; }
.recall-stem { font-size: 1.08rem; line-height: 1.6; margin-bottom: 0.8rem; }

.recall-result-stats { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin: 0.8rem 0; }
.recall-result-stats span { font-size: 1.05rem; }
.recall-result-stats .r-ok { color: var(--green); font-weight: 700; }
.recall-result-stats .r-weak { color: var(--red); font-weight: 700; }
.recall-result-stats .r-total { color: var(--ink-light); }
.recall-streak { font-size: 1.05rem; margin: 0.5rem 0; }
.recall-tip { color: var(--ink-light); font-size: 0.9rem; line-height: 1.6; background: var(--accent-light); border-radius: 8px; padding: 0.7rem 0.9rem; }
.recall-wrap .btn { margin: 0.4rem 0.4rem 0 0; }
.btn-lg { padding: 0.7rem 1.4rem; font-size: 1rem; }

/* ===== 知识图谱可视化 ===== */
.graph-wrap { max-width: 980px; margin: 0 auto; padding: 1rem 0.5rem 2rem; }
.graph-title { font-size: 1.5rem; margin: 0.5rem 0 0.2rem; }
.graph-sub { color: var(--ink-light); font-size: 0.9rem; margin: 0 0 1rem; line-height: 1.5; }
.graph-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.graph-tab { background: var(--card); border: 1px solid #c5d3e3; border-radius: 20px; padding: 0.35rem 1rem; font-size: 0.88rem; cursor: pointer; color: var(--ink-light); }
.graph-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.graph-empty { background: var(--accent-light); border-radius: 10px; padding: 1rem; color: var(--ink); }

.word-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: baseline; justify-content: center; padding: 0.5rem; background: var(--card); border: 1px solid #d8e3ef; border-radius: 12px; }
.word-bubble { border: none; background: transparent; color: var(--accent-dark); cursor: pointer; line-height: 1.1; padding: 0.1rem 0.2rem; font-weight: 600; }
.word-bubble:hover { text-decoration: underline; }
.graph-hint { color: var(--ink-light); font-size: 0.82rem; margin: 0.6rem 0; }

.wn-card { background: var(--card); border: 1px solid #d8e3ef; border-radius: 12px; padding: 1rem 1.1rem; margin-top: 1rem; }
.wn-token { font-size: 1.3rem; font-weight: 700; color: var(--accent-dark); }
.wn-meta { color: var(--ink-light); font-size: 0.85rem; margin: 0.2rem 0 0.6rem; }
.wn-note { font-size: 0.9rem; color: var(--ink); margin: 0.3rem 0; }
.wn-mean-grp { border-top: 1px dashed #e8eef5; padding: 0.5rem 0; }
.wn-mean { font-weight: 600; color: #b5532a; margin-bottom: 0.3rem; }
.wn-ex { padding: 0.25rem 0 0.25rem 0.6rem; border-left: 2px solid #e2eaf3; margin-bottom: 0.3rem; }
.wn-ex-head { font-size: 0.78rem; color: var(--accent-dark); }
.wn-ex-sent { font-size: 0.95rem; }
.wn-rel { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }
.wn-rel-item { background: #e6f0ff; color: var(--accent-dark); border-radius: 8px; padding: 0.2rem 0.6rem; font-size: 0.82rem; cursor: pointer; }
.wn-rel-item.wn-sem-rel { padding-left: 0.5rem; font-style: italic; }

/* ===== 知识图谱节点高亮状态 ===== */
.word-cloud { position: relative; min-height: 120px; }
.word-bubble { transition: transform 0.2s ease, opacity 0.3s ease, background 0.2s ease, border 0.2s ease, box-shadow 0.2s ease; }
.word-bubble.selected { transform: scale(1.15); font-weight: 700; background: rgba(0, 102, 204, 0.1); border: 2px solid var(--accent, #0066cc); border-radius: 8px; padding: 0.15rem 0.4rem; box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25); z-index: 3; position: relative; text-decoration: none !important; }
.word-bubble.highlighted { transform: scale(1.08); font-weight: 600; background: rgba(40, 167, 69, 0.08); border: 2px solid #28a745; border-radius: 6px; padding: 0.12rem 0.35rem; z-index: 2; position: relative; text-decoration: none !important; }
.word-bubble.dimmed { opacity: 0.35; filter: grayscale(50%); }

/* SVG 连线层 */
.graph-links-svg { overflow: visible; }
.graph-link-line { transition: opacity 0.3s ease; }

.graph-select { width: 100%; max-width: 420px; padding: 0.5rem 0.7rem; border: 1px solid #c5d3e3; border-radius: 8px; font-size: 0.95rem; font-family: inherit; margin-bottom: 0.8rem; }
.graph-svg { width: 100%; max-width: 440px; display: block; margin: 0 auto; background: #f0f6fc; border: 1px solid #d8e3ef; border-radius: 12px; }

/* ===== 能力进阶闯关 ===== */
.path-wrap { max-width: 1200px; margin: 0 auto; padding: 1rem 0.5rem 2rem; }
.path-title { font-size: 1.5rem; margin: 0.5rem 0 0.2rem; }
.path-sub { color: var(--ink-light); font-size: 0.9rem; margin: 0 0 1rem; line-height: 1.5; }
.path-summary { display: flex; gap: 0.6rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.summary-box { background: var(--card); border: 1px solid #d8e3ef; border-radius: 10px; padding: 0.6rem 1rem; text-align: center; }
.summary-box b { display: block; font-size: 1.3rem; color: var(--accent-dark); }
.summary-box span { font-size: 0.78rem; color: var(--ink-light); }

.path-cols { display: flex; gap: 0.8rem; overflow-x: auto; padding-bottom: 0.5rem; }
.path-col { flex: 0 0 200px; background: #f0f6fc; border: 1px solid #d8e3ef; border-radius: 12px; padding: 0.6rem; }
.path-col-head { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--ink); display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.path-thread { background: var(--accent); color: #fff; border-radius: 6px; padding: 0 0.4rem; font-size: 0.8rem; }
.path-col-prog { margin-left: auto; font-size: 0.75rem; color: var(--ink-light); font-weight: 400; }

.stage-card { border: 1px solid #c5d3e3; border-radius: 10px; padding: 0.55rem 0.6rem; margin-bottom: 0.6rem; background: var(--card); }
.stage-card.open { border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,102,204,0.12); }
.stage-card.done { border-color: var(--green); background: #f3f8f5; }
.stage-card.locked { opacity: 0.6; background: #f5f7fa; }
.stage-head { font-size: 0.88rem; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; }
.stage-badge { font-size: 0.72rem; color: var(--green); font-weight: 700; }
.stage-lock { font-size: 0.78rem; }
.stage-hint { font-size: 0.74rem; color: var(--ink-light); margin-top: 0.2rem; }
.stage-reps { font-size: 0.74rem; color: var(--ink-light); margin: 0.35rem 0; line-height: 1.5; }
.stage-reps-label { color: #8a9bae; }
.rep-chip { display: inline-block; background: #e2eaf3; border-radius: 6px; padding: 0 0.35rem; margin: 0 0.15rem; }
.rep-chip.read { background: #d8efe2; color: #2c7a52; }
.stage-actions { display: flex; gap: 0.4rem; margin-top: 0.4rem; }

.stage-panel { max-width: 560px; }
.stage-panel-title { font-size: 1.2rem; font-weight: 700; color: var(--accent-dark); }
.stage-panel-goal, .stage-panel-reps { font-size: 0.85rem; color: var(--ink-light); margin: 0.3rem 0; }
.stage-quiz { margin: 0.6rem 0; }
.stage-tip { font-size: 0.85rem; color: var(--ink); background: var(--accent-light); border-radius: 8px; padding: 0.6rem 0.8rem; line-height: 1.5; }
.stage-close { margin-top: 0.6rem; }
.stage-quiz-result { font-size: 1.05rem; font-weight: 700; padding: 0.6rem; border-radius: 8px; margin: 0.5rem 0; }
.stage-quiz-result.pass { color: var(--green); background: #f3f8f5; }
.stage-quiz-result.fail { color: var(--red); background: #fdecea; }

/* 知识图谱高亮响应式 */
@media (max-width: 560px) {
  .word-bubble.selected { transform: scale(1.08); }
  .word-bubble.highlighted { transform: scale(1.05); }
}


/* ===== 动效降级（无障碍） ===== */
@media (prefers-reduced-motion: reduce) {
  .topbar-title, .help-num { animation: none !important; }
  .mode-card, .btn, .module-card, .work-card { transition: none !important; }
}

/* ===== 知识点精读 - 增强详情卡片样式 ===== */
.ctx-summary {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fc 100%);
  border: 1px solid #b8d4e8;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink);
}
.ctx-summary b { color: var(--accent-dark); }

.ctx-properties {
  background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
  border: 1px solid #f0d9a8;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink);
}
.ctx-properties b { color: #b56b08; }

.ctx-uses {
  background: linear-gradient(135deg, #f0fff4 0%, #e6f9ed 100%);
  border: 1px solid #b8e8c8;
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink);
}
.ctx-uses b { color: #1e7e34; }

.ctx-reactions {
  background: #fafbff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--purple);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}
.ctx-reactions b { color: var(--purple); font-size: 1rem; }
.ctx-rxn-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}
.ctx-rxn-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.8rem;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink);
  border-bottom: 1px dashed #e8eef5;
}
.ctx-rxn-list li:last-child { border-bottom: none; }
.ctx-rxn-list li::before {
  content: '⚗️';
  position: absolute;
  left: 0;
  top: 0.45rem;
  font-size: 0.85rem;
}

.ctx-warning {
  background: linear-gradient(135deg, #fff8e6 0%, #fffbf0 100%);
  border: 1px solid #f0d9a8;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}
.ctx-warning b { color: #b56b08; font-size: 1rem; }
.ctx-warn-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}
.ctx-warn-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.8rem;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink);
  border-bottom: 1px dashed #f0d9a8;
}
.ctx-warn-list li:last-child { border-bottom: none; }
.ctx-warn-list li::before {
  content: '⚠️';
  position: absolute;
  left: 0;
  top: 0.45rem;
  font-size: 0.85rem;
}

.ctx-depth {
  background: linear-gradient(135deg, #f5f0ff 0%, #ede6ff 100%);
  border: 1px solid #d4c4f0;
  border-left: 4px solid #8e44ad;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}
.ctx-depth b { color: #8e44ad; font-size: 1rem; }
.ctx-depth-content {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink);
}
.ctx-depth-content strong {
  color: #8e44ad;
  font-weight: 700;
}
