:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #1a1d24;
  --ink-2: #4a5160;
  --ink-3: #8a91a0;
  --line: #e6e8ee;
  --brand: #1f6feb;
  --brand-soft: #eaf2ff;
  --up: #d92626;      /* 涨 = 红（中国习惯） */
  --down: #0a9a5a;    /* 跌 = 绿（中国习惯） */
  --gold: #b8860b;
  --warn: #c0392b;
  --shadow: 0 1px 3px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.05);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px; }

/* ---------- 顶部 ---------- */
.hero { text-align: center; padding: 32px 0 20px; }
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.hero .sub { color: var(--ink-2); margin-top: 6px; font-size: 15px; }

.search-box { display: flex; gap: 10px; max-width: 560px; margin: 22px auto 8px; }
.search-box input {
  flex: 1; padding: 14px 18px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 12px;
  outline: none; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-box button {
  padding: 14px 26px; font-size: 16px; font-weight: 700; color: #fff;
  background: var(--brand); border: none; border-radius: 12px; cursor: pointer;
  transition: background .15s;
}
.search-box button:hover { background: #185cc4; }
.search-box button:disabled { background: #9db9e8; cursor: not-allowed; }

.hint { color: var(--ink-3); font-size: 12.5px; margin-bottom: 12px; }
.quick-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.quick-tags .tag {
  padding: 5px 13px; font-size: 13px; border-radius: 20px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  transition: all .15s;
}
.quick-tags .tag:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* ---------- 加载 / 错误 ---------- */
.loading { text-align: center; padding: 60px 0; }
.spinner {
  width: 40px; height: 40px; margin: 0 auto 16px;
  border: 4px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { color: var(--ink-2); }

.error-box {
  max-width: 640px; margin: 20px auto; padding: 16px 20px;
  background: #fdf0ef; border: 1px solid #f3c8c4; color: #a03028;
  border-radius: 12px; font-size: 14px;
}

.hidden { display: none !important; }

/* ---------- 报告布局 ---------- */
.report { margin-top: 8px; }

/* 首屏概览卡 */
.overview {
  background: linear-gradient(135deg, #10203f 0%, #16284f 55%, #1a3a6e 100%);
  color: #fff; border-radius: var(--radius); padding: 28px 30px;
  box-shadow: var(--shadow); margin-bottom: 18px;
}
.overview .ov-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.ov-name { font-size: 22px; font-weight: 800; }
.ov-meta { color: #b9c6de; font-size: 13px; margin-top: 2px; }
.ov-price-row { display: flex; align-items: baseline; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.ov-price { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.ov-change { font-size: 18px; font-weight: 700; }
.ov-change.up { color: #ff7a6b; }
.ov-change.down { color: #4fe0a2; }
.ov-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ov-badge {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 8px 14px; border-radius: 10px; font-size: 13px;
}
.ov-badge b { display: block; font-size: 16px; font-weight: 700; margin-top: 2px; }
.ov-badge span { color: #b9c6de; }

/* 结论条 */
.verdict {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: #fff; border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow); margin-bottom: 18px;
}
.verdict .v-label { font-size: 15px; font-weight: 800; white-space: nowrap; }
.verdict .v-pill { padding: 6px 16px; border-radius: 20px; font-size: 15px; font-weight: 800; color: #fff; }
.verdict .v-desc { color: var(--ink-2); font-size: 14px; flex: 1; min-width: 220px; }
.pill-bull { background: var(--down); }
.pill-bear { background: var(--up); }
.pill-neutral { background: #8a91a0; }

/* 模块卡片 */
.module { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.module-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px 0; }
.module-num {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.module-head h2 { font-size: 18px; font-weight: 800; }
.module-body { padding: 16px 24px 22px; }

/* 通用元素 */
h3.sec { font-size: 14px; font-weight: 800; color: var(--ink-2); margin: 20px 0 10px; text-transform: uppercase; letter-spacing: .3px; }
h3.sec:first-child { margin-top: 0; }
p.para { color: var(--ink); margin-bottom: 10px; font-size: 14.5px; }
ul.list { margin: 6px 0 12px 2px; padding-left: 0; list-style: none; }
ul.list li { position: relative; padding-left: 18px; margin-bottom: 7px; font-size: 14px; }
ul.list li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* 指标卡 */
.metric {
  background: #f8f9fc; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.metric .m-label { color: var(--ink-3); font-size: 12.5px; }
.metric .m-value { font-size: 20px; font-weight: 800; margin-top: 3px; }
.metric .m-sub { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.m-value.up { color: var(--up); }
.m-value.down { color: var(--down); }
.m-value.gold { color: var(--gold); }

/* 表格 */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th, table.tbl td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); }
table.tbl th:first-child, table.tbl td:first-child { text-align: left; }
table.tbl thead th { background: #f8f9fc; color: var(--ink-2); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
table.tbl tbody tr:hover { background: #fafbfd; }
.num-up { color: var(--up); font-weight: 600; }
.num-down { color: var(--down); font-weight: 600; }

/* 图表容器 */
.chart { width: 100%; height: 340px; margin: 6px 0 4px; }
.chart.tall { height: 400px; }

/* 评分条 */
.score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.score-row .s-label { width: 96px; font-size: 13.5px; color: var(--ink-2); flex-shrink: 0; }
.score-bar { flex: 1; height: 12px; background: #eef0f5; border-radius: 6px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #1f6feb, #4c9aff); transition: width .6s ease; }
.score-val { width: 34px; font-size: 14px; font-weight: 800; text-align: right; }

/* 徽章 */
.badge { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.badge.green { background: #e6f7ef; color: #0a7a4a; }
.badge.red { background: #fdeaea; color: #b3261e; }
.badge.gray { background: #eef0f5; color: #5a6170; }
.badge.blue { background: var(--brand-soft); color: var(--brand); }

/* 多空辩论 */
.debate { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .debate { grid-template-columns: 1fr; } }
.debate-side { border-radius: 12px; padding: 18px; }
.debate-bull { background: #f0faf4; border: 1px solid #cdeeda; }
.debate-bear { background: #fdf2f2; border: 1px solid #f5d3d0; }
.debate-side h4 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.debate-bull h4 { color: #0a7a4a; }
.debate-bear h4 { color: #b3261e; }
.debate-side ul li::before { background: var(--brand); }
.debate-bear ul li::before { background: #d92626; }

/* 风险排序 */
.risk-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.risk-item:last-child { border-bottom: none; }
.risk-rank { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; font-weight: 800; font-size: 14px; color: #fff; display: flex; align-items: center; justify-content: center; }
.risk-body { flex: 1; }
.risk-body h4 { font-size: 14.5px; font-weight: 700; }
.risk-body p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

/* 免责声明 */
.disclaimer { font-size: 12px; color: var(--ink-3); margin-top: 6px; padding: 12px 16px; background: #f8f9fc; border-radius: 10px; }

.footer { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 30px; }
