:root {
  --bg: #eef2f9;
  --bg2: #f7f9fd;
  --panel: #ffffff;
  --ink: #1d2430;
  --muted: #6b7785;
  --line: #e4e9f2;
  --brand: #2f54eb;
  --brand2: #722ed1;
  --brand-soft: #eef2ff;
  --up: #e23c3c;
  --down: #1aa260;
  --t1: #b8860b; --t1bg: #fff4d6;
  --t2: #2f6bff; --t2bg: #e7efff;
  --t3: #6b7785; --t3bg: #eef1f4;
  --shadow: 0 1px 2px rgba(20,40,90,.05), 0 8px 24px rgba(20,40,90,.06);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 240px, var(--bg2) 100%);
  color: var(--ink); font-size: 14px; line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 24px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; box-shadow: var(--shadow); background: #fff; object-fit: cover; }
.logo { font-size: 17px; font-weight: 800; background: linear-gradient(90deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; display: flex; flex-direction: column; line-height: 1.1; }
.logo .logo-t { display: block; }
.logo .logo-sub { font-size: 11px; font-weight: 500; background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--muted); margin-top: 2px; letter-spacing: 0; }
.subtitle { color: var(--muted); font-size: 12px; margin-left: 4px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.view-detail .controls { display: none; }
#search { width: 260px; max-width: 44vw; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; outline: none; background: #fbfcfe; transition: .15s; }
#search:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.chips { display: flex; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 6px 13px; border-radius: 20px; cursor: pointer; font-size: 12px; transition: .15s; }
.chip:hover { color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-refresh { border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand); padding: 8px 15px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; transition: .15s; }
.btn-refresh:hover { background: var(--brand); color: #fff; }
.updated { color: var(--muted); font-size: 12px; min-width: 92px; }

main { padding: 22px 24px 48px; max-width: 1320px; margin: 0 auto; }
.loading, .empty { color: var(--muted); padding: 40px; text-align: center; }
.empty a { color: var(--brand); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 30px 16px 18px; }
.hero h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(90deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin: 8px 0 16px; font-size: 13px; }
.hero-gainers { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.g-card { cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: baseline; transition: .15s; }
.g-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.g-card b { font-size: 14px; }
.g-card em { font-style: normal; font-size: 12px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-v { font-size: 26px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat-l { font-size: 13px; color: var(--ink); margin-top: 2px; }
.stat-s { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- Section headings ---------- */
section { margin-bottom: 24px; }
section > h2 { font-size: 16px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
section > h2::before { content: ""; width: 4px; height: 16px; background: linear-gradient(var(--brand), var(--brand2)); border-radius: 2px; }

/* ---------- Segment nav ---------- */
.seg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.seg-tile { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; box-shadow: var(--shadow); transition: .15s; font: inherit; color: inherit; }
.seg-tile:hover { transform: translateY(-2px); border-color: var(--brand); background: var(--brand-soft); }
.seg-num { font-size: 18px; font-weight: 800; color: var(--brand); background: var(--brand-soft); width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.seg-name { font-weight: 700; font-size: 13px; }
.seg-cnt { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tl-item { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); }
.tl-item.upcoming { border-left-color: var(--brand); background: linear-gradient(90deg, var(--brand-soft), #fff 60%); }
.tl-date { font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; min-width: 78px; }
.tl-tag { font-size: 10px; background: var(--brand); color: #fff; padding: 1px 6px; border-radius: 4px; margin-left: 4px; vertical-align: middle; }
.tl-body { min-width: 0; }
.tl-co { font-weight: 600; color: var(--brand); }
.tl-co:hover { text-decoration: underline; }
.tl-ctx { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- News summary ---------- */
.news-sum ul, .d-news ul { list-style: none; margin: 0; padding: 0; }
.news-sum li, .d-news li { padding: 8px 6px; border-bottom: 1px solid #eef1f6; font-size: 13px; }
.news-sum li:last-child, .d-news li:last-child { border-bottom: 0; }
.news-sum a, .d-news a { color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.news-sum a:hover, .d-news a:hover { color: var(--brand); }
.date { color: var(--muted); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nco { color: var(--brand); font-weight: 600; cursor: pointer; flex: 0 0 auto; }
.nco:hover { text-decoration: underline; }

/* ---------- Company list ---------- */
.clist-sec { margin-top: 18px; }
.clist-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.clist-head .seg-num { font-size: 20px; font-weight: 800; color: var(--brand); background: var(--brand-soft); width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.clist-head .seg-title { font-size: 17px; font-weight: 700; }
.clist-head .seg-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tier-count { margin-left: auto; color: var(--muted); font-size: 12px; }

.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ccard { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; box-shadow: var(--shadow); transition: .15s; }
.ccard:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 12px 30px rgba(20,40,90,.12); }
.cc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.co-name { font-size: 15px; font-weight: 700; }
.co-code { color: var(--muted); font-size: 12px; }
.mkt-badge { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: #f0f3f8; color: var(--muted); }
.tier-badge { font-size: 11px; padding: 2px 8px; border-radius: 5px; font-weight: 600; margin-left: auto; }
.tier-badge.t1 { background: var(--t1bg); color: var(--t1); }
.tier-badge.t2 { background: var(--t2bg); color: var(--t2); }
.tier-badge.t3 { background: var(--t3bg); color: var(--t3); }
.cc-quote { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 6px; }
.price { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.chg { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
.cc-row { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.cc-row i { font-style: normal; color: #9aa4b2; margin-right: 3px; }
.cc-row b { color: var(--ink); font-weight: 600; }
.cc-note { font-size: 12px; color: #5a6573; margin-top: 6px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- Company detail ---------- */
.back { display: inline-block; color: var(--brand); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.back:hover { text-decoration: underline; }
.d-hero { background: linear-gradient(135deg, var(--brand-soft), #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.d-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.d-title h1 { margin: 0; font-size: 26px; font-weight: 800; }
.d-seg { color: var(--muted); font-size: 13px; margin-top: 6px; }
.d-seg b { color: var(--ink); }

.d-quote { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.d-quote .price { font-size: 28px; }
.d-quote .qmeta { margin-left: auto; text-align: right; color: var(--muted); font-size: 12px; line-height: 1.5; }

.d-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 6px; }
.d-chart { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.d-chart-l { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.d-chart img { width: 100%; height: auto; border-radius: 8px; display: block; background: #fff; }
.d-chart-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }

.d-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow); }
.fl { display: block; font-size: 11px; color: var(--muted); }
.fv { display: block; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }

.d-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.d-block h3 { margin: 0 0 8px; font-size: 13px; color: var(--brand); display: flex; align-items: center; gap: 6px; }
.d-block h3::before { content: ""; width: 3px; height: 13px; background: var(--brand); border-radius: 2px; }
.d-block.key { border-left: 4px solid var(--brand2); }
.d-block p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #44505f; }

.d-related, .d-news { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
/* ---------- 深度研究板块（research.js） ---------- */
.d-block.research { border-left: 4px solid #722ed1; }
.res-sub { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.res-meta { font-size: 11px; color: var(--muted); margin: 2px 0 10px; }
.res-thesis { background: linear-gradient(90deg, #f7f3ff, #fdfbff); border: 1px solid #e5d9f7; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.7; color: #3d2f5c; margin-bottom: 12px; }
.res-thesis-t { display: inline-block; background: #722ed1; color: #fff; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 2px 8px; margin-right: 8px; vertical-align: 1px; }
.res-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.res-tag { font-size: 11px; color: #722ed1; background: #f3eefc; border: 1px solid #e2d6f5; border-radius: 20px; padding: 3px 10px; }
.res-sec { margin-bottom: 14px; }
.res-sec > h3 { margin: 14px 0 8px; font-size: 14px; color: #722ed1; display: flex; align-items: center; gap: 6px; }
.res-sec > h3::before { content: ""; width: 3px; height: 14px; background: #722ed1; border-radius: 2px; }
.res-sec h4 { margin: 10px 0 4px; font-size: 13px; color: #3d2f5c; }
.res-sec p { margin: 0 0 8px; font-size: 13px; line-height: 1.75; color: #44505f; }
.res-sec ul { margin: 0 0 8px; padding-left: 18px; font-size: 13px; line-height: 1.75; color: #44505f; }
.res-sec li { margin-bottom: 4px; }
.res-sec code { background: #f1eef8; color: #5b4a7a; border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.res-sec a { color: #722ed1; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.rel-card { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; transition: .15s; }
.rel-card:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.rel-card b { font-size: 13px; }
.rel-card span { font-size: 11px; color: var(--muted); }

/* ---------- 首页三大板块 ---------- */
.boards { display: grid; grid-template-columns: 1fr; gap: 16px; }
/* 顶部：涨跌幅榜 + 指数 左右各半（等高对齐） */
.top-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (min-width: 1100px) {
  .boards { grid-template-columns: 1fr 1fr; }
  .boards > .top-split { grid-column: 1 / -1; } /* 顶部两栏占整行 */
}
@media (max-width: 1099px) {
  .top-split { grid-template-columns: 1fr; }
}
/* 左半：涨跌幅榜（市场概览 + 双榜单，内容撑满） */
.movers-board { display: flex; flex-direction: column; }
.mkt-breadth { display: flex; flex-wrap: wrap; gap: 6px 14px; background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; font-size: 12px; color: #5a6573; }
.mkt-breadth .mb-item b { font-size: 13px; font-variant-numeric: tabular-nums; }
.mkt-breadth .mb-item.up b { color: #e23c3c; }
.mkt-breadth .mb-item.down b { color: #1aa260; }
.top-split .movers { flex: 1; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 0; }
.top-split .mover-col { display: flex; flex-direction: column; }
.top-split .mover-list { flex: 1; justify-content: space-evenly; gap: 2px; }
.top-split .mover { padding: 6px 2px; font-size: 13px; border-bottom: 1px dashed #eef1f6; }
.top-split .mover:last-child { border-bottom: 0; }
/* 右半：指数（压缩高度与左栏对齐） */
.top-split .idx-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0 10px; }
.top-split .idx-stat { padding: 8px 10px; }
.top-split .idx-stat b { font-size: 15px; }
.top-split .idx-chart { height: 226px; }
.top-split .idx-tools { margin: 8px 0 4px; }
.top-split .idx-note { font-size: 10.5px; line-height: 1.5; padding-top: 6px; margin-top: 4px; }
@media (max-width: 640px) {
  .top-split .idx-stats { grid-template-columns: repeat(2, 1fr); }
}
.board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.board-head h2 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.board-head h2::before { content: ""; width: 4px; height: 16px; background: linear-gradient(var(--brand), var(--brand2)); border-radius: 2px; }
.board-sub { font-size: 12px; color: var(--muted); }
.loading { color: var(--muted); text-align: center; padding: 18px 8px; font-size: 13px; }

/* 涨跌幅榜 */
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.mover-col { background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mover-t { font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.mover-list { display: flex; flex-direction: column; gap: 4px; }
.mover { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; font-size: 13px; }
.mover:hover .m-name { text-decoration: underline; color: var(--brand); }
.m-pct { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12px; }

/* 分类筛选 */
.segchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.segchip { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 5px 12px; border-radius: 16px; cursor: pointer; font-size: 12px; transition: .12s; }
.segchip i { font-style: normal; font-size: 11px; color: #9aa4b2; margin-left: 3px; }
.segchip:hover { color: var(--brand); border-color: var(--brand); }
.segchip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.segchip.active i { color: #dbe4ff; }

/* 行情表 */
.qtable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.qtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.qtable thead th { position: sticky; top: 0; background: #f3f6fc; color: var(--muted); font-weight: 600; text-align: left; padding: 9px 10px; cursor: pointer; white-space: nowrap; user-select: none; border-bottom: 1px solid var(--line); }
.qtable thead th:hover { color: var(--brand); }
.qtable thead th i { font-style: normal; color: var(--brand); font-size: 11px; }
.qtable thead th.num, .qtable td.num { text-align: right; }
.qtable tbody td { padding: 9px 10px; border-bottom: 1px solid #eef1f6; white-space: nowrap; }
.qtable tbody tr.qrow { cursor: pointer; transition: background .12s; }
.qtable tbody tr.qrow:hover { background: var(--brand-soft); }
.qtable tbody tr:nth-child(even) { background: #fbfcfe; }
.qtable tbody tr:nth-child(even):hover { background: var(--brand-soft); }
.ql-name b { font-weight: 700; }
.ql-name .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: 5px; vertical-align: middle; }
.ql-name .dot.t1 { background: var(--t1); } .ql-name .dot.t2 { background: var(--t2); } .ql-name .dot.t3 { background: var(--t3); }
.ql-code { color: var(--muted); font-size: 12px; }
.ql-mkt { color: var(--muted); font-size: 12px; }
td.num { font-variant-numeric: tabular-nums; }

/* 新闻流 */
.news-stream { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; }
.news-stream li { padding: 9px 4px; border-bottom: 1px solid #eef1f6; font-size: 13px; line-height: 1.5; display: flex; gap: 8px; align-items: baseline; }
.news-stream li:last-child { border-bottom: 0; }
.news-stream a { color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-stream a:hover { color: var(--brand); }
.ntime { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.rumor { font-size: 10px; color: #fff; background: #e8842a; border-radius: 4px; padding: 1px 5px; font-weight: 700; flex: 0 0 auto; }
.ncat { font-size: 10px; color: #fff; border-radius: 4px; padding: 1px 5px; flex: 0 0 auto; }
.ncat.cp { background: #2f6bff; }
.ncat.yw { background: #6b7785; }
.ncat.hy { background: #722ed1; }
.ncat.hz { background: #1aa260; }
.ncat.yj { background: #e8842a; }
.ncat.dd { background: #0e9c9c; }
.ncat.cn { background: #b8860b; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 0 4px; }
.pgbtn { border: 1px solid var(--line); background: #fff; color: var(--brand); padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600; transition: .12s; }
.pgbtn:hover:not([disabled]) { background: var(--brand); color: #fff; }
.pgbtn[disabled] { opacity: .4; cursor: not-allowed; }
.pg-info { color: var(--muted); font-size: 12px; }
.nco { color: var(--brand); font-weight: 600; cursor: pointer; flex: 0 0 auto; }
.nco:hover { text-decoration: underline; }
.seg-tag { font-size: 11px; color: var(--brand); background: var(--brand-soft); border-radius: 4px; padding: 0 6px; margin-left: 6px; font-weight: 600; white-space: nowrap; }

/* 未来日期 */
.db-sec + .db-sec { margin-top: 16px; }
.db-t { font-size: 13px; font-weight: 700; color: var(--brand2); margin-bottom: 8px; }
.db-list { display: flex; flex-direction: column; gap: 8px; }
.db-item { display: flex; gap: 12px; padding: 9px 11px; background: #fafbfd; border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 8px; }
.db-item.future { border-left-color: var(--brand); background: linear-gradient(90deg, var(--brand-soft), #fff 70%); }
.db-date { min-width: 76px; }
.db-date b { display: block; font-size: 14px; }
.db-d { font-size: 11px; color: var(--muted); }
.db-body { min-width: 0; }
.db-l { font-size: 13px; font-weight: 600; }
.db-l:hover { text-decoration: underline; color: var(--brand); }
.db-d2 { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.db-cnt { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.cat-list { display: grid; grid-template-columns: 1fr; gap: 6px; max-height: 440px; overflow-y: auto; padding-right: 2px; }
.cat-item { display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; background: #fafbfd; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 8px; transition: .12s; }
.cat-item:hover { background: var(--brand-soft); border-color: var(--brand); transform: translateX(2px); }
.cat-item b { font-size: 13px; }
.cat-text { font-size: 12px; color: #5a6573; line-height: 1.45; }
.etype { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; color: #fff; margin-right: 4px; white-space: nowrap; }
.etype.pp { background: #2f6bff; }
.etype.rp { background: #722ed1; }
.etype.id { background: #1aa260; }
.etype.yg { background: #e8842a; }
.etype.ot { background: #6b7785; }
.conf { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; color: #fff; white-space: nowrap; }
.conf.ok { background: #1aa260; }
.conf.est { background: #e8842a; }
.db-src { font-size: 11px; color: #9aa4b2; margin-top: 3px; }

.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 22px 20px 28px; border-top: 1px solid var(--line); margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.foot-mark { width: 22px; height: 22px; border-radius: 5px; background: #fff; object-fit: cover; opacity: .85; }

@media (max-width: 640px) {
  main { padding: 16px; }
  .hero h1 { font-size: 23px; }
  .d-title h1 { font-size: 21px; }
  .d-quote .price { font-size: 22px; }
  #search { width: 100%; }
}

/* ============ AI产业链指数板块 ============ */
.idx-board { border-top: 3px solid #e23c3c; }
.idx-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 4px 0 12px; }
.idx-stat { background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.idx-stat .is-l { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.idx-stat b { font-size: 18px; font-variant-numeric: tabular-nums; display: block; line-height: 1.2; }
.idx-stat .is-s { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.idx-stat .up { color: #e23c3c; }
.idx-stat .down { color: #1aa260; }
.idx-chart { height: 330px; width: 100%; }
.idx-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 6px; }
.idx-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.idx-seg button { border: 1px solid var(--line); background: #fff; color: #5a6573; font-size: 12px; padding: 4px 11px; border-radius: 14px; cursor: pointer; transition: all .15s; }
.idx-seg button:hover { border-color: #e23c3c; color: #e23c3c; }
.idx-seg button.active { background: #e23c3c; border-color: #e23c3c; color: #fff; font-weight: 600; }
.idx-range { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #5a6573; }
.rs-item b { font-size: 13px; font-variant-numeric: tabular-nums; }
.rs-item b.up { color: #e23c3c; }
.rs-item b.down { color: #1aa260; }
.rs-item i { font-style: normal; color: var(--muted); font-size: 11px; }
.idx-note { font-size: 11px; color: var(--muted); line-height: 1.6; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 6px; }
@media (max-width: 900px) {
  .idx-stats { grid-template-columns: repeat(2, 1fr); }
  .idx-chart { height: 260px; }
}
