/* ============================================================
   机器牛 · 网页版样式
   ------------------------------------------------------------
   一套 DOM，两种布局：
     · 手机（< 900px）：底部 tab + 单列卡片，与小程序观感一致
     · 桌面（>= 900px）：顶部导航 + 两列网格，信息密度更高
   颜色沿用小程序设计变量（A 股习惯：红涨绿跌）
   ============================================================ */

:root {
  --red: #E5342B;
  --red-deep: #C4231B;
  --red-soft: #FFF1EF;
  --up: #E5342B;
  --down: #12A150;
  --flat: #9099A6;
  --ink: #1F2329;
  --ink-2: #5E6672;
  --ink-3: #9AA1AC;
  --line: #DFE3E9;
  --hair: #EFF1F4;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --fill: #F2F4F7;
  --shadow: 0 1px 2px rgba(20, 24, 35, .04), 0 6px 18px rgba(20, 24, 35, .04);
  --r: 16px;
  --tabbar-h: 58px;
  --topbar-h: 56px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--flat); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; display: block; }

/* ---------------------------- 顶栏 ---------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hair);
}
.topbar-in {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 20px;
}
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 8px; flex: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(150deg, #F2544A, var(--red-deep));
  color: #fff; font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
  letter-spacing: -.5px;
}
.brand-txt { font-weight: 800; font-size: 16px; letter-spacing: -.3px; display: flex; align-items: baseline; gap: 6px; }
.brand-txt em { font-style: normal; font-weight: 500; font-size: 10px; color: var(--ink-3); letter-spacing: .4px; }

.nav { display: flex; gap: 4px; }
.nav-i {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav-i:hover { background: var(--fill); color: var(--ink); }
.nav-i.on { background: var(--red-soft); color: var(--red); }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-date { font-size: 12px; color: var(--ink-3); }
.icon-btn {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--fill); color: var(--red); }
.icon-btn.spin .ico { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------- 主区 ---------------------------- */
body { display: flex; flex-direction: column; min-height: 100vh; }
.app {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px 10px;
  flex: 1 0 auto;
}

/* ---------------------------- 页脚（备案号） ---------------------------- */
.site-foot {
  flex: none;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2px 16px calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.9;
}
.sf-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 6px; }
.site-foot .sep { color: #C7CDD6; }
.sf-icp {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-3);
  padding-bottom: .5px;
  transition: color .15s, border-color .15s;
}
.sf-icp:hover { color: var(--red); border-bottom-color: var(--red); }
.boot { padding: 80px 0; text-align: center; color: var(--ink-3); font-size: 13px; }
.spinner {
  width: 22px; height: 22px; margin: 0 auto 10px;
  border: 2px solid var(--hair);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* 公告条 */
.notice {
  display: flex; align-items: flex-start; gap: 7px;
  background: #FFF9E8;
  border: 1px solid #F6E6B8;
  color: #8A6A1A;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.notice .ico { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.notice span { flex: 1; min-width: 0; }

/* 页面标题行 */
.page-head {
  display: flex; align-items: center; gap: 10px;
  margin: 2px 2px 12px;
}
.page-head h1 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.page-head .sub { font-size: 12px; color: var(--ink-3); margin-left: auto; text-align: right; }
.page-head .sub b { color: var(--ink-2); font-weight: 600; }

/* 子标签：胶囊（罗盘） */
.pills {
  display: flex; gap: 6px;
  background: #EDEFF3;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: 1;
  min-width: 64px;
  text-align: center;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.pill:hover { color: var(--ink); }
.pill.on { background: #fff; color: var(--red); box-shadow: 0 1px 3px rgba(20,24,35,.10); }

/* 子标签：下划线（热门） */
.segs {
  display: flex; gap: 22px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.segs::-webkit-scrollbar { display: none; }
.seg {
  position: relative;
  padding: 9px 0 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.seg.on { color: var(--ink); }
.seg.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2.5px; border-radius: 2px; background: var(--red);
}

/* ---------------------------- 卡片 ---------------------------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-h {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.card-h h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.1px; }
.card-h .more { margin-left: auto; font-size: 11.5px; color: var(--ink-3); font-weight: 400; text-align: right; }
.card-h .chip { font-size: 11px; color: var(--ink-2); background: var(--fill); border-radius: 999px; padding: 2px 8px; }

.empty { padding: 36px 8px; text-align: center; color: var(--ink-3); font-size: 12.5px; }
.err { padding: 26px 8px; text-align: center; }
.err p { margin: 0 0 4px; font-size: 13px; color: var(--ink-2); }
.err small { display: block; color: var(--ink-3); font-size: 11.5px; word-break: break-all; margin-bottom: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .15s, color .15s, background .15s;
}
.btn:hover { border-color: var(--red); color: var(--red); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-deep); }
.btn.sm { height: 26px; padding: 0 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; }

/* 接口异常横幅 */
.apifail {
  display: flex; align-items: center; gap: 10px;
  background: #FFF4F2;
  border: 1px solid #FFD9D3;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.apifail-ico {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: 12px;
  display: grid; place-items: center;
}
.apifail-body { flex: 1; min-width: 0; }
.apifail-t { display: block; font-size: 12.5px; font-weight: 600; color: #9B2C22; }
.apifail-d { display: block; font-size: 11.5px; color: #A8625A; margin-top: 1px; word-break: break-all; }

/* ---------------------------- 情绪：双圆环 ---------------------------- */
.duo { display: flex; gap: 12px; justify-content: space-around; padding: 4px 0 2px; }
.duo-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gauge {
  --v: 0;
  --tone: var(--up);
  width: 118px; height: 118px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  /* conic-gradient 默认 0° 在 12 点，顺时针增长 —— 正是仪表盘想要的起点 */
  background: conic-gradient(
    var(--tone) 0 calc(var(--v) * 3.6deg),
    #EDEFF3 calc(var(--v) * 3.6deg) 360deg);
  transition: background .5s ease;
}
.gauge::before {
  content: "";
  position: absolute; inset: 10px;
  background: #fff; border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(20,24,35,.05);
}
.gauge.cold { --tone: var(--down); }
.gauge-txt {
  position: relative; z-index: 2;
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
  line-height: 1;
}
.gauge-txt b { font-size: 27px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.gauge-txt b.hot { color: var(--up); }
.gauge-txt b.cold { color: var(--down); }
.gauge-txt i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.duo-cap { font-size: 12px; color: var(--ink-2); }
.duo-cap em { font-style: normal; color: var(--ink-3); font-size: 11px; margin-left: 4px; }

/* 温度条 */
.temp { position: relative; height: 10px; border-radius: 6px; margin: 26px 0 8px;
  background: linear-gradient(90deg, #9ED8B8 0%, #C9E8D6 18%, #F0E6C8 46%, #F3BDB6 72%, #E5342B 100%); }
.temp-mark { position: absolute; top: -7px; transform: translateX(-50%); transition: left .5s ease; }
.temp-dot {
  display: block; width: 4px; height: 24px; border-radius: 3px;
  background: #1F2329; box-shadow: 0 0 0 3px rgba(31,35,41,.12);
}
.temp-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }

/* 柱状图（趋势 / 成交额共用） */
.bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 132px;
  padding: 8px 0 0;
}
.bars .avgline {
  position: absolute; left: 0; right: 0; height: 0;
  border-top: 1px dashed #C9CFD9;
  z-index: 2;
}
.bars .col { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.bars .bar {
  width: 100%;
  border-radius: 3px 3px 1px 1px;
  min-height: 2px;
  transition: height .45s ease;
}
.bars .bar.hot { background: linear-gradient(180deg, #F0655C, #E5342B); }
.bars .bar.cold { background: linear-gradient(180deg, #6FC79A, #12A150); }
.bars .bar.up { background: linear-gradient(180deg, #F0655C, #E5342B); }
.bars .bar.down { background: linear-gradient(180deg, #6FC79A, #12A150); }
.bars .bar.flat { background: #C6CCD6; }
.bars .col:hover .bar { filter: brightness(1.06); }
.xlabels { display: flex; gap: 4px; margin-top: 6px; }
.xlabels span { flex: 1; text-align: center; font-size: 10px; color: var(--ink-3); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 11.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.legend .lg-hot { background: var(--up); }
.legend .lg-cold { background: var(--down); }
.legend .lg-gray { background: #C6CCD6; }
.legend .lg-dash {
  width: 12px; height: 0; border-top: 1.5px dashed #C9CFD9; border-radius: 0;
  vertical-align: 3px;
}
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; margin-bottom: 12px; }
.kpi small { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 1px; }
.kpi b { font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.kpi em { font-style: normal; font-size: 11px; color: var(--ink-3); margin-left: 3px; }
.meta-line { font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
.meta-line b { color: var(--ink-2); font-weight: 600; }

/* 外围指数 */
.os-list { display: grid; grid-template-columns: 1fr; gap: 2px; }
.os-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--hair);
}
.os-row:last-child { border-bottom: 0; }
.os-name { font-size: 13px; font-weight: 600; }
.os-sub { font-size: 11px; color: var(--ink-3); margin-left: 6px; }
.os-r { margin-left: auto; text-align: right; display: flex; align-items: baseline; gap: 10px; }
.os-v { font-size: 13px; font-weight: 600; }
.os-p { font-size: 12.5px; font-weight: 700; min-width: 62px; text-align: right; }

/* 资金流向 */
.flow-row { display: flex; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--hair); }
.flow-row:last-child { border-bottom: 0; }
.flow-dot { width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; flex: none; }
.flow-name { font-size: 12.5px; color: var(--ink-2); }
.flow-v { margin-left: auto; font-size: 13px; font-weight: 700; }

/* 北向 */
.nb { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nb-item { background: var(--fill); border-radius: 12px; padding: 12px; }
.nb-l { font-size: 11.5px; color: var(--ink-2); }
.nb-v { font-size: 22px; font-weight: 800; letter-spacing: -.6px; margin-top: 2px; }
.nb-u { font-size: 11px; color: var(--ink-3); margin-left: 3px; }
.nb-tip { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }

/* 涨跌对比 */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.cmp-col { text-align: center; }
.cmp-v { font-size: 28px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.cmp-l { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.cmp-s { display: block; font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.cmp-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--hair); }
.cmp-bar i { display: block; height: 100%; }
.cmp-bar .b-up { background: linear-gradient(90deg, #EF5B4F, #E5342B); }
.cmp-bar .b-down { background: linear-gradient(90deg, #12A150, #4FC186); }
/* 全 A 两条独立横条 */
.bar-lines { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.bar-line { height: 9px; background: var(--hair); border-radius: 5px; overflow: hidden; }
.bar-line i { display: block; height: 100%; border-radius: 5px; transition: width .4s ease; }
.bar-line i.up { background: linear-gradient(90deg, #F0796F, #E5342B); }
.bar-line i.down { background: linear-gradient(90deg, #6FC79A, #12A150); }
.bar-line i.flat { background: #C6CCD6; }
.note { font-size: 11.5px; color: var(--ink-2); line-height: 1.65; margin-top: 12px;
  background: var(--fill); border-radius: 10px; padding: 9px 11px; }
.note .scope { display: block; color: var(--ink-3); font-size: 11px; margin-top: 3px; }

/* 板块热度榜 */
.ptabs { display: inline-flex; gap: 2px; background: var(--fill); border-radius: 9px; padding: 3px; margin-bottom: 12px; }
.ptab { padding: 4px 13px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ptab.on { background: #fff; color: var(--red); box-shadow: 0 1px 2px rgba(20,24,35,.08); }
.board { display: grid; grid-template-columns: 1fr; gap: 4px 22px; }
.board-col { min-width: 0; }
.heat-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.heat-name { font-size: 12px; width: 74px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heat-bar { flex: 1; height: 7px; background: var(--hair); border-radius: 4px; overflow: hidden; }
.heat-fill { display: block; height: 100%; border-radius: 4px; }
.heat-fill.up { background: linear-gradient(90deg, #F4A198, #E5342B); }
.heat-fill.down { background: linear-gradient(90deg, #8AD3AC, #12A150); }
.heat-val { width: 52px; text-align: right; font-size: 12px; font-weight: 700; flex: none; }

/* 板块云盘（treemap） */
.cloud { position: relative; width: 100%; height: 300px; border-radius: 10px; overflow: hidden; background: var(--hair); }
.cloud-blk {
  position: absolute; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2px; gap: 1px;
  outline: 1px solid rgba(255,255,255,.7);
  transition: filter .15s;
}
.cloud-blk:hover { filter: brightness(1.08); z-index: 3; }
.cb-name { font-size: 11px; font-weight: 600; line-height: 1.15; text-align: center; }
.cb-pct { font-size: 10px; opacity: .95; }
.cloud-legend { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 10px; font-size: 11px; color: var(--ink-3); }
.cl-bar { width: 110px; height: 7px; border-radius: 4px;
  background: linear-gradient(90deg, #0A6B3C, #12A150, #96DAB6, #C4CAD4, #FBAA9F, #E5342B, #B71C14); }

/* ---------------------------- 热门：列表 ---------------------------- */
.notice + .segs { margin-top: 2px; }
.list { border-radius: 12px; overflow: hidden; }
.lhead, .lrow {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
}
.lhead {
  font-size: 11px; color: var(--ink-3); font-weight: 500;
  background: #FAFBFC;
  border-bottom: 1px solid var(--hair);
  border-radius: 10px 10px 0 0;
}
.lrow {
  border-bottom: 1px solid var(--hair);
  transition: background .12s;
  cursor: pointer;
}
.lrow:last-child { border-bottom: 0; }
.lrow:hover { background: #FBFCFE; }
.lrank {
  width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  background: var(--fill); color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.lrank.top1 { background: linear-gradient(150deg, #F2544A, #C4231B); color: #fff; }
.lrank.top2 { background: #FFE9E6; color: #C4231B; }
.lrank.top3 { background: #FFF1EF; color: #D8433A; }
.lname { min-width: 0; }
.lname b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -.1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lname small { display: block; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lf { font-size: 13px; font-weight: 700; text-align: right; }
.lsub { font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lact { justify-self: end; }
.follow {
  height: 26px; padding: 0 10px; border-radius: 7px;
  border: 1px solid #F5C9C4; background: #FFF6F5; color: var(--red);
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.follow:hover { background: var(--red); border-color: var(--red); color: #fff; }
.follow.added { border-color: var(--hair); background: var(--fill); color: var(--ink-3); }
.list-end { text-align: center; font-size: 11px; color: var(--ink-3); padding: 14px 0 4px; }

/* 人气榜列宽（手机 / 桌面共用，桌面留白更多） */
.hot-grid { grid-template-columns: 26px minmax(0, 1fr) 58px 74px 62px; }
.focus-grid { grid-template-columns: minmax(0, 1.4fr) 54px 54px 54px 66px 62px; }

/* ---------------------------- 热门：详情 ---------------------------- */
.detail-layout { display: block; }
.picker {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
}
.picker::-webkit-scrollbar { display: none; }
.pk {
  flex: none;
  min-width: 88px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--hair);
  background: #fff;
  display: flex; flex-direction: column; gap: 2px;
  transition: border-color .15s, background .15s;
}
.pk:hover { border-color: #F3C2BC; }
.pk.on { border-color: var(--red); background: var(--red-soft); }
.pk-r { font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pk.on .pk-r { color: var(--red); font-weight: 700; }
.pk-n { font-size: 12.5px; font-weight: 700; white-space: nowrap; }

.hd { display: flex; align-items: flex-start; gap: 12px; }
.hd-nm { font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.hd-cd { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; font-variant-numeric: tabular-nums; }
.hd-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.dtag { font-size: 10.5px; padding: 2px 7px; border-radius: 5px; background: var(--fill); color: var(--ink-2); font-weight: 600; }
.dtag.liq { background: #EAF6EF; color: #0F7A3D; }
.hd-score { margin-left: auto; text-align: right; flex: none; }
.hd-score b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.8px; color: var(--red); line-height: 1; }
.hd-score span { font-size: 10.5px; color: var(--ink-3); }
.hd-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--hair); }
.hds-i { font-size: 11.5px; color: var(--ink-3); }
.hds-i b { color: var(--ink); font-weight: 600; margin-left: 3px; }

.sec-t { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.sec-t h2 { margin: 0; font-size: 13.5px; font-weight: 700; }
.sec-t span { font-size: 11px; color: var(--ink-3); }

.stack { display: flex; height: 9px; border-radius: 5px; overflow: hidden; background: var(--hair); margin-bottom: 14px; }
.stack i { display: block; height: 100%; }
.bars-list { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: flex; align-items: center; gap: 9px; }
.bar-l { font-size: 12px; width: 96px; flex: none; color: var(--ink-2); white-space: nowrap; }
.bar-l em { font-style: normal; font-size: 10px; color: var(--ink-3); margin-left: 3px; }
.bar-track { flex: 1; height: 8px; background: var(--hair); border-radius: 4px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 4px; }
.bar-v { width: 40px; text-align: right; font-size: 12px; font-weight: 700; flex: none; }

.points { display: flex; flex-direction: column; gap: 8px; }
.pt { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.pt i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex: none; margin-top: 7px; }

.mat { display: flex; flex-direction: column; gap: 11px; }
.mat-row { display: flex; gap: 10px; }
.mat-k { flex: none; width: 34px; font-size: 11.5px; color: var(--ink-3); padding-top: 1px; }
.mat-v { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.mat-mid { font-weight: 700; color: var(--ink); }
.mat-none { color: var(--ink-3); }
.why-toggle { font-size: 11px; color: var(--red); margin-left: 6px; cursor: pointer; }
.why { margin-top: 6px; background: var(--fill); border-radius: 8px; padding: 8px 10px; }
.why div { font-size: 11px; color: var(--ink-2); line-height: 1.65; padding-left: 9px; position: relative; }
.why div::before { content: ""; position: absolute; left: 0; top: 8px; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }

.grid6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); border-radius: 10px; overflow: hidden; }
.cell { background: #fff; padding: 10px 11px; }
.cell-k { display: block; font-size: 10.5px; color: var(--ink-3); }
.cell-v { display: block; font-size: 14px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.cell-v u { text-decoration: none; font-size: 10px; color: var(--ink-3); margin-left: 2px; font-weight: 500; }
.hot-note { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 9px; line-height: 1.6; }
.foot { text-align: center; font-size: 11px; color: var(--ink-3); padding: 14px 8px 4px; line-height: 1.7; }
.foot b { display: block; font-weight: 400; }

/* ---------------------------- 热门：回顾 ---------------------------- */
.rc-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.rk { background: var(--fill); border-radius: 11px; padding: 11px 12px; }
.rk small { display: block; font-size: 10.5px; color: var(--ink-3); }
.rk b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.6px; margin-top: 2px; }
.rk em { font-style: normal; font-size: 10px; color: var(--ink-3); }
.rc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; font-size: 11px; color: var(--ink-2); }
.rc-legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: 3px; }
.chart-wrap { position: relative; width: 100%; overflow-x: auto; }
svg.rc { display: block; width: 100%; height: auto; overflow: visible; }
.rc-foot { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11.5px; color: var(--ink-2); margin-top: 6px; }
.rc-note { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.6; margin-top: 9px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.rt { width: 100%; border-collapse: collapse; font-size: 11.5px; min-width: 460px; }
table.rt th {
  text-align: right; font-weight: 500; color: var(--ink-3); font-size: 10.5px;
  padding: 7px 6px; border-bottom: 1px solid var(--hair); white-space: nowrap;
}
table.rt th:first-child, table.rt td:first-child { text-align: left; }
table.rt td {
  text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--hair);
  font-variant-numeric: tabular-nums; color: var(--ink);
}
table.rt tr.ph td { background: #FFFBEF; }
table.rt tr:last-child td { border-bottom: 0; }
.phsup { font-size: 9px; color: #B58A22; margin-left: 1px; }
.rt-tip { display: block; font-size: 10.5px; color: var(--ink-3); line-height: 1.65; margin-top: 9px; }

/* ---------------------------- 我的 ---------------------------- */
.mine-wrap { max-width: 100%; }
.mine-hero {
  background: linear-gradient(135deg, #E5342B 0%, #C4231B 60%, #9E1A14 100%);
  border-radius: var(--r);
  padding: 18px;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(196, 35, 27, .22);
}
.mh-top { display: flex; align-items: center; gap: 12px; }
.mh-ava {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  display: grid; place-items: center;
  font-size: 18px; font-weight: 800;
}
.mh-name { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.mh-desc { font-size: 11.5px; color: rgba(255,255,255,.8); margin-top: 2px; }
.mh-badge { margin-left: auto; font-size: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.18); }
.mh-hint {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2);
  font-size: 11.5px; color: rgba(255,255,255,.82); line-height: 1.6;
}
.panel { background: #fff; border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.mrow {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--hair);
  width: 100%; text-align: left;
}
.mrow:last-child { border-bottom: 0; }
.mrow:hover { background: #FBFCFE; }
.mi { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; flex: none; background: var(--fill); }
.mi-red { background: var(--red-soft); color: var(--red); }
.mi-blue { background: #EEF3FF; color: #2E5BD8; }
.mi-green { background: #EAF6EF; color: #0F7A3D; }
.mt { font-size: 13.5px; font-weight: 600; }
.ms { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.arrow { color: #C7CDD6; font-size: 16px; margin-left: 2px; }
.version { text-align: center; font-size: 11px; color: var(--ink-3); padding: 18px 8px 6px; line-height: 1.7; }

/* ---------------------------- 手机 tabbar ---------------------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--hair);
}
.tab-i {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 500;
}
.tab-i .ico { width: 21px; height: 21px; }
.tab-i.on { color: var(--red); font-weight: 700; }

/* ---------------------------- toast ---------------------------- */
.toast {
  position: fixed;
  left: 50%; bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  background: rgba(31, 35, 41, .92);
  color: #fff;
  font-size: 12.5px;
  padding: 9px 15px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 60;
  max-width: 80vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------- 桌面 ---------------------------- */
@media (min-width: 900px) {
  body { font-size: 14px; }
  .wrap, .app, .site-foot { padding-left: 24px; padding-right: 24px; }
  .app { padding-top: 22px; padding-bottom: 10px; }
  .site-foot { padding-top: 14px; padding-bottom: 30px; border-top: 1px solid var(--hair); margin-top: 8px; }
  .tabbar { display: none; }
  .brand-txt em { display: inline; }
  .page-head h1 { font-size: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
  .card { padding: 18px 20px; }
  .board { grid-template-columns: 1fr 1fr; }
  .cloud { height: 420px; }
  .os-list { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .duo { gap: 40px; }
  .gauge { width: 150px; height: 150px; }
  .gauge-txt b { font-size: 34px; }
  .bars { height: 190px; }
  .detail-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 16px; align-items: start; }
  .picker { flex-direction: column; overflow: visible; position: sticky; top: calc(var(--topbar-h) + 16px); padding: 0; max-height: calc(100vh - 100px); overflow-y: auto; }
  .pk { flex-direction: row; align-items: center; gap: 8px; min-width: 0; padding: 9px 11px; }
  .pk-r { width: 16px; }
  .detail-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .detail-cards .span-2 { grid-column: span 2; }
  .hd-nm { font-size: 24px; }
  .grid6 { grid-template-columns: repeat(6, 1fr); }
  .hot-grid { grid-template-columns: 34px 240px 80px minmax(0, 1fr) 96px; }
  .focus-grid { grid-template-columns: minmax(0, 1.6fr) 76px 76px 76px 96px 90px; }
  .lrow { padding: 10px 14px; }
  .lhead { padding: 9px 14px; }
  .lname b { font-size: 14px; }
  .rc-kpi { gap: 14px; }
  .rk b { font-size: 24px; }
  .mine-hero { padding: 24px; }
  .mine-wrap { max-width: 760px; margin: 0 auto; }
  .panel { max-width: none; }
  .toast { bottom: 32px; }
}

@media (max-width: 899px) {
  .nav { display: none; }
  .brand-txt em { display: none; }
  .page-head .sub { font-size: 11px; }
  .grid6 { grid-template-columns: repeat(3, 1fr); }
  .rc-kpi { grid-template-columns: repeat(3, 1fr); }
  .top-date { display: none; }
}

@media (max-width: 380px) {
  .heat-name { width: 60px; }
  .heat-val { width: 46px; }
  .hot-grid { grid-template-columns: 24px minmax(0, 1fr) 50px 56px 58px; }
  .focus-grid { grid-template-columns: minmax(0, 1fr) 46px 46px 46px 60px 56px; }
  .cmp-v { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
