/* ============================================================
   财讯通 (CaiXun) — creative-rebuild design system
   Rebrand / creative rebuild of the original UpSort (有为财经) clone.
   Colors follow the Chinese-market convention: red = up (涨),
   green = down (跌). Brand primary is blue (--accent).
   This file is the single maintainable source for all visuals.
   Brand name "财讯通" appears only in editable source (HTML / SVG
   text / this comment) — change it in one place conceptually.
   ============================================================ */

:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --aside: #16202b;
  --aside-2: #1d2a38;
  --aside-text: #e7edf5;
  --aside-dim: #9fb0c3;
  --accent: #2f6bff;          /* brand primary: links / active / buttons */
  --accent-soft: #e8f0ff;
  --hot: #f79817;              /* orange: hot-news tip only */
  --up: #d20;                  /* 涨 (red) */
  --down: #093;                /* 跌 (green) */
  --ink: #2a2f36;
  --ink-2: #5a6472;
  --ink-3: #8893a3;
  --ink-4: #b3bcc9;
  --line: #e3e8ef;
  --line-2: #f1f3f7;
  --shadow: 0 3px 10px 0 rgba(40, 50, 70, .06);
  --link: #2f6bff;
  --blue: #1256a0;            /* box-row name */
  --flash-up: #fcdede;        /* red flash from */
  --flash-down: #cdeede;      /* green flash from */
}

/* ---------- dark theme (toggled via [data-theme="dark"]) ---------- */
[data-theme="dark"] {
  --bg: #0e151e;
  --card: #16212e;
  --aside: #0b1119;
  --aside-2: #111b26;
  --aside-text: #cdd8e6;
  --aside-dim: #7e8da0;
  --accent: #4d84ff;
  --accent-soft: #1a2740;
  --hot: #ffb24d;
  --up: #ff5a5a;
  --down: #2bd181;
  --ink: #e6ecf3;
  --ink-2: #aab4c4;
  --ink-3: #8593a6;
  --ink-4: #5b6677;
  --line: #26323f;
  --line-2: #1c2733;
  --shadow: 0 4px 14px rgba(0, 0, 0, .4);
  --link: #5b8cff;
  --blue: #6ea8ff;
  --flash-up: rgba(255, 90, 90, .2);
  --flash-down: rgba(43, 209, 129, .2);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-family: sans-serif; line-height: 1.15; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  text-align: left;
  background-color: var(--bg);
  transition: background-color .2s, color .2s;
}

a { color: var(--link); text-decoration: none; background-color: transparent; }
a:hover { color: #1a4fd6; text-decoration: underline; }
a:not([href]) { color: inherit; text-decoration: none; }
a:not([href]):hover { color: inherit; text-decoration: none; }
a, a:hover { text-decoration: none; }

img { vertical-align: middle; border-style: none; }

/* ============================================================
   layout shell
   ============================================================ */
.container { width: 100%; background: var(--bg); }

/* mobile top header (shown < 768px) */
.header {
  display: none;
  z-index: 2;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: var(--aside);
  color: var(--aside-text);
  text-align: center;
  height: 50px;
  line-height: 50px;
  font-size: 16px;
  box-shadow: 5px 0 13px 0 rgba(10, 42, 87, .1);
}
.header a { color: var(--aside-dim); font-weight: bold; font-size: 15px; padding: 0 12px; }
.header .active-nav { color: #fff; }

/* hamburger (mobile) */
.menu {
  display: none;
  z-index: 100;
  position: fixed;
  top: 0; left: 0;
  height: 50px; width: 50px;
  cursor: pointer;
}
.menu-wrap { padding: 14px 13px; }
.menu-icon { display: block; width: 24px; height: 2px; border-radius: 1px; margin-bottom: 5px; background: var(--aside-text); }
#menu-mask { display: none; z-index: 90; position: fixed; left: 0; top: 0; width: 100%; height: 100%; background: #000; opacity: .8; }

/* left sidebar (desktop) */
.aside {
  z-index: 95;
  position: fixed;
  top: 0; left: 0;
  width: 160px;
  height: 100%;
  padding: 22px 0;
  text-align: center;
  color: var(--aside-text);
  background: var(--aside);
  overflow-y: auto;
}
.logo { text-align: center; margin-bottom: 18px; padding: 0 14px; }
.logo a { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.logo svg { display: block; }
.logo .brand-word { font-size: 19px; font-weight: 800; letter-spacing: 1px; color: #fff; }
.logo .brand-sub { font-size: 10px; color: var(--aside-dim); letter-spacing: .5px; }

.nav { width: 100%; overflow: auto; }
.nav-box { width: 100%; padding-top: 8px; padding-bottom: 8px; }
.nav-item { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; padding: 4px 0; }
.nav-item svg { width: 22px; height: 22px; margin-left: 18px; margin-right: 12px; flex-shrink: 0; color: var(--aside-dim); }
.nav a, .nav a:visited { font-size: 15px; font-weight: 500; color: var(--aside-dim); }
.nav a:hover { font-weight: bold; color: #fff; text-decoration: none; }
.nav a:hover svg { color: #fff; }
.nav .current a { display: inline-block; font-weight: 700; color: #fff; border-bottom: 2px solid var(--accent); }
.nav .current svg { color: var(--accent); }
#add_wechat { margin-top: 26px; }
#add_wechat .wx-card { margin: 0 auto; width: 120px; background: var(--aside-2); border-radius: 8px; padding: 10px; color: var(--aside-dim); font-size: 12px; }

/* ============================================================
   topbar (search + theme toggle)
   ============================================================ */
.topbar {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 12px; margin: 20px 0 0; padding: 10px 14px;
  background: var(--card); box-shadow: var(--shadow); border-radius: 6px;
}
.search { flex: 1 1 auto; min-width: 0; position: relative; }
.search .search-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; padding: 9px 14px 9px 36px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg); color: var(--ink); font-size: 14px; outline: none;
}
.search input:focus { border-color: var(--accent); }
.topbar-actions { display: flex; gap: 8px; }
.topbar-date {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  padding: 0 8px 0 0;
  border-right: 1px solid var(--line);
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--bg); color: var(--ink); font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn .ic { width: 15px; height: 15px; }

/* ============================================================
   content column
   ============================================================ */
.content {
  width: 100%;
  min-height: 100%;
  padding-left: 160px;
  padding-right: 20px;
  background: var(--bg);
}
.main {
  margin: 0 auto;
  padding-top: 20px;
  padding-left: 20px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.card-box { width: calc(100% - 320px); margin-right: 20px; }

/* ---------- page head (section pages) ---------- */
.page-head { padding: 6px 2px 14px; }
.page-head h1 { font-size: 20px; color: var(--ink); margin: 0; display: inline-block; }
.page-head p { color: var(--ink-3); font-size: 13px; margin: 6px 0 0; }
.demo-flag {
  display: inline-block; font-size: 12px; color: var(--hot);
  border: 1px solid var(--hot); border-radius: 10px; padding: 1px 8px; margin-left: 10px;
  vertical-align: middle;
}

/* ============================================================
   A-share overview card (大盘)
   ============================================================ */
.dapan {
  padding: 12px;
  margin-bottom: 20px;
  background: var(--card);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  box-shadow: var(--shadow);
  border-radius: 6px;
}
.dapan-row {
  width: 104px;
  text-align: center;
  margin-right: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 6px;
}
.dapan-row:hover { background: var(--line-2); }
.dapan-name { color: var(--ink); font-size: 13px; }
.dapan-index { font-weight: bold; font-size: 20px; margin: 2px 0; }
.dapan-sub { font-size: 12px; }
.dapan-red { color: var(--up); }
.dapan-green { color: var(--down); }
.dapan-black { color: var(--ink); }
.dapan-sub-remark { color: var(--ink-4); font-size: 11px; }
.dapan-name-row { display: flex; align-items: center; justify-content: center; gap: 4px; }
.dapan-name-row .star { font-size: 13px; }

/* ============================================================
   realtime tab boards
   ============================================================ */
.real-time-box { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.tabs {
  width: 100%;
  margin-right: 0;
  margin-bottom: 0;
  background: var(--card);
  box-sizing: border-box;
  box-shadow: var(--shadow);
  border-radius: 6px;
}
.tab-head { border-bottom: 1px solid var(--line); display: flex; }
.tab-head span {
  display: inline-block;
  padding: 10px 14px;
  margin-right: 6px;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}
.tab-head span:hover { color: var(--ink); }
.tab-head span.active {
  color: var(--accent);
  font-weight: 700;
  border-bottom-color: var(--accent);
}
.tab-body { padding-bottom: 20px; }
.tab-idx { padding: 6px 10px; height: 560px; overflow: hidden; overflow-y: auto; }

.box-row { width: 100%; padding: 9px 10px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; }
.box-row:hover { background: var(--line-2); }
.box-main { flex: 1; min-width: 0; }
.box-header { display: flex; flex-direction: row; justify-content: space-between; font-size: 15px; color: var(--blue); }
.box-body { display: flex; flex-direction: row; justify-content: space-between; font-size: 12px; margin-top: 2px; }
.box-val { font-weight: 700; font-size: 15px; }

/* open/closed market clock indicator (CSS, replaces original time.png sprite) */
.box-row-green, .box-row-red { color: var(--ink-2); position: relative; padding-left: 18px; }
.box-row-green::before, .box-row-red::before {
  position: absolute; top: 2px; left: 0;
  content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%;
}
.box-row-green::before { background: #2ecc71; }   /* market open */
.box-row-red::before { background: #e74c3c; }    /* market closed */

/* star / watchlist toggle */
.star { display: inline-block; cursor: pointer; color: var(--ink-4); font-size: 15px; user-select: none; line-height: 1; }
.star.on { color: var(--hot); }
.spark { display: inline-block; vertical-align: middle; margin-left: 8px; }

.redBg, .greenBg { animation: 2s flash-neutral; }
@keyframes flash-neutral { 0% { background: #fff; } 100% { background: #fff; } }
.flash-up { animation: 1.4s flashUp; }
.flash-down { animation: 1.4s flashDown; }
@keyframes flashUp { 0% { background: var(--flash-up); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: var(--flash-down); } 100% { background: transparent; } }
.market-foot { width: 100%; margin: 4px 0 20px; color: var(--ink-4); font-size: 12px; text-align: center; }

/* 栏目可收起下拉（移动端顶部栏，桌面用侧栏） */
.header-cats { display: none; }
.header-dropdown { display: none; }

/* 返回顶部悬浮按钮（全局，滚动超一屏后出现） */
.back-top {
  position: fixed; right: 18px; bottom: 22px; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px rgba(20, 40, 80, .28);
  font-size: 17px; line-height: 1; opacity: 0; transform: translateY(12px);
  pointer-events: none; transition: opacity .25s, transform .25s, background .2s;
}
.back-top span { font-size: 10px; margin-top: 2px; }
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: #1a4fd6; }


/* ============================================================
   watchlist panel (我的自选)
   ============================================================ */
.watchlist { margin-bottom: 20px; background: var(--card); box-shadow: var(--shadow); border-radius: 6px; }
.watchlist-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-3); font-weight: 700; }
.watchlist-head .clear { font-size: 12px; color: var(--ink-4); cursor: pointer; font-weight: 400; }
.watchlist-head .clear:hover { color: var(--accent); }
.watchlist-body { padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.watch-chip { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 160px; }
.watch-chip .wc-name { font-size: 13px; color: var(--ink); }
.watch-chip .wc-val { font-weight: 700; font-size: 14px; }
.watch-chip .wc-pct { font-size: 12px; }
.watch-chip .wc-x { cursor: pointer; color: var(--ink-4); margin-left: 4px; font-size: 14px; }
.watch-chip .wc-x:hover { color: var(--up); }
.watch-empty { padding: 18px; color: var(--ink-4); font-size: 13px; text-align: center; width: 100%; }

/* ============================================================
   news feed (7x24)
   ============================================================ */
.news-box {
  flex-shrink: 0;
  width: 300px;
  margin-bottom: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 6px;
}
.index-wrap {
  width: 100%;
  height: 760px;
  margin: 0;
  background: var(--card);
  overflow: hidden;
  overflow-y: auto;
  border-radius: 0 0 6px 6px;
}
.index-title {
  display: flex; flex-direction: row; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  font-size: 16px; color: var(--ink-3); font-weight: 700;
}
.index-title-source { font-size: 13px; color: var(--ink-4); font-weight: 300; }
.index-row { padding: 10px 20px; border-bottom: 1px dashed var(--line-2); }
.index-row:hover { background: var(--line-2); }
.index-row-title { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.index-row-content { color: var(--ink); font-size: 15px; line-height: 1.6; }
.index-tips {
  display: none; cursor: pointer; text-align: center;
  background: var(--accent-soft); color: var(--accent); padding: 10px; font-size: 14px;
}
.index-tips span { font-weight: bold; }
.index-more { cursor: pointer; text-align: center; background: var(--card); color: var(--ink-3); padding: 18px 0; }
.index-more:hover { color: var(--accent); }
.font-color0, .font-color1 { color: var(--ink); }
.font-color2 { color: var(--hot); }     /* highlighted / hot news */

/* hidden-by-search helper */
.hidden { display: none !important; }

/* ============================================================
   news page (热点资讯)
   ============================================================ */
.news-nav { background: var(--card); box-shadow: var(--shadow); margin-bottom: 20px; border-radius: 6px; }
.news-nav-wrap { padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 4px; }
.news-nav-wrap .nav-a {
  display: inline-block; margin-right: 18px; padding: 4px 2px; font-size: 15px; color: var(--ink-3); font-weight: 500;
}
.news-nav-wrap .nav-a:hover { color: var(--ink); text-decoration: none; }
.news-nav-wrap .nav-a.active { color: var(--accent); font-weight: 700; border-bottom: 2px solid var(--accent); }

.news-main { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.news-list-box { width: calc(100% - 340px); margin-right: 20px; background: var(--card); box-shadow: var(--shadow); border-radius: 6px; }
.news-list-head { font-size: 16px; color: var(--ink-3); font-weight: 700; padding: 14px 20px; border-bottom: 1px solid var(--line); display:flex; justify-content: space-between; }
.news-list-head .count { font-size: 13px; color: var(--ink-4); font-weight: 400; }
.news-item { padding: 14px 20px; border-bottom: 1px dashed var(--line-2); }
.news-item:hover { background: var(--line-2); }
.news-item-time { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.news-item-cat { display:inline-block; font-size:11px; padding:1px 7px; border-radius:9px; background:var(--accent-soft); color:var(--accent); margin-left:8px; }
.news-item-content { font-size: 15px; line-height: 1.65; color: var(--ink); }
.news-item-content.hot { color: var(--hot); font-weight: 600; }
.news-item-meta { font-size: 12px; color: var(--ink-4); margin-top: 6px; }
.news-load-more { text-align: center; color: var(--ink-3); cursor: pointer; padding: 20px; }
.news-load-more:hover { color: var(--accent); }

.rank-box { width: 320px; background: var(--card); box-shadow: var(--shadow); align-self: stretch; border-radius: 6px; }
.rank-head { font-size: 16px; color: var(--ink-3); font-weight: 700; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.rank-head-tag { float: right; font-size: 13px; color: var(--ink-4); font-weight: 300; }
.rank-row { display: flex; flex-direction: row; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line-2); }
.rank-flag {
  width: 22px; height: 22px; line-height: 22px; text-align: center;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--ink-4); border-radius: 3px; margin-right: 12px; flex-shrink: 0;
}
.rank-flag.top { background: var(--hot); }
.rank-content { font-size: 14px; line-height: 1.5; color: var(--ink); }
.rank-views { font-size: 11px; color: var(--ink-4); margin-top: 2px; }

/* ============================================================
   A股数据 (stocks table)
   ============================================================ */
.stocks { width: 100%; background: var(--card); box-shadow: var(--shadow); margin-bottom: 20px; border-radius: 6px; overflow: hidden; }
.stocks-head { padding: 12px 18px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink-3); font-size: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.stocks-tools { font-size: 13px; color: var(--ink-3); display: flex; gap: 10px; align-items: center; }
.stocks-tools select { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); }
table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th, table.tbl td { padding: 10px 14px; text-align: right; font-size: 14px; border-bottom: 1px solid var(--line-2); }
table.tbl th { color: var(--ink-3); font-weight: 600; font-size: 13px; cursor: pointer; background: var(--bg); user-select: none; white-space: nowrap; }
table.tbl th:hover { color: var(--accent); }
table.tbl th:first-child, table.tbl td:first-child { text-align: left; }
table.tbl td.name { color: var(--blue); font-weight: 600; }
table.tbl td.code { color: var(--ink-4); font-size: 12px; }
table.tbl tr:hover { background: var(--line-2); }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--ink-3); }

/* ============================================================
   大V观点 (KOL cards)
   ============================================================ */
.kol-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.kol-card { width: calc((100% - 32px) / 3); background: var(--card); box-shadow: var(--shadow); padding: 16px; border-radius: 8px; }
.kol-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.kol-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.kol-name { font-weight: 700; color: var(--ink); font-size: 15px; }
.kol-handle { font-size: 12px; color: var(--ink-4); }
.kol-meta { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.kol-post { font-size: 14px; line-height: 1.6; color: var(--ink); margin-bottom: 10px; }
.kol-foot { display: flex; justify-content: space-between; align-items: center; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.tag.bull { background: rgba(221, 34, 0, .1); color: var(--up); }
.tag.bear { background: rgba(0, 153, 51, .12); color: var(--down); }
.tag.neutral { background: var(--line-2); color: var(--ink-3); }
.btn-sm { padding: 4px 12px; font-size: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); cursor: pointer; }
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   宏观经济 (macro cards)
   ============================================================ */
.macro-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.macro-card { width: calc((100% - 48px) / 3); background: var(--card); box-shadow: var(--shadow); padding: 16px; border-radius: 8px; }
.macro-name { font-size: 14px; color: var(--ink-3); }
.macro-val { font-size: 24px; font-weight: 700; margin: 6px 0; }
.macro-sub { font-size: 12px; color: var(--ink-4); }
.macro-spark { margin-top: 8px; }
/* 宏观卡片：单位 / 同比 / 备注 / 状态标签 */
.macro-unit { font-size: 13px; color: var(--ink-3); font-weight: 400; margin-left: 2px; }
.macro-yoy { font-size: 13px; font-weight: 600; margin-top: 2px; }
.macro-yoy.up { color: var(--up); }
.macro-yoy.down { color: var(--down); }
.macro-note { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.meta-tag { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--ink-4); padding: 1px 8px; border-radius: 10px; background: var(--line-2); }
/* 大V / 热点 区块 */
.kol-section { width: 100%; margin-bottom: 22px; }
.kol-sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.kol-sec-head h2 { font-size: 18px; margin: 0; color: var(--ink); }
.kol-sec-sub { font-size: 12px; color: var(--ink-4); }
.kol-rank { width: 36px; color: var(--ink-4); text-align: center; }
.kol-pv { color: var(--ink-3); }
.kol-news { display: flex; flex-direction: column; }
.kol-news-item { padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.kol-news-title { font-size: 15px; line-height: 1.5; color: var(--ink); }
.kol-news-meta { font-size: 12px; color: var(--ink-4); margin-top: 4px; }

/* ============================================================
   财经导航 (nav grid)
   ============================================================ */
.nav-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.nav-cat { width: calc((100% - 32px) / 2); background: var(--card); box-shadow: var(--shadow); padding: 16px; border-radius: 8px; }
.nav-cat h3 { margin: 0 0 10px; font-size: 15px; color: var(--accent); }
.nav-cat a { display: inline-block; margin: 0 14px 8px 0; color: var(--blue); font-size: 14px; }
.nav-cat a:hover { color: var(--accent); }

/* ============================================================
   section hub (关于/免责/地图/友链)
   ============================================================ */
.section-box { width: 100%; background: var(--card); box-shadow: var(--shadow); padding: 36px 30px; border-radius: 8px; }
.section-box h1 { font-size: 22px; color: var(--ink); margin: 0 0 12px; }
.section-box h2 { font-size: 16px; color: var(--ink); margin: 22px 0 8px; }
.section-box p { color: var(--ink-3); font-size: 14px; line-height: 1.8; max-width: 760px; margin: 0 0 8px; }
.section-box .hint { color: var(--ink-4); font-size: 13px; }
.section-box ul { color: var(--ink-3); font-size: 14px; line-height: 1.9; max-width: 760px; padding-left: 20px; }

/* ============================================================
   footer
   ============================================================ */
.footer {
  text-align: center; color: var(--ink-4); font-size: 12px;
  padding: 14px 20px 14px 160px; background-color: var(--card); min-height: 60px;
}
.footer a { color: var(--ink-4); }
.footer a:hover { color: var(--accent); text-decoration: underline; }
.foot-link { margin-bottom: 5px; }
.foot-link span { display: inline-block; padding: 0 5px; }

/* ============================================================
   responsive
   ============================================================ */
@media only screen and (max-width: 767px) {
  .header { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 52px; overflow: hidden; }
  .header-brand { flex: 0 0 auto; font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 1px; white-space: nowrap; }
  .header { overflow: visible; }
  .header-nav { display: none; }
  .header a { color: var(--aside-dim); }
  .header .active-nav { color: #fff; }
  .header-cats {
    display: inline-flex; align-items: center; gap: 4px; margin-left: auto;
    background: var(--accent); color: #fff; border: 0; border-radius: 16px;
    padding: 6px 12px; font-size: 13px; cursor: pointer; white-space: nowrap;
  }
  .header-cats .caret { font-size: 10px; transition: transform .2s; }
  .header-cats[aria-expanded="true"] .caret { transform: rotate(180deg); }
  .header-dropdown {
    display: none; position: fixed; top: 50px; left: 8px; right: 8px; z-index: 120;
    background: var(--aside-2); border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35); padding: 6px; max-height: 70vh; overflow-y: auto;
  }
  .header-dropdown.open { display: block; }
  .header-dropdown a {
    display: block; padding: 12px 14px; color: var(--aside-text); font-size: 15px;
    font-weight: 500; border-radius: 6px; border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .header-dropdown a:last-child { border-bottom: 0; }
  .header-dropdown a.active { color: var(--accent); font-weight: 700; }
  .header-dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
  .menu { display: block; }
  .aside { display: none; }
  .content { padding-left: 0; padding-right: 12px; padding-top: 56px; }
  .main { padding-left: 12px; }
  .topbar { flex-wrap: wrap; }
  .topbar-date { flex: 1 1 100%; margin: 0 0 6px; padding: 0; border-right: 0; font-size: 13px; color: var(--ink-3); }
  .card-box { width: 100%; margin-right: 0; }
  .news-box { width: 100%; }
  .tabs { width: 100%; margin-right: 0; }
  .real-time-box { grid-template-columns: 1fr; }
  .news-list-box, .rank-box { width: 100%; margin-right: 0; }
  .index-wrap { height: auto; overflow-y: hidden; }
  .tab-idx { height: auto; overflow-y: hidden; }
  .footer { padding-left: 12px; }
  .kol-card, .macro-card { width: 100%; }
  .nav-cat { width: 100%; }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .card-box { width: 100%; margin-right: 0; }
  .news-list-box { width: 100%; margin-right: 0; }
  .rank-box { width: 100%; }
  .kol-card { width: calc((100% - 16px) / 2); }
  .macro-card { width: calc((100% - 16px) / 2); }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .kol-card, .macro-card { width: calc((100% - 32px) / 2); }
}
