/* ============================================================
   AI教学中心 —— 共享样式
   金融科技深色主题：藏青底 + 金色点缀，红涨绿跌（A股惯例）
   ============================================================ */

:root {
  --bg: #0a1424;
  --bg-2: #0e1c30;
  --bg-grad-a: #0c1830;
  --bg-grad-b: #081020;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(230, 191, 87, 0.35);
  --gold: #e6bf57;
  --gold-soft: rgba(230, 191, 87, 0.14);
  --text: #e9eef7;
  --muted: #93a3b8;
  --muted-2: #6b7c93;
  --up: #e23b3b;   /* 涨 = 红 */
  --down: #16a34a; /* 跌 = 绿 */
  --blue: #4c8dff;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(230, 191, 87, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(76, 141, 255, 0.10), transparent 55%),
    linear-gradient(160deg, var(--bg-grad-a), var(--bg-grad-b));
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 16, 32, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .5px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), #b8862f);
  display: grid; place-items: center; color: #1a1206; font-weight: 800; font-size: 13px; letter-spacing: .5px;
  box-shadow: 0 6px 18px rgba(230, 191, 87, 0.35);
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 2px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--gold); }
.tag-compliance {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--gold);
  background: var(--gold-soft); letter-spacing: 1px;
}

/* ---------------- Hero ---------------- */
.hero { padding: 76px 0 48px; text-align: center; }
.hero .eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--gold);
  border: 1px solid var(--border-strong); padding: 6px 14px; border-radius: 999px;
  background: var(--gold-soft); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 46px); line-height: 1.25; font-weight: 800;
  letter-spacing: .5px; margin-bottom: 18px;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead { color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); max-width: 720px; margin: 0 auto 14px; }
.hero .note { color: var(--muted-2); font-size: 13px; max-width: 640px; margin: 16px auto 0; }

/* ---------------- 入口卡片 ---------------- */
.section-title { text-align: center; margin: 10px 0 28px; }
.section-title h2 { font-size: 24px; font-weight: 700; }
.section-title p { color: var(--muted); font-size: 14px; margin-top: 6px; }

.entry-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px; padding-bottom: 20px;
}
/* 如需新增入口，在此网格内再加一个 .entry-card 即可 */

.entry-card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden; min-height: 260px;
}
.entry-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 100% 0%, rgba(230, 191, 87, 0.10), transparent 60%);
  opacity: 0; transition: opacity .25s ease;
}
.entry-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.entry-card:hover::before { opacity: 1; }
.entry-card .ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 18px;
  background: var(--gold-soft); border: 1px solid var(--border-strong); color: var(--gold);
}
.entry-card h3 { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.entry-card p { color: var(--muted); font-size: 14px; flex: 1; }
.entry-card .go {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 600; font-size: 14px;
}
.entry-card .go .arrow { transition: transform .2s ease; }
.entry-card:hover .go .arrow { transform: translateX(5px); }
.entry-card .pill {
  position: absolute; top: 22px; right: 22px; font-size: 11px; color: var(--muted-2);
  border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px;
}

/* ---------------- 通用面板 ---------------- */
.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin: 22px 0;
}
.panel h3 { font-size: 19px; margin-bottom: 14px; }
.panel h3 .num {
  color: var(--gold); font-weight: 800; margin-right: 8px;
}

/* ---------------- 免责声明 ---------------- */
.disclaimer {
  background: rgba(226, 59, 59, 0.06);
  border: 1px solid rgba(226, 59, 59, 0.28);
  border-radius: 14px; padding: 20px 24px; margin: 30px 0 10px;
  font-size: 13px; color: #f0c9c9; line-height: 1.7;
}
.disclaimer strong { color: #ff9b9b; }

/* ---------------- 页脚 ---------------- */
.footer {
  border-top: 1px solid var(--border); margin-top: 40px;
  padding: 28px 0 50px; color: var(--muted-2); font-size: 13px; text-align: center;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--gold); }

/* ---------------- 提示词教学页 ---------------- */
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.tip {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px; transition: border-color .2s ease;
}
.tip:hover { border-color: var(--border-strong); }
.tip .t-ico { font-size: 22px; margin-bottom: 8px; }
.tip h4 { font-size: 15px; margin-bottom: 6px; color: var(--gold); }
.tip p { font-size: 13px; color: var(--muted); }

.prompt-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.prompt-head .count { color: var(--muted); font-size: 13px; }
.prompt-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; padding: 8px 0 8px 12px; border-left: 3px solid var(--gold-soft); line-height: 1.6; }
.prompt-note b { color: var(--gold); }

.prompt-list { display: grid; gap: 14px; margin-top: 18px; }
.prompt-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; transition: border-color .2s ease, background .2s ease;
}
.prompt-card:hover { border-color: var(--border-strong); background: var(--panel-2); }
.prompt-card .idx {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px;
  background: var(--gold-soft); color: var(--gold); font-weight: 700;
  display: grid; place-items: center; font-size: 14px; border: 1px solid var(--border-strong);
}
.prompt-card .body { flex: 1; min-width: 0; }
.prompt-tag {
  display: inline-block; margin-bottom: 9px; padding: 3px 11px;
  border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .3px;
  background: var(--gold-soft); color: var(--gold); border: 1px solid var(--border-strong);
}
.prompt-tag.converge { background: rgba(120,170,255,0.12); color: #8fb6ff; border-color: rgba(120,170,255,0.35); }
.prompt-tag.pure { background: rgba(80,200,180,0.12); color: #5fd6bf; border-color: rgba(80,200,180,0.35); }
.prompt-tag.news { background: rgba(130,205,120,0.12); color: #8bd66b; border-color: rgba(130,205,120,0.35); }
.prompt-tag.macd { background: rgba(240,170,80,0.12); color: #f0b45a; border-color: rgba(240,170,80,0.35); }
.prompt-card .body code {
  display: block; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13.5px; color: var(--text); line-height: 1.7; word-break: break-word;
  background: rgba(0,0,0,0.25); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; white-space: pre-wrap;
}
.prompt-card .body code .ph { color: var(--gold); }
.copy-btn {
  flex: 0 0 auto; align-self: center;
  background: transparent; color: var(--gold); border: 1px solid var(--border-strong);
  border-radius: 9px; padding: 8px 14px; font-size: 13px; cursor: pointer;
  transition: background .2s ease, transform .1s ease; font-weight: 600;
  white-space: nowrap;
}
.copy-btn:hover { background: var(--gold-soft); }
.copy-btn:active { transform: scale(0.96); }
.copy-btn.copied { background: var(--down); border-color: var(--down); color: #fff; }

.page-head { padding: 54px 0 8px; }
.page-head h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 760px; }

/* ---------------- 加载页（行情分析） ---------------- */
.loader-screen {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--bg-grad-a), var(--bg-grad-b));
  text-align: center; padding: 24px;
}
.loader-orb {
  width: 92px; height: 92px; border-radius: 50%; position: relative; margin-bottom: 30px;
}
.loader-orb::before, .loader-orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid transparent;
}
.loader-orb::before {
  border-top-color: var(--gold); border-right-color: var(--gold);
  animation: spin 1.1s linear infinite;
}
.loader-orb::after {
  inset: 10px; border-bottom-color: var(--blue); border-left-color: var(--blue);
  animation: spin 1.6s linear infinite reverse;
}
.loader-orb .core {
  position: absolute; inset: 30px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold), #b8862f);
  box-shadow: 0 0 24px rgba(230, 191, 87, 0.6);
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-title { font-size: 22px; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.loader-title .dot { color: var(--gold); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:.2} 50%{opacity:1} }
.loader-msg { color: var(--muted); font-size: 14px; height: 22px; margin-bottom: 26px; transition: opacity .3s ease; }

.progress {
  width: min(420px, 80vw); height: 8px; border-radius: 999px;
  background: rgba(255,255,255,0.08); overflow: hidden; border: 1px solid var(--border);
}
.progress .bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), #ffe39a);
  border-radius: 999px; transition: width .1s linear;
}
.progress-pct { margin-top: 12px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.loader-foot { position: fixed; bottom: 24px; width: 100%; text-align: center; color: var(--muted-2); font-size: 12px; }

/* 进阶篇：参考数据表 */
.ref-table { width: 100%; border-collapse: collapse; margin: 14px 0 4px; font-size: 13.5px; overflow: hidden; border-radius: 12px; }
.ref-table th, .ref-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.ref-table thead th { background: var(--panel-2); color: var(--gold); font-weight: 700; }
.ref-table tbody tr:hover { background: var(--panel-2); }
.ref-table td.good, .ref-table td .good { color: #ff6b6b; font-weight: 700; }   /* 红涨：正向表现用红 */
.ref-table td.bad, .ref-table td .bad { color: #4ade80; }                       /* 绿跌：负向表现用绿 */
.ref-table td.fire, .ref-table td .fire { color: #ffcf4d; font-weight: 800; }

/* 进阶篇：测算按钮 + 演算 / 结果 */
.calc-wrap { margin: 16px 0 4px; }
.calc-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold), #d9a93e);
  color: #1a1206; font-weight: 800; font-size: 15px;
  border: none; border-radius: 12px; padding: 14px 26px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(230,191,87,0.25);
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease;
}
.calc-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(230,191,87,0.35); }
.calc-btn:active { transform: translateY(0) scale(.98); }
.calc-btn .calc-ico { font-size: 18px; }
.calc-btn:disabled { opacity: .65; cursor: default; transform: none; box-shadow: none; }

.calc-result { margin-top: 18px; }
.calc-loading { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 30px 16px; }
.calc-loading .spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.12); border-top-color: var(--gold);
  animation: spin .9s linear infinite;
}
.calc-loading p { color: var(--muted); font-size: 14px; }
.calc-loading .dots::after { content: ""; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0%{content:""} 25%{content:"."} 50%{content:".."} 75%{content:"..."} 100%{content:""} }

.calc-data { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 收敛板块：先列分类，不直接吐数据 */
.cat-list { display: grid; gap: 12px; margin: 14px 0 6px; }
.cat {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 14px 16px;
  transition: border-color .2s ease, background .2s ease;
}
.cat:hover { border-color: var(--gold-soft); background: rgba(230,191,87,0.05); }
.cat-ico {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(230,191,87,0.12); border: 1px solid rgba(230,191,87,0.25);
}
.cat b { color: var(--text); font-size: 15px; }
.cat-sub { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 3px; }

.calc-year { margin-top: 16px; }
.calc-year thead th { font-size: 12.5px; }
.calc-year td, .calc-year th { text-align: center; }
.calc-year td:first-child, .calc-year th:first-child { text-align: left; }
.calc-year .yr-total { background: var(--panel-2); }
.calc-year .yr-total td { border-bottom: none; color: var(--text); font-weight: 700; }

/* 战法规则清单 */
.rule-list { list-style: none; padding: 0; margin: 6px 0 0; }
.rule-list li { padding: 9px 0 9px 26px; position: relative; border-bottom: 1px dashed var(--border); color: var(--text); font-size: 14.5px; }
.rule-list li:last-child { border-bottom: none; }
.rule-list li::before { content: "▸"; position: absolute; left: 4px; color: var(--gold); }
.rule-list li b { color: var(--gold); }

/* 关键指标卡 */
.stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0; }
.stat { flex: 1; min-width: 120px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat .k { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.stat .v { font-size: 22px; font-weight: 800; color: var(--gold); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 步骤卡 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.step { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.step .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--gold-soft); color: var(--gold); font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.6; }
@media (max-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* ---------------- 精彩案例页（AI个股分析精彩案例） ---------------- */
.tier-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 8px; }
@media (max-width: 860px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column;
}
.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.tier-card h4 { font-size: 17px; margin: 0; }
.tier-count {
  background: var(--gold-soft); color: var(--gold); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.tier-desc { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin: 8px 0 16px; flex: 1; }
.tier-result { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 14px; }
.tier-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px; }
.tier-loading .spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.12); border-top-color: var(--gold);
  animation: spin .9s linear infinite;
}
.tier-loading p { color: var(--muted); font-size: 13px; }
.tier-stats { display: flex; gap: 12px; }
.tier-stat {
  flex: 1; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; text-align: center;
}
.tier-stat .k { font-size: 12px; color: var(--muted); }
.tier-stat .v { font-size: 20px; font-weight: 800; color: var(--gold); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* 案例标签切换 */
.case-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.case-tab {
  background: var(--panel); border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: 8px 18px; font-size: 14px; cursor: pointer;
  transition: all .2s ease; font-weight: 600;
}
.case-tab:hover { border-color: var(--border-strong); color: var(--text); }
.case-tab.active { background: var(--gold-soft); border-color: var(--border-strong); color: var(--gold); }
.case-panel { display: none; }
.case-panel.active { display: block; animation: fadeUp .4s ease both; }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-badge.watch { background: rgba(230,191,87,0.14); color: var(--gold); border: 1px solid var(--border-strong); }
.status-badge.skip { background: rgba(147,163,184,0.12); color: var(--muted); border: 1px solid var(--border); }
.case-table td.up, .case-table .up { color: #ff6b6b; font-weight: 600; }
.case-table td.down, .case-table .down { color: #4ade80; font-weight: 600; }
.case-foot { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.7; }

/* ③ 历史快照：交易日下拉 + 空状态 */
.snap-toolbar { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
.snap-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.snap-select {
  background: var(--panel-2); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 10px; padding: 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
  outline: none; transition: border-color .2s ease; min-width: 200px;
}
.snap-select:hover, .snap-select:focus { border-color: var(--gold); }
.snap-select option { background: var(--bg-2); color: var(--text); }
.snap-empty {
  text-align: center; padding: 40px 16px; margin: 14px 0 4px;
  border: 1px dashed var(--border-strong); border-radius: 12px;
  color: var(--muted); font-size: 16px; font-weight: 700; letter-spacing: 1px;
}

/* ③ 历史快照：分档展示 */
.tier-block { margin-top: 18px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--panel-2); }
.tier-head {
  padding: 12px 16px; font-size: 15px; font-weight: 700; color: var(--text);
  background: linear-gradient(90deg, rgba(201,162,77,.18), rgba(201,162,77,.04));
  border-bottom: 1px solid var(--border);
}
.tier-head b { color: var(--gold); font-variant-numeric: tabular-nums; margin: 0 2px; }
.tier-empty { padding: 16px; color: var(--muted); font-size: 13.5px; text-align: center; }

/* 三档合并块（点击一次测算三档） */
.tier-combined { background: var(--panel-2); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.tier-table { margin: 0 0 16px; }
.tier-table td.tier-desc-cell { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 420px; }
.tier-table td.stat-cell { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; text-align: center; font-size: 15px; min-width: 64px; }
/* 三档配色（仅桌面表格生效）：精准(金)/普通(蓝)/宽泛(绿)，与旧 /t1 一致区分各档 */
@media (min-width: 681px) {
  .tier-table tbody tr[data-tier="precise"] td:first-child { border-left: 3px solid var(--gold); }
  .tier-table tbody tr[data-tier="normal"]  td:first-child { border-left: 3px solid #5AA9FF; }
  .tier-table tbody tr[data-tier="broad"]   td:first-child { border-left: 3px solid #57C98A; }
  .tier-table tbody tr[data-tier="precise"] td:first-child strong { color: var(--gold); }
  .tier-table tbody tr[data-tier="normal"]  td:first-child strong { color: #5AA9FF; }
  .tier-table tbody tr[data-tier="broad"]   td:first-child strong { color: #57C98A; }
}
.tier-loading-all { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0 8px; }
.tier-loading-all .spinner { width: 32px; height: 32px; border: 3px solid var(--border-strong); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
.tier-loading-all p { color: var(--muted); font-size: 13px; }
.tier-calc-cell {
  text-align: center; vertical-align: middle; padding: 18px 14px;
  border: 1px dashed var(--border-strong); background: rgba(230,191,87,0.04);
}
.tier-calc-cell .calc-btn { margin: 0 auto; }
.tier-calc-cell .tier-loading-all { padding: 6px 0 2px; }
.tier-calc-hint { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.55; max-width: 220px; }
.tier-calc-mobile { display: none; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .panel { padding: 18px 16px; margin: 16px 0; }
  .nav-inner { flex-wrap: wrap; gap: 8px; height: auto; padding: 10px 0; }
  .nav-links { display: flex; gap: 12px; font-size: 13px; flex-wrap: wrap; }
  .nav-links .tag-compliance { display: none; }
  .hero { padding: 40px 0 30px; }
  .page-head { padding: 36px 0 6px; }
  .entry-grid { grid-template-columns: 1fr; gap: 14px; }
  .entry-card { min-height: 0; padding: 22px 20px; }
  .tips { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 20px; }
  .panel h3 { font-size: 17px; }
  .prompt-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .prompt-head .count { font-size: 12px; }
  .prompt-card { flex-direction: column; }
  .copy-btn { align-self: stretch; }
  /* 表格横向滚动：覆盖 .ref-table 的 overflow:hidden，避免手机上列表被挤压/溢出（快照表等仍可用） */
  .ref-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ref-table th, .ref-table td { padding: 9px 10px; font-size: 13px; white-space: nowrap; }
  .calc-btn { max-width: 100%; }
  .stat { min-width: 0; flex: 1 1 42%; }

  /* ② 质量分档：移动端改为卡片堆叠，按钮移出表格、整块全宽展示，不再横向滑动 */
  .tier-combined { overflow: visible; padding: 16px 14px; }
  .tier-combined .tier-table { display: block; width: 100%; overflow: visible; margin: 0 0 14px; }
  .tier-combined .tier-table thead { display: none; }
  .tier-combined .tier-table tbody tr[data-tier] {
    display: block; border: 1px solid var(--border); border-radius: 12px;
    padding: 14px; margin-bottom: 12px; background: var(--panel);
  }
  .tier-combined .tier-table tbody tr[data-tier] td {
    display: block; width: 100%; padding: 0; white-space: normal; border: 0;
  }
  .tier-combined .tier-table tbody tr[data-tier] td strong { font-size: 15px; }
  /* 移动端三档配色：边框 + 淡底纹区分（精准金 / 普通蓝 / 宽泛绿），与旧 /t1 一致 */
  .tier-combined .tier-table tbody tr[data-tier="precise"] { border-color: rgba(230,191,87,.6); background: linear-gradient(180deg, rgba(230,191,87,.12), rgba(230,191,87,.04)); }
  .tier-combined .tier-table tbody tr[data-tier="normal"]  { border-color: rgba(90,169,255,.6); background: linear-gradient(180deg, rgba(90,169,255,.12), rgba(90,169,255,.04)); }
  .tier-combined .tier-table tbody tr[data-tier="broad"]   { border-color: rgba(87,201,138,.6); background: linear-gradient(180deg, rgba(87,201,138,.12), rgba(87,201,138,.04)); }
  .tier-combined .tier-table tbody tr[data-tier="precise"] td strong { color: var(--gold); }
  .tier-combined .tier-table tbody tr[data-tier="normal"]  td strong { color: #5AA9FF; }
  .tier-combined .tier-table tbody tr[data-tier="broad"]   td strong { color: #57C98A; }
  .tier-combined .tier-table td.tier-desc-cell { max-width: none; margin-top: 8px; font-size: 13px; }
  /* 隐藏表格内的测算单元格（仅桌面使用），移动端改用下方独立按钮块 */
  .tier-combined .tier-table .tier-calc-cell { display: none; }
  /* 点击后注入的三档指标：移动端并排显示并加标签 */
  .tier-combined .tier-table tbody tr[data-tier] .stat-cell {
    display: inline-block; width: auto; min-width: 0; margin: 10px 16px 0 0;
    text-align: left; font-size: 15px;
  }
  .tier-combined .tier-table tbody tr[data-tier] .stat-cell[data-stat="wr"]::before { content: "胜率 "; color: var(--muted); font-weight: 400; }
  .tier-combined .tier-table tbody tr[data-tier] .stat-cell[data-stat="pf"]::before { content: "PF "; color: var(--muted); font-weight: 400; }
  .tier-combined .tier-table tbody tr[data-tier] .stat-cell[data-stat="cnt"]::before { content: "笔数 "; color: var(--muted); font-weight: 400; }
  /* 移动端专用测算按钮块：全宽、居中，无需左滑 */
  .tier-calc-mobile { display: block; margin-top: 4px; text-align: center; }
  .tier-calc-mobile .calc-btn { width: 100%; max-width: 360px; margin: 0 auto; }
  .tier-calc-mobile .tier-loading-all { padding: 10px 0 2px; }
  .tier-calc-mobile .tier-calc-hint { max-width: none; margin: 10px auto 0; }
}
