/* ============================================================
   sidebars.css · 侧栏与面板样式
   （左：加密市场 / 右：美股行情 / 中列顶：每时科技新闻速览，
    两个行情面板共用 .q-* 与 .sc-* 样式；
    顶部展示区右列为「最新更新」面板，样式见 .latest-*）
   ------------------------------------------------------------
   中间列内容与排版保持原样（仍为 --maxw 窄容器）。
   宽屏（≥1340px）三栏并排，侧栏 sticky 吸附 + 内部滚动；
   窄屏自动折叠为单列，顺序：正文 → 加密市场 → 美股行情。
   行情配色：涨绿、跌红（与顶部行情横幅一致，加密市场通行习惯）。
   ============================================================ */

/* ---------- 涨跌配色（涨绿跌红，与横幅 --mkt-up/--mkt-down 同向） ---------- */
:root {
  --q-up:   #12855f;
  --q-down: #c0392b;
  --q-flat: #8b8074;
  /* 图表数据数字专用：比 q-* 更高饱和的强对比色 */
  --q-up-strong:   #0b7a2e;
  --q-down-strong: #c81e1e;
}
[data-theme="dark"] {
  --q-up:   #4fd2a2;
  --q-down: #f0817a;
  --q-flat: #948878;
  --q-up-strong:   #3ee08c;
  --q-down-strong: #ff7566;
}

/* ============================================================
   1. 三栏骨架
   ============================================================ */

.layout-shell {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* 窄屏（<1140px）顺序：正文 → 加密市场 → 美股行情 */
.col-main  { order: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; }
.side-left { order: 2; }
.side-right{ order: 3; }

@media (min-width: 1340px) {
  .layout-shell {
    grid-template-columns: 246px minmax(0, 1fr) 292px;
    gap: 20px;
  }
  .col-main, .side-left, .side-right { order: 0; }
  /* 中列恢复为原窄容器宽度（与 10-12 一致：速览窗口 714~720px 宽） */
  .col-main { max-width: var(--maxw); margin: 0 auto; }

  .side-col {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    align-self: start;
  }
}

/* 首页顶部横幅区在宽屏下与三栏对齐 */
@media (min-width: 1340px) {
  .wrap-home-wide { max-width: 1340px; }
}

/* 中窄窗口（1140~1339px，常见 1366/1440 笔记本及系统缩放）：
   仍保持「左加密 · 中正文 · 右美股」三栏，侧栏略收窄，避免行情栏掉到正文下方 */
@media (min-width: 1140px) and (max-width: 1339.98px) {
  .layout-shell {
    grid-template-columns: 212px minmax(0, 1fr) 252px;
    gap: 16px;
    padding: 0 18px;
  }
  .col-main, .side-left, .side-right { order: 0; }
  .col-main { max-width: var(--maxw); margin: 0 auto; }

  .side-col {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    align-self: start;
  }
}

/* ============================================================
   2. 面板通用外观
   ============================================================ */

.sc-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--card-2), var(--card));
}
.sc-head h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
}
.sc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-wash);
  flex: 0 0 auto;
}
.sc-dot.alt { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* 面板标题可点击（如「每时科技新闻速览」→ 新窗口打开完整页） */
.sc-title-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;              /* 移动端触摸目标 ≥30px */
  margin: -6px 0;                /* 仅扩大点击区，不撑高面板头部 */
  color: inherit;
  text-decoration: none;
  transition: color .15s var(--ease);
}
.sc-title-link:hover { color: var(--accent); }
.sc-title-link::after {
  content: "↗";
  margin-left: 4px;
  font-size: 10.5px;
  font-weight: 400;
  opacity: .5;
}

.sc-meta {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
}

.sc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: var(--card-2);
  font-size: 11px;
  color: var(--ink-4);
}
.sc-foot .sc-time { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sc-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 11.5px;
  font-family: inherit;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.sc-btn:hover { border-color: var(--brand-soft); color: var(--brand-deep); }
.sc-btn[disabled] { opacity: .55; cursor: default; }

.sc-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-4);
}

/* ============================================================
   3. 行情面板（加密市场 / 美股行情 共用）
   ============================================================ */

.q-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 6px;
}
.q-search {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.q-search::placeholder { color: var(--ink-4); }
.q-search:focus {
  outline: none;
  border-color: var(--brand-soft);
  background: var(--card);
}

.q-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 6px;
  font-size: 11px;
  color: var(--ink-4);
}

.q-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 8px 8px;
  max-height: clamp(260px, calc(100vh - 330px), 560px);
  scrollbar-width: thin;
}
.q-list::-webkit-scrollbar { width: 7px; }
.q-list::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 99px;
}
.q-list::-webkit-scrollbar-track { background: transparent; }

.q-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 7px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background .16s var(--ease);
}
.q-row:hover { background: var(--card-2); }

.q-rank {
  font-size: 11px;
  line-height: 1;
  text-align: right;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.q-id {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.q-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex: 0 0 auto;
  background: var(--q-flat);
}
.q-names { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.q-sym {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: .01em;
}
.q-full {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  color: var(--ink-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.q-px { text-align: right; font-variant-numeric: tabular-nums; }
.q-price {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.q-chg {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}
.q-chg.up   { color: var(--q-up); }
.q-chg.down { color: var(--q-down); }
.q-chg.flat { color: var(--q-flat); }

.q-row.flash-up   { animation: qFlashUp .6s var(--ease); }
.q-row.flash-down { animation: qFlashDown .6s var(--ease); }
@keyframes qFlashUp   { from { background: rgba(18, 133, 95, .10); } to { background: transparent; } }
@keyframes qFlashDown { from { background: rgba(192, 57, 43, .10); } to { background: transparent; } }

/* 行可点击：打开新窗口 K 线图 */
.q-click { cursor: pointer; }
.q-click:hover { background: var(--brand-wash); }
.q-click:hover .q-sym { color: var(--brand-deep); }

/* ============================================================
   4. 每日速递 Daily Update（挂载于顶部展示区）
   ============================================================ */

.daily-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 14px 8px;
  max-height: clamp(260px, calc(100vh - 330px), 560px);
  scrollbar-width: thin;
}
.daily-list::-webkit-scrollbar { width: 7px; }
.daily-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }

.daily-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.daily-item:last-child { border-bottom: 0; }

.daily-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.daily-tag {
  font-size: 11px;
  line-height: 1.5;
  padding: 1px 7px;
  border-radius: 99px;
  color: var(--brand-deep);
  background: var(--brand-wash);
  border: 1px solid var(--brand-soft);
  white-space: nowrap;
}
.daily-time {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-4);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.daily-title {
  margin: 0 0 5px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.daily-body {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
  word-break: break-word;
}
.daily-body strong { color: var(--ink); font-weight: 700; }
.daily-body.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.daily-more {
  display: inline-flex;
  align-items: center;
  min-height: 32px;              /* 移动端触摸目标达标 */
  margin-top: 2px;
  padding: 0;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--brand-deep);
  background: none;
  border: 0;
  cursor: pointer;
}
.daily-more:hover { text-decoration: underline; }

/* ============================================================
   4.5 最新更新 Latest（顶部展示区，与行情横幅并排）
   ------------------------------------------------------------
   按文章更新时间倒序，新发布/新编辑的内容自动置顶。
   ============================================================ */

.latest-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 14px 8px;
  scrollbar-width: thin;
}
.latest-list::-webkit-scrollbar { width: 7px; }
.latest-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }

.latest-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  text-decoration: none;
  color: inherit;
}
.latest-item:last-child { border-bottom: 0; }
.latest-item:hover .latest-title { color: var(--brand-deep); }

.latest-time {
  font-size: 11px;
  color: var(--ink-4);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.latest-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color .15s var(--ease);
}

.latest-lock { margin-left: 5px; font-size: 11px; }

/* 中列顶部的每时科技新闻速览（取代原欢迎区）：与正文容器同宽（10-12 版宽度） */
.home-tech { margin-bottom: 34px; }
.home-tech > .sc-card { width: 100%; max-width: 100%; }

/* ---------- 每时科技新闻速览 ---------- */

.tech-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 18px 10px;
  /* 滚动窗口可见高度 = 原公式的 2/3（原：clamp(300px, 100vh-330px, 620px)） */
  max-height: clamp(200px, calc(66.67vh - 220px), 414px);
  scrollbar-width: thin;
}
.tech-list::-webkit-scrollbar { width: 7px; }
.tech-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }

/* ---------- BTC&ETH现货日报（速览下方，与速览同宽） ---------- */

.home-etf { margin-bottom: 34px; }
.home-etf > .sc-card { width: 100%; max-width: 100%; }

/* 面板内部滚动，窗口体量与速览相当 */
.etf-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 18px 12px;
  max-height: clamp(220px, calc(66.67vh - 180px), 430px);
  scrollbar-width: thin;
}
.etf-body::-webkit-scrollbar { width: 7px; }
.etf-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }

.etf-tabs { display: flex; gap: 6px; padding: 8px 0 10px; }
.etf-tab {
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-2);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.etf-tab:hover { color: var(--ink); border-color: var(--line-2); }
.etf-tab.is-active {
  color: var(--brand-deep);
  background: var(--brand-wash);
  border-color: var(--brand-soft);
}

.etf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.etf-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 10px 8px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.etf-stat-label { font-size: 11px; color: var(--ink-4); white-space: nowrap; }
.etf-stat b { font-size: 15px; line-height: 1.2; white-space: nowrap; }
.etf-stat b.q-up { color: var(--q-up); }
.etf-stat b.q-down { color: var(--q-down); }
.etf-stat b.q-flat { color: var(--q-flat); }
.etf-stat-sub { font-size: 11px; color: var(--ink-4); white-space: nowrap; }
.etf-stat-sub i { font-style: normal; }

/* 上7日 / 年内累计 行 */
.etf-row2 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--ink-2);
}
.etf-row2 b { font-variant-numeric: tabular-nums; margin: 0 2px; }
.etf-row2 b.q-up { color: var(--q-up); }
.etf-row2 b.q-down { color: var(--q-down); }
.etf-row2 i { font-style: normal; color: var(--ink-4); font-size: 11px; }

/* 双图并排 */
.etf-charts2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.etf-chart-card, .etf-grid2 .etf-card {
  padding: 10px 10px 6px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-width: 0;
}
.etf-chart-title {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--ink-4);
}
.etf-chart-empty { padding: 24px 0; text-align: center; font-size: 12px; color: var(--ink-4); }
.etf-chart-note { margin-top: 4px; font-size: 11px; color: var(--ink-4); }

/* 当日各 ETF 变化（正负发散条） */
.etf-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.etf-fd-row {
  display: grid;
  grid-template-columns: 72px 1fr 64px;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
}
.etf-fd-name {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.etf-fd-track { position: relative; height: 12px; }
.etf-fd-bar {
  display: block;
  height: 100%;
  border-radius: 2px;
  opacity: .85;
}
.etf-fd-bar.pos { background: var(--q-up); margin-left: auto; }   /* 流入靠右 */
.etf-fd-bar.neg { background: var(--q-down); }                     /* 流出靠左 */
.etf-fd-row b {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}
.etf-fd-row b.q-up { color: var(--q-up); }
.etf-fd-row b.q-down { color: var(--q-down); }
.etf-fd-zeros { margin-top: 6px; font-size: 11px; color: var(--ink-4); }

/* 累计净流入排行 */
.etf-rank-head, .etf-rank-row {
  display: grid;
  grid-template-columns: 30px 1fr 84px 52px;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.etf-rank-head { padding: 2px 0 5px; color: var(--ink-4); font-size: 11px; }
.etf-rank-head span:nth-child(3), .etf-rank-head span:nth-child(4) { text-align: right; }
.etf-rank-row { padding: 5px 0; border-top: 1px dashed var(--line); }
.etf-rank-no {
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
}
.etf-rank-1 { background: #f0b13c; color: #fff; }
.etf-rank-2 { background: #b9c0cc; color: #fff; }
.etf-rank-3 { background: #d2955f; color: #fff; }
.etf-rank-name {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.etf-rank-name i { font-style: normal; margin-left: 5px; font-size: 10.5px; color: var(--ink-4); }
.etf-rank-row b { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.etf-rank-row b.q-up { color: var(--q-up); }
.etf-rank-row b.q-down { color: var(--q-down); }
.etf-rank-pct { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.etf-note { margin-top: 10px; font-size: 11px; color: var(--ink-4); }

/* 未完整披露日提示：只做标注，数值不进统计 */
.etf-pending {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
  margin: 10px 0 2px; padding: 9px 12px;
  font-size: 12px; line-height: 1.55;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  border-left: 3px solid var(--brand);
  border-radius: 4px;
}
.etf-pending b { color: var(--ink); font-weight: 600; }
.etf-pending span { flex: 1 1 260px; min-width: 0; }
.etf-pending i { font-style: normal; font-variant-numeric: tabular-nums; }
.etf-pending i.q-up { color: var(--q-up); }
.etf-pending i.q-down { color: var(--q-down); }

/* 完整日报页（#/etf-daily） */
.wrap-etf { max-width: 1050px; }   /* 图区加宽：每张图约 495px（原 330 的 1.5 倍） */
.etf-full { margin-bottom: 40px; }
.etf-full .etf-stats { gap: 10px; }
.etf-full .etf-stat { padding: 14px 14px 10px; }
.etf-full .etf-stat b { font-size: 19px; }
.etf-full .etf-row2 { font-size: 13.5px; padding: 12px 16px; }
.etf-full .etf-charts2 { gap: 12px; margin-top: 14px; }
.etf-full .etf-grid2 { gap: 12px; margin-top: 12px; }
.etf-full .etf-fd-row { font-size: 13px; grid-template-columns: 90px 1fr 76px; }
.etf-full .etf-rank-head, .etf-full .etf-rank-row { font-size: 13px; grid-template-columns: 36px 1fr 110px 64px; }

@media (max-width: 720px) {
  .etf-stats { grid-template-columns: repeat(2, 1fr); }
  .etf-stat b { font-size: 14px; }
  .etf-charts2, .etf-grid2 { grid-template-columns: 1fr; }
  .etf-fd-row { grid-template-columns: 64px 1fr 60px; }
  .etf-rank-head, .etf-rank-row { grid-template-columns: 26px 1fr 76px 46px; }
}

.tech-item {
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.tech-item:last-child { border-bottom: 0; }

.tech-title {
  display: block;
  padding: 5px 0;                /* 触摸目标高度达标（≥30px） */
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s var(--ease);
}
.tech-title:hover { color: var(--brand-deep); }

.tech-summary {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-meta {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--ink-4);
}
.tech-meta span:first-child { color: var(--brand-deep); }

/* ---------- 速览条目下的「代币 / 股票」实时芯片（同 hourly 页风格） ---------- */
:root {
  --tp-tok:   #0c7a52;
  --tp-tok-bg:  rgba(18, 133, 95, .10);
  --tp-tok-bd:  rgba(18, 133, 95, .25);
  --tp-stk:   #1c5fd6;
  --tp-stk-bg:  rgba(28, 95, 214, .08);
  --tp-stk-bd:  rgba(28, 95, 214, .22);
}
[data-theme="dark"] {
  --tp-tok:   #4fd2a2;
  --tp-tok-bg:  rgba(79, 210, 162, .12);
  --tp-tok-bd:  rgba(79, 210, 162, .30);
  --tp-stk:   #7fb0ff;
  --tp-stk-bg:  rgba(127, 176, 255, .10);
  --tp-stk-bd:  rgba(127, 176, 255, .28);
}

.tech-picks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 7px;
}
.tp-label {
  flex: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 1.5px 7px;
  border-radius: 6px;
}
.tp-label.tp-tok { color: var(--tp-tok); background: var(--tp-tok-bg); border: 1px solid var(--tp-tok-bd); }
.tp-label.tp-stk { color: var(--tp-stk); background: var(--tp-stk-bg); border: 1px solid var(--tp-stk-bd); }

.tp-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 11.5px;
  line-height: 1.4;
  padding: 1.5px 8px;
  border-radius: 7px;
  white-space: nowrap;
}
.tp-chip.tok { color: var(--tp-tok); background: var(--tp-tok-bg); border: 1px solid var(--tp-tok-bd); }
.tp-chip.stk { color: var(--tp-stk); background: var(--tp-stk-bg); border: 1px solid var(--tp-stk-bd); }
.tp-chip b   { font-weight: 800; }
.tp-chip i   { font-style: normal; font-weight: 600; }
.tp-chip em  { font-style: normal; font-size: 11px; font-weight: 700; }
.tp-chip em.tp-up   { color: var(--q-up); }
.tp-chip em.tp-down { color: var(--q-down); }
.tp-chip em.tp-flat { color: var(--q-flat); }

@media (max-width: 760px) {
  /* 手机端同步收到原高度的 2/3（原 380px） */
  .tech-list { max-height: 253px; }
  .home-tech { margin-bottom: 26px; }
}

/* ============================================================
   5. 窄屏（折叠到正文下方）
   ============================================================ */

@media (max-width: 1339px) {
  .col-main { max-width: var(--maxw); }
  .q-list, .daily-list { max-height: 420px; }
}

@media (max-width: 760px) {
  .layout-shell { padding: 0 18px; gap: 18px; }
  .q-list, .daily-list { max-height: 360px; }
  .q-row { grid-template-columns: 18px minmax(0, 1fr) 72px; gap: 7px; }
}

@media (max-width: 420px) {
  .layout-shell { padding: 0 14px; }
  .q-full { display: none; }
}

@media print {
  .side-col { display: none; }
  .layout-shell { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .q-row.flash-up, .q-row.flash-down { animation: none; }
}
