
:root {
  --bg: #f2f4f8;
  --card: #ffffff;
  --card-alt: #f8fafc;
  --primary: #00c853;       /* peixun 风格绿色 */
  --primary-d: #00b548;
  --primary-light: #e8f5e9;
  --ok: #e5453b;            /* 涨/正确(中国习惯红) */
  --err: #16a34a;           /* 跌/错误(绿) */
  --muted: #6c7a89;
  --line: #e6e9f0;
  --text: #1f2733;
  --text-light: #606f80;
  --nav-text: #333333;
  --nav-active: #00c853;
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --radius: 12px;
}
body.eye-care, body.eye-care .site-wrapper {
  --bg: #f2efd8;
  --card: #fbf8ec;
  --card-alt: #f3efe0;
  --primary: #5a7f4c;
  --primary-d: #46693a;
  --primary-light: #eef1e8;
  --ok: #b9534b;
  --err: #4a9a6a;
  --muted: #8c866d;
  --line: #e2dcc7;
  --text: #4a4539;
}
body.eye-care .analysis { background: var(--card-alt); color: var(--text); }
body.eye-care .case { background: #f4efe0; border-left-color: #c4a85a; }
body.eye-care .remind { background: #f7f1e1; border-color: #e2d4b3; }
body.eye-care .remind.ok { background: #e9f2e6; border-color: #c8e0c3; }
body.eye-care .enc-banner { background: linear-gradient(135deg, #e3e8d3, #f1f4e6) !important; }
body.eye-care .encourage { background: var(--card); }
body.eye-care .enc-body { background: var(--card); }
body.eye-care .fixed-bar, body.eye-care .exam-bottom { background: var(--card); }
body.eye-care .topbar { background: var(--primary); }
body.eye-care .opt { background: var(--card); }
body.eye-care .opt.sel { background: #e8efe4; border-color: var(--primary); }
body.eye-care .pager-btn { background: var(--card); }
body.eye-care .btn.ghost { background: #eef1e8; color: var(--primary); }
body.eye-care .pill { background: #eef1e8; color: var(--primary); }
body.eye-care .copyright-bar { background: #e9e6d9; color: var(--muted); }
body.eye-care .bottom-nav { background: var(--card); }
body.eye-care .eye-toggle { background: var(--primary); color: #fff; }
body.eye-care .card-icon svg { filter: none; }
body.eye-care .mode-grid .card:nth-child(even) { background: var(--card-alt); }
body.eye-care .mode-grid .card:hover { background: #fffef5; }
body.eye-care .main-header { background: transparent; }
body.eye-care .header-inner { background: var(--card); border-bottom-color: var(--line); }
body.eye-care .header-nav .nav-item { color: var(--text); }
body.eye-care .header-nav .nav-item.active { color: var(--primary); }

html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.6;
}

/* ===== 全站封套 ===== */
.site-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.main-content {
  width: 100%;
  margin: 0 auto;
  flex: 1;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ===== 顶部横幅 ===== */
.banner-top { display: block; max-width: var(--site-width, 1200px); margin: 0 auto; line-height: 0; background: #fff; }
.banner-top picture, .banner-top img { display: block; width: 100%; height: auto; }
.banner-bottom { max-width: var(--site-width, 1200px); margin: 0 auto; line-height: 0; background: #fff; }
.banner-bottom picture, .banner-bottom img { display: block; width: 100%; height: auto; border-top: 1px solid var(--line); }

/* ===== 主导航 ===== */
.main-header {
  background: transparent;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: none;
}
.header-inner {
  max-width: var(--site-width, 1200px);
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #e8eef2;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  overflow: hidden;
}
.header-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-logo-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav .nav-item,
.header-right .nav-item {
  display: inline-flex;
  align-items: center;
  height: 60px;
  padding: 0 14px;
  color: var(--nav-text);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color .2s;
}
.header-nav .nav-item:hover { color: var(--primary); }
.header-nav .nav-item.active { color: var(--primary); font-weight: 700; }
.header-nav .nav-item.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}
.nav-search {
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  color: var(--muted);
}
.header-right .nav-item {
  height: 36px;
  padding: 0 14px;
  line-height: 36px;
  color: var(--nav-text);
  font-size: 15px;
}
.header-right .nav-item:hover { color: var(--primary); }
.nav-register {
  background: var(--primary);
  color: #fff !important;
  border-radius: 18px;
  font-weight: 600;
}
.nav-register:hover { background: var(--primary-d); color: #fff !important; }

/* ===== 可装修首页 ===== */
.hero {
  background: linear-gradient(135deg, #e8f5e9 0%, #f0f9ff 100%);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  margin: 20px 0 24px;
}
.hero-title { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.hero-sub { font-size: 16px; color: var(--text-light); margin-bottom: 0; }
.hero-actions { display: flex; justify-content: center; gap: 14px; }
.hero-actions .btn { width: auto; padding: 12px 36px; margin-top: 0; }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.feature-card {
  background: var(--card);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.feature-ico { font-size: 36px; margin-bottom: 12px; }
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.feature-sub { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}
.modal-overlay.hidden { display: none !important; }
.modal-box {
  background: var(--card);
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  position: relative;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  user-select: none;
}
.modal-close:hover { color: var(--text); }
.login-card { background: transparent; box-shadow: none; border-radius: 0; padding: 0; }
.login-card h2 { color: var(--text); }
.login-card .input-wrap { position: relative; width: 100%; }
.login-card .input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  margin-bottom: 14px;
  background: var(--card);
  color: var(--text);
}
.login-card .input.has-eye { padding-right: 44px; }
.login-card .input::placeholder,
.login-card .input::-webkit-input-placeholder,
.login-card .input::-moz-placeholder,
.login-card .input:-ms-input-placeholder,
.login-card .input::-ms-input-placeholder {
  font-size: 10px;
  color: #9aa3ab;
  opacity: 1;
  white-space: nowrap;
  overflow: visible;
  letter-spacing: -0.5px;
}
.login-card .input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,200,83,.12); }
.login-card .eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}

/* ===== 倒计时 ===== */
.countdown { text-align: center; margin-top: 18px; padding: 14px 12px;
  background: linear-gradient(135deg, #0f1c3f, #1a2b5e);
  border-radius: 14px; box-shadow: 0 4px 14px rgba(15,28,63,.18); }
.cd-label { font-size: 14px; color: #cfe0ff; font-weight: 700; letter-spacing: .5px; margin-bottom: 8px; }
.cd-clock { display: flex; align-items: center; justify-content: center; gap: 3px; }
.cd-num {
  font-family: "Courier New", "Consolas", "DejaVu Sans Mono", monospace;
  font-weight: 800; font-size: 26px; line-height: 1.15;
  color: #7CFC9B; background: #060c1c; padding: 5px 7px; border-radius: 7px;
  min-width: 30px; text-align: center; display: inline-block;
  box-shadow: inset 0 0 7px rgba(0,0,0,.6), 0 0 6px rgba(124,252,155,.25);
  text-shadow: 0 0 6px rgba(124,252,155,.55);
  font-variant-numeric: tabular-nums; letter-spacing: 1px;
}
.cd-unit { font-size: 13px; color: #eaf1ff; font-weight: 700; margin: 0 5px 0 2px; }
.cd-num.tick { animation: cdTick .35s ease; }
@keyframes cdTick {
  0% { transform: translateY(-5px) scale(1.12); }
  60% { transform: translateY(0) scale(1); }
  100% { transform: translateY(0) scale(1); }
}
body.eye-care .countdown { background: linear-gradient(135deg, #2f3b22, #46592f); box-shadow: 0 4px 14px rgba(70,89,47,.2); }
body.eye-care .cd-label { color: #e8f0d8; }
body.eye-care .cd-num { color: #b6e6a0; background: #1c2410; text-shadow: 0 0 6px rgba(182,230,160,.5); box-shadow: inset 0 0 7px rgba(0,0,0,.5), 0 0 6px rgba(182,230,160,.22); }
body.eye-care .cd-unit { color: #f1f5e8; }

/* ===== 通用组件 ===== */
.app { display: none; }
.screen { padding: 16px 0 70px; flex: 1; display: none; }
.screen.active { display: block; }
.hidden { display: none !important; }
.card { background: var(--card); border-radius: 14px; padding: 16px;
  box-shadow: 0 2px 10px rgba(20,30,60,.05); margin-bottom: 12px; }
.btn { display: block; width: 100%; padding: 14px; border: none; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 600;
  cursor: pointer; margin-top: 10px; text-decoration: none; text-align: center;
  box-sizing: border-box; transition: background .2s, transform .1s; }
.btn:active { background: var(--primary-d); transform: translateY(1px); }
.btn.ghost { background: var(--primary-light); color: var(--primary); }
.btn.danger { background: #fdeceb; color: var(--ok); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.sm { padding: 10px 16px; margin-top: 0; }
.input { width: 100%; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 12px; font-size: 16px; margin-bottom: 12px; background: var(--card); color: var(--text);
  box-sizing: border-box; }
label { font-size: 14px; color: var(--muted); display: block; margin: 4px 2px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab { flex: 1; text-align: center; padding: 11px; border-radius: 10px;
  background: var(--card); color: var(--muted); cursor: pointer; border: 1px solid var(--line); }
.tab.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.list-item { padding: 15px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-item:last-child { border-bottom: none; }
.list-item .t { font-weight: 600; font-size: 17px; }
.list-item .s { font-size: 14px; color: var(--muted); margin-top: 3px; }
.q { margin-bottom: 18px; }
.q .stem { font-weight: 600; margin-bottom: 10px; font-size: 18px; line-height: 1.7; }
.q .meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; background: var(--card);
  font-size: 16px; transition: background .2s, border-color .2s; }
.opt.sel { border-color: var(--primary); background: var(--primary-light); }
.opt.correct { border-color: var(--ok); background: #fdeceb; }
.opt.wrong { border-color: var(--err); background: #ecfdf0; }
.opt .k { font-weight: 700; min-width: 22px; }
.case { background: #fff7ed; border-left: 5px solid #f59e0b; padding: 18px 18px;
  border-radius: 10px; margin-bottom: 16px; font-size: 17.5px; }
.reveal { font-size: 15px; color: var(--primary); cursor: pointer; margin: 8px 0 14px; display: inline-block; font-weight: 600; }
.reveal:hover { text-decoration: underline; }
.case-title { font-weight: 800; color: #1a4db3; font-size: 20px; margin-bottom: 12px; }
.case-mat { font-size: 17.5px; line-height: 1.85; color: var(--text); }
.case-mat, .case-mat p, .case-mat span, .case-mat div, .case-mat li { font-size: 17.5px !important; line-height: 1.85 !important; }
.case-mat p { margin: 0 0 10px; }
.case-mat img.qimg, .stem img.qimg, .opt img.qimg { max-width: 100%; height: auto;
  display: block; margin: 8px 0; border-radius: 6px; }
.qtbl { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 15px; }
.qtbl td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.mathtext { font-style: italic; color: #444; }
.case-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px,
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.qmark { color: #1a4db3; font-weight: 700; margin-left: 2px; }
.mat-foot { margin-top: 16px; }
.analysis { background: var(--card-alt); border-radius: 10px; padding: 16px; margin-top: 10px;
  font-size: 17px; color: var(--text); white-space: pre-wrap; line-height: 1.8; }
.analysis, .analysis p, .analysis span, .analysis div, .analysis li, .analysis td, .analysis th,
.analysis .ans { font-size: 17px !important; line-height: 1.8 !important; }
.analysis .ans { color: var(--ok); font-weight: 700; }
@media (max-width: 768px) {
  .analysis { font-size: 16px; line-height: 1.75; padding: 14px; }
  .analysis, .analysis p, .analysis span, .analysis div, .analysis li, .analysis td, .analysis th,
  .analysis .ans { font-size: 16px !important; line-height: 1.75 !important; }
}
.score-big { font-size: 52px; font-weight: 800; color: var(--primary); text-align: center; }
.sub { color: var(--muted); text-align: center; margin-bottom: 6px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 13px;
  background: var(--primary-light); color: var(--primary); margin-right: 6px; }
.center { text-align: center; padding-top: 30px; }
.muted { color: var(--muted); }
.row { display: flex; justify-content: space-between; align-items: center; }
.tag-correct { color: var(--ok); font-weight: 700; }
.tag-wrong { color: var(--err); font-weight: 700; }
.fixed-bar { position: sticky; bottom: 0; background: var(--card); padding: 12px 16px;
  border-top: 1px solid var(--line); }

/* ===== 顶部栏（内页） ===== */
.topbar { background: var(--primary); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 18px; margin: 0; font-weight: 600; }
.topbar .act { color: #fff; font-size: 15px; opacity: .9; cursor: pointer; }
.topbar-title { display: flex; flex-direction: column; line-height: 1.35; }
.topbar-line1 { font-size: 18px; font-weight: 600; }
.topbar-line2 { font-size: 15px; font-weight: 500; opacity: .92; }
.bank-level-switch {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: rgba(255,255,255,.20);
  padding: 2px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.bank-level-switch:hover { background: rgba(255,255,255,.30); }

/* ===== 模式选择 ===== */
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.mode-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.mode-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.10); }
.mode-grid .mode-card:nth-child(even) { background: var(--card-alt); }
.mode-grid .mode-card:nth-child(even):hover { background: #fff; }
body.eye-care .mode-grid .mode-card:nth-child(even):hover { background: var(--card); }
.card-icon { flex: 0 0 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 40px; height: 40px; transition: transform .2s ease; }
.mode-card:hover .card-icon svg { transform: rotate(-6deg) scale(1.1); }
.card-body { flex: 1; }
.card-title { font-size: 19px; font-weight: 700; color: var(--text); }
.card-sub { margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ===== 结果页 ===== */
.encourage { border-radius: 16px; overflow: hidden; margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(20,30,60,.10); background: var(--card); }
.enc-banner { height: 130px; background: linear-gradient(135deg, #cfe0ff, #eaf2ff);
  background-size: cover; background-position: center; position: relative; }
.enc-badge { position: absolute; right: 12px; top: 12px; background: var(--primary);
  color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.enc-body { padding: 16px; }
.enc-title { font-size: 20px; font-weight: 800; color: var(--primary); }
.enc-score { font-size: 44px; font-weight: 800; color: var(--text); margin: 6px 0 2px; }
.enc-score span { font-size: 16px; color: var(--muted); font-weight: 600; }
.enc-target { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.enc-bar { position: relative; height: 12px; border-radius: 8px; background: #eef0f5; overflow: visible; }
.enc-bar-fill { height: 100%; border-radius: 8px; transition: width .6s ease; background: var(--primary); }
.enc-bar-target { position: absolute; top: -4px; width: 2px; height: 20px; background: #e8a33d; }
.enc-sub { font-size: 15px; color: #556; margin-top: 12px; line-height: 1.6; }
.remind { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px;
  padding: 14px; margin-bottom: 14px; }
.remind.ok { background: #ecfdf0; border-color: #bbf7d0; color: #16a34a; font-weight: 600; }
.remind-head { font-weight: 700; color: #c2410c; margin-bottom: 8px; font-size: 16px; }
.remind-item { background: var(--card); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.remind-ch { font-weight: 700; color: #9a3412; margin-bottom: 6px; }
.remind-cnt { font-weight: 400; font-size: 13px; color: #ea580c; background: #ffedd5;
  padding: 1px 8px; border-radius: 12px; margin-left: 6px; }
.remind-msg { font-size: 15px; color: #444; line-height: 1.7; }
.remind-msg a { color: var(--primary); }
#progress-chart { background: var(--card); border-radius: 10px; }

/* ===== 进步曲线多图表 ===== */
.chart-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.chart-col { min-width: 0; }
.chart-svg { display: block; margin: 0 auto; overflow: visible; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-top: 10px; font-size: 12px; color: #64748b; }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-text { white-space: nowrap; }
.chart-tip {
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  border-radius: 12px; padding: 14px 16px; text-align: center;
  font-size: 15px; font-weight: 600; color: #065f46;
  margin-top: 12px; line-height: 1.6;
}

/* 进度加载动画 */
.pie-slice { transform-origin: center; transform: scale(0) rotate(-12deg); opacity: 0; animation: pieSliceIn .55s cubic-bezier(.2, .9, .3, 1.35) forwards; }
@keyframes pieSliceIn { to { transform: scale(1) rotate(0); opacity: 1; } }
.bar-rect { transform-origin: bottom; transform: scaleY(0); animation: barGrow .55s ease forwards; }
@keyframes barGrow { to { transform: scaleY(1); } }
.chart-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: lineDraw 1.2s ease forwards; }
@keyframes lineDraw { to { stroke-dashoffset: 0; } }
.chart-dot { opacity: 0; animation: dotIn .3s ease forwards; }
@keyframes dotIn { to { opacity: 1; } }
.ring-hole, .ring-text { opacity: 0; animation: fadeIn .4s ease .6s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

body.eye-care .chart-tip { background: linear-gradient(135deg, #e9f2e6, #eef1e8); color: #3d5035; }
body.eye-care .chart-legend { color: var(--muted); }

@media (max-width: 768px) {
  .chart-row { grid-template-columns: 1fr; }
  .chart-title { font-size: 15px; }
  .chart-tip { font-size: 14px; }
}
.hist { display: flex; flex-direction: column; gap: 8px; }
.hist-item { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.hist-item .t { font-weight: 600; font-size: 16px; }
.hist-item .s { font-size: 13px; color: var(--muted); margin-top: 3px; }
.hist-score { font-size: 22px; font-weight: 800; color: var(--primary); }
.hist-score span { font-size: 13px; color: var(--muted); font-weight: 600; }
.hist-score.ok { color: var(--ok); }

/* ===== 情绪价值：庆祝 / 欢迎 / 鼓励 ===== */
.celebrate-overlay {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; transition: opacity .35s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.celebrate-overlay.show { opacity: 1; }
.celebrate-box {
  background: var(--card); border-radius: 20px;
  width: 100%; max-width: 380px; padding: 30px 26px 26px;
  text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  transform: translateY(14px) scale(.96);
  transition: transform .38s cubic-bezier(.2, .9, .3, 1.35);
}
.celebrate-overlay.show .celebrate-box { transform: translateY(0) scale(1); }
.celebrate-icon {
  font-size: 62px; line-height: 1; margin-bottom: 14px;
  animation: celPop .5s ease both;
}
.celebrate-icon.clap { animation: celClap 1s ease-in-out infinite; }
@keyframes celPop {
  0% { transform: scale(.3); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes celClap {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.12) rotate(-8deg); }
  50% { transform: scale(1.18) rotate(8deg); }
  75% { transform: scale(1.12) rotate(-8deg); }
}
.celebrate-title {
  font-size: 22px; font-weight: 800; color: var(--primary);
  margin-bottom: 10px;
}
.celebrate-text {
  font-size: 15.5px; line-height: 1.78; color: var(--text);
}
.celebrate-btn { margin-top: 20px; }
body.eye-care .celebrate-title { color: var(--primary); }
body.eye-care .celebrate-box { background: var(--card); }

/* ===== 做题页 ===== */
.exam-screen { padding: 0; display: flex; flex-direction: column; }
.exam-screen .topbar { position: sticky; top: 0; }
.exam-paper { font-size: 16px; font-weight: 600; flex: 1; min-width: 0; line-height: 1.4; word-break: break-word; }
.exam-timer { font-size: 14px; font-weight: 600; opacity: .95; white-space: nowrap; }
.topbar-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-right: 10px; }
.topbar .act { flex: 0 0 auto; }
.exam-timer.warn { color: #ffd34d; }
.exam-body { flex: 1; overflow-y: auto; padding: 16px 16px 180px; }
.exam-bottom { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px;
  width: 100%; max-width: 480px; background: var(--card); border-top: 1px solid var(--line);
  padding: 10px 16px; z-index: 6; box-shadow: 0 -2px 10px rgba(20,30,60,.06); box-sizing: border-box; }
.exam-bottom .btn { margin-top: 0; }
.exam-links { display: flex; justify-content: center; margin-top: 10px; font-size: 15px; }
.exam-links a { color: var(--primary); cursor: pointer; text-decoration: none; }
.meta-primary { font-size: 18px; color: #1a4db3; font-weight: 700; margin-bottom: 2px; }
.meta-chapter { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.exam-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pager-btn { padding: 10px 16px; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  font-size: 15px; cursor: pointer; color: var(--text); }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-btn.sm { padding: 10px 16px; background: var(--primary); color: #fff; border-color: var(--primary); }
.pager-jump { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.jump-input { width: 60px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; text-align: center; }
.case-title { font-weight: 800; color: #1a4db3; font-size: 18px; margin-bottom: 10px; }
.case-mat { font-size: 17px; line-height: 1.75; }
.case-mat p { margin: 0 0 8px; }
.case-mat img.qimg, .stem img.qimg, .opt img.qimg { max-width: 100%; height: auto;
  display: block; margin: 8px 0; border-radius: 6px; }
.qtbl { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 15px; }
.qtbl td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.mathtext { font-style: italic; color: #444; }
.case-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.qmark { color: #1a4db3; font-weight: 700; margin-left: 2px; }
.mat-foot { margin-top: 16px; }
.q .stem span, .opt span { font-size: inherit !important; }
.exam-retry { display: flex; justify-content: center; margin-top: 14px; }
.exam-retry .btn { width: auto; min-width: 120px; }

.case-read-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff7ed; color: #b45309; border: 1px solid #fcd34d;
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; margin-bottom: 14px;
}
.case-read-btn:hover { background: #ffedd5; }
.case-material-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  backdrop-filter: blur(2px);
}
.case-material-overlay.hidden { display: none !important; }
.case-material-box {
  background: var(--card); border-radius: 14px; width: 100%; max-width: 900px;
  max-height: 80vh; box-shadow: 0 20px 50px rgba(0,0,0,.25); display: flex; flex-direction: column;
}
.case-material-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.case-material-title { font-size: 18px; font-weight: 700; color: var(--text); }
.case-material-close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--muted); cursor: pointer; line-height: 1; border-radius: 50%;
}
.case-material-close:hover { color: var(--text); }
.case-material-body {
  padding: 18px 20px; overflow-y: auto; font-size: 17.5px; line-height: 1.85;
}
.case-material-body, .case-material-body p, .case-material-body span,
.case-material-body div, .case-material-body li { font-size: 17.5px !important; line-height: 1.85 !important; }
.case-material-body .case { margin-bottom: 0; }

@media (max-width: 768px) {
  .case-material-box { max-height: 85vh; }
  .case-material-body { padding: 14px; font-size: 16.5px; line-height: 1.75; }
  .case-material-body, .case-material-body p, .case-material-body span,
  .case-material-body div, .case-material-body li { font-size: 16.5px !important; line-height: 1.75 !important; }
}

/* ===== 底部 ===== */
.site-footer {
  background: #fff;
  border-top: 1px solid #e8eef2;
  padding: 30px 20px 20px;
}
.footer-inner {
  max-width: var(--site-width, 1200px);
  margin: 0 auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-group { text-align: center; }
.footer-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.footer-group a { display: block; font-size: 14px; color: var(--muted); text-decoration: none; margin: 4px 0; }
.footer-group a:hover { color: var(--primary); }
.footer-bottom { text-align: center; border-top: 1px solid var(--line); padding-top: 18px; }
.footer-extra, .footer-copyright, .footer-icp { font-size: 14px; color: var(--muted); margin: 4px 0; }
.footer-copyright { font-weight: 600; }
.footer-copyright .a-red { color: #e5453b; font-weight: 700; }
.footer-copyright .eec-blue { color: #2f6fed; font-weight: 700; }
.footer-extra { font-size: 14px; color: var(--muted); margin: 4px 0; line-height: 1.5; }
.footer-dev { display: inline; }
.footer-icp a { color: inherit; text-decoration: none; }
.footer-icp a:hover { color: var(--primary); text-decoration: underline; }

.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px;
  width: 100%; max-width: 480px; background: var(--card); border-top: 1px solid var(--line);
  padding: 9px 0; z-index: 6; display: none; justify-content: space-around; align-items: center;
  font-size: 14px; box-shadow: 0 -2px 10px rgba(20,30,60,.06);
}
.bottom-nav a { color: var(--primary); text-decoration: none; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.bottom-nav a:hover { opacity: .8; }
.eye-toggle {
  position: fixed; right: 10px; bottom: 64px; z-index: 8;
  padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--card); color: var(--primary); font-size: 13px; font-weight: 600;
  cursor: pointer; box-shadow: 0 2px 8px rgba(20,30,60,.08); display: flex; align-items: center; gap: 4px;
  min-height: 32px;
  transition: background .2s, color .2s;
}
.eye-toggle:hover { background: var(--primary); color: #fff; }
body.eye-care .eye-toggle:hover { background: var(--primary-d); }
.exam-watermark {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  overflow: hidden; opacity: .06; display: none;
  font-size: 15px; line-height: 2.2; color: #b00; transform: rotate(-18deg);
  white-space: pre; user-select: none;
}
body.show-wm .exam-watermark { display: block; }

/* ===== 题库选择 ===== */
.bank-types { display: flex; gap: 8px; margin: 14px 0 6px; }
.btab {
  flex: 1; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--muted); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btab:hover { transform: translateY(-1px); }
.btab.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.btab:not(.on):hover { color: var(--primary); border-color: var(--primary); }
.scope-group { margin-bottom: 16px; }
.scope-title { font-weight: 700; font-size: 16px; margin: 12px 0 8px; color: var(--text); }
.scope-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}
.scope-card {
  display: flex; align-items: center; gap: 8px; padding: 14px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s, transform .15s;
}
.scope-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(20,30,60,.08); }
.scope-card.on { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 2px rgba(0,200,83,.18); }
.scope-card .sc-ico { font-size: 18px; line-height: 1; }
.scope-card .sc-name { font-weight: 600; font-size: 15px; color: var(--text); }
.scope-papers-title { font-size: 14px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }

/* ===== PC 自适应 ===== */
@media (min-width: 768px) {
  .main-content { padding: 0 24px; }
  .hero { padding: 64px 32px; }
  .hero-title { font-size: 40px; }
  .hero-sub { font-size: 20px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .exam-bottom, .bottom-nav { max-width: 880px; }
  .exam-body { padding: 24px 24px 180px; }
  .q .stem { font-size: 19px; }
  .opt { font-size: 17px; padding: 14px 16px; }
  .card-title { font-size: 20px; }
  .card-sub { font-size: 15px; }
  .topbar-line1 { font-size: 20px; }
  .topbar-line2 { font-size: 16px; }
  .screen { padding: 20px 0 80px; }
  .hist-item .t { font-size: 17px; }
  .list-item .t { font-size: 18px; }
  .list-item .s { font-size: 15px; }
  .analysis { font-size: 16px; }
  .case-title { font-size: 19px; }
  .case-mat { font-size: 17.5px; }
  .case-mat, .case-mat p, .case-mat span, .case-mat div, .case-mat li { font-size: 17.5px !important; line-height: 1.8 !important; }
  .footer-group a { font-size: 15px; }
  .footer-extra, .footer-copyright, .footer-icp { font-size: 15px; }
}
@media (min-width: 1100px) {
  .mode-grid { grid-template-columns: repeat(3, 1fr); }
  .exam-bottom, .bottom-nav { max-width: 1000px; }
  .scope-cards { grid-template-columns: repeat(4, 1fr); }
}

/* ===== 登录后头部用户区 ===== */
.header-right .user-box { display: flex; align-items: center; gap: 8px; height: 36px; }
.header-right .user-box.hidden { display: none; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-light); object-fit: cover; flex: 0 0 auto; }
.user-name { font-size: 15px; color: var(--nav-text); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-logout { font-size: 14px; color: var(--primary); cursor: pointer; padding: 6px 14px; border: 1px solid var(--primary); border-radius: 16px; margin-left: 2px; min-height: 32px; display: inline-flex; align-items: center; }
.user-logout:hover { background: var(--primary); color: #fff; }

/* ===== 首页模块（资讯/富文本/图片/轮播/课程） ===== */
.home-blocks { margin: 4px 0 28px; }
.mod { background: var(--card); border-radius: 16px; padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.mod-title { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 6px; text-align: center; }
.mod-sub { font-size: 16px; color: var(--text-light); text-align: center; margin-bottom: 18px; }
.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 13px; color: var(--muted); white-space: nowrap; min-width: 64px; }
.news-main { flex: 1; min-width: 0; }
.news-name { font-size: 17px; font-weight: 600; color: var(--text); text-decoration: none; }
.news-name:hover { color: var(--primary); }
.news-sum { font-size: 14px; color: var(--muted); margin-top: 3px; }
.mod-richtext { font-size: 16px; line-height: 1.8; color: var(--text); }
.mod-richtext img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 8px 0; }
.mod-image a { display: block; }
.mod-image img { width: 100%; border-radius: 12px; display: block; }
.mod-carousel { position: relative; overflow: hidden; border-radius: 12px; }
.mod-carousel .carousel-slide { display: none; }
.mod-carousel .carousel-slide.active { display: block; }
.mod-carousel .carousel-slide img { width: 100%; display: block; border-radius: 12px; }
.mod-carousel a { display: block; }

/* 轮播图通栏图效果：与内容区等宽，图片贴内容区左右边，无白底卡片 */
.home-blocks .mod.mod-carousel {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.mod-carousel { border-radius: 0; }
.mod-carousel .carousel-slide img { border-radius: 0; }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.course-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.10); }
.course-thumb { width: 100%; height: 130px; object-fit: cover; display: block; background: var(--primary-light); }
.course-thumb.course-ph { display: flex; align-items: center; justify-content: center; font-size: 40px; }
.course-body { padding: 12px 14px; }
.course-name { font-size: 17px; font-weight: 700; }
.course-sub2 { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ===== 首页应急资讯板块（热点信息 / 数据解读） ===== */
.home-news { margin: 8px 0 28px; }
.home-news-cols { display: flex; gap: 10px; align-items: stretch; }
.news-panel {
  flex: 1 1 0; min-width: 0;
  background: linear-gradient(135deg, #d8ede2 0%, #e4f3f9 100%);
  border-radius: 16px; padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.news-panel.news-panel-full { flex: 0 0 100%; min-width: 100%; }
.news-panel-head { border-bottom: 1px solid rgba(0,0,0,.08); padding-bottom: 10px; margin-bottom: 8px; }
.news-title { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.2; }
.news-sub { font-size: 14px; color: var(--primary); margin-top: 2px; line-height: 1.3; }
.hn-list { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; }
.hn-item { border-bottom: none; }
.news-link { display: flex; align-items: baseline; gap: 8px; padding: 7px 2px; font-size: 15px; color: var(--text); text-decoration: none; line-height: 1.4; }
.news-link:hover { color: var(--primary); }
.news-dot { color: var(--primary); font-weight: 700; flex: 0 0 auto; font-size: 12px; }
.news-text { flex: 1; min-width: 0; }
.news-more {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 10px; padding: 6px 14px;
  background: #e8f4ff; color: #0ea5e9;
  font-size: 13px; border-radius: 16px; text-decoration: none;
  align-self: flex-end;
}
.news-more:hover { background: #d0eaff; }

/* ===== 资讯微页面详情 ===== */
.news-detail { background: var(--card); border-radius: 16px; padding: 28px 24px; margin: 20px 0 28px; box-shadow: var(--shadow); }
.news-detail-title { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.news-detail-meta { font-size: 14px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.news-src-link { color: var(--primary); text-decoration: none; }
.news-src-link:hover { text-decoration: underline; }
.news-detail-body { display: flex; flex-direction: column; gap: 16px; }
.news-para { font-size: 16px; line-height: 1.9; color: var(--text); margin: 0; text-indent: 2em; word-break: break-all; }
.news-fig { margin: 0; }
.news-fig img { width: 100%; border-radius: 12px; display: block; border: 1px solid var(--line); background: var(--card-alt); }
.news-detail-back { margin-top: 22px; }

/* ===== 防复制（全局，输入框除外） ===== */
.app, .app *, .site-wrapper, .site-wrapper * { -webkit-tap-highlight-color: transparent; }
.site-wrapper, .site-wrapper * { user-select: none; -webkit-user-select: none; }
input, textarea, .modal-box, .modal-box * { user-select: text; -webkit-user-select: text; }

/* ===== 窄屏 / 手机端 ===== */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .main-content { padding: 0 12px; }

  /* 头部 */
  .header-inner { padding: 0 10px; height: 52px; }
  .header-logo { font-size: 13px; margin-right: 6px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-logo-arrow { width: 18px; height: 18px; font-size: 11px; }
  .header-nav { display: none; }
  .header-nav .nav-item, .header-right .nav-item { font-size: 14px; padding: 0 8px; }
  .header-right .nav-item { height: 36px; padding: 0 10px; line-height: 36px; }
  .nav-search { font-size: 16px; padding: 6px; }
  .user-name { max-width: 90px; }

  /* 首页 */
  .hero { padding: 18px 12px; margin: 12px 0 16px; }
  .hero-title { font-size: 22px; }
  .hero-sub { font-size: 14px; }
  .features { grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
  .feature-card { padding: 18px; }
  .feature-ico { font-size: 30px; }
  .feature-title { font-size: 17px; }
  .feature-sub { font-size: 13px; }
  .home-news-cols { flex-direction: column; }
  .news-panel { flex: 1 1 auto; padding: 14px 16px; }
  .news-title { font-size: 18px; }
  .news-detail-title { font-size: 22px; }
  .course-grid { grid-template-columns: 1fr; }

  /* 模式选择 */
  .mode-grid { grid-template-columns: 1fr; gap: 10px; }
  .mode-card { padding: 14px; }
  .card-icon { flex: 0 0 38px; height: 38px; }
  .card-icon svg { width: 34px; height: 34px; }
  .card-title { font-size: 17px; }
  .card-sub { font-size: 14px; }
  .topbar-line1 { font-size: 17px; }
  .topbar-line2 { font-size: 14px; }
  .topbar { padding: 10px 12px; }

  /* 题库选择 */
  .btab { font-size: 14px; padding: 10px 4px; }
  .scope-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .scope-card { padding: 12px 10px; }
  .scope-card .sc-name { font-size: 14px; }
  .list-item .t { font-size: 16px; }
  .list-item .s { font-size: 13px; }

  /* 做题页 */
  .exam-paper { font-size: 15px; }
  .exam-timer { font-size: 13px; }
  .exam-body { padding: 12px 12px 160px; }
  .q .stem { font-size: 16px; }
  .opt { font-size: 15px; padding: 12px 14px; }
  .meta-primary { font-size: 16px; }
  .meta-chapter { font-size: 13px; }
  .case-title { font-size: 18px; }
  .case-mat { font-size: 16.5px; }
  .case-mat, .case-mat p, .case-mat span, .case-mat div, .case-mat li { font-size: 16.5px !important; line-height: 1.75 !important; }
  .pager-btn { padding: 8px 12px; font-size: 14px; }
  .pager-jump { font-size: 13px; gap: 4px; }
  .jump-input { width: 48px; padding: 6px 8px; font-size: 14px; }
  .reveal { font-size: 14px; }
  .analysis { font-size: 14px; padding: 12px; }
  .exam-bottom { padding: 8px 12px; bottom: 16px; }
  .exam-bottom .btn { font-size: 15px; padding: 12px; }

  /* 结果页 */
  .enc-title { font-size: 18px; }
  .enc-score { font-size: 36px; }
  .enc-sub { font-size: 14px; }
  .hist-item .t { font-size: 15px; }
  .hist-score { font-size: 20px; }

  /* 通用 */
  .btn { font-size: 15px; padding: 12px; }
  .modal-box { padding: 22px 18px 18px; }
  .login-card h2 { font-size: 20px; }
  .login-card .input { font-size: 15px; padding: 12px 40px 12px 12px; }

  /* 底部 */
  .site-footer { padding: 20px 12px 70px; }
  .footer-links { gap: 24px; }
  .footer-title { font-size: 14px; }
  .footer-group a { font-size: 13px; }
  .footer-extra, .footer-copyright, .footer-icp { font-size: 13px; }
  .bottom-nav { font-size: 13px; }
  .eye-toggle { font-size: 13px; padding: 7px 12px; right: 8px; bottom: 58px; }
}
