/* ==========================================================================
   财研数据 — 演示站点样式
   原创设计，仅作原型演示使用
   ========================================================================== */

:root {
  --brand: #d92b2b;
  --brand-dark: #b31f1f;
  --brand-soft: #fdeeee;
  --up: #d92b2b;
  --down: #1a9c6b;
  --ink: #1a1d24;
  --ink-2: #414651;
  --ink-3: #6b7280;
  --ink-4: #9aa1ad;
  --line: #e8eaef;
  --line-2: #f1f3f7;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --topbar: #16181e;
  --topbar-ink: #c9cdd6;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 20, 30, 0.04), 0 8px 24px rgba(16, 20, 30, 0.05);
  --shadow-hover: 0 2px 6px rgba(16, 20, 30, 0.08), 0 14px 34px rgba(16, 20, 30, 0.1);
  --container: 1200px;
  --ma5: #e8a020;
  --ma10: #7a5af5;
  --ma30: #3e8ef7;
  --ma60: #b06ad4;
  --feature: #ef9d10;
}

/* 电脑端A股行情：名称信息同排，K线移动到最新价前面 */
@media (min-width: 961px) {
  body[data-page="wiki"] .a-stock-table,
  body[data-page="wiki"] .a-stock-table thead,
  body[data-page="wiki"] .a-stock-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  body[data-page="wiki"] .a-stock-table thead tr,
  body[data-page="wiki"] .a-stock-table tbody tr {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  body[data-page="wiki"] .a-stock-table thead th,
  body[data-page="wiki"] .a-stock-table tbody td {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    min-width: 0;
    padding: 0 7px;
    border-bottom: 0;
    box-sizing: border-box;
    white-space: nowrap;
    grid-column: auto !important;
  }

  body[data-page="wiki"] .a-stock-table thead th {
    min-height: 38px;
  }

  body[data-page="wiki"] .a-stock-table tbody td {
    min-height: 58px;
  }

  body[data-page="wiki"] .a-stock-table tbody tr {
    border-bottom: 1px solid var(--line-2);
  }

  body[data-page="wiki"] .a-stock-table th:nth-child(1),
  body[data-page="wiki"] .a-stock-table td:nth-child(1) {
    order: 1;
    flex: 1 1 230px;
    justify-content: flex-start;
    padding-left: 18px;
    text-align: left;
  }

  body[data-page="wiki"] .a-stock-table th:nth-child(10),
  body[data-page="wiki"] .a-stock-table td:nth-child(10) {
    order: 2;
    flex: 0 0 112px;
    justify-content: center;
    text-align: center;
  }

  body[data-page="wiki"] .a-stock-table th:nth-child(2),
  body[data-page="wiki"] .a-stock-table td:nth-child(2) {
    order: 3;
    flex: 0 0 132px;
  }

  body[data-page="wiki"] .a-stock-table th:nth-child(3),
  body[data-page="wiki"] .a-stock-table td:nth-child(3) {
    order: 4;
    flex: 0 0 90px;
  }

  body[data-page="wiki"] .a-stock-table th:nth-child(4),
  body[data-page="wiki"] .a-stock-table td:nth-child(4) {
    order: 5;
    flex: 0 0 100px;
  }

  body[data-page="wiki"] .a-stock-table th:nth-child(5),
  body[data-page="wiki"] .a-stock-table td:nth-child(5) {
    order: 6;
    flex: 0 0 110px;
  }

  body[data-page="wiki"] .a-stock-table th:nth-child(6),
  body[data-page="wiki"] .a-stock-table td:nth-child(6) {
    order: 7;
    flex: 0 0 115px;
  }

  body[data-page="wiki"] .a-stock-table th:nth-child(7),
  body[data-page="wiki"] .a-stock-table td:nth-child(7) {
    order: 8;
    flex: 0 0 125px;
  }

  body[data-page="wiki"] .a-stock-table th:nth-child(8),
  body[data-page="wiki"] .a-stock-table td:nth-child(8) {
    display: none !important;
  }

  body[data-page="wiki"] .a-stock-table th:nth-child(9),
  body[data-page="wiki"] .a-stock-table td:nth-child(9) {
    order: 9;
    flex: 0 0 86px;
    padding-right: 18px;
  }

  body[data-page="wiki"] .a-stock-table .a-name-cell {
    gap: 8px;
    overflow: hidden;
  }

  body[data-page="wiki"] .a-stock-table .a-name-cell b,
  body[data-page="wiki"] .a-stock-table .a-name-cell .a-code {
    display: inline-block !important;
    flex: none;
    margin: 0 !important;
    line-height: 1.25;
  }

  body[data-page="wiki"] .a-stock-table .a-name-cell b {
    min-width: 0;
    overflow: hidden;
    font-size: 15.5px;
    font-weight: 750;
    text-overflow: ellipsis;
  }

  body[data-page="wiki"] .a-stock-table .a-name-cell .a-code {
    color: var(--ink-4);
    font-size: 12px;
    font-weight: 500;
  }

  body[data-page="wiki"] .a-stock-table .a-mini-kline .mini-kline-svg {
    display: block;
    width: 92px;
    height: 30px;
    margin: 0 auto;
  }
}

/* 电脑端汇率行情：K线移动到最新价前面 */
@media (min-width: 961px) {
  body[data-page="fx"] #fxTable,
  body[data-page="fx"] #fxTable thead,
  body[data-page="fx"] #fxTable tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  body[data-page="fx"] #fxTable thead tr,
  body[data-page="fx"] #fxTable tbody tr {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  body[data-page="fx"] #fxTable thead th,
  body[data-page="fx"] #fxTable tbody td {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    min-width: 0;
    padding: 0 7px;
    border-bottom: 0;
    box-sizing: border-box;
    white-space: nowrap;
    grid-column: auto !important;
  }

  body[data-page="fx"] #fxTable thead th {
    min-height: 38px;
  }

  body[data-page="fx"] #fxTable tbody td {
    min-height: 55px;
  }

  body[data-page="fx"] #fxTable tbody tr {
    border-bottom: 1px solid var(--line-2);
  }

  body[data-page="fx"] #fxTable th:nth-child(1),
  body[data-page="fx"] #fxTable td:nth-child(1) {
    order: 1;
    flex: 1 1 220px;
    justify-content: flex-start;
    padding-left: 18px;
    text-align: left;
  }

  body[data-page="fx"] #fxTable th:nth-child(2),
  body[data-page="fx"] #fxTable tbody td:nth-child(9) {
    order: 2;
    flex: 0 0 92px;
    justify-content: center;
    text-align: center;
  }

  body[data-page="fx"] #fxTable th:nth-child(3),
  body[data-page="fx"] #fxTable tbody td:nth-child(2) {
    order: 3;
    flex: 0 0 122px;
  }

  body[data-page="fx"] #fxTable th:nth-child(4),
  body[data-page="fx"] #fxTable tbody td:nth-child(3) {
    order: 4;
    flex: 0 0 92px;
  }

  body[data-page="fx"] #fxTable th:nth-child(5),
  body[data-page="fx"] #fxTable tbody td:nth-child(4) {
    order: 5;
    flex: 0 0 100px;
  }

  body[data-page="fx"] #fxTable th:nth-child(6),
  body[data-page="fx"] #fxTable tbody td:nth-child(5) {
    order: 6;
    flex: 0 0 96px;
  }

  body[data-page="fx"] #fxTable th:nth-child(7),
  body[data-page="fx"] #fxTable tbody td:nth-child(6) {
    order: 7;
    flex: 1 1 200px;
  }

  body[data-page="fx"] #fxTable th:nth-child(8),
  body[data-page="fx"] #fxTable tbody td:nth-child(7) {
    order: 8;
    flex: 0 0 108px;
  }

  body[data-page="fx"] #fxTable th:nth-child(9),
  body[data-page="fx"] #fxTable tbody td:nth-child(8) {
    order: 9;
    flex: 0 0 88px;
    padding-right: 18px;
  }

  body[data-page="fx"] #fxTable .fx-name {
    gap: 5px;
    overflow: hidden;
  }

  body[data-page="fx"] #fxTable .fx-name-text {
    min-width: 0;
    overflow: hidden;
    font-size: 15px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="fx"] #fxTable .fx-code {
    flex: none;
    color: var(--ink-4);
    font-size: 11.5px;
    font-weight: 500;
  }

  body[data-page="fx"] #fxTable .price {
    font-size: 15.5px;
    font-weight: 750;
  }

  body[data-page="fx"] #fxTable .fx-mini-kline .mini-kline-svg {
    display: block;
    width: 90px;
    height: 30px;
    margin: 0 auto;
  }
}

@media (max-width: 960px) {
  body[data-page="fx"] #fxTable thead {
    display: none;
  }
}

/* 电脑端黄金页：放大文字并按六列重新布局 */
@media (min-width: 961px) {
  body[data-page="qa"] .qa-gold-table-head,
  body[data-page="qa"] #qaMacroRows .gold-row {
    display: grid;
    grid-template-columns:
      minmax(260px, 1.8fr)
      100px
      minmax(140px, 0.8fr)
      96px
      minmax(200px, 1.1fr)
      minmax(150px, 0.85fr);
    column-gap: 24px;
  }

  body[data-page="qa"] .qa-gold-table-head {
    align-items: center;
    padding: 13px 24px;
    border-top: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
    background: var(--surface-2);
    color: var(--ink-3);
    font-size: 13.5px;
    font-weight: 700;
  }

  body[data-page="qa"] .qa-gold-table-head span:nth-child(3),
  body[data-page="qa"] .qa-gold-table-head span:nth-child(4),
  body[data-page="qa"] .qa-gold-table-head span:nth-child(6) {
    text-align: right;
  }

  body[data-page="qa"] .qa-gold-table-head span:nth-child(2) {
    text-align: center;
  }

  body[data-page="qa"] #qaMacroRows .gold-row {
    grid-template-rows: 28px 22px;
    row-gap: 2px;
    align-items: center;
    min-height: 76px;
    padding: 11px 24px;
    font-size: 14px;
  }

  body[data-page="qa"] #qaMacroRows .gold-row .gold-name {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    gap: 2px;
  }

  body[data-page="qa"] #qaMacroRows .gold-name .macro-title-line {
    gap: 6px;
  }

  body[data-page="qa"] #qaMacroRows .gold-name b {
    flex: 0 1 auto;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 750;
  }

  body[data-page="qa"] #qaMacroRows .macro-fav-btn {
    width: 20px;
    font-size: 16px;
  }

  body[data-page="qa"] #qaMacroRows .gold-row .price {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 750;
    text-align: right !important;
  }

  body[data-page="qa"] #qaMacroRows .gold-row > .pill.num {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    min-width: 88px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.3;
  }

  body[data-page="qa"] #qaMacroRows .gold-row .gold-secondary {
    display: contents;
  }

  body[data-page="qa"] #qaMacroRows .gold-row .gold-note {
    align-self: center;
    flex: none;
    margin-left: 8px;
    color: var(--ink-4);
    padding-left: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    white-space: nowrap;
  }

  body[data-page="qa"] #qaMacroRows .gold-row .gold-change.num {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    text-align: right;
    font-size: 13px;
    line-height: 1.45;
  }

  body[data-page="qa"] #qaMacroRows .gold-row .gold-range.num {
    grid-column: 5;
    grid-row: 1 / 3;
    align-self: center;
    min-width: 0;
    overflow: visible;
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.5;
    white-space: nowrap;
  }

  body[data-page="qa"] #qaMacroRows .gold-row .gold-amount.num {
    grid-column: 6;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: stretch;
    text-align: right;
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.5;
  }

  body[data-page="qa"] #qaMacroRows .gold-row .macro-mini-kline {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
    width: 100px;
    height: 40px;
  }

  body[data-page="qa"] #qaMacroRows .gold-row .macro-mini-kline .mini-kline-svg {
    width: 100px;
    height: 40px;
  }
}

/* 电脑端币种行情：代码和中文名同一行排列 */
@media (min-width: 961px) {
  body[data-page="market"] .coin-cell .coin-name-inline,
  body[data-page="bitcoin"] .coin-cell .coin-name-inline {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  body[data-page="market"] .coin-cell .coin-name-inline b,
  body[data-page="bitcoin"] .coin-cell .coin-name-inline b {
    flex: none;
    font-size: 15.5px;
    line-height: 1.45;
    font-weight: 750;
  }

  body[data-page="market"] .coin-cell .coin-name-inline span,
  body[data-page="bitcoin"] .coin-cell .coin-name-inline span {
    display: inline;
    min-width: 0;
    overflow: hidden;
    color: var(--ink-4);
    font-size: 13px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="market"] #marketTable .coin-cell,
  body[data-page="bitcoin"] #bitcoinMarketTable .coin-cell {
    gap: 10px;
  }
}

/* 电脑端币种行情：走势图移动到最新价前面 */
@media (min-width: 961px) {
  body[data-page="bitcoin"] #marketTable,
  body[data-page="market"] #marketTable,
  body[data-page="bitcoin"] #marketTable thead,
  body[data-page="market"] #marketTable thead,
  body[data-page="bitcoin"] #marketTable tbody,
  body[data-page="market"] #marketTable tbody {
    display: block;
    width: 100%;
  }

  body[data-page="bitcoin"] #marketTable thead tr,
  body[data-page="market"] #marketTable thead tr,
  body[data-page="bitcoin"] #marketTable tbody tr,
  body[data-page="market"] #marketTable tbody tr {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  body[data-page="bitcoin"] #marketTable thead th,
  body[data-page="market"] #marketTable thead th,
  body[data-page="bitcoin"] #marketTable tbody td,
  body[data-page="market"] #marketTable tbody td {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    min-width: 0;
    padding: 0 8px;
    border-bottom: 0;
    box-sizing: border-box;
    grid-column: auto !important;
  }

  body[data-page="bitcoin"] #marketTable thead th,
  body[data-page="market"] #marketTable thead th {
    min-height: 38px;
  }

  body[data-page="bitcoin"] #marketTable tbody td,
  body[data-page="market"] #marketTable tbody td {
    min-height: 58px;
  }

  body[data-page="bitcoin"] #marketTable tbody tr,
  body[data-page="market"] #marketTable tbody tr {
    border-bottom: 1px solid var(--line-2);
  }

  body[data-page="bitcoin"] #marketTable th:nth-child(1),
  body[data-page="market"] #marketTable th:nth-child(1),
  body[data-page="bitcoin"] #marketTable td:nth-child(1),
  body[data-page="market"] #marketTable td:nth-child(1) {
    order: 1;
    flex: 1 1 280px;
    justify-content: flex-start;
    padding-left: 18px;
    text-align: left;
  }

  body[data-page="bitcoin"] #marketTable th:nth-child(7),
  body[data-page="market"] #marketTable th:nth-child(7),
  body[data-page="bitcoin"] #marketTable td:nth-child(7),
  body[data-page="market"] #marketTable td:nth-child(7) {
    order: 2;
    flex: 0 0 100px;
    justify-content: center;
    text-align: center;
  }

  body[data-page="bitcoin"] #marketTable th:nth-child(2),
  body[data-page="market"] #marketTable th:nth-child(2),
  body[data-page="bitcoin"] #marketTable td:nth-child(2),
  body[data-page="market"] #marketTable td:nth-child(2) {
    order: 3;
    flex: 0 0 138px;
  }

  body[data-page="bitcoin"] #marketTable th:nth-child(3),
  body[data-page="market"] #marketTable th:nth-child(3),
  body[data-page="bitcoin"] #marketTable td:nth-child(3),
  body[data-page="market"] #marketTable td:nth-child(3) {
    order: 4;
    flex: 0 0 145px;
  }

  body[data-page="bitcoin"] #marketTable th:nth-child(4),
  body[data-page="market"] #marketTable th:nth-child(4),
  body[data-page="bitcoin"] #marketTable td:nth-child(4),
  body[data-page="market"] #marketTable td:nth-child(4) {
    order: 5;
    flex: 0 0 175px;
  }

  body[data-page="bitcoin"] #marketTable th:nth-child(5),
  body[data-page="market"] #marketTable th:nth-child(5),
  body[data-page="bitcoin"] #marketTable td:nth-child(5),
  body[data-page="market"] #marketTable td:nth-child(5) {
    order: 6;
    flex: 0 0 170px;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(3),
  body[data-page="market"] #marketTable tbody td:nth-child(3),
  body[data-page="bitcoin"] #marketTable tbody td:nth-child(4),
  body[data-page="market"] #marketTable tbody td:nth-child(4),
  body[data-page="bitcoin"] #marketTable tbody td:nth-child(5),
  body[data-page="market"] #marketTable tbody td:nth-child(5) {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    line-height: 1.2;
    text-align: right;
  }

  body[data-page="bitcoin"] #marketTable th:nth-child(6),
  body[data-page="market"] #marketTable th:nth-child(6),
  body[data-page="bitcoin"] #marketTable td:nth-child(6),
  body[data-page="market"] #marketTable td:nth-child(6) {
    order: 7;
    flex: 0 0 130px;
    padding-right: 18px;
  }

  body[data-page="bitcoin"] #marketTable tbody td,
  body[data-page="market"] #marketTable tbody td {
    min-height: 64px;
  }

  body[data-page="bitcoin"] #marketTable .market-sub,
  body[data-page="market"] #marketTable .market-sub {
    color: var(--ink-4);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.2;
  }

  body[data-page="bitcoin"] #marketTable td:nth-child(3) .pill,
  body[data-page="market"] #marketTable td:nth-child(3) .pill {
    min-width: 72px;
    padding: 2px 8px;
  }

  body[data-page="bitcoin"] #marketTable .btc-market-cap,
  body[data-page="market"] #marketTable .btc-market-cap {
    font-weight: 650;
  }

  body[data-page="bitcoin"] #marketTable td:nth-child(7) svg,
  body[data-page="market"] #marketTable td:nth-child(7) svg {
    display: block;
    width: 96px;
    height: 30px;
  }
}

html[data-theme="dark"] {
  --brand: #ff5a5a;
  --brand-dark: #ff7b7b;
  --brand-soft: #2a1a1c;
  --up: #ff5a5a;
  --down: #2fbf87;
  --ink: #eef0f4;
  --ink-2: #c6cad3;
  --ink-3: #9aa1ad;
  --ink-4: #737b88;
  --line: #2a2e38;
  --line-2: #232730;
  --bg: #14161b;
  --surface: #1c1f26;
  --topbar: #0e1014;
  --topbar-ink: #aeb4c0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.45);
  --ma5: #f0b64a;
  --ma10: #9b86ff;
  --ma30: #5ea1ff;
  --ma60: #c08ae0;
  --feature: #ffc45c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

img { max-width: 100%; display: block; }

button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.up { color: var(--up) !important; }
.down { color: var(--down) !important; }
.flat { color: var(--ink-3) !important; }
.num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   顶部条
   -------------------------------------------------------------------------- */

.topbar {
  background: #0d2745;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 30px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  overflow: hidden;
}

.topbar a { color: rgba(255, 255, 255, 0.78); }
.topbar a:hover { color: #fff; }

.topbar .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  flex: none;
}

/* --------------------------------------------------------------------------
   头部 / 导航
   -------------------------------------------------------------------------- */

.site-header {
  background: #0d2745;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 60;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 54px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.logo-mark {
  width: 34px; height: 34px;
  padding: 2px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(3, 18, 42, 0.28);
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text b {
  display: block;
  font-size: 17.5px;
  letter-spacing: 1px;
  line-height: 1.2;
  color: #ffffff;
}

.logo-text span {
  display: block;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  height: 54px;
  margin-left: 4px;
  border-top: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
  flex: 0 0 auto;
  min-width: max-content;
  padding: 0 11px;
  height: 54px;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 0;
  height: 3px;
  border-radius: 4px 4px 0 0;
  background: transparent;
}

.main-nav a:hover { color: #ffffff; }

.main-nav a.active {
  color: #ffffff;
  font-weight: 900;
}

.main-nav a.active::after { background: var(--brand); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  height: 34px;
  padding: 0 5px 0 12px;
  width: 210px;
  transition: border-color 0.15s, background 0.15s;
}

.search-box:focus-within {
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.14);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  color: #ffffff;
}

.search-box input::placeholder { color: rgba(255, 255, 255, 0.62); }

.search-box button {
  border: 0;
  background: var(--brand);
  color: #fff;
  height: 27px;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 12.5px;
  cursor: pointer;
}

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex: none;
}

.icon-btn:hover { border-color: var(--brand); color: var(--brand); }

.site-header .header-tools .icon-btn {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.site-header .header-tools .icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { border-color: var(--brand); color: var(--brand); }

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   行情滚动条
   -------------------------------------------------------------------------- */

.ticker {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.ticker .container {
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  will-change: transform;
}

.ticker:hover .ticker-track { /* 悬停时暂停由 JS 控制 */ }

.ticker-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 18px 9px 0;
  margin-right: 18px;
  border-right: 1px solid var(--line-2);
  white-space: nowrap;
  font-size: 13.5px;
}

.ticker-item:last-child { border-right: 0; }

.ticker-item b { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }

/* --------------------------------------------------------------------------
   通用区块 / 卡片
   -------------------------------------------------------------------------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 22px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 相邻卡片间距：只在上下堆叠的栏里生效，网格布局（分类板块等）不受影响 */
aside > .card + .card,
.sidebar > .card + .card,
.layout > div > .card + .card {
  margin-top: 22px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
}

.card-head h2,
.card-head h3 {
  margin: 0;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-head h2::before,
.card-head h3::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--brand);
}

.card-head .more {
  font-size: 13px;
  color: var(--ink-3);
}

.card-head .more:hover { color: var(--brand); }

.card-body { padding: 16px 18px; }

.section { margin-top: 22px; }

/* --------------------------------------------------------------------------
   首页 — 焦点区
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.hero-lead {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 178px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #2b1620, #55202a 45%, #8f2b2b);
  border: 1px solid var(--line);
}

/* 焦点轮播（m 站同款 banner） */
.hero-lead.banner { display: block; }

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  color: #fff;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  text-decoration: none;
}

.banner-slide.on { opacity: 1; pointer-events: auto; }
.banner-slide .art { position: absolute; inset: 0; }

.tone-b1 .art, .tone-b1 { background: linear-gradient(135deg, #2b1620, #55202a 45%, #8f2b2b); }
.tone-b2 .art, .tone-b2 { background: linear-gradient(135deg, #16222b, #1d4460 48%, #25608f); }
.tone-b3 .art, .tone-b3 { background: linear-gradient(135deg, #1c2a1a, #2c5233 48%, #3f7a44); }
.tone-b4 .art, .tone-b4 { background: linear-gradient(135deg, #241a33, #45276b 48%, #6a3fa0); }
.tone-b5 .art, .tone-b5 { background: linear-gradient(135deg, #33260f, #7a5518 48%, #b3801f); }
.tone-b6 .art, .tone-b6 { background: linear-gradient(135deg, #102a2a, #175a55 48%, #1f7a75); }
.banner-slide .hero-photo {
  background-position: center;
  background-size: cover;
}
.banner-slide .hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 10, 14, .86) 0%, rgba(25, 12, 18, .62) 50%, rgba(25, 12, 18, .24) 100%),
    linear-gradient(0deg, rgba(20, 10, 14, .72), transparent 58%);
}

.banner-slide .content {
  position: relative;
  display: block;
  padding: 16px 20px 40px;
  width: 100%;
}

.banner-slide h1 { margin: 8px 0 8px; font-size: 20px; line-height: 1.4; font-weight: 700; color: #fff; }
.banner-slide p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-dots {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.banner-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}

.banner-dots button.on { width: 18px; background: #fff; }

/* 手机端频道条（m.528btc.com 同款：浅灰底 + 金色选中 + 更多▾ 下拉） */
.m-nav { display: none; }
.m-only { display: none; }

@media (max-width: 960px) {
  /* 深蓝色顶栏 */
  .topbar { display: none; }
  .site-header { background: #0d2745; border-bottom: 0; }
  .header-top { height: 52px; gap: 10px; position: relative; z-index: 60; background: #0d2745; }
  .logo { gap: 8px; }
  .logo,
  .header-tools {
    transform: translateY(6px);
  }
  .logo-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 15px; box-shadow: none; }
  .logo-text b { font-size: 17px; color: #ffffff; }
  .logo-text span { font-size: 9.5px; color: rgba(255, 255, 255, 0.62); letter-spacing: 2px; }
  .header-tools { gap: 2px; }
  .header-tools .icon-btn { background: transparent; border-color: transparent; color: #ffffff; font-size: 17px; }
  .header-tools .icon-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: #ffffff; }
  .header-tools .icon-btn.header-me {
    width: 30px;
    min-width: 30px;
    padding: 0;
  }
  .header-me .me-lines { display: grid; gap: 4px; width: 18px; }
  .header-me .me-lines i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
  .m-only { display: grid; }

  .m-nav { display: block; position: relative; background: #f5f5f5; }

  .m-nav-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
    z-index: 60;
    background: #f5f5f5;
  }

  .m-nav-box::-webkit-scrollbar { display: none; }

  .m-nav-link {
    flex: none;
    display: inline-flex;
    align-items: center;
    font-size: 16.5px;
    font-weight: 800;
    color: #5f6277;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
  }

  .m-nav-link.on { color: #f0a30b; }
  .m-nav-more { color: #8a8e9c; }

  .m-caret {
    width: 0;
    height: 0;
    border-left: 4.5px solid transparent;
    border-right: 4.5px solid transparent;
    border-top: 5.5px solid #b9bdc7;
    margin-left: 4px;
    transition: transform 0.18s ease;
  }

  .m-nav-more.open .m-caret { transform: rotate(180deg); }

  .m-nav-pull {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px 0;
    padding: 20px 8px 24px;
    background: var(--surface);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.14);
    z-index: 80;
  }

  .m-nav-pull.open { display: grid; }

  .m-nav-pull a {
    text-align: center;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
  }

  .m-nav-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 55;
  }

  .m-nav-mask.open { display: block; }

  html[data-theme="dark"] .m-nav { background: #23262e; }
  html[data-theme="dark"] .m-nav-box { background: #23262e; }
  html[data-theme="dark"] .m-nav-link { color: #aab0bd; }
  html[data-theme="dark"] .m-nav-link.on { color: #f0b90b; }
  html[data-theme="dark"] .m-caret { border-top-color: #6a6f7c; }
}

.hero-lead .art {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.1), transparent 46%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 26px);
}

.hero-lead .content {
  position: relative;
  padding: 16px 20px 14px;
  color: #fff;
}

.hero-lead h1 {
  margin: 8px 0 8px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  color: #fff;
}

.hero-lead h1 a { color: #fff; }
.hero-lead h1 a:hover { color: #ffd9d9; }

.hero-lead p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  max-width: 560px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-list {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 12px;
}

.hero-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  transition: box-shadow 0.16s, transform 0.16s;
}

.hero-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }

.hero-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-item .meta {
  font-size: 12.5px;
  color: var(--ink-4);
  display: flex;
  gap: 10px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 500;
  white-space: nowrap;
}

.tag.plain {
  background: var(--line-2);
  color: var(--ink-3);
}

.hero-lead .tag {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* --------------------------------------------------------------------------
   新闻列表
   -------------------------------------------------------------------------- */

.news-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.news-tabs::-webkit-scrollbar { display: none; }

.news-tabs button {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 14.5px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.news-tabs button:hover { color: var(--brand); }

.news-tabs button.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.news-tabs-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  overflow: visible;
}

.news-tabs-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  overflow: visible;
}

.news-tabs-two button {
  width: 100%;
  padding: 7px 10px;
  text-align: center;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 650;
}

.news-tabs-two button.active {
  font-weight: 800;
}

.news-tabs-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  overflow: visible;
}

.news-tabs-three button {
  width: 100%;
  padding: 7px 5px;
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
}

.news-tabs-three button.active {
  font-weight: 800;
}

.news-tabs-four button {
  width: 100%;
  min-width: 0;
  padding: 6px 4px;
  text-align: center;
  color: var(--ink-2);
  font-weight: 600;
}

.news-tabs-four button.active {
  font-weight: 800;
}

@media (max-width: 640px) {
  .news-tabs-two button {
    font-size: 14px;
  }

  .news-tabs-three button {
    padding: 7px 2px;
    font-size: 13px;
  }

  .news-tabs-four button {
    padding: 6px 1px;
    font-size: 13.5px;
    letter-spacing: -0.2px;
  }
}

@media (max-width: 960px) {
  body[data-page="home"] .home-feed .card-body {
    display: block;
    padding: 7px 10px 0 !important;
  }

  body[data-page="home"] .home-feed #newsTabs {
    gap: 2px;
  }

  body[data-page="home"] .home-feed #newsTabs button {
    padding: 5px 10px;
    font-size: 12.5px;
  }
}

/* 首页财经分类：显示不下的部分收进右侧箭头菜单 */
.home-tabs-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.home-finance-tabs {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  flex-wrap: nowrap;
}

.home-finance-tabs button {
  flex: none;
  color: var(--ink-2);
  padding: 8px 14px;
  font-size: 16.5px;
  font-weight: 750;
  line-height: 1.25;
}

.home-finance-tabs button.active {
  color: var(--brand);
  font-weight: 800;
}

.home-tabs-wrap.has-overflow .home-finance-tabs {
  padding-right: 30px;
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}

.home-tabs-more {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 28px;
  height: 30px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.home-tabs-more[hidden],
.home-tabs-menu[hidden] {
  display: none;
}

.home-tabs-more span {
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.home-tabs-more[aria-expanded="true"] span {
  transform: rotate(135deg);
}

.home-tabs-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: min(360px, calc(100vw - 40px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(12, 14, 18, 0.18);
}

.home-tabs-menu button {
  padding: 8px 6px;
  border: 0;
  border-radius: 7px;
  background: var(--line-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.home-tabs-menu button.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}

.bitcoin-subnav-card {
  padding: 4px 8px;
  margin-bottom: 8px;
}

.bitcoin-subnav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.bitcoin-subnav button {
  width: 100%;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.bitcoin-panel { display: none; }
.bitcoin-panel.active { display: block; }

.news-item {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
}

.news-item:last-child { border-bottom: 0; }

.news-item:hover { background: var(--line-2); }

.thumb {
  height: 106px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.22), transparent 46%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 20px);
}

.thumb span { position: relative; z-index: 1; opacity: 0.92; }

.thumb.has-image { background: #0d2745; }
.thumb.has-image::after { display: none; }
.thumb.has-image span { display: none; }
.thumb.has-image img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.news-item:hover .thumb.has-image img { transform: scale(1.035); }

.tone-1 { background: linear-gradient(135deg, #7a1d2b, #c0392b); }
.tone-2 { background: linear-gradient(135deg, #17324f, #2d6ea8); }
.tone-3 { background: linear-gradient(135deg, #243b1f, #4e8b3a); }
.tone-4 { background: linear-gradient(135deg, #3d2a55, #7a4fb0); }
.tone-5 { background: linear-gradient(135deg, #5a3a12, #b3801f); }
.tone-6 { background: linear-gradient(135deg, #123c3c, #1f7a75); }

.news-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

.news-item h3 a:hover { color: var(--brand); }

.news-item .excerpt {
  margin: 0 0 10px;
  color: var(--ink-3);
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-4);
}

.item-meta .sep { width: 1px; height: 11px; background: var(--line); }

/* 信息流条目：桌面端保持原样；手机端用「点赞 / 收藏 / 阅读」小图标（与 m 站一致） */
.news-item .item-meta > span + span::before {
  content: "·";
  margin: 0 7px;
  color: var(--line);
}

.news-item .item-meta b { font-weight: inherit; }
.news-item .item-meta .mi { display: none; }

.news-item .item-meta .im-like,
.news-item .item-meta .im-star { display: none; }

.news-item .item-meta .im-views::before { content: "阅读 "; }

/* --------------------------------------------------------------------------
   快讯
   -------------------------------------------------------------------------- */

.flash-list { padding: 6px 18px 10px; }

body[data-page="home"] #homeFlash .flash-item {
  background: var(--brand-soft);
  border: 1px solid rgba(217, 43, 43, 0.35);
  border-radius: 12px;
  padding: 12px 14px 12px 24px;
  margin: 6px 0 10px;
}

body[data-page="home"] #homeFlash .flash-item:hover,
body[data-page="home"] #homeFlash .flash-item:focus-visible {
  background: #ffe0e0;
  border-color: rgba(217, 43, 43, 0.55);
}

body[data-page="home"] #homeFlash .flash-item::before {
  left: 8px;
  top: 20px;
}

.flash-item {
  position: relative;
  padding: 14px 0 14px 20px;
  border-bottom: 1px dashed var(--line);
}

.flash-item:last-child { border-bottom: 0; }

.flash-item::before {
  content: "";
  position: absolute;
  left: 2px; top: 21px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.flash-item.important::before {
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.flash-item .time {
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 4px;
}

.flash-item p {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--ink-2);
}

.flash-item p b { color: var(--ink); }

.flash-item .tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* 从文章 / 热点话题点进来时高亮那一条快讯 */
.flash-item.flash-focus {
  background: var(--brand-soft);
  border: 1px solid rgba(217, 43, 43, .35);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 6px 0 10px;
  border-bottom: 1px solid rgba(217, 43, 43, .35);
}
.flash-item.flash-focus::before { background: var(--brand); }
.flash-focus-tip {
  margin: 8px 0 2px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--line-2);
  color: var(--ink-3);
  font-size: 12.5px;
}
.flash-focus-tip a { color: var(--brand); }

.flash-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
}

.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.us-filter-chips {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
}

.us-filter-chips .chip {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  padding: 5px 8px;
  font-size: 10.5px;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  cursor: pointer;
}

.chip:hover { border-color: var(--brand); color: var(--brand); }

.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.text-input {
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  font-size: 13.5px;
  outline: 0;
  min-width: 180px;
}

.text-input:focus { border-color: var(--brand); }

/* --------------------------------------------------------------------------
   排行 / 侧栏
   -------------------------------------------------------------------------- */

.rank-list { padding: 6px 18px 14px; counter-reset: rank; }

.rank-item {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  counter-increment: rank;
  align-items: flex-start;
}

.rank-item:last-child { border-bottom: 0; }

.rank-item::before {
  content: counter(rank);
  width: 20px; height: 20px;
  border-radius: 5px;
  background: var(--line-2);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}

.rank-item:nth-child(1)::before { background: var(--brand); color: #fff; }
.rank-item:nth-child(2)::before { background: #f08a3c; color: #fff; }
.rank-item:nth-child(3)::before { background: #d9a520; color: #fff; }

.rank-item a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}

.rank-item .views {
  display: block;
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 3px;
}

/* 数据卡 */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px;
}

.stat .label {
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stat .value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.stat .sub {
  font-size: 12.5px;
  color: var(--ink-4);
  margin-top: 2px;
}

.gauge {
  height: 6px;
  border-radius: 999px;
  background: var(--line-2);
  margin-top: 10px;
  overflow: hidden;
  display: flex;
}

.gauge i { display: block; height: 100%; }

/* --------------------------------------------------------------------------
   板块（专题聚合）
   -------------------------------------------------------------------------- */

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-2);
}

.board-head h3 {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-head h3::before {
  content: "";
  width: 4px; height: 15px;
  border-radius: 2px;
  background: var(--brand);
}

.board-head .more { font-size: 12.5px; color: var(--ink-4); }

.board-list { padding: 8px 18px 14px; }

.board-list li {
  list-style: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.board-list li:last-child { border-bottom: 0; }

.board-list .t {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-list .d { font-size: 12px; color: var(--ink-4); flex: none; }

/* --------------------------------------------------------------------------
   行情页
   -------------------------------------------------------------------------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0 16px;
}

.page-head h1 {
  margin: 0;
  font-size: 25px;
}

.page-head .desc {
  color: var(--ink-3);
  font-size: 13.5px;
  margin-top: 4px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--ink-4);
  padding-top: 16px;
}

.breadcrumb a:hover { color: var(--brand); }

.breadcrumb span { margin: 0 6px; }

.market-table-wrap { overflow-x: auto; }

table.market {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 860px;
}

table.market.compact { min-width: 0; }

table.market th {
  text-align: right;
  font-weight: 500;
  color: var(--ink-3);
  font-size: 13px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--surface);
  cursor: pointer;
  user-select: none;
}

table.market th:first-child,
table.market td:first-child { text-align: left; padding-left: 18px; }

table.market th:last-child,
table.market td:last-child { padding-right: 18px; }

table.market th.sortable::after {
  content: "⇅";
  font-size: 11px;
  margin-left: 5px;
  color: var(--ink-4);
}

table.market th.sorted-asc::after { content: "↑"; color: var(--brand); }
table.market th.sorted-desc::after { content: "↓"; color: var(--brand); }

table.market td {
  text-align: right;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

table.market tbody tr { cursor: pointer; }
table.market tbody tr:hover { background: var(--line-2); }

.coin-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.coin-icon {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex: none;
  overflow: hidden;
}
.coin-icon .coin-letter { display: grid; place-items: center; width: 100%; height: 100%; }
.coin-icon img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.coin-icon.has-image .coin-letter { display: none; }

.coin-cell .name b { display: block; font-size: 14.5px; font-weight: 600; }
.coin-cell .name span { display: block; font-size: 12px; color: var(--ink-4); }
.coin-cell .name { flex: 1; min-width: 0; }
.coin-fav-btn {
  flex: none;
  width: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-4);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.coin-fav-btn.on { color: #f0a30b; }
.bitcoin-rank-card { padding: 4px 8px; margin-bottom: 6px; }
.bitcoin-rank-toolbar { padding: 0; }
.bitcoin-rank-card .bitcoin-rank-toolbar { gap: 4px; }
.bitcoin-rank-card .us-toolbar-search { gap: 6px; }
.bitcoin-rank-card .us-toolbar-search .text-input,
.bitcoin-rank-card .us-toolbar-search .btn {
  height: 30px;
  min-height: 30px;
}
.bitcoin-rank-card .us-toolbar-search .text-input { padding: 0 10px; }
.bitcoin-rank-card .us-toolbar-search .btn { padding: 0 15px; }
body[data-page="bitcoin"] .bitcoin-rank-card { margin-bottom: 4px; }
body[data-page="bitcoin"] .bitcoin-panel.active > .section:first-child { margin-top: 0; }
.us-toolbar-search { display: flex; align-items: center; gap: 8px; }
.us-toolbar-search .text-input { flex: 1; min-width: 0; }
#bitcoinRankTabs {
  grid-template-columns: repeat(5, minmax(0, 1fr)) 24px;
  gap: 1px;
}
#bitcoinRankTabs button {
  padding: 6px 0;
  font-size: 13px;
  letter-spacing: -0.2px;
}
#bitcoinRankTabs .a-stock-rank-more {
  width: 24px;
  font-size: 24px;
}
.us-list-card > .flash-toolbar {
  gap: 5px;
  padding: 8px 8px 6px;
}
#usFilters button {
  padding: 5px 1px;
  font-size: 12.5px;
}
.us-list-card .us-toolbar-search { gap: 6px; }
.us-list-card .us-toolbar-search .text-input {
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
}
.us-list-card .us-toolbar-search .btn {
  height: 30px;
  min-height: 30px;
  padding: 0 15px;
}
#fxTable .fx-name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
#fxTable .fx-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
#fxTable .fx-fav-btn {
  flex: none;
  width: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-4);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
#fxTable .fx-fav-btn.on { color: #f0a30b; }
#fxBody tr[data-fx-secid] { cursor: pointer; }
#fxBody tr[data-fx-secid]:hover,
#fxBody tr[data-fx-secid]:active { background: var(--surface-2); }
#fxBody tr[data-fx-secid]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.qa-rank-toolbar,
.fx-rank-toolbar { padding: 7px 8px 0; }
body[data-page="qa"] .qa-rank-toolbar {
  padding: 6px 8px 0;
  border-bottom: 0;
}
body[data-page="qa"] .macro-gold-highlight { margin-top: 3px; }

.spark { display: inline-block; vertical-align: middle; }

.pill {
  display: inline-block;
  min-width: 74px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.pill.up { background: var(--brand-soft); color: var(--up); }
.pill.down { background: rgba(26, 156, 107, 0.1); color: var(--down); }

html[data-theme="dark"] .pill.down { background: rgba(47, 191, 135, 0.14); }

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
}

/* 弹层：币种详情 */

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 18, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-mask.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: 14px;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-2);
}

.modal-head .title { display: flex; align-items: center; gap: 12px; }
.modal-head .title b { font-size: 18px; }
.modal-head .title span { color: var(--ink-4); font-size: 13px; }

.modal-body { padding: 18px 22px 24px; }

.kv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.kv {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
}

.kv .k { font-size: 12px; color: var(--ink-4); }
.kv .v { font-size: 15px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }

.coin-modal-intervals {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  margin-bottom: 10px;
}

.coin-modal-intervals button {
  width: 100%;
  min-width: 0;
  padding: 5px 0;
  font-size: 9.5px;
  letter-spacing: -0.3px;
  text-align: center;
  white-space: nowrap;
}

.chart-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 10px 6px;
}

.chart-box .chart-title {
  font-size: 13px;
  color: var(--ink-3);
  padding: 0 8px 6px;
  display: flex;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   文章详情
   -------------------------------------------------------------------------- */

.article-card { padding: 30px 34px 34px; }

.article-card h1 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.42;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--ink-4);
  font-size: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}

.article-meta .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d92b2b, #7d1414);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  margin-right: -8px;
}

.article-body {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
  padding-top: 20px;
}

.article-body p { margin: 0 0 18px; }

.article-body h2 {
  font-size: 20px;
  margin: 30px 0 14px;
  color: var(--ink);
}

.article-body blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2);
  font-size: 15px;
}

.notice {
  margin: 26px 0 0;
  padding: 12px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-4);
  font-size: 12.5px;
  line-height: 1.8;
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 34px;
  background: var(--topbar);
  color: var(--topbar-ink);
  font-size: 13.5px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 26px;
  padding: 34px 16px 26px;
}

.footer-brand .logo-text b { color: #fff; }
.footer-brand p { color: #8d93a0; font-size: 13px; margin: 14px 0 0; line-height: 1.9; }

.footer-col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: #8d93a0;
  padding: 4px 0;
  font-size: 13px;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #262a33;
  padding: 14px 16px 22px;
  color: #767d8b;
  font-size: 12.5px;
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   其他
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 14px);
  background: rgba(22, 24, 30, 0.94);
  color: #fff;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  z-index: 300;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.back-top {
  position: fixed;
  right: 26px;
  bottom: 34px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 17px;
  cursor: pointer;
  display: none;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 90;
}

.back-top.show { display: grid; }

.empty {
  padding: 48px 18px;
  text-align: center;
  color: var(--ink-4);
  font-size: 14px;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px;
}

.pager button {
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 13.5px;
}

.pager button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.pager .pager-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pager .pager-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pager .pager-arrow.prev svg { transform: rotate(180deg); }

.sidebar-sticky { position: sticky; top: 84px; }

.sidebar .stat { padding: 12px 13px; }
.sidebar .stat .value { font-size: 18px; }

/* 实时行情状态提示 */
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-4);
}

.live-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

.live-status.sample i { background: var(--ink-4); }

.chart-loading {
  padding: 44px 0;
  text-align: center;
  color: var(--ink-4);
  font-size: 13px;
}

.spark-empty { color: var(--ink-4); font-size: 13px; }

/* 专题页 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.topic-card { overflow: hidden; }

.topic-cover {
  height: 116px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}

.topic-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 46%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 22px);
}

.topic-cover span { position: relative; z-index: 1; }
.topic-cover:hover { color: #fff; }

.topic-body { padding: 16px 18px 18px; }
.topic-body h3 { margin: 0 0 8px; font-size: 17px; }
.topic-body p { margin: 0 0 12px; color: var(--ink-3); font-size: 13.5px; }

.topic-links { list-style: none; margin: 0 0 12px; padding: 0; }

.topic-links li {
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
}

.topic-links li a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-body .more { font-size: 13px; color: var(--brand); }

.topic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

/* 百科页 */
.wiki-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 16px;
  margin-bottom: 12px;
}

.wiki-item:last-child { margin-bottom: 0; }

.wiki-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  list-style: none;
}

.wiki-item summary::-webkit-details-marker { display: none; }

.wiki-item summary::after {
  content: "＋";
  color: var(--ink-4);
  font-weight: 400;
  flex: none;
}

.wiki-item[open] summary::after { content: "－"; }

.wiki-item summary .wiki-term { flex: 1; min-width: 0; }

.wiki-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.wiki-cat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}

.wiki-cat b { font-size: 15px; color: var(--ink); }
.wiki-cat span { font-size: 12.5px; color: var(--ink-4); }
.wiki-cat:hover { border-color: var(--brand); }
.wiki-cat:hover b { color: var(--brand); }

.wiki-brief {
  margin: 12px 0 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 14px;
}

.wiki-detail {
  margin: 0 0 16px;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.9;
}

/* 数据页榜单 */
.data-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.rank-rows { padding: 4px 0 8px; }

.rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 64px;
  gap: 10px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
}

.rank-row:last-child { border-bottom: 0; }
.rank-row .idx { color: var(--ink-4); font-weight: 700; }

.rank-row .sym { display: flex; flex-direction: column; min-width: 0; }
.rank-row .sym b { font-weight: 600; }
.rank-row .sym .vol { font-size: 11.5px; color: var(--ink-4); }
.rank-row .price { color: var(--ink-2); }
.rank-mini-kline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 64px;
  height: 26px;
}
.rank-mini-kline .mini-kline-svg { display: block; width: 64px; height: 26px; }

.a-stock-toolbar {
  display: grid;
  gap: 7px;
}

.a-stock-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.a-stock-search-btn {
  min-width: 72px;
  height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #d92b2b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.a-stock-search-btn:hover { background: #c62424; }
.a-stock-search-btn:active { transform: translateY(1px); }
.a-stock-search-btn:focus-visible {
  outline: 2px solid rgba(217, 43, 43, 0.3);
  outline-offset: 2px;
}

.a-stock-rank-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 34px;
  gap: 3px;
  width: 100%;
  overflow: visible;
}

.a-stock-rank-tabs button {
  width: 100%;
  min-width: 0;
  padding: 6px 1px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.a-stock-rank-tabs button.active { font-weight: 800; }

.a-stock-rank-tabs .a-stock-rank-more {
  width: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}
.a-stock-rank-tabs .a-stock-rank-more.active {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
}

.a-stock-rank-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 90;
  display: none;
  min-width: 132px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.a-stock-rank-menu.open { display: grid; gap: 2px; }
.a-stock-rank-menu button {
  width: 100%;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
.a-stock-rank-menu button.active {
  background: var(--brand-soft);
  color: var(--brand);
}

#qaMacroRows .rank-row {
  grid-template-columns: minmax(0, 1fr) auto auto 66px;
  gap: 10px;
}

#qaMacroRows .macro-row {
  width: 100%;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#qaMacroRows .macro-row:hover { background: var(--surface-2); }
#qaMacroRows .macro-name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
#qaMacroRows .macro-logo {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}
.macro-mini-kline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 66px;
  height: 28px;
}
.macro-mini-kline .mini-kline-svg { display: block; width: 66px; height: 28px; }
#macroKlineMask .modal { width: min(980px, 100%); }

.macro-gold-highlight {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 18px 4px;
  padding: 13px 16px;
  border: 1px solid #f2dfad;
  border-radius: 10px;
  background: linear-gradient(135deg, #fffaf0, #fff4d6);
}

.macro-gold-highlight span { color: var(--ink-2); font-size: 16px; font-weight: 800; }
.macro-gold-highlight b { color: #b77a00; font-size: 22px; }
.macro-gold-highlight small { margin-left: auto; color: var(--ink-4); font-size: 12px; }

html[data-theme="dark"] .macro-gold-highlight {
  border-color: rgba(240, 185, 11, 0.28);
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.1), rgba(240, 185, 11, 0.04));
}

#aKlineMask .modal { width: min(980px, 100%); }
#fxKlineMask .modal { width: min(980px, 100%); }
#fxKlineInfo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--ink-3);
  font-size: 12.5px;
}
#fxKlineInfo b { color: var(--ink); font-size: 14px; }
#fxKlineIntervals { margin-bottom: 4px; }
#fxKlineChart { width: 100%; min-height: 300px; }
#fxKlineStatus { margin: 5px 12px 0; }
.a-stock-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  flex: none;
  overflow: hidden;
  vertical-align: middle;
}
.a-stock-logo-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 2px;
  background: #fff;
  object-fit: contain;
}
.a-stock-logo.missing { background: var(--surface-2); }
.a-fav-btn {
  flex: none;
  width: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-4);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.a-fav-btn.on { color: #f0a30b; }
.a-stock-table { min-width: 1120px; }
.a-stock-table tbody tr { cursor: pointer; }
.a-stock-table tbody tr:hover { background: var(--surface-2); }
.a-stock-table th:nth-child(1),
.a-stock-table td:nth-child(1) { width: 230px; text-align: left; }
.a-stock-table td:nth-child(1) b { display: block; }
.a-stock-table th:nth-child(3),
.a-stock-table td:nth-child(3) { width: 76px; }
.a-stock-table th:nth-child(4),
.a-stock-table td:nth-child(4) { width: 82px; }
.a-stock-table th:nth-child(5),
.a-stock-table td:nth-child(5) { width: 96px; }
.a-stock-table th:nth-child(6),
.a-stock-table td:nth-child(6) { width: 100px; }
.a-stock-table th:nth-child(7),
.a-stock-table td:nth-child(7) { width: 104px; }
.a-stock-table th:nth-child(8),
.a-stock-table td:nth-child(8) { width: 46px; text-align: center; }
.a-stock-table th:nth-child(8),
.a-stock-table td.a-fav-cell-moved { display: none; }
.a-name-cell .a-fav-btn { margin-right: 5px; vertical-align: middle; }
.a-stock-table th:nth-child(9),
.a-stock-table td:nth-child(9) { width: 78px; }
.a-stock-table th:nth-child(10),
.a-stock-table td:nth-child(10) { width: 90px; text-align: center; }
.a-mini-kline .mini-kline-svg {
  display: block;
  width: 72px;
  height: 28px;
  margin: 0 auto;
}
.a-stock-table .a-code {
  display: block;
  margin-top: 2px;
  color: var(--ink-4);
  font-size: 11.5px;
}

/* 全网爆仓 */
.liq-global {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.liq-global-item {
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--surface-2);
}

.liq-global-item span { display: block; color: var(--ink-4); font-size: 12px; }
.liq-global-item b { display: block; margin-top: 5px; font-size: 18px; }
.liq-global-item small { display: block; margin-top: 4px; color: var(--ink-4); font-size: 11.5px; }

.liq-period-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.liq-period-shell { display: block; }
.liq-period-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.liq-period-tabs button {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 11px;
  cursor: pointer;
}
.liq-period-tabs button.active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--brand);
  font-weight: 700;
}
.liq-period-single { margin-top: 7px; }
.liq-period-empty { margin-top: 7px; padding: 10px; }

.liq-period {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.liq-period b {
  display: block;
  margin: 6px 0;
  font-size: 21px;
  color: var(--ink);
}

.liq-period span { color: var(--ink-4); font-size: 12.5px; }
.liq-period .liq-split { display: flex; gap: 12px; margin-top: 9px; font-size: 12px; }

.liq-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.liq-block h4 { margin: 0 0 10px; font-size: 15px; }
.liq-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
}

.liq-row:last-child { border-bottom: 0; }
.liq-row .name { min-width: 0; font-weight: 600; }
.liq-row .sub { display: block; margin-top: 2px; color: var(--ink-4); font-size: 11px; font-weight: 400; }
.liq-largest {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 13px;
}

/* 数据页模块 */
.data-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.dm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dm-item { display: flex; flex-direction: column; gap: 4px; }
.dm-item span { font-size: 12.5px; color: var(--ink-4); }
.dm-item b { font-size: 17px; }
.dm-item i { font-size: 12px; color: var(--ink-4); font-style: normal; }

.dm-table { display: flex; flex-direction: column; }

.dm-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
}

.dm-row:last-child { border-bottom: 0; }
.dm-row b { font-weight: 600; }

.dm-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.dm-links a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dm-links a b { display: block; font-size: 14px; }
.dm-links a span { display: block; font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.dm-links a:hover { border-color: var(--brand); }
.dm-links a:hover b { color: var(--brand); }

.blockchain-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.blockchain-extra-loading { grid-column: 1 / -1; }
.blockchain-extra-card { min-width: 0; overflow: hidden; }
.blockchain-extra-card.bce-alert-card { grid-column: 1 / -1; }
.blockchain-extra-card .card-head { gap: 10px; }
.blockchain-extra-card .card-head span { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.blockchain-extra-card .dm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blockchain-extra-card .dm-item { min-width: 0; }
.blockchain-extra-card .dm-item b { overflow-wrap: anywhere; }
.blockchain-extra-note {
  margin: 12px 0 0;
  color: var(--ink-4);
  font-size: 12px;
  line-height: 1.55;
}

.blockchain-extra-insight {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.blockchain-extra-insight b { display: block; margin-bottom: 4px; font-size: 12.5px; }
.blockchain-extra-insight p { margin: 0; color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.blockchain-extra-insight small { display: block; margin-top: 4px; color: var(--ink-4); font-size: 10.5px; line-height: 1.45; }

.bce-flow-table { display: flex; flex-direction: column; }
.bce-flow-row {
  display: grid;
  grid-template-columns: minmax(62px, .8fr) minmax(88px, 1fr) minmax(88px, 1fr) minmax(96px, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
}
.bce-flow-row:last-child { border-bottom: 0; }
.bce-flow-row.head { color: var(--ink-4); font-size: 11px; }
.bce-flow-row > * { min-width: 0; overflow-wrap: anywhere; }
.bce-flow-row .num { text-align: right; }
.bce-flow-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.bce-flow-summary > div { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); min-width: 0; }
.bce-flow-summary span { display: block; color: var(--ink-4); font-size: 11px; }
.bce-flow-summary b { display: block; margin-top: 3px; font-size: 15px; overflow-wrap: anywhere; }
.bce-flow-summary small { display: block; margin-top: 2px; color: var(--ink-4); font-size: 10.5px; }

.bce-three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.bce-mini-card { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.bce-mini-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.bce-mini-head b { font-size: 13px; }
.bce-mini-head span { color: var(--ink-4); font-size: 10px; text-align: right; }
.bce-mini-row { display: flex; justify-content: space-between; gap: 7px; padding: 3px 0; font-size: 11.5px; }
.bce-mini-row span { color: var(--ink-4); }
.bce-mini-row b { text-align: right; overflow-wrap: anywhere; }
.bce-etf-card .bce-mini-row b { font-size: 11.5px; }
.bce-empty { padding: 18px 0; text-align: center; color: var(--ink-4); font-size: 12px; }
.bce-wallet-list,
.bce-whale-list,
.bce-calendar-list,
.bce-alert-list { display: flex; flex-direction: column; }
.bce-wallet-row,
.bce-whale-row,
.bce-calendar-row,
.bce-alert-row {
  display: grid;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
  min-width: 0;
}
.bce-wallet-row { grid-template-columns: minmax(82px, 1fr) minmax(86px, .9fr) minmax(82px, .8fr); }
.bce-whale-row { grid-template-columns: minmax(0, 1.8fr) 64px 70px; gap: 6px; padding: 5px 0; }
.bce-calendar-row { grid-template-columns: minmax(72px, .8fr) minmax(90px, 1fr) minmax(86px, .9fr) minmax(58px, .65fr); gap: 6px; padding: 5px 0; }
.bce-alert-row { grid-template-columns: minmax(92px, 1fr) auto minmax(0, 1.6fr); }
.bce-wallet-row:last-child,
.bce-whale-row:last-child,
.bce-calendar-row:last-child,
.bce-alert-row:last-child { border-bottom: 0; }
.bce-wallet-row > *,
.bce-whale-row > *,
.bce-calendar-row > *,
.bce-alert-row > * { min-width: 0; overflow-wrap: anywhere; }
.bce-wallet-row .num,
.bce-calendar-row .num { text-align: right; }
.bce-row-head { color: var(--ink-4); font-size: 10.5px; }
.bce-subhead { margin: 13px 0 4px; font-size: 12px; }
.bce-wallet-name,
.bce-calendar-project { font-weight: 700; }
.bce-whale-address { color: var(--ink-3); font-size: 10.5px; line-height: 1.4; }
.bce-whale-address { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bce-whale-time { color: var(--ink-4); font-size: 9px; white-space: nowrap; }
.bce-whale-amount { text-align: right; font-weight: 700; }
.bce-whale-amount small { display: block; color: var(--ink-4); font-size: 9.5px; font-weight: 400; }
.bce-calendar-time { color: var(--ink-4); font-size: 10.5px; }
.bce-calendar-row.is-clickable { cursor: pointer; }
.bce-calendar-row.is-clickable:hover .bce-calendar-project { color: var(--brand); }
.bce-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
.bce-alert-badge.alert { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
.bce-alert-badge.warn { background: color-mix(in srgb, #d89a24 16%, transparent); color: #a36d06; }
.bce-alert-badge.ok { background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); }
.bce-alert-copy { color: var(--ink-3); font-size: 10.5px; line-height: 1.45; }
.bce-corr-wrap { display: grid; gap: 5px; }
.bce-corr-grid {
  display: grid;
  grid-template-columns: minmax(52px, 1.4fr) repeat(5, minmax(0, 1fr));
  gap: 3px;
  min-width: 0;
}
.bce-corr-grid > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 3px 2px;
  border-radius: 4px;
  background: var(--surface-2);
  font-size: 9.5px;
  text-align: center;
  overflow-wrap: anywhere;
}
.bce-corr-grid > span:first-child { justify-content: flex-start; padding-left: 5px; color: var(--ink-3); }
.bce-corr-grid > span.corr-head { color: var(--ink-4); font-weight: 600; }
.bce-corr-grid .corr-pos-strong { background: color-mix(in srgb, var(--up) 28%, var(--surface)); color: var(--up); font-weight: 700; }
.bce-corr-grid .corr-pos { background: color-mix(in srgb, var(--up) 13%, var(--surface)); color: var(--up); }
.bce-corr-grid .corr-neg-strong { background: color-mix(in srgb, var(--down) 28%, var(--surface)); color: var(--down); font-weight: 700; }
.bce-corr-grid .corr-neg { background: color-mix(in srgb, var(--down) 13%, var(--surface)); color: var(--down); }

.chain-filter-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px 8px;
  flex-wrap: wrap;
}
.chain-filter-tabs button {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 10.5px;
  cursor: pointer;
}
.chain-filter-tabs button.active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--brand);
  font-weight: 700;
}

@media (max-width: 960px) {
  .blockchain-extra-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
  .blockchain-extra-card .card-head span { font-size: 10px; }
  .bce-three-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .blockchain-extra-grid { gap: 7px; margin-top: 7px; }
  .blockchain-extra-card .dm-grid { gap: 7px 10px; }
  .blockchain-extra-card .dm-item span { font-size: 10.5px; }
  .blockchain-extra-card .dm-item b { font-size: 13px; }
  .blockchain-extra-card .dm-item i { font-size: 9px; }
  .blockchain-extra-note { margin-top: 8px; font-size: 10.5px; }
  .blockchain-extra-insight { margin-top: 8px; padding: 8px 9px; }
  .blockchain-extra-insight b { font-size: 11px; }
  .blockchain-extra-insight p { font-size: 10.5px; line-height: 1.5; }
  .bce-flow-row { grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr); gap: 5px; font-size: 10.5px; }
  .bce-flow-row > :nth-child(4) { display: none; }
  .bce-flow-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
  .bce-flow-summary > div { padding: 7px 8px; }
  .bce-flow-summary b { font-size: 12px; }
  .bce-three-grid { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .bce-mini-card { padding: 8px; }
  .bce-wallet-row { grid-template-columns: minmax(72px, 1fr) minmax(76px, .9fr) minmax(70px, .8fr); gap: 5px; }
  .bce-whale-row { grid-template-columns: minmax(0, 1.7fr) 54px 66px; gap: 4px; padding: 4px 0; }
  .bce-whale-address { font-size: 9.5px; }
  .bce-whale-time { font-size: 8.5px; }
  .bce-whale-amount { font-size: 11px; }
  .bce-whale-amount small { font-size: 8px; }
  .bce-calendar-row { grid-template-columns: minmax(74px, .85fr) minmax(80px, 1fr) minmax(62px, .8fr); gap: 5px; padding: 4px 0; }
  .bce-calendar-project { font-size: 11px; }
  .bce-calendar-time { font-size: 9.5px; }
  .bce-calendar-row > :nth-child(4) { display: none; }
  .bce-alert-row { grid-template-columns: minmax(76px, 1fr) auto; }
  .bce-alert-copy { grid-column: 1 / -1; }
  .bce-corr-grid { grid-template-columns: minmax(42px, 1.2fr) repeat(5, minmax(0, 1fr)); gap: 2px; }
  .bce-corr-grid > span { min-height: 26px; font-size: 8px; }
  .chain-filter-tabs { padding: 0 9px 6px; gap: 4px; }
  .chain-filter-tabs button { padding: 3px 7px; font-size: 9.5px; }
}

/* K 线页 */
.kline-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.kline-symbol { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.kline-symbol select { min-width: 170px; }

.kline-wrap { position: relative; padding: 10px 12px 4px; }
.kline-chart { width: 100%; min-height: 300px; }
.kline-svg { display: block; width: 100%; }

.kline-tip {
  position: absolute;
  right: 16px;
  top: 58px;
  background: var(--popover, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  display: none;
  gap: 10px;
  flex-wrap: wrap;
  max-width: min(420px, 80%);
}

.kline-tip.show { display: flex; }
.kline-tip b { color: var(--ink); }

.legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* 工具页 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calc-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.calc-field .text-input { width: 100%; }

.calc-out {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.calc-out > div { display: flex; flex-direction: column; gap: 4px; }
.calc-out span { font-size: 12px; color: var(--ink-4); }
.calc-out b { font-size: 16px; font-variant-numeric: tabular-nums; }

.calc-note { margin: 12px 0 0; font-size: 12px; color: var(--ink-4); line-height: 1.8; }

/* 特约页 */
.column-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.column-card { padding: 18px 18px 16px; }

.column-head { display: flex; align-items: center; gap: 12px; }

.column-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  flex: none;
}

.column-head b { display: block; font-size: 16px; }
.column-head span { font-size: 12.5px; color: var(--ink-4); }
.column-bio { margin: 12px 0 14px; color: var(--ink-3); font-size: 13.5px; }

#fedList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fed-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.fed-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.fed-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.fed-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-4);
  font-size: 12px;
}

.fed-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.fed-card h3 {
  margin: 10px 0 8px;
  font-size: 16px;
  line-height: 1.55;
}

.fed-card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.8;
}

.fed-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--brand);
  font-size: 13px;
}

.fed-detail-content {
  margin: 14px 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.9;
  white-space: pre-wrap;
}

#fedDetailMask .modal { width: min(780px, 100%); }

/* 导航页 */
.nav-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.nav-group-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.nav-group-icon {
  display: block;
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.nav-group-card .card-head h3::before { display: none; }

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 0;
}

.nav-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 15px;
  background: var(--surface-2);
  color: var(--ink-3);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-tab:hover { color: var(--ink); }
.nav-tab.active {
  background: #fff1c9;
  color: #c98a00;
  font-weight: 700;
}

.nav-tab:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

#qaMacroTabs { gap: 10px; }
#qaMacroTabs .nav-tab {
  padding: 8px 17px;
  font-size: 15px;
  font-weight: 700;
}

.nav-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 18px 18px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(217, 43, 43, 0.08);
  transform: translateY(-2px);
}

.nav-logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
}

.nav-logo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-logo-fallback {
  position: absolute;
  color: var(--ink-4);
  font-size: 17px;
  font-weight: 800;
}

.nav-copy { min-width: 0; }
.nav-copy b {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-copy > span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink-4);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link:hover .nav-copy b { color: var(--brand); }
.nav-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

html[data-theme="dark"] .nav-logo { background: #ffffff; }
html[data-theme="dark"] .nav-group-icon { filter: brightness(0) invert(1); }
html[data-theme="dark"] .nav-tab.active {
  background: rgba(240, 185, 11, 0.16);
  color: #f3c64d;
}

/* 问答提问框 */
.ask-form { display: flex; gap: 10px; }
.ask-form .text-input { flex: 1; }

/* 站内小助手（演示） */
.assistant { position: fixed; right: 26px; bottom: 92px; z-index: 150; }

.assistant-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-hover);
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.assistant-btn:hover { border-color: var(--brand); }

.assistant-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 448px;
  max-width: calc(100vw - 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}

.assistant-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  font-size: 15.5px;
}

.assistant-head b { flex: none; }
.assistant-head span { flex: 1; font-size: 12px; color: var(--ink-4); }

.assistant-body {
  min-height: 380px;
  max-height: 600px;
  max-height: min(600px, calc(100vh - 320px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assistant-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.7;
}

.assistant-msg.bot {
  background: #ffffff;
  border: 1px solid #f0f2f5;
  color: #333b48;
  align-self: flex-start;
}
.assistant-msg.me { background: var(--brand-soft); color: var(--brand); align-self: flex-end; }
.assistant-msg a { color: var(--brand); text-decoration: underline; }
.assistant-msg b { font-weight: 600; }

#assistantStatus { flex: 1; font-size: 12px; color: var(--ink-4); }

.typing { display: inline-flex; align-items: center; gap: 4px; }
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
  animation: typing 1s infinite ease-in-out;
}

.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .typing i { animation: none; }
}

/* 「思考中」气泡：可见的思考过程 */
.assistant-msg.think {
  background: #fafbfd;
  border: 1px dashed #e5e9f0;
  color: #4b5565;
  align-self: flex-start;
  max-width: 94%;
}

.assistant-msg.think .think-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.assistant-msg.think .spin {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(217, 43, 43, 0.28);
  border-top-color: var(--brand);
  animation: think-spin 0.8s linear infinite;
}

.assistant-msg.think.done .spin {
  animation: none;
  border-color: rgba(26, 160, 109, 0.45);
  border-top-color: #1aa06d;
}

@keyframes think-spin {
  to { transform: rotate(360deg); }
}

.assistant-msg.think .think-steps {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--ink-4);
}

.assistant-msg.think .t-step { animation: think-in 0.25s ease; }

@keyframes think-in {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-msg.think .spin { animation: none; }
  .assistant-msg.think .t-step { animation: none; }
}

.assistant-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 16px 12px;
}

.assistant-quick button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.assistant-quick button:hover { border-color: var(--brand); color: var(--brand); }

.assistant-suggests {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-self: flex-start;
  padding: 2px 0 6px;
}

.assistant-suggests button {
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--ink-3);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.assistant-suggests button:hover { border-color: var(--brand); color: var(--brand); }

/* 推荐专栏（侧栏推荐位） */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 8px;
  padding: 14px 16px 16px;
}

.people-grid-lg {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 14px;
  padding: 20px 18px;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.person-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  flex: none;
}

.person-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line-2);
  flex: none;
  border: 1px solid var(--line);
}

.person b {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-title { font-size: 12px; color: var(--ink-4); line-height: 1.4; }
.person:hover b { color: var(--brand); }

/* 财研数据特色内容（橙色表头） */
.card-head-orange {
  background: linear-gradient(90deg, #f2a01c, #ffd166);
  border-bottom: 0;
}

.card-head-orange h3 { color: #fff; }
.card-head-orange h3::before { background: #fff; }

.feat-list { padding: 6px 18px 0; }

.feat-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.feat-row:last-child { border-bottom: 0; }
.feat-row b { font-size: 14.5px; color: var(--ink); flex: none; }
.feat-row b i { font-style: normal; color: var(--ink-4); margin-left: 4px; font-size: 13px; }

.feat-links { display: flex; flex-wrap: wrap; gap: 14px; }
.feat-links a { font-size: 14px; color: var(--feature); }
.feat-links a:hover { color: var(--brand); text-decoration: underline; }

/* 与左侧「币圈今日大事件」保持等高 */
.card[data-features-card] {
  min-height: 261px;
  display: flex;
  flex-direction: column;
}

/* 顶部与左侧「币圈今日大事件」严格对齐（覆盖 aside 里的通用卡片间距） */
.layout aside .card[data-features-card] { margin-top: 28px; }

.card[data-features-card] .feat-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 0 18px;
}

.card[data-features-card] .feat-row { padding: 7px 0; }


/* 币圈文章快讯（彩色标签） */
.hl { background: linear-gradient(transparent 62%, #ffe08a 62%); padding: 0 1px; }

/* 焦点图右侧：特色内容（与左侧焦点图等高） */
.hero-side { display: flex; flex-direction: column; }
.hero-side .card-head { padding: 11px 16px; }
.hero-side .feat-list { padding: 2px 16px 10px; }
.hero-side .feat-row { padding: 7px 0; }
.hero-side .feat-row b { font-size: 14px; }
.hero-side .feat-links { gap: 12px; }
.hero-side .feat-links a { font-size: 13.5px; }
.hero-side .tag-cloud { padding: 10px 12px 12px; gap: 8px; }
.hero-side .tag-chip { padding: 8px 6px; font-size: 13px; border-radius: 6px; }

/* 币圈今日大事件 */
.hl-pill { background: #ffe6a3; border-radius: 999px; padding: 1px 8px; margin-right: 2px; }
html[data-theme="dark"] .hl-pill { background: rgba(255, 205, 90, 0.28); }

/* 数字货币汇率换算器 */
.idx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.idx-card {
  display: block;
  padding: 18px 20px 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.idx-card:hover { border-color: rgba(217, 43, 43, 0.45); box-shadow: var(--shadow-hover); }
.idx-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.idx-name { font-size: 18px; font-weight: 600; color: var(--ink); }
.idx-price { font-size: 30px; font-weight: 700; margin-top: 8px; letter-spacing: -0.5px; }
.idx-chg { font-size: 14px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.idx-spark { margin: 8px -20px -1px; }
.idx-spark svg { display: block; width: 100%; height: 64px; }

.st-up { color: #1aa06d !important; }
.st-down { color: #d92b2b !important; }
html[data-theme="dark"] .st-up { color: #3ddc97 !important; }
html[data-theme="dark"] .st-down { color: #ff6b6b !important; }

.us-star {
  border: 0;
  background: transparent;
  color: var(--ink-4);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.us-star.on { color: #f0b429; }
.us-sym .coin-icon { width: 26px; height: 26px; font-size: 11px; }
.us-name { text-align: left !important; padding-left: 4px; color: var(--ink-2); }

@media (min-width: 961px) {
  .us-market th.us-name,
  .us-market td.us-name { min-width: 220px; }
  .us-name-text {
    display: inline-block;
    max-width: calc(100% - 150px);
    overflow: hidden;
    vertical-align: middle;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .us-name-spark {
    display: inline-block;
    float: right;
    width: 128px;
    height: 26px;
    margin-left: 14px;
    overflow: hidden;
    vertical-align: middle;
  }
  .us-name-spark svg {
    display: block;
    width: 100%;
    height: 26px;
    overflow: hidden;
  }
  .us-name-spark-empty {
    display: block;
    width: 100%;
    height: 22px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--line-2), transparent);
    opacity: 0.55;
  }
}

@media (max-width: 960px) {
  .idx-grid { grid-template-columns: minmax(0, 1fr); }
}

.conv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.conv-col { min-width: 0; }

.conv-field {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.conv-pick { flex: none; }
.conv-pick select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  max-width: 190px;
  outline: none;
}

.conv-amount {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  text-align: right;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.conv-swap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 18px;
  cursor: pointer;
  flex: none;
}

.conv-swap:hover { border-color: var(--feature); color: var(--feature); }

.conv-hint { margin: 8px 2px 0; font-size: 12.5px; color: var(--ink-4); }
.rate-chart { min-height: 280px; }

@media (max-width: 720px) {
  .conv-grid { grid-template-columns: minmax(0, 1fr); }
  .conv-swap { justify-self: center; transform: rotate(90deg); }
  .conv-amount { font-size: 18px; }
}

.more-feature { color: var(--feature) !important; }

.event-list { padding: 8px 18px 12px; }

.event-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.event-link {
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.event-link:hover {
  background: var(--line-2);
}

.event-item:last-of-type { border-bottom: 0; }

.event-time {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--feature);
  font-variant-numeric: tabular-nums;
}

.event-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.event-note { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-4); line-height: 1.6; }

/* 放在左侧「最新资讯」下方时，大事件分两列展示 */
[data-events-wide] .event-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  padding-top: 10px;
}

[data-events-wide] .event-note { grid-column: 1 / -1; }

.tag-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 16px;
}

.tag-chip {
  display: block;
  padding: 12px 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-c1 { background: #dfe4ff; color: #3b4cca; }
.tag-c2 { background: #dcf3dc; color: #2f8f46; }
.tag-c3 { background: #d6efe9; color: #2a8b7a; }
.tag-c4 { background: #dbe9fb; color: #2a6bb5; }
.tag-c5 { background: #e8ddfa; color: #6a4bb5; }
.tag-c6 { background: #fde0ee; color: #b53b76; }

html[data-theme="dark"] .tag-c1 { background: rgba(59, 76, 202, 0.25); color: #b3bfff; }
html[data-theme="dark"] .tag-c2 { background: rgba(47, 143, 70, 0.25); color: #8fdca4; }
html[data-theme="dark"] .tag-c3 { background: rgba(42, 139, 122, 0.25); color: #86d6c6; }
html[data-theme="dark"] .tag-c4 { background: rgba(42, 107, 181, 0.25); color: #9dc4f0; }
html[data-theme="dark"] .tag-c5 { background: rgba(106, 75, 181, 0.28); color: #c3aef5; }
html[data-theme="dark"] .tag-c6 { background: rgba(181, 59, 118, 0.25); color: #f3a6cb; }
.reco-list { padding: 12px 18px 16px; }

.reco-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
}

.reco-item + .reco-item { border-top: 1px dashed var(--line); }
.reco-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  flex: none;
}

.reco-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reco-body b { font-size: 15px; }
.reco-desc { font-size: 12.5px; color: var(--ink-3); }
.reco-url { font-size: 12px; color: var(--ink-4); word-break: break-all; }
.reco-item:hover .reco-body b { color: var(--brand); }

.assistant-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line-2);
}

.assistant-form .text-input { flex: 1; min-width: 0; }

/* AI 助手输入栏：高度加大一倍（输入框 34→68，发送按钮 32→64） */
.assistant-form { align-items: center; padding: 16px 16px 18px; }
.assistant-form .text-input { height: 68px; font-size: 15px; padding: 0 18px; }
.assistant-form .btn { height: 64px; padding: 0 24px; font-size: 15px; }

/* AI 助手提问框：两排字输入（多行，可换行） */
.assistant-form textarea.text-input {
  padding: 12px 18px;
  border-radius: 20px;
  line-height: 1.6;
  resize: none;
  font-family: inherit;
  overflow-y: auto;
}

@media (max-width: 640px) {
  .assistant { right: 14px; bottom: 84px; }
  .assistant-panel { width: calc(100vw - 28px); }
  .assistant-body { min-height: 300px; max-height: min(460px, calc(100vh - 300px)); }
}

/* ==========================================================================
   APP 版：底部导航 + 「我的」面板（手机端显示）
   ========================================================================== */

.tab-bar { display: none; }

.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 18, 0.5);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 260;
}

.sheet-mask.open { display: flex; }

.sheet {
  width: min(560px, 100%);
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  padding-bottom: env(safe-area-inset-bottom);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
}

.sheet-head b { font-size: 16px; }
.sheet-body { padding: 8px 18px 18px; }

.me-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.me-row:last-of-type { border-bottom: 0; }
.me-row > span { color: var(--ink-2); }
.me-row a { color: var(--brand); font-size: 13.5px; }

@media (max-width: 960px) {
  .tab-bar {
    display: flex;
    justify-content: center;
    gap: 4px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 130;
  }

  .tab-item {
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.1px;
    line-height: 1;
    color: var(--ink-3);
    position: relative;
  }

  .tab-item.active { color: var(--brand); font-weight: 800; }

  .tab-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 26px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--brand);
  }

  body { padding-bottom: 68px; }
  .back-top { bottom: 84px; }
  .assistant { bottom: 132px; }
}

@media (min-width: 961px) {
  body[data-page="market"] .stat-grid,
  body[data-page="bitcoin"] .stat-grid { gap: 10px; }
  body[data-page="market"] .stat,
  body[data-page="bitcoin"] .stat { padding: 10px 12px; }
  body[data-page="market"] .stat .value,
  body[data-page="bitcoin"] .stat .value {
    margin-top: 3px;
    font-size: 20px;
  }
  body[data-page="market"] .stat .sub,
  body[data-page="bitcoin"] .stat .sub { margin-top: 1px; }
  body[data-page="market"] .section,
  body[data-page="bitcoin"] .section { margin-top: 10px; }
  body[data-page="market"] table.market th,
  body[data-page="bitcoin"] table.market th { padding: 8px 12px; }
  body[data-page="market"] table.market td,
  body[data-page="bitcoin"] table.market td { padding: 8px 12px; }
  body[data-page="market"] .coin-cell,
  body[data-page="bitcoin"] .coin-cell { gap: 8px; }
  body[data-page="market"] .coin-icon,
  body[data-page="bitcoin"] .coin-icon {
    width: 28px;
    height: 28px;
  }
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .data-rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .column-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-grid-lg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .main-nav a { padding: 0 8px; font-size: 14.5px; }
  .search-box { width: 180px; }
  .nav-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-rank-grid { grid-template-columns: minmax(0, 1fr); }
  .tools-grid { grid-template-columns: minmax(0, 1fr); }
  .column-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #fedList { grid-template-columns: minmax(0, 1fr); }
  .liq-global { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .liq-period-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .liq-layout { grid-template-columns: minmax(0, 1fr); }
  .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-modules { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(3, 1fr); }
  .hero-lead { min-height: 200px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    padding: 6px 10px 12px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
  }

  .main-nav.open { display: flex; }
  .main-nav a { height: 44px; border-radius: 8px; }
  .main-nav a::after { display: none; }
  .main-nav a.active { background: var(--brand-soft); color: var(--brand); }
  .nav-toggle { display: grid; }
  .search-box { display: none; }
  .header-top { gap: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .card-head { flex-wrap: wrap; gap: 6px 10px; }
  .card-head h2,
  .card-head h3 { font-size: 16px; }
  .card-head .desc { font-size: 12px; }
  .nav-group-icon { width: 25px; height: 25px; }
  .nav-tabs { gap: 7px; padding: 12px 12px 0; }
  .nav-tab { padding: 6px 12px; font-size: 12.5px; }
  #qaMacroTabs .nav-tab { padding: 7px 14px; font-size: 14px; }
  .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 4px 12px 14px; }
  .nav-link { gap: 9px; min-height: 66px; padding: 10px; }
  .nav-logo { flex-basis: 36px; width: 36px; height: 36px; border-radius: 9px; }
  .nav-logo img { width: 30px; height: 30px; }
  .nav-copy b {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .nav-copy > span { font-size: 11.5px; }
  .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .column-grid { grid-template-columns: minmax(0, 1fr); }
  .people-grid-lg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-out { grid-template-columns: minmax(0, 1fr); }
  .wiki-cats { grid-template-columns: minmax(0, 1fr); }
  .dm-grid { grid-template-columns: minmax(0, 1fr); }
  .dm-links { grid-template-columns: minmax(0, 1fr); }
  .ask-form { flex-direction: column; }
  .liq-global { grid-template-columns: minmax(0, 1fr); }
  .liq-period-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar .topbar-right { display: none; }
  .news-item { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .thumb { height: 78px; font-size: 18px; }
  .news-item h3 { font-size: 15px; }
  .news-item .excerpt { display: none; }
  .hero-lead .content { padding: 20px; }
  .hero-lead h1 { font-size: 21px; }
  .hero-lead p { display: none; }
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .board-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .article-card { padding: 20px 16px 24px; }
  .article-card h1 { font-size: 22px; }
  .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head h1 { font-size: 21px; }
}

/* ==========================================================================
   移动端排版对齐 m.528btc.com：首页信息流条目 / 页面结构
   ========================================================================== */

@media (max-width: 960px) {
  /* 移动端不显示焦点大图（m 站移动端首页未启用该模块，源码中为注释状态） */
  .hero-lead.banner { display: none; }

  /* 首页信息流：与 m 站一致，去掉卡片外框，直接列表通栏展示 */
  .home-feed {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--surface);
    margin-left: -16px;
    margin-right: -16px;
  }

  .home-feed .card-head,
  .home-feed .card-body { display: none; }

  /* 信息流条目：左侧标题 + 右下方缩略图，来源 / 点赞 / 收藏 / 阅读（m 站同款） */
  .news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .news-item .thumb {
    order: 2;
    flex: none;
    width: 106px;
    height: 80px;
    border-radius: 8px;
    font-size: 16px;
  }

  .news-item .ni-body { order: 1; flex: 1; min-width: 0; }

  .news-item h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-item .excerpt { display: none; }

  .news-item .item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12.5px;
    color: #9aa0ab;
  }

  .news-item .item-meta > span + span::before { content: none; }
  .news-item .item-meta .mi { display: block; width: 15px; height: 15px; }

  .news-item .item-meta .im-like,
  .news-item .item-meta .im-star,
  .news-item .item-meta .im-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .news-item .item-meta .im-views::before { content: none; }
  .news-item .item-meta .im-time,
  .news-item .item-meta .im-cmt { display: none; }

  /* 行情条：移动端无分隔竖线，间距与 m 站接近 */
  .ticker-item { border-right: 0; margin-right: 14px; padding-right: 0; }
}

/* 手机端：行情统计卡片 / 美股指数卡片 文字调小 */
@media (max-width: 960px) {
  .stat .label { font-size: 12px; }
  .stat .value { font-size: 18px; }
  .stat .sub { font-size: 11.5px; }

  .idx-name { font-size: 15px; }
  .idx-price { font-size: 22px; margin-top: 6px; }
  .idx-chg { font-size: 12px; }
}

/* 手机端：行情 / 美股列表改为卡片式，内容完整显示在屏幕内 */
@media (max-width: 960px) {
  .market-table-wrap { overflow-x: visible; }

  #marketTable,
  #usStockTable { min-width: 0; width: 100%; }

  #marketTable thead,
  #usStockTable thead { display: none; }

  #marketTable tbody tr,
  #usStockTable tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-2);
  }

  #marketTable tbody td,
  #usStockTable tbody td {
    display: block;
    border: 0;
    padding: 0;
    text-align: left;
    white-space: normal;
  }

  #marketTable tbody td:first-child,
  #usStockTable tbody td:first-child { padding-left: 0; }

  /* 币种列表（加密货币）：名称 + 价格一行；涨跌、高低、成交额、走势换行排 */
  #marketTable tbody td:nth-child(1) { flex: 1 1 auto; min-width: 0; }
  #marketTable tbody td:nth-child(2) { flex: 0 0 auto; margin-left: auto; font-size: 16px; font-weight: 700; }
  #marketTable tbody td:nth-child(3) { flex: 0 0 auto; }
  #marketTable tbody td:nth-child(4),
  #marketTable tbody td:nth-child(5),
  #marketTable tbody td:nth-child(6) { flex: 0 0 auto; font-size: 12px; color: var(--ink-3); }
  #marketTable tbody td:nth-child(4)::before { content: "高 "; color: var(--ink-4); }
  #marketTable tbody td:nth-child(5)::before { content: "低 "; color: var(--ink-4); }
  #marketTable tbody td:nth-child(6)::before { content: "额 "; color: var(--ink-4); }
  #marketTable tbody td:nth-child(7) { flex: 0 0 auto; margin-left: auto; }
  #marketTable tbody td:nth-child(7) svg { display: block; }

  /* 美股列表：名称 + 价格一行；涨跌、量额市值换行排 */
  #usStockTable tbody td:nth-child(1) { flex: 0 0 auto; }
  #usStockTable tbody td:nth-child(2) {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: var(--ink-3);
  }
  #usStockTable tbody td:nth-child(3) { flex: 0 0 auto; margin-left: auto; font-size: 16px; font-weight: 700; }
  #usStockTable tbody td:nth-child(4),
  #usStockTable tbody td:nth-child(5) { flex: 0 0 auto; font-size: 13px; }
  #usStockTable tbody td:nth-child(6),
  #usStockTable tbody td:nth-child(7),
  #usStockTable tbody td:nth-child(8) { flex: 0 0 auto; font-size: 12px; color: var(--ink-4); }
  #usStockTable tbody td:nth-child(6)::before { content: "量 "; }
  #usStockTable tbody td:nth-child(7)::before { content: "额 "; }
  #usStockTable tbody td:nth-child(8)::before { content: "市值 "; }
}

/* 手机端：整体排版更紧凑（收紧卡片、列表、表单的行距与间距） */
@media (max-width: 960px) {
  /* 行情统计卡片（行情页 / 首页） */
  .stat-grid { gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat .value { margin-top: 2px; }
  .stat .sub { margin-top: 1px; }

  /* 美股指数卡片 */
  .idx-grid { gap: 10px; }
  .idx-card { padding: 12px 14px 0; }
  .idx-price { margin-top: 4px; }
  .idx-chg { margin-top: 1px; }
  .idx-spark { margin: 5px -14px -1px; }
  .idx-spark svg { height: 50px; }

  /* 行情 / 美股列表卡片行 */
  #marketTable tbody tr,
  #usStockTable tbody tr { padding: 9px 13px; gap: 3px 10px; }

  /* 快讯列表 */
  .flash-list { padding: 2px 14px 6px; }
  .flash-item { padding: 10px 0 10px 17px; }
  .flash-item::before { top: 17px; }
  .flash-item .time { margin-bottom: 2px; }
  .flash-item p { margin: 0 0 4px; }

  /* 工具 · 计算器 */
  .calc-grid { gap: 8px; }
  .calc-field { gap: 4px; }
  .calc-out { margin-top: 10px; padding-top: 10px; gap: 8px; }
  .calc-note { margin-top: 8px; }

  /* 汇率换算器 */
  .conv-grid { gap: 10px; }
  .conv-field { padding: 10px 13px; gap: 10px; }
  .conv-hint { margin: 4px 2px 0; }
  .conv-swap { width: 34px; height: 34px; font-size: 16px; }

  /* K 线 / 数据中心模块 */
  .dm-grid { gap: 10px 14px; }
  .dm-item { gap: 2px; }

  /* 页头与列表头 */
  .page-head { padding: 12px 0 8px; }
  .list-head { padding: 10px 12px; }
}

/* 手机端：第二轮紧凑化（信息流条目 + 卡片/表单/区块间距再收紧） */
@media (max-width: 960px) {
  /* 区块与卡片内间距 */
  .section { margin-top: 12px; }
  .card-head { padding: 10px 14px; }
  .card-body { padding: 12px 14px; }

  /* 首页 / 文章信息流条目 */
  .news-item { padding: 10px 14px; gap: 10px; }
  .news-item h3 { margin: 0 0 6px; }
  .news-item .thumb { width: 98px; height: 72px; border-radius: 7px; font-size: 14px; }
  .news-item .item-meta { font-size: 11.5px; gap: 3px; }
  .news-item .item-meta .mi { width: 13px; height: 13px; }
  .news-item .item-meta .im-like,
  .news-item .item-meta .im-star,
  .news-item .item-meta .im-views { gap: 3px; }

  /* 行情统计卡片 */
  .stat-grid { gap: 6px; }
  .stat { padding: 8px 10px; }
  .stat .label { font-size: 11.5px; }
  .stat .value { font-size: 17px; margin-top: 1px; }
  .stat .sub { font-size: 11px; margin-top: 0; }

  /* 美股指数卡片 */
  .idx-grid { gap: 8px; }
  .idx-card { padding: 10px 12px 0; }
  .idx-name { font-size: 14px; }
  .idx-price { font-size: 20px; margin-top: 2px; }
  .idx-chg { font-size: 11.5px; margin-top: 0; }
  .idx-spark { margin: 4px -12px -1px; }
  .idx-spark svg { height: 42px; }

  /* 工具 · 计算器 */
  .calc-grid { gap: 6px; }
  .calc-field { gap: 3px; }
  .calc-out { margin-top: 8px; padding-top: 8px; gap: 6px; }
  .calc-note { margin-top: 6px; line-height: 1.6; }

  /* 汇率换算器 */
  .conv-grid { gap: 8px; }
  .conv-field { padding: 8px 11px; gap: 8px; }
  .conv-amount { font-size: 17px; }
  .conv-hint { margin: 3px 2px 0; font-size: 11.5px; }
  .conv-swap { width: 30px; height: 30px; font-size: 14px; }

  body[data-page="fx"] .page-head { padding: 5px 0 4px; }
  body[data-page="fx"] .section { margin-top: 8px; }
  body[data-page="fx"] .card-head { padding: 8px 12px; }
  body[data-page="fx"] .card-body { padding: 9px 11px; }
  body[data-page="fx"] .list-head { padding: 7px 10px; }
  body[data-page="fx"] .conv-grid { gap: 0; }
  body[data-page="fx"] .conv-field { min-height: 32px; padding: 3px 7px; gap: 4px; }
  body[data-page="fx"] .conv-hint { margin: 0 1px -2px; font-size: 9.5px; line-height: 1.15; }
  body[data-page="fx"] .conv-swap {
    width: 18px;
    height: 18px;
    margin: -5px 8px -5px auto;
    justify-self: end;
    font-size: 9px;
  }
  body[data-page="fx"] .rate-chart { min-height: 215px; }
  body[data-page="fx"] .kline-wrap { padding: 6px 8px 2px; }
  body[data-page="fx"] #fxQuick { padding: 2px 12px 7px; }
  body[data-page="fx"] #fxQuick .reco-item { padding: 7px 0; }
  body[data-page="fx"] #fxQuick .reco-body { gap: 0; }
  body[data-page="fx"] #fxQuick .reco-body b { font-size: 13px; line-height: 1.35; }
  body[data-page="fx"] #fxQuick .reco-desc { font-size: 10.5px; line-height: 1.3; }
  body[data-page="fx"] .rank-rows { padding: 0 0 4px; }
  body[data-page="fx"] .rank-row {
    grid-template-columns: minmax(0, 1fr) auto auto 46px;
    gap: 4px;
    padding: 6px 10px;
    font-size: 11.5px;
  }
  body[data-page="fx"] .rank-row .sym b { font-size: 12.5px; }
  body[data-page="fx"] .rank-row .sym .vol { font-size: 10px; line-height: 1.2; }
  body[data-page="fx"] .rank-row .pill { padding: 2px 4px; font-size: 10px; min-width: 0; }
  body[data-page="fx"] .rank-mini-kline,
  body[data-page="fx"] .rank-mini-kline .mini-kline-svg { width: 46px; height: 22px; }
  body[data-page="fx"] .market-table-wrap { overflow-x: visible; }
  body[data-page="fx"] #fxTable {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    font-size: 11px;
  }
  body[data-page="fx"] #fxTable tbody tr {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 4px;
    padding: 6px 5px 6px 8px;
    border-bottom: 1px solid var(--line-2);
  }
  body[data-page="fx"] #fxTable tbody td {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0;
    text-align: left !important;
    white-space: nowrap;
  }
  body[data-page="fx"] #fxTable .fx-name {
    grid-column: 1 / 9;
    grid-row: 1;
    min-width: 0;
    align-items: flex-start;
    overflow: visible;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.22;
    white-space: normal;
  }
  body[data-page="fx"] #fxTable .fx-name-text {
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    text-overflow: clip;
  }
  body[data-page="fx"] #fxTable .price { grid-column: 9 / 14; grid-row: 1; font-size: 12.5px; font-weight: 800; text-align: right !important; }
  body[data-page="fx"] #fxTable > tbody > tr > td:nth-child(3) { grid-column: 14 / 18; grid-row: 1; justify-self: center; }
  body[data-page="fx"] #fxTable .pill { min-width: 44px; padding: 1px 4px; font-size: 9.5px; }
  body[data-page="fx"] #fxTable .fx-change { grid-column: 1 / 6; grid-row: 2; font-size: 10px; font-weight: 800; white-space: nowrap; }
  body[data-page="fx"] #fxTable .fx-range { grid-column: 16 / 25; grid-row: 2; overflow: visible; font-size: 8.5px; color: var(--ink-4); text-overflow: clip; white-space: nowrap; text-align: right !important; }
  body[data-page="fx"] #fxTable .fx-range-empty { display: none !important; }
  body[data-page="fx"] #fxTable .fx-volume { grid-column: 6 / 11; grid-row: 2; overflow: visible; font-size: 8.5px; color: var(--ink-4); text-overflow: clip; white-space: nowrap; }
  body[data-page="fx"] #fxTable .fx-amount { grid-column: 11 / 16; grid-row: 2; overflow: visible; font-size: 8.5px; color: var(--ink-4); text-overflow: clip; white-space: nowrap; text-align: center !important; }
  body[data-page="fx"] #fxTable .fx-mini-kline { grid-column: 18 / 25; grid-row: 1; padding: 0 !important; overflow: hidden; }
  body[data-page="fx"] #fxTable .fx-mini-kline .mini-kline-svg { display: block; width: 56px; height: 21px; margin-left: auto; }
  body[data-page="fx"] .page-head h1 { font-size: 24px; }
  body[data-page="fx"] .card-head h3 { font-size: 15px; }
  body[data-page="fx"] .conv-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(72px, 0.72fr);
  }
  body[data-page="fx"] .conv-pick select {
    width: 100%;
    min-width: 0;
    max-width: none;
    font-size: 13.5px;
  }
  body[data-page="fx"] .conv-amount { width: 100%; min-width: 0; font-size: 15.5px; }
  body[data-page="fx"] .conv-grid { gap: 4px; }
  body[data-page="fx"] .conv-swap { width: 26px; height: 26px; }
  body[data-page="fx"] .rate-chart { min-height: 190px; }
  body[data-page="fx"] #chartIntervals button { padding: 5px 9px; font-size: 12px; }
}

/* --------------------------------------------------------------------------
   站内搜索弹层（顶部搜索入口）
   -------------------------------------------------------------------------- */

.search-mask {
  position: fixed;
  inset: 0;
  z-index: 320;
  background: rgba(12, 14, 18, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}

.search-mask.open { display: flex; }

.search-panel {
  width: min(560px, 100%);
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.search-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line-2);
}

.search-head .text-input { flex: 1; min-width: 0; }

.search-body {
  max-height: 58vh;
  overflow-y: auto;
  padding: 6px 0;
}

.search-item {
  display: block;
  padding: 9px 16px;
  border-bottom: 1px dashed var(--line-2);
}

.search-item:last-child { border-bottom: 0; }
.search-item:hover { background: var(--line-2); }

.search-item b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.search-item span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-4);
}

.search-empty {
  padding: 20px 16px;
  font-size: 13px;
  color: var(--ink-4);
  text-align: center;
}

@media (max-width: 960px) {
  .search-mask { padding: 10px; }
  .search-panel { width: 100%; align-self: flex-start; margin-top: 8px; }
  .search-body { max-height: calc(100vh - 150px); }
}

/* 手机端：快讯文字更紧凑 */
@media (max-width: 960px) {
  .flash-item { padding: 9px 0 9px 16px; }
  .flash-item::before { top: 16px; }
  .flash-item .time { font-size: 12px; margin-bottom: 1px; }
  .flash-item p { font-size: 13.5px; line-height: 1.5; margin: 0 0 3px; }
  .flash-item .tags { gap: 5px; }
  .flash-item .tag { font-size: 11px; padding: 3px 8px; }
}

/* 手机端：页脚更紧凑，去掉空白 */
@media (max-width: 960px) {
  .site-footer { margin-top: 16px; }

  .footer-main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 10px;
    padding: 14px 12px 12px;
  }

  /* logo 独占一行，四个栏目一横排 */
  .footer-brand { grid-column: 1 / -1; }

  .footer-col h4 { margin: 0 0 5px; font-size: 12.5px; }
  .footer-col a { padding: 2px 0; font-size: 11.5px; line-height: 1.55; }

  .footer-bottom { padding: 10px 14px 16px; font-size: 11.5px; line-height: 1.7; }
}

/* 列表工具条：搜索框自适应占满，搜索按钮靠右 */
.list-head .text-input,
.flash-toolbar .text-input { flex: 1; min-width: 0; }

/* --------------------------------------------------------------------------
   数据中心 · 律动数据模块
   -------------------------------------------------------------------------- */

.bb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bb-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--bg);
}

#financeBbGrid #bb_us10y { order: 1; }
#financeBbGrid #bb_dxy { order: 2; }
#financeBbGrid #bb_cn10y { order: 3; }
#financeBbGrid #bb_lpr { order: 4; }
#financeBbGrid #bb_pbc_repo { order: 5; }

.bb-card[role="link"] {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bb-card[role="link"]:hover,
.bb-card[role="link"]:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(16, 20, 30, 0.08);
  outline: none;
}

.sentiment-standalone {
  padding: 0;
  overflow: hidden;
}

.sentiment-standalone .bb-card {
  border: 0;
  border-radius: 0;
  background: var(--surface);
  padding: 14px 16px;
}

.bb-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.bb-head b { font-size: 14.5px; }
.bb-head span { font-size: 11.5px; color: var(--ink-4); }

.bb-big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.bb-big span { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bb-big em { font-style: normal; font-size: 12px; color: var(--ink-4); }

.bb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--line-2);
}

.bb-row:last-child { border-bottom: 0; }
.bb-row span { color: var(--ink-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-row b { font-variant-numeric: tabular-nums; flex: none; }
.bb-row .bb-tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--line-2); color: var(--ink-3); flex: none; }
.bb-row .bb-tag.buy { background: var(--brand-soft); color: var(--brand); }

.bb-foot { margin-top: 6px; font-size: 12px; color: var(--ink-4); }
.bb-foot b { color: var(--ink-2); }
.bb-fresh {
  display: inline-block;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--line-2);
  font-size: 9.5px;
  line-height: 1.5;
  white-space: nowrap;
}
.bb-spark { margin: 4px 0 2px; }

@media (max-width: 960px) {
  .bb-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* 站内搜索里的律动结果分组 */
.search-bb { border-top: 8px solid var(--bg); }
.search-bb-head { padding: 8px 16px 2px; font-size: 11.5px; color: var(--ink-4); }
.search-item div { display: block; }

/* ==========================================================================
   PWA 安装横幅（添加到桌面）
   ========================================================================== */

.pwa-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 18px;
  margin: 0 auto;
  max-width: 580px;
  box-sizing: border-box;
  transform: translateY(150%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 44px rgba(12, 14, 18, 0.24);
  padding: 12px 14px;
  z-index: 300;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.pwa-banner.on { transform: translateY(0); opacity: 1; }

.pwa-logo { width: 42px; height: 42px; border-radius: 10px; flex: 0 0 auto; }
.pwa-text { flex: 1; min-width: 0; }
.pwa-text b { display: block; font-size: 14.5px; }
.pwa-text span { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.55; margin-top: 2px; }
.pwa-text span strong { color: var(--brand); font-weight: 600; }
.pwa-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.pwa-btn {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.pwa-btn:hover { filter: brightness(1.06); }

.pwa-close {
  border: 0;
  background: transparent;
  color: var(--ink-4);
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

@media (max-width: 960px) {
  .pwa-banner { bottom: calc(66px + env(safe-area-inset-bottom)); }
  .pwa-text b { font-size: 13.5px; }
  .pwa-text span { font-size: 11.5px; }
}

/* ==========================================================================
   K 线页右上角 AI 助理入口（参考 528btc：机器人浮在 K 线右上角）
   ========================================================================== */

.kline-ai-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(18, 22, 40, 0.12), 0 0 0 4px rgba(122, 132, 255, 0.08);
  cursor: pointer;
  font: inherit;
}

.kline-ai-btn svg { width: 30px; height: 24px; color: #23252e; animation: kline-ai-bob 2.6s ease-in-out infinite; }
.kline-ai-btn b { font-size: 12.5px; color: var(--brand); font-weight: 600; letter-spacing: 0.3px; }
.kline-ai-btn:hover { border-color: var(--brand); }

@keyframes kline-ai-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

html[data-theme="dark"] .kline-ai-btn svg { color: #e3e6f0; }

@media (prefers-reduced-motion: reduce) {
  .kline-ai-btn svg { animation: none; }
}

@media (max-width: 640px) {
  .kline-ai-btn { top: 8px; right: 10px; padding: 5px 10px 5px 8px; }
  .kline-ai-btn svg { width: 26px; height: 21px; }
  .kline-ai-btn b { font-size: 11.5px; }
}

/* K 线页用右上角机器人作入口，隐藏右下角悬浮按钮避免重复 */
body[data-page="kline"] .assistant-btn { display: none; }

/* 反爬蜜罐链接（正常访客不可见；爬虫若跟随后会被自动封禁） */
.sec-trap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   PWA 独立模式（从手机桌面打开）：状态栏安全区适配，打开即手机端样式
   ========================================================================== */

.app-mode body { padding-top: env(safe-area-inset-top); }

@media (display-mode: standalone) {
  body { padding-top: env(safe-area-inset-top); }
}

/* 已安装到桌面后，隐藏「安装 App」入口与安装横幅 */
.app-mode #installLink { display: none; }
.app-mode .pwa-banner { display: none !important; }

/* ==========================================================================
   美股详情页：行可点击 + 详细数据面板
   ========================================================================== */

#usStockBody tr { cursor: pointer; }
#usStockBody tr:hover { background: var(--line-2); }

/* 美股列表：星标（自选） + 公司 Logo 两列 */
.us-market th.us-star, .us-market td.us-star { width: 42px; text-align: center; padding-left: 4px; padding-right: 4px; }
.us-market th:nth-child(2), .us-market td.us-logo-cell { width: 46px; text-align: center; }
.us-market td.us-logo-cell { padding-left: 4px; padding-right: 4px; }
.us-logo-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  vertical-align: middle;
}
.us-logo-wrap i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
}
.us-logo-wrap.has-logo i { display: none; }
.us-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
}
.us-market th.us-star { color: #f5b301; font-size: 13px; }
.fav-btn {
  border: 0;
  background: transparent;
  padding: 2px 4px;
  font-size: 16px;
  line-height: 1;
  color: #c3c9d4;
  cursor: pointer;
  border-radius: 6px;
}
.fav-btn:hover { color: #f5b301; background: rgba(245, 179, 1, .12); }
.fav-btn.on { color: #f5b301; }

.stock-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.stock-stats .ss-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}

.stock-stats .ss-row span { color: var(--ink-3); flex: none; }
.stock-stats .ss-row b { font-weight: 600; text-align: right; }

@media (max-width: 640px) {
  .stock-stats { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ==========================================================================
   美股详情：左（技术分析 / 热点话题） + 右（详细数据，紧凑） 两栏
   ========================================================================== */

.stock-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.stock-news {
  display: block;
  min-width: 0;
}

/* 栏目选项卡（参考 528btc 个股页：投资机会 / 资金 / 资讯 / 公告 / 研报 / 财务） */
.stock-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 8px;
  margin-bottom: 14px;
}

.stock-tabs::-webkit-scrollbar { display: none; }

.stock-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 13px 15px 15px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}

.stock-tabs button:hover { color: var(--brand); }
.stock-tabs button.active { color: var(--brand); font-weight: 700; }

.stock-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  width: 56%;
  min-width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

.stock-panel { display: none; }
.stock-panel.active { display: block; }
.stock-panel.active > .card + .card { margin-top: 14px; }

/* 投资机会：公司简介整行，技术分析 + 热点话题并排 */
.stock-panel[data-panel="opportunity"].active { display: flex; flex-wrap: wrap; gap: 14px; }
.stock-panel[data-panel="opportunity"].active > .card { flex: 1 1 100%; }
.stock-panel[data-panel="opportunity"].active > .card + .card { margin-top: 0; }

/* 财务指标分组 */
.fin-group + .fin-group { margin-top: 18px; }
.fin-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
}
.fin-title::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--brand);
}
.fin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.fin-grid .ss-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.fin-grid .ss-row span { color: var(--ink-3); }
.fin-grid .ss-row b { font-weight: 600; text-align: right; }
.fin-na { color: var(--ink-4); }

@media (max-width: 720px) {
  .fin-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #stockIntervals,
  #chartIntervals,
  #klineIntervals,
  #aKlineIntervals,
  #macroKlineIntervals {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 1px;
    width: 100%;
    overflow: visible;
  }
  #stockIntervals button,
  #chartIntervals button,
  #klineIntervals button,
  #aKlineIntervals button,
  #macroKlineIntervals button {
    width: 100%;
    min-width: 0;
    padding: 6px 0;
    font-size: 11px;
    text-align: center;
  }
  .stock-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    padding: 0 2px;
    overflow: visible;
  }
  .stock-tabs button {
    width: 100%;
    min-width: 0;
    padding: 11px 1px 13px;
    font-size: 12px;
    text-align: center;
  }
}

/* 公司资讯列表 */
.st-news-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.st-news-item:last-of-type { border-bottom: 0; }
.st-news-item.has-cover {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.st-news-copy {
  min-width: 0;
  min-height: 82px;
  display: flex;
  flex-direction: column;
}
.st-news-cover {
  display: block;
  width: 126px;
  height: 82px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2);
}
.st-news-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.st-news-item.has-cover h4 { margin-top: 0; }
.st-news-item h4 { margin: 0 0 5px; font-size: 14px; line-height: 1.55; font-weight: 600; }
.st-news-item h4 a { color: var(--ink); }
.st-news-item h4 a:hover { color: var(--brand); }
.st-news-item p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.st-news-item .meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 11px;
  color: var(--ink-4);
  white-space: nowrap;
}
.st-news-item .meta .tag { flex: none; font-size: 11px; }
.st-news-item .meta i {
  margin-left: auto;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 资讯中英切换 */
.st-news-item .tr-en { color: var(--ink-3); }
.st-news-item h4 .tr-en { font-size: 13px; font-weight: 500; }

@media (max-width: 640px) {
  .st-news-item.has-cover {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 9px;
  }
  .st-news-cover { width: 96px; height: 68px; }
}

@media (max-width: 360px) {
  .st-news-item.has-cover {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .st-news-cover {
    width: 100%;
    height: 118px;
  }
  .st-news-copy { min-height: 0; }
  .st-news-item.has-cover h4 { margin-top: 0; }
  .st-news-item h4 { font-size: 14.5px; line-height: 1.5; }
}
.tr-btn {
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 11.5px;
  font-family: inherit;
  padding: 2px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.tr-btn:hover { color: var(--brand); border-color: var(--brand); }

/* 量能对比条 */
.vol-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.vol-label { flex: 0 0 88px; font-size: 12.5px; color: var(--ink-3); }
.vol-track { flex: 1 1 auto; height: 10px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.vol-fill { display: block; height: 100%; border-radius: 6px; background: #9aa3b2; }
.vol-fill.vol-now { background: var(--brand); }
.vol-val { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; }

.topic-item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.topic-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.topic-item h4 { margin: 0 0 4px; font-size: 13.5px; line-height: 1.55; font-weight: 600; }
.topic-item h4 a { color: var(--ink); }
.topic-item h4 a:hover { color: var(--brand); }
.topic-item p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.65; }
.topic-item .meta { margin-top: 4px; font-size: 11.5px; color: var(--ink-4); }

/* 右侧详细数据：两列紧凑排版（每行两组 标签+数值，高度减半） */
@media (min-width: 1081px) {
  .stock-side .stock-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
/* 详细数据每行文字略微下移 + 字号 12.5px（比原来 11.5 稍大一点点） */
  .stock-side .stock-stats .ss-row { padding: 6px 0 3px; font-size: 12px; gap: 5px; }
  .stock-side .stock-stats .ss-row span { flex: none; }
  .stock-side .stock-stats .ss-row b { white-space: nowrap; }

/* 右侧栏：详细数据 + 技术分析 两张卡片，之间留间距 */
.stock-side { display: grid; gap: 14px; align-content: start; }
/* 左栏：选项卡面板下面紧跟「技术分析」，上下排列 */
.stock-news > .card { margin-top: 14px; }

/* 右下角「热门推荐」（参考 528btc：图标 + 代码/中文名 + 价格/涨跌幅） */
.hot-list { padding: 4px 14px 10px; }
.hot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.hot-item:last-child { border-bottom: 0; }
.hot-item:hover { background: var(--line-2); border-radius: 8px; }
.hot-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  flex: none;
  border: 1px solid var(--line);
}
.hot-logo.crypto-hot-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hot-logo.crypto-hot-logo .coin-icon {
  width: 26px;
  height: 26px;
}
.hot-id { display: flex; flex-direction: column; min-width: 0; }
.hot-id b { font-size: 14px; font-weight: 700; color: var(--ink); }
.hot-id i { font-style: normal; font-size: 11.5px; color: var(--ink-4); }
.hot-spark {
  flex: 1 1 96px;
  min-width: 70px;
  max-width: 128px;
  height: 26px;
  overflow: hidden;
}
.hot-spark svg { display: block; width: 100%; height: 26px; overflow: hidden; }
.hot-spark.cn-hot-kline {
  flex: 0 1 86px;
  min-width: 60px;
  max-width: 100px;
  margin-left: 22px;
}
.hot-spark.cn-hot-kline .mini-kline-svg {
  width: 100%;
  height: 26px;
}
.hot-spark-empty {
  display: block;
  width: 100%;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--line-2), transparent);
  opacity: 0.55;
}
.hot-px { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.hot-px b { font-size: 13.5px; font-weight: 600; }
.hot-px i { font-style: normal; font-size: 12px; }
}

@media (max-width: 1080px) {
  .stock-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .stock-news { grid-template-columns: minmax(0, 1fr); }
}

/* 盘前数据条（美股详情页，参考 528btc：盘前 价格 涨跌 涨跌幅% …… 时间） */
.pre-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--line-2);
  font-size: 14px;
}

.pre-bar:empty { display: none; }
.pre-bar .pre-label { font-weight: 600; flex: none; }
.pre-bar b { font-size: 15.5px; }
.pre-bar .pre-time { margin-left: auto; font-style: normal; color: var(--ink-4); font-size: 12px; }

/* 公司简介卡片（美股详情页） */
.company-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.company-meta b { font-size: 15px; }
.company-meta span { font-size: 12.5px; color: var(--ink-4); }
.company-meta .tag {
  font-style: normal;
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}
.company-text { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.company-rows { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--ink-4); }
.company-rows a { color: var(--brand); }

/* 机构观点（评级分布条 + 目标价 + 预测明细） */
.rating-line { font-size: 13.5px; margin-bottom: 10px; }
.rating-line b { font-size: 15px; }
.rating-count { margin-left: 10px; font-size: 12px; color: var(--ink-4); }

.rating-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #16a34a 0%, #7ac142 32%, #e8d94a 56%, #f59e0b 78%, #ef4444 100%);
  margin: 4px 0 6px;
}

.rating-bar i {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--ink-2);
}

.rating-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-4); margin-bottom: 6px; }
.rating-dist { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.rating-target { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }

.pred-title { margin: 12px 0 8px; font-size: 14px; }
.pred-wrap { overflow-x: auto; }
.pred-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pred-table th { text-align: left; color: var(--ink-4); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.pred-table td { padding: 7px 8px; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.pred-table tr:last-child td { border-bottom: 0; }
.pred-note { margin-top: 6px; font-size: 11.5px; color: var(--ink-4); }

.rating-guide { font-size: 12.5px; color: var(--ink-3); line-height: 1.9; background: var(--line-2); border-radius: 10px; padding: 12px 14px; }
.rating-guide a { color: var(--brand); text-decoration: underline; }
.rating-guide code { background: var(--surface); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.rating-guide-err { color: #c8871a; margin-top: 6px; }

@media (max-width: 640px) {
  .rank-row {
    grid-template-columns: minmax(0, 1fr) auto auto 54px;
    gap: 6px;
    padding: 8px 10px;
  }
  .rank-mini-kline { width: 54px; height: 24px; }
  .rank-mini-kline .mini-kline-svg { width: 54px; height: 24px; }
}

@media (max-width: 960px) {
  #marketTable tbody tr {
    padding: 5px 8px;
    row-gap: 1px;
  }
  #marketTable .coin-cell {
    gap: 4px;
  }
  #marketTable .coin-cell .name {
    display: flex;
    align-items: baseline;
    gap: 4px;
  }
  #marketTable .coin-cell .name b,
  #marketTable .coin-cell .name span {
    display: inline;
    white-space: nowrap;
  }
  #marketTable .coin-fav-btn {
    width: 12px;
  }
  #marketTable .pill {
    min-width: 48px;
    padding: 1px 5px;
    font-size: 9.5px;
  }
  #marketTable tbody td:nth-child(7) svg {
    height: 20px;
  }
  .macro-gold-highlight {
    flex-wrap: nowrap;
    width: fit-content;
    max-width: calc(100% - 20px);
    margin: 6px 10px 3px;
    padding: 6px 10px;
    gap: 4px 8px;
  }
  .macro-gold-highlight span { font-size: 14px; font-weight: 800; white-space: nowrap; }
  .macro-gold-highlight b { font-size: 19px; white-space: nowrap; }
  .macro-gold-highlight small {
    width: 100%;
    margin-left: 0;
  }
  .coin-fav-btn {
    width: 15px;
    font-size: 12px;
  }
  .a-stock-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
  }
  .a-stock-table thead { display: none; }
  .a-stock-table tbody tr {
    display: grid;
    grid-template-columns: 38px minmax(58px, 1.05fr) minmax(56px, 1fr) minmax(50px, .85fr) 16px 38px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 4px;
    padding: 6px 5px 6px 8px;
    border-bottom: 1px solid var(--line-2);
  }
  .a-stock-table tbody td {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    text-align: left !important;
    border: 0;
    white-space: nowrap;
  }
  .a-stock-table tbody td:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
    display: grid;
    grid-template-columns: 14px 30px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 4px;
    min-width: 0;
    overflow: visible;
  }
  .a-stock-table tbody td:nth-child(1) .a-stock-logo {
    grid-column: 2;
    grid-row: 1 / 3;
    margin-right: 0;
  }
  .a-stock-table tbody td:nth-child(1) .a-fav-btn {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 14px;
    margin-right: 0;
    font-size: 12px;
  }
  .a-stock-table tbody td:nth-child(1) b {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
    word-break: break-word;
  }
  .a-stock-table tbody td:nth-child(1) .a-code {
    grid-column: 3;
    grid-row: 2;
    flex: none;
    margin: 0 !important;
    font-size: 8px;
    line-height: 1.1;
  }
  .a-stock-table tbody td:nth-child(2) { grid-column: 3; grid-row: 1; font-size: 11.5px; font-weight: 700; }
  .a-stock-table tbody td:nth-child(3) { grid-column: 1; grid-row: 2; font-size: 10px; font-weight: 700; }
  .a-stock-table tbody td:nth-child(4) { grid-column: 4; grid-row: 1; }
  .a-stock-table tbody td:nth-child(4) .pill { min-width: 41px; padding: 1px 3px; font-size: 8.5px; }
  .a-stock-table tbody td:nth-child(5) { grid-column: 2; grid-row: 2; font-size: 8.5px; color: var(--ink-4); }
  .a-stock-table tbody td:nth-child(6) { grid-column: 3; grid-row: 2; font-size: 8.5px; color: var(--ink-4); }
  .a-stock-table tbody td:nth-child(7) { grid-column: 4; grid-row: 2; font-size: 8.5px; color: var(--ink-4); }
  .a-stock-table tbody td:nth-child(5),
  .a-stock-table tbody td:nth-child(6),
  .a-stock-table tbody td:nth-child(7),
  .a-stock-table tbody td:nth-child(9) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .a-stock-table tbody td:nth-child(5)::before { content: "量 "; }
  .a-stock-table tbody td:nth-child(6)::before { content: "额 "; }
  .a-stock-table tbody td:nth-child(7)::before { content: "市值 "; }
  .a-stock-table tbody td:nth-child(8) {
    grid-column: 5;
    grid-row: 2;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .a-stock-table tbody td:nth-child(9) {
    grid-column: 6;
    grid-row: 2;
    font-size: 8.5px;
    color: var(--ink-4);
    text-align: right !important;
  }
  .a-stock-table tbody td:nth-child(9)::before { content: "换 "; }
  .a-stock-table tbody td:nth-child(10) {
    grid-column: 5 / 7;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    padding: 0 !important;
  }
  .a-mini-kline .mini-kline-svg { width: 56px; height: 21px; margin-left: auto; }
  .a-fav-cell .a-fav-btn { width: 18px; font-size: 13px; }
  body[data-page="wiki"] .flash-toolbar { padding: 8px 10px; }
  body[data-page="wiki"] #aStockSearch { height: 30px; min-height: 30px; padding: 0 10px; }
  body[data-page="wiki"] .a-stock-search-row { gap: 6px; }
  body[data-page="wiki"] .a-stock-search-btn {
    min-width: 64px;
    height: 30px;
    padding: 0 15px;
    font-size: 13px;
  }
  body[data-page="wiki"] .a-stock-table tbody tr { gap: 2px 4px; padding: 5px 4px 5px 8px; }
  body[data-page="wiki"] .a-mini-kline .mini-kline-svg { width: 56px; height: 21px; }
  body[data-page="wiki"] main.container { padding-left: 8px; padding-right: 2px; }
}

/* 数据状态、LOGO 与最终手机端紧凑排版 */
.bb-row .bb-status {
  flex: none;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  background: var(--line-2);
  color: var(--ink-3);
}
.bb-row .bb-status.buy { background: rgba(217, 43, 43, 0.1); color: #c52d29; }
.bb-row .bb-status.sell { background: rgba(22, 163, 74, 0.1); color: #16865b; }

.bb-row .bb-live-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.bb-row .bb-live-value > span {
  flex: none;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .bb-row .bb-live-value {
    gap: 4px;
  }

  .bb-row .bb-live-value > span {
    font-size: 10.5px;
  }

  .bb-row .bb-status {
    padding: 1px 5px;
    font-size: 9.5px;
  }
}

@media (max-width: 960px) {
  #dataStats,
  #newsStats,
  #marketStats,
  #homeStats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  #dataStats .stat,
  #newsStats .stat,
  #marketStats .stat,
  #homeStats .stat {
    padding: 6px 8px;
    border-radius: 8px;
  }

  #dataStats .stat .label,
  #newsStats .stat .label,
  #marketStats .stat .label,
  #homeStats .stat .label {
    font-size: 10px;
    line-height: 1.25;
  }

  #dataStats .stat .value,
  #newsStats .stat .value,
  #marketStats .stat .value,
  #homeStats .stat .value {
    margin-top: 1px;
    font-size: 14px;
    line-height: 1.2;
  }

  #dataStats .stat .sub,
  #newsStats .stat .sub,
  #marketStats .stat .sub,
  #homeStats .stat .sub {
    margin-top: 1px;
    font-size: 9px;
    line-height: 1.25;
  }

  body[data-page="data"] main.container {
    padding-left: 8px;
    padding-right: 8px;
  }

  body[data-page="data"] .section {
    margin-top: 7px;
  }

  body[data-page="data"] .card-head {
    min-height: 0;
    padding: 7px 9px;
  }

  body[data-page="data"] .card-head h3 {
    font-size: 13.5px;
  }

  body[data-page="data"] .card-head .desc {
    max-width: 52%;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="data"] .card-body {
    padding: 7px 9px;
  }

  body[data-page="data"] .liq-global {
    gap: 4px;
    margin-bottom: 6px;
  }

  body[data-page="data"] .liq-global-item {
    padding: 5px 7px;
    border-radius: 7px;
  }

  body[data-page="data"] .liq-global-item span { font-size: 9.5px; }
  body[data-page="data"] .liq-global-item b { margin-top: 1px; font-size: 13.5px; }
  body[data-page="data"] .liq-global-item small { margin-top: 1px; font-size: 8.5px; line-height: 1.25; }

  body[data-page="data"] .liq-period-grid {
    gap: 4px;
  }
  body[data-page="data"] .liq-period-tabs { gap: 4px; }
  body[data-page="data"] .liq-period-tabs button { padding: 3px 7px; font-size: 9px; }
  body[data-page="data"] .liq-period-single { margin-top: 4px; }
  body[data-page="data"] .liq-period-empty { margin-top: 4px; padding: 6px; font-size: 9px; }

  body[data-page="data"] .liq-period {
    padding: 6px 7px;
    border-radius: 7px;
  }

  body[data-page="data"] .liq-period b {
    margin: 2px 0;
    font-size: 14px;
  }

  body[data-page="data"] .liq-period span,
  body[data-page="data"] .liq-period .liq-split {
    font-size: 9px;
    line-height: 1.3;
  }

  body[data-page="data"] .liq-period .liq-split {
    gap: 5px;
    margin-top: 3px;
  }

  body[data-page="data"] .liq-layout {
    gap: 6px;
    margin-top: 7px;
  }

  body[data-page="data"] .liq-block h4 {
    margin-bottom: 3px;
    font-size: 12px;
  }

  body[data-page="data"] .liq-row {
    gap: 4px;
    padding: 4px 0;
    font-size: 10.5px;
    line-height: 1.25;
  }

  body[data-page="data"] .liq-row .sub {
    margin-top: 0;
    font-size: 8.5px;
  }

  body[data-page="data"] .liq-largest {
    margin-top: 6px;
    padding: 6px 8px;
    font-size: 9.5px;
  }

  body[data-page="data"] .bb-grid {
    gap: 5px;
  }

  body[data-page="data"] .bb-card {
    padding: 6px 8px;
  }

  body[data-page="data"] .bb-head {
    margin-bottom: 3px;
  }

  body[data-page="data"] .bb-head b { font-size: 12px; }
  body[data-page="data"] .bb-head span { font-size: 9px; }
  body[data-page="data"] .bb-row { gap: 6px; padding: 1.5px 0; font-size: 10.5px; }
  body[data-page="data"] .bb-row .bb-status { padding: 1px 5px; font-size: 9px; }
  body[data-page="data"] .bb-foot { margin-top: 3px; font-size: 9px; }
  body[data-page="data"] .bb-big { margin-bottom: 2px; }
  body[data-page="data"] .bb-big span { font-size: 16px; }
  body[data-page="data"] .bb-spark { margin: 1px 0; }

  body[data-page="data"] .data-modules {
    gap: 7px;
    margin-top: 7px;
  }

  body[data-page="data"] .dm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 9px;
  }

  body[data-page="data"] .dm-item { gap: 0; }
  body[data-page="data"] .dm-item span { font-size: 9.5px; line-height: 1.25; }
  body[data-page="data"] .dm-item b { font-size: 13px; line-height: 1.3; }
  body[data-page="data"] .dm-item i { font-size: 8.5px; line-height: 1.25; }
  body[data-page="data"] .dm-row { gap: 5px; padding: 4px 0; font-size: 10.5px; line-height: 1.25; }
  body[data-page="data"] .calc-note { margin-top: 4px; font-size: 8.5px; line-height: 1.35; }

  body[data-page="flash"] .page-head {
    padding: 4px 0;
  }

  body[data-page="flash"] .page-head h1 {
    font-size: 17px;
  }

  body[data-page="flash"] .layout {
    gap: 7px;
  }

  body[data-page="flash"] .flash-toolbar {
    padding: 6px 8px;
  }

  body[data-page="flash"] .flash-list {
    padding: 0 9px 3px;
  }

  body[data-page="flash"] .flash-item {
    padding: 5px 0 5px 12px;
  }

  body[data-page="flash"] .flash-item::before {
    top: 11px;
    left: 0;
    width: 6px;
    height: 6px;
  }

  body[data-page="flash"] .flash-item .time { font-size: 10px; margin-bottom: 0; }
  body[data-page="flash"] .flash-item p { margin-bottom: 2px; font-size: 12px; line-height: 1.4; }
  body[data-page="flash"] .flash-item .tag { padding: 2px 5px; font-size: 9px; }
  body[data-page="flash"] .sidebar .card + .card { margin-top: 7px; }
  body[data-page="flash"] .sidebar .card-head { padding: 7px 9px; }
  body[data-page="flash"] .sidebar .card-head h3 { font-size: 13.5px; }
  body[data-page="flash"] .rank-rows { padding: 0 0 3px; }
  body[data-page="flash"] .rank-row {
    grid-template-columns: minmax(0, 1fr) 49px 40px 42px;
    gap: 3px;
    padding: 4px 7px;
    font-size: 10px;
  }
  body[data-page="flash"] .rank-row .sym b { font-size: 11.5px; }
  body[data-page="flash"] .rank-row .sym .vol { overflow: hidden; font-size: 8.5px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  body[data-page="flash"] .rank-row .price { font-size: 9.5px; }
  body[data-page="flash"] .rank-row .pill { min-width: 0; padding: 1px 3px; font-size: 8.5px; }
  body[data-page="flash"] .rank-mini-kline,
  body[data-page="flash"] .rank-mini-kline .mini-kline-svg { width: 42px; height: 19px; }

  body[data-page="home"] .layout > aside .card + .card { margin-top: 7px; }
  body[data-page="home"] .layout > aside .card-head { padding: 7px 9px; }
  body[data-page="home"] .layout > aside .card-head h3 { font-size: 13.5px; }
  body[data-page="home"] .layout > aside .reco-list { padding: 2px 9px 4px; }
  body[data-page="home"] .layout > aside .reco-item { gap: 7px; padding: 5px 0; }
  body[data-page="home"] .layout > aside .reco-avatar { width: 30px; height: 30px; font-size: 12px; }
  body[data-page="home"] .layout > aside .reco-body { gap: 0; }
  body[data-page="home"] .layout > aside .reco-body b { font-size: 12.5px; line-height: 1.3; }
  body[data-page="home"] .layout > aside .reco-desc { font-size: 10px; line-height: 1.3; }
  body[data-page="home"] .layout > aside .reco-url { font-size: 9px; line-height: 1.25; }
  body[data-page="home"] .layout > aside .flash-list { padding: 0 9px 3px; }
  body[data-page="home"] .layout > aside .flash-item { padding: 5px 0 5px 12px; }
  body[data-page="home"] .layout > aside .flash-item::before { top: 10px; left: 0; width: 6px; height: 6px; }
  body[data-page="home"] .layout > aside .flash-item .time { font-size: 9.5px; margin-bottom: 0; }
  body[data-page="home"] .layout > aside .flash-item p { margin-bottom: 2px; font-size: 11.5px; line-height: 1.4; }
  body[data-page="home"] .layout > aside .flash-item .tag { padding: 2px 5px; font-size: 9px; }

  body[data-page="tools"] #cryptoConverter .conv-grid { gap: 4px; }
  body[data-page="tools"] #cryptoConverter .conv-field {
    display: grid;
    grid-template-columns: minmax(110px, 1.1fr) minmax(84px, 0.9fr);
    gap: 6px;
    padding: 6px 9px;
  }
  body[data-page="tools"] #cryptoConverter .conv-pick select {
    width: 100%;
    min-width: 0;
    max-width: none;
    font-size: 14px;
  }
  body[data-page="tools"] #cryptoConverter .conv-amount {
    width: 100%;
    font-size: 14.5px;
  }
  body[data-page="tools"] #cryptoConverter .conv-hint { margin-top: 1px; font-size: 10px; }

  .a-stock-logo {
    width: 24px;
    height: 24px;
    margin-right: 4px;
  }
}

/* 黄金行情：沿用 A 股两行紧凑布局 */
#qaMacroRows .gold-row {
  grid-template-columns: minmax(150px, 1.4fr) 88px 76px 96px 120px 66px;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  padding: 5px 8px;
  align-items: baseline;
}
#qaMacroRows .gold-name {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  overflow: hidden;
}
#qaMacroRows .macro-title-line {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
#qaMacroRows .macro-title-line b {
  flex: 1;
  min-width: 0;
}
#qaMacroRows .macro-fav-btn {
  flex: none;
  width: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-4);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
#qaMacroRows .macro-fav-btn.on { color: #f0a30b; }
#qaMacroRows .gold-name b {
  overflow: hidden;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#qaMacroRows .gold-name .vol {
  overflow: hidden;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#qaMacroRows .gold-row .price { grid-column: 2; grid-row: 1; font-size: 11.5px; line-height: 18px; font-weight: 700; }
#qaMacroRows .gold-row > .pill.num { grid-column: 3; grid-row: 1; padding: 1px 4px; font-size: 9px; }
#qaMacroRows .gold-row .gold-secondary {
  grid-column: 1 / 7;
  grid-row: 2;
  display: grid;
  grid-template-columns: 100px auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding-left: 0;
  min-width: 0;
  overflow: hidden;
  color: var(--ink-4);
  font-size: 9px;
  line-height: 12px;
  white-space: nowrap;
}
#qaMacroRows .gold-row .gold-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#qaMacroRows .gold-row .gold-change.num { font-size: 9px; line-height: 12px; font-weight: 700; }
#qaMacroRows .gold-row .gold-range.num { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#qaMacroRows .gold-row .gold-amount.num { justify-self: end; text-align: right; }
#qaMacroRows .gold-row .macro-mini-kline { grid-column: 6; grid-row: 1; align-self: center; justify-self: end; width: 56px; height: 21px; }
#qaMacroRows .gold-row .macro-mini-kline .mini-kline-svg { width: 56px; height: 21px; }

@media (max-width: 960px) {
  #qaMacroRows .gold-row {
    grid-template-columns: minmax(0, 1.65fr) minmax(62px, 1fr) 54px 56px;
    grid-template-rows: auto auto;
    gap: 2px 4px;
    padding: 6px 5px 6px 8px;
    min-height: 0;
    overflow: visible;
  }
  #qaMacroRows .gold-name { grid-column: 1; grid-row: 1; overflow: visible; }
  #qaMacroRows .gold-name b {
    overflow: visible;
    font-size: 11.5px;
    line-height: 16px;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
  }
  #qaMacroRows .gold-name .vol { white-space: normal; }
  #qaMacroRows .gold-row .price { grid-column: 2; grid-row: 1; font-size: 11.5px; line-height: 16px; text-align: right !important; }
  #qaMacroRows .gold-row > .pill.num { grid-column: 3; grid-row: 1; min-width: 40px; justify-self: center; }
  #qaMacroRows .gold-row .macro-mini-kline { grid-column: 4; grid-row: 1; width: 56px; height: 21px; }
  #qaMacroRows .gold-row .gold-secondary {
    grid-column: 1 / 5;
    grid-row: 2;
    grid-template-columns: 54px auto minmax(0, 1fr) auto;
    gap: 4px;
    padding-left: 0;
    font-size: 9px;
    line-height: 12px;
  }
  #qaMacroRows .gold-row .gold-change.num { font-size: 9px; line-height: 12px; }
  #qaMacroRows .gold-row .gold-range.num {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

#fxKlineMask .modal { width: min(1040px, 100%); }

@media (max-width: 640px) {
  #fxKlineMask { padding: 6px; }
  #fxKlineMask .modal { width: 100%; max-height: 96vh; }
  #fxKlineMask .modal-head { padding: 10px 12px; }
  #fxKlineMask .modal-body { padding: 10px 8px 14px; }
  #fxKlineInfo { gap: 7px 10px; font-size: 11px; margin-bottom: 8px; }
  #fxKlineChart { min-height: 380px; }
}

@media (max-width: 360px) {
  #marketTable tbody td:nth-child(1) { grid-column: 1 / 6; }
  #marketTable tbody td:nth-child(2) { grid-column: 6 / 10; }
  #marketTable tbody td:nth-child(3) { grid-column: 10 / 13; }
  #marketTable .coin-cell .name span { display: none; }
  #marketTable .coin-cell .name b {
    overflow: visible;
    text-overflow: clip;
  }
}

#fxKlineStatus {
  margin: 6px 8px 0;
  font-size: 10.5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* A 股详细数据两列紧凑排版 */
#stockStats.stock-stats-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 10px;
}
#stockStats.stock-stats-two-col .ss-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  min-width: 0;
  padding: 4px 0;
}
#stockStats.stock-stats-two-col .ss-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#stockStats.stock-stats-two-col .ss-row b { white-space: nowrap; }

/* 技术分析紧凑排版 */
#stockTech .topic-item { padding: 6px 0; }
#stockTech .topic-item:last-child { padding-bottom: 0; }
#stockTech .topic-item h4 { margin-bottom: 2px; font-size: 12.5px; line-height: 1.4; }
#stockTech .topic-item p { font-size: 11.5px; line-height: 1.52; }

/* 黄金页：导航、榜单、搜索和黄金价格统一放在一个控制卡片内 */
body[data-page="qa"] .qa-controls-card {
  margin: 2px 8px 8px;
  padding: 1px 8px 8px;
  border-radius: 12px;
  background: var(--surface-2);
}
body[data-page="qa"] .qa-controls-card .nav-tabs {
  padding: 0 0 3px;
  gap: 6px;
}
body[data-page="qa"] .qa-controls-card .qa-rank-toolbar {
  padding: 0;
  border-bottom: 0;
}
body[data-page="qa"] .qa-controls-card .macro-gold-highlight {
  width: 100%;
  max-width: 100%;
  margin: 6px 0 0;
  box-sizing: border-box;
}

/* 加密资产详情：压缩币种选择、周期栏与行情摘要之间的空白 */
body.crypto-stock-page .list-head {
  display: block;
  padding: 6px 8px 4px;
}
body.crypto-stock-page .kline-controls {
  display: grid;
  gap: 3px;
}
body.crypto-stock-page .kline-symbol {
  margin-bottom: 2px;
}
body.crypto-stock-page .kline-symbol select {
  min-width: 0;
  height: 32px;
  min-height: 32px;
}
body.crypto-stock-page #stockIntervals {
  margin-top: 0;
}
body.crypto-stock-page #stockIntervals button {
  padding-top: 4px;
  padding-bottom: 4px;
}
body.crypto-stock-page #stockOhlc {
  display: block;
  margin-top: 3px;
  font-size: 11.5px !important;
  line-height: 1.35;
}
body.crypto-stock-page .kline-wrap {
  padding-top: 4px;
}

.hot-logo.macro-hot-logo {
  display: grid;
  place-items: center;
  color: #b77a00;
  background: #fff8e6;
  font-size: 12px;
  font-weight: 800;
}
.hot-item.macro-hot-no-logo .hot-id { flex: 1 1 auto; }
.hot-spark.macro-hot-kline {
  flex: 0 1 64px;
  min-width: 46px;
  max-width: 72px;
  height: 24px;
  margin-left: 8px;
}
.hot-spark.macro-hot-kline .mini-kline-svg {
  width: 100%;
  height: 24px;
}

body.macro-stock-page .list-head {
  display: block;
  padding: 6px 8px 4px;
}
body.macro-stock-page .kline-controls {
  display: grid;
  gap: 3px;
}
body.macro-stock-page .kline-symbol { margin-bottom: 2px; }
body.macro-stock-page .kline-symbol select {
  min-width: 0;
  height: 32px;
  min-height: 32px;
}
body.macro-stock-page #stockIntervals { margin-top: 0; }
body.macro-stock-page #stockIntervals button {
  padding-top: 4px;
  padding-bottom: 4px;
}
body.macro-stock-page #stockOhlc {
  display: block;
  margin-top: 3px;
  font-size: 11.5px !important;
  line-height: 1.35;
}
body.macro-stock-page .kline-wrap { padding-top: 4px; }
body.macro-stock-page .stock-side { gap: 6px; }
body.macro-stock-page .stock-layout { gap: 8px; }

/* 数据中心双子栏目 */
.data-category-switch {
  padding: 6px;
  margin-bottom: 8px;
}
.data-category-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.data-category-tabs button {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
}
.data-category-tabs button.active {
  font-weight: 800;
  background: var(--brand-soft);
  color: var(--brand);
}
.data-category-panel { display: none; }
.data-category-panel.active { display: block; }
.finance-links {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.finance-links a {
  padding: 8px 9px;
}

.finance-links a b {
  font-size: 13px;
}

.finance-links a span {
  margin-top: 1px;
  font-size: 10.5px;
}

@media (max-width: 960px) {
  .data-module .dm-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .data-module .dm-links a {
    min-width: 0;
    padding: 7px 8px;
  }
  .data-module .dm-links a b {
    font-size: 12.5px;
    line-height: 1.3;
  }
  .data-module .dm-links a span {
    margin-top: 1px;
    font-size: 10.5px;
    line-height: 1.3;
  }
}

/* 重点公司：最新行情与最近财报 */
.featured-companies-card {
  margin-top: 22px;
  margin-bottom: 16px;
  overflow: hidden;
}

body[data-page="wiki"] .featured-companies-card {
  margin-top: 18px;
}

.featured-companies-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px 9px;
  border-bottom: 1px solid var(--line-2);
}

.featured-companies-head > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.featured-companies-head h2 {
  flex: none;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.3;
}

.featured-companies-head h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 13px;
  margin-right: 6px;
  border-radius: 2px;
  background: var(--brand);
  vertical-align: -2px;
}

.featured-companies-head > div > span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-4);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-companies-status {
  flex: none;
  color: var(--ink-4);
  font-size: 10.5px;
  white-space: nowrap;
}

.featured-companies-status::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #22a06b;
  vertical-align: 1px;
}

.featured-companies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.featured-companies-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.featured-company {
  display: block;
  min-width: 0;
  padding: 8px 13px 7px;
  border-bottom: 1px solid var(--line-2);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.featured-company:hover,
.featured-company:focus-visible {
  background: var(--line-2);
  outline: none;
}

.featured-companies-grid:not(.is-single) .featured-company:nth-child(odd) {
  border-right: 1px solid var(--line-2);
}

.featured-companies-grid:not(.is-single) .featured-company:nth-last-child(-n+2) {
  border-bottom: 0;
}

.featured-companies-grid:not(.is-single) .featured-company:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
}

.featured-companies-grid.is-single .featured-company {
  border-bottom: 0;
}

.fc-compact {
  display: grid;
  grid-template-columns: minmax(82px, .7fr) minmax(88px, .72fr) minmax(150px, 1.55fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fc-id,
.fc-quote,
.fc-report {
  min-width: 0;
}

.fc-id {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
}

.fc-id b {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-id span {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-4);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-quote {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.fc-quote strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-quote span {
  margin-top: 2px;
  font-size: 11px;
  white-space: nowrap;
}

.fc-quote i {
  font-style: normal;
}

.fc-report {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 5px;
  line-height: 1.25;
}

.fc-report > span {
  color: var(--ink-4);
  font-size: 10.5px;
}

.fc-report > b {
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.fc-report > a,
.fc-report > span:last-child {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-report > a:hover {
  color: var(--brand);
}

.fc-source {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-4);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-companies-note {
  margin: 0;
  padding: 6px 14px 7px;
  border-top: 1px solid var(--line-2);
  color: var(--ink-4);
  font-size: 9.5px;
  line-height: 1.35;
}

@media (max-width: 960px) {
  .featured-companies-card {
    margin-top: 10px;
    margin-bottom: 8px;
  }

  body[data-page="wiki"] .featured-companies-card {
    margin-top: 8px;
  }

  .featured-companies-head {
    padding: 7px 9px 6px;
  }

  .featured-companies-head > div {
    gap: 6px;
  }

  .featured-companies-head h2 {
    font-size: 13.5px;
  }

  .featured-companies-head h2::before {
    height: 11px;
    margin-right: 4px;
  }

  .featured-companies-head > div > span {
    font-size: 9.5px;
  }

  .featured-companies-status {
    font-size: 9px;
  }

  .featured-companies-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-companies-grid:not(.is-single) .featured-company:nth-child(odd) {
    border-right: 0;
  }

  .featured-companies-grid:not(.is-single) .featured-company:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--line-2);
  }

  .featured-companies-grid:not(.is-single) .featured-company:last-child {
    border-bottom: 0;
  }

  .featured-company {
    padding: 5px 8px 4px;
  }

  .fc-compact {
    grid-template-columns: minmax(64px, .7fr) minmax(82px, .86fr) minmax(0, 1.45fr);
    gap: 5px;
  }

  .fc-id b {
    font-size: 12.5px;
  }

  .fc-id span {
    font-size: 8.5px;
  }

  .fc-quote strong {
    font-size: 13px;
  }

  .fc-quote span {
    font-size: 9px;
  }

  .fc-report {
    gap: 0 3px;
  }

  .fc-report > span {
    font-size: 8.5px;
  }

  .fc-report > b {
    font-size: 9.5px;
  }

  .fc-report > a,
  .fc-report > span:last-child {
    font-size: 9px;
  }

  .fc-source {
    margin-top: 2px;
    font-size: 8px;
  }

  .featured-companies-note {
    padding: 4px 8px 5px;
    font-size: 8.5px;
  }
}

/* 财研数据：重点公司入口 */
.data-featured-companies {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* 美联储：财经日历 */
.macro-calendar-card {
  margin-bottom: 16px;
  overflow: hidden;
}

.macro-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px 9px;
  border-bottom: 1px solid var(--line-2);
}

.macro-calendar-head > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.macro-calendar-head h2 {
  flex: none;
  margin: 0;
  font-size: 15.5px;
}

.macro-calendar-head h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 13px;
  margin-right: 6px;
  border-radius: 2px;
  background: var(--brand);
  vertical-align: -2px;
}

.macro-calendar-head > div > span {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.macro-calendar-head > span {
  color: var(--ink-4);
  font-size: 10.5px;
}

.macro-calendar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.macro-event {
  display: block;
  min-width: 0;
  padding: 9px 13px 8px;
  border-bottom: 1px solid var(--line-2);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.macro-event:hover,
.macro-event:focus-visible {
  background: var(--line-2);
  outline: none;
}

.macro-event:nth-child(odd) {
  border-right: 1px solid var(--line-2);
}

.macro-event:nth-last-child(-n+2) {
  border-bottom: 0;
}

.macro-event:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
}

.mc-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mc-code {
  flex: none;
  padding: 1px 5px;
  border-radius: 4px;
  background: #eef4ff;
  color: #3467b1;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
}

.mc-top b {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-top em {
  flex: none;
  padding: 0 4px;
  border: 1px solid #efc36a;
  border-radius: 4px;
  color: #b87800;
  font-size: 8.5px;
  font-style: normal;
  line-height: 1.45;
}

.macro-event.is-estimated .mc-code {
  background: #fff5da;
  color: #a96d00;
}

.mc-main {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 3px;
}

.mc-main strong {
  font-size: 16px;
  line-height: 1.25;
}

.mc-main > span {
  color: var(--ink-4);
  font-size: 10px;
}

.mc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-4);
  font-size: 9px;
  white-space: nowrap;
}

.mc-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.macro-calendar-note {
  margin: 0;
  padding: 5px 14px 6px;
  border-top: 1px solid var(--line-2);
  color: var(--ink-4);
  font-size: 9px;
}

.macro-detail-meta {
  margin-bottom: 10px;
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--line-2);
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.55;
}

.macro-detail-section {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.macro-detail-section h4 {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 14px;
}

.macro-detail-section p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.macro-detail-section small {
  display: block;
  margin-top: 6px;
  color: var(--ink-4);
  font-size: 10px;
}

.macro-interpretation {
  border-color: rgba(217, 43, 43, 0.22);
  background: var(--brand-soft);
}

/* 央行官方动态 */
.central-bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  padding: 2px 14px 8px;
}

.central-bank-panel {
  min-width: 0;
  padding-top: 8px;
}

.central-bank-grid .central-bank-panel + .central-bank-panel {
  border-left: 1px solid var(--line-2);
  padding-left: 16px;
}

.cb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
}

.cb-head b {
  font-size: 13.5px;
}

.cb-head span {
  color: var(--ink-4);
  font-size: 10.5px;
}

.cb-list {
  display: grid;
}

.cb-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

button.cb-item {
  width: 100%;
  border: 0;
  border-bottom: 1px dashed var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.cb-item:hover {
  background: var(--line-2);
}

button.cb-item:last-child {
  border-bottom: 0;
}

.cb-detail-body {
  white-space: pre-wrap;
  line-height: 1.8;
}

.cb-item:last-child {
  border-bottom: 0;
}

.cb-title {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cb-item:hover .cb-title {
  color: var(--brand);
}

.cb-item time {
  color: var(--ink-4);
  font-size: 10.5px;
  white-space: nowrap;
}

.fed-official-card .central-bank-list {
  padding: 2px 14px 8px;
}

.fed-official-card .cb-title {
  font-size: 13.5px;
}

.fed-official-card .cb-item time {
  font-size: 10.5px;
}

@media (max-width: 960px) {
  .macro-calendar-card {
    margin-bottom: 8px;
  }

  .macro-calendar-head {
    align-items: flex-start;
    padding: 7px 9px 6px;
  }

  .macro-calendar-head h2 {
    font-size: 13.5px;
  }

  .macro-calendar-head h2::before {
    height: 11px;
    margin-right: 4px;
  }

  .macro-calendar-head > div {
    flex: 1;
    flex-wrap: wrap;
    gap: 2px 6px;
  }

  .macro-calendar-head > div > span {
    flex-basis: 100%;
    color: var(--ink-2);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.4;
  }

  .macro-calendar-head > span {
    font-size: 9px;
  }

  .macro-event {
    padding: 6px 7px 5px;
  }

  .mc-top {
    gap: 4px;
  }

  .mc-code {
    padding: 0 4px;
    font-size: 8px;
  }

  .mc-top b {
    font-size: 10.5px;
  }

  .mc-top em {
    font-size: 7.5px;
  }

  .mc-main {
    gap: 4px;
    margin-top: 2px;
  }

  .mc-main strong {
    font-size: 14px;
  }

  .mc-main > span {
    font-size: 8.5px;
  }

  .mc-meta {
    gap: 5px;
    font-size: 8px;
  }

  .macro-event.is-fomc .mc-meta {
    flex-wrap: wrap;
    gap: 1px 5px;
    white-space: normal;
  }

  .macro-event.is-fomc .mc-meta span:nth-child(3) {
    flex-basis: 100%;
  }

  .macro-calendar-note {
    padding: 4px 8px 5px;
    font-size: 8px;
  }

  .central-bank-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 9px 6px;
  }

  .central-bank-grid .central-bank-panel + .central-bank-panel {
    border-top: 1px solid var(--line-2);
    border-left: 0;
    padding-left: 0;
  }

  .central-bank-panel {
    padding-top: 6px;
  }

  .cb-head b {
    font-size: 13px;
  }

  .cb-item {
    gap: 5px;
    padding: 5px 0;
  }

  .cb-title {
    font-size: 11px;
  }

  .cb-item time {
    font-size: 9.5px;
  }

  .fed-official-card .central-bank-list {
    padding: 0 9px 6px;
  }

  .fed-official-card .cb-title {
    font-size: 13px;
  }

  .fed-official-card .cb-item {
    padding: 7px 0;
  }

  .fed-official-card .cb-item time {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  body.crypto-stock-page #stockStats.stock-stats-two-col {
    gap: 0 6px;
  }

  body.crypto-stock-page #stockStats.stock-stats-two-col .ss-row {
    grid-template-columns: minmax(52px, auto) minmax(0, 1fr);
    gap: 2px;
  }

  body.crypto-stock-page #stockStats.stock-stats-two-col .ss-row span {
    font-size: 8.5px;
  }

  body.crypto-stock-page #stockStats.stock-stats-two-col .ss-row b {
    font-size: 9.5px;
  }
}

/* 区块链观察：三栏市场总览 */
.market-overview-card {
  overflow: hidden;
  border: 0;
  color: #f5f6f8;
  background: radial-gradient(900px 240px at 10% -20%, #33363f, #202126 62%);
}

.market-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px 9px;
}

.market-overview-head h3 {
  margin: 0;
  font-size: 17px;
}

.market-overview-head > span {
  color: #8f95a2;
  font-size: 10px;
}

.market-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 126px;
}

.overview-tile {
  min-width: 0;
  padding: 8px 15px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.overview-tile:last-child {
  border-right: 0;
}

.overview-label {
  display: block;
  color: #aeb3bf;
  font-size: 12px;
}

.overview-value {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-value em {
  color: #f2a23a;
  font-size: 14px;
  font-style: normal;
}

.overview-spark {
  height: 36px;
  margin: 5px -3px 0;
  overflow: hidden;
}

.overview-spark svg {
  display: block;
  width: 100%;
  height: 36px;
}

.overview-sub,
.overview-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: #9298a5;
  font-size: 9.5px;
}

.overview-sub em {
  font-style: normal;
}

.overview-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 42px;
  margin-top: 4px;
}

.overview-bars i {
  flex: 1;
  min-width: 4px;
  border-radius: 2px 2px 0 0;
  background: #30c48c;
}

.overview-gauge {
  position: relative;
  height: 8px;
  margin: 18px 0 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef5350 0%, #f4d03f 50%, #2fc786 100%);
}

.overview-gauge i {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border: 2px solid #ffbf47;
  border-radius: 50%;
  background: #282a30;
  transform: translateY(-50%);
}

.market-overview-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: #9aa0ad;
  font-size: 12px;
}

.overview-insight {
  grid-column: 1 / -1;
  padding: 9px 15px 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.overview-insight b {
  color: #f2a23a;
  font-size: 11px;
}

.overview-insight p {
  margin: 3px 0 0;
  color: #c2c6cf;
  font-size: 10.5px;
  line-height: 1.65;
}

/* 区块链观察：主流交易所 */
.exchange-rank-list {
  display: grid;
}

.exchange-rank-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, .8fr) 64px;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
  border-bottom: 1px dashed var(--line);
}

.exchange-rank-id {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.exchange-rank-id > em {
  width: 24px;
  color: var(--ink-4);
  font-size: 11px;
  font-style: normal;
}

.exchange-rank-id > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.exchange-rank-id b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-rank-id small {
  color: var(--ink-4);
  font-size: 9px;
}

.exchange-logo {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}

.exchange-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.exchange-logo i {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.exchange-logo.large {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.exchange-logo.large img {
  width: 36px;
  height: 36px;
}

.exchange-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.exchange-amount b {
  font-size: 14px;
}

.exchange-amount small {
  color: var(--ink-4);
  font-size: 9.5px;
}

.exchange-exrank {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.exchange-exrank span {
  color: var(--ink-4);
  font-size: 9px;
}

.exchange-exrank b {
  font-size: 15px;
}

.exchange-detail-title {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.exchange-detail-grid-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.exchange-detail-card {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
}

.exchange-detail-card:hover {
  border-color: var(--brand);
}

.exchange-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exchange-detail-head > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.exchange-detail-head b {
  font-size: 14px;
}

.exchange-detail-head span {
  color: var(--ink-4);
  font-size: 9px;
}

.exchange-detail-head > em {
  color: #13a66e;
  font-size: 9px;
  font-style: normal;
}

.exchange-detail-volume {
  margin: 9px 0 5px;
}

.exchange-detail-volume span {
  display: block;
  color: var(--ink-4);
  font-size: 9px;
}

.exchange-detail-volume b {
  color: var(--brand);
  font-size: 17px;
}

.exchange-detail-volume small {
  margin-left: 5px;
  color: var(--ink-4);
  font-size: 9px;
}

.exchange-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 8px;
}

.exchange-detail-grid > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-4);
  font-size: 8.5px;
}

.exchange-detail-grid b {
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .market-overview-head {
    padding: 8px 9px 6px;
  }

  .market-overview-head h3 {
    font-size: 14px;
  }

  .market-overview-grid {
    min-height: 112px;
  }

  .overview-insight {
    padding: 7px 8px 8px;
  }

  .overview-insight b {
    font-size: 9.5px;
  }

  .overview-insight p {
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.55;
  }

  .overview-tile {
    padding: 6px 7px 8px;
  }

  .overview-label {
    font-size: 9.5px;
  }

  .overview-value {
    font-size: 15px;
  }

  .overview-value em {
    display: block;
    margin-top: 1px;
    font-size: 10px;
  }

  .overview-spark,
  .overview-spark svg {
    height: 28px;
  }

  .overview-sub,
  .overview-scale {
    gap: 3px;
    font-size: 7.5px;
  }

  .overview-bars {
    gap: 3px;
    height: 32px;
  }

  .overview-gauge {
    margin: 15px 0 7px;
  }

  .exchange-rank-row {
    grid-template-columns: minmax(120px, 1fr) minmax(88px, .75fr) 45px;
    gap: 6px;
    padding: 7px 2px;
  }

  .exchange-rank-id {
    gap: 5px;
  }

  .exchange-rank-id > em {
    width: 18px;
    font-size: 9px;
  }

  .exchange-logo {
    width: 24px;
    height: 24px;
  }

  .exchange-logo img {
    width: 20px;
    height: 20px;
  }

  .exchange-rank-id b {
    font-size: 11px;
  }

  .exchange-rank-id small,
  .exchange-amount small {
    font-size: 8px;
  }

  .exchange-amount b {
    font-size: 11.5px;
  }

  .exchange-exrank span {
    font-size: 7.5px;
  }

  .exchange-exrank b {
    font-size: 12px;
  }

  .exchange-detail-grid-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .exchange-detail-card {
    padding: 9px;
  }
}

.overview-risk-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #292a30;
}

.overview-risk-row > div {
  min-width: 0;
  padding: 10px 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.overview-risk-row > div:last-child {
  border-right: 0;
}

.overview-risk-row span,
.overview-risk-row small {
  display: block;
  color: #9298a5;
  font-size: 9.5px;
}

.overview-risk-row b {
  display: block;
  margin: 1px 0;
  color: #fff;
  font-size: 18px;
  white-space: nowrap;
}

.overview-risk-row .risk-long { color: #2fc786; }
.overview-risk-row .risk-short { color: #ef5350; }

@media (max-width: 960px) {
  .overview-risk-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-risk-row > div {
    padding: 7px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .overview-risk-row > div:nth-child(2) {
    border-right: 0;
  }

  .overview-risk-row > div:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .overview-risk-row span,
  .overview-risk-row small {
    font-size: 8px;
  }

  .overview-risk-row b {
    font-size: 14px;
  }
}

/* 区块链观察：关键市场指标与链上快讯 */
.overview-insight {
  grid-column: 1 / -1;
  padding: 9px 15px 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.overview-insight b {
  color: #f2a23a;
  font-size: 11px;
}

.overview-insight p {
  margin: 3px 0 0;
  color: #c2c6cf;
  font-size: 10.5px;
  line-height: 1.65;
}

.market-metrics-card {
  overflow: hidden;
  border: 0;
  color: #f5f6f8;
  background: #1c1d21;
}

.market-metrics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px 8px;
}

.market-metrics-head h3 {
  margin: 0;
  font-size: 16px;
}

.market-metrics-head span {
  color: #9298a5;
  font-size: 9.5px;
  text-align: right;
}

.market-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 11px;
}

.market-metric-item {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 9px;
  background: #292a31;
}

.metric-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #37383f;
  font-size: 17px;
}

.metric-copy {
  min-width: 0;
}

.metric-label {
  display: block;
  overflow: hidden;
  color: #f3f4f6;
  font-size: 11.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-main {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 2px;
}

.metric-value {
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-value.up,
.metric-change.up {
  color: #2fc786;
}

.metric-value.down,
.metric-change.down {
  color: #ef5350;
}

.metric-change {
  flex: none;
  font-size: 9.5px;
  font-style: normal;
}

.metric-note {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #9197a3;
  font-size: 8.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-metrics-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 90px;
  place-items: center;
  color: #9aa0ad;
  font-size: 11px;
}

.chain-live-section {
  overflow: hidden;
  padding: 0;
}

.chain-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
}

.chain-live-head h3 {
  margin: 0;
  font-size: 16px;
}

.chain-live-head span {
  color: var(--ink-4);
  font-size: 9.5px;
}

.chain-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0 12px;
  background: var(--line-2);
}

.chain-stat-card {
  min-width: 0;
  padding: 9px 8px;
  background: var(--card);
}

.chain-stat-card.wide {
  grid-column: span 4;
}

.chain-stat-card span {
  display: block;
  color: var(--ink-4);
  font-size: 11.5px;
}

.chain-stat-card b {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-1);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chain-stat-card em {
  display: block;
  margin-top: 2px;
  color: var(--ink-4);
  font-size: 10.5px;
  font-style: normal;
}

.chain-stats-grid > .empty {
  grid-column: 1 / -1;
  padding: 18px 0;
  background: var(--card);
}

.chain-live-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  padding: 0 14px 5px;
}

.chain-live-feed > .empty {
  grid-column: 1 / -1;
  padding: 24px 0;
}

.chain-live-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 13px 0 12px;
  border-bottom: 1px solid var(--line-2);
}

.chain-live-item.is-clickable { cursor: pointer; }
.chain-live-item.is-clickable:hover h4 { color: var(--brand); }

.chain-live-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.chain-live-dot.hot {
  background: #f0a329;
}

.chain-live-dot.liq {
  background: #ef5350;
}

.chain-live-copy {
  min-width: 0;
}

.chain-live-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-4);
  font-size: 8.5px;
}

.chain-live-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chain-live-meta em {
  flex: none;
  font-style: normal;
}

.chain-live-copy h4 {
  margin: 4px 0 3px;
  color: var(--ink-1);
  font-size: 13px;
  line-height: 1.4;
}

.chain-live-copy > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.chain-insight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
  margin-top: 6px;
  padding: 6px 7px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink-3);
  font-size: 8.8px;
  line-height: 1.5;
}

.chain-insight b {
  color: var(--brand);
  white-space: nowrap;
}

.chain-live-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.chain-coin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-3);
  font-size: 9px;
}

.chain-coin b {
  font-size: 9.5px;
}

.chain-coin i {
  font-style: normal;
}

.chain-live-tools a,
.chain-open-link {
  color: var(--brand);
  font-size: 9px;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .overview-insight {
    padding: 7px 8px 8px;
  }

  .overview-insight b {
    font-size: 9.5px;
  }

  .overview-insight p {
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.55;
  }

  .market-metrics-head {
    padding: 9px 9px 6px;
  }

  .market-metrics-head h3 {
    font-size: 14px;
  }

  .market-metrics-head span {
    font-size: 8px;
  }

  .market-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0 7px 8px;
  }

  .market-metric-item {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 6px;
    padding: 8px 7px;
  }

  .metric-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 14px;
  }

  .metric-label {
    font-size: 10px;
  }

  .metric-main {
    gap: 4px;
  }

  .metric-value {
    font-size: 14px;
  }

  .metric-change {
    font-size: 8px;
  }

  .metric-note {
    display: -webkit-box;
    white-space: normal;
    font-size: 7.5px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .market-metric-item:last-child {
    grid-column: span 2;
  }

  .chain-live-head {
    padding: 9px 9px 8px;
  }

  .chain-live-head h3 {
    font-size: 14px;
  }

  .chain-live-head span {
    font-size: 8px;
  }

  .chain-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 8px;
  }

  .chain-stat-card {
    padding: 7px 6px;
  }

  .chain-stat-card.wide {
    grid-column: span 2;
  }

  .chain-stat-card span {
    font-size: 10.5px;
  }

  .chain-stat-card b {
    font-size: 16px;
  }

  .chain-stat-card em {
    font-size: 9.5px;
  }

  .chain-live-feed {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 9px 3px;
  }

  .chain-live-item {
    gap: 7px;
    padding: 10px 0;
  }

  .chain-live-copy h4 {
    margin-top: 3px;
    font-size: 12.5px;
  }

  .chain-live-copy > p {
    font-size: 9.5px;
    -webkit-line-clamp: 3;
  }

  .chain-insight {
    font-size: 8.5px;
  }
}

@media (max-width: 360px) {
  .market-metric-item {
    padding: 7px 6px;
  }

  .metric-label {
    font-size: 9.5px;
  }

  .metric-main {
    display: block;
    margin-top: 1px;
  }

  .metric-value {
    font-size: 13px;
  }

  .metric-change {
    display: block;
    margin-top: 1px;
    font-size: 7.5px;
  }
}

/* 抄底逃顶指标：突出核心数值和状态 */
body[data-page="data"] .sentiment-standalone .bb-head b {
  font-size: 17px;
  font-weight: 800;
}

body[data-page="data"] .sentiment-standalone .bb-head span {
  font-size: 12.5px;
  font-weight: 600;
}

body[data-page="data"] .sentiment-standalone .bb-row {
  gap: 10px;
  padding: 6px 0;
  font-size: 13.5px;
  font-weight: 600;
}

body[data-page="data"] .sentiment-standalone .bb-row > span:first-child {
  color: var(--ink-2);
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}

body[data-page="data"] .sentiment-standalone .bb-row .bb-live-value > span {
  font-size: 13.5px;
  font-weight: 800;
}

body[data-page="data"] .sentiment-standalone .bb-row .bb-status {
  padding: 2px 7px;
  font-size: 11.5px;
  font-weight: 800;
}

body[data-page="data"] .sentiment-standalone .bb-foot {
  font-size: 12.5px;
  font-weight: 600;
}

@media (max-width: 960px) {
  body[data-page="data"] .sentiment-standalone .bb-head b {
    font-size: 15px;
  }

  body[data-page="data"] .sentiment-standalone .bb-head span {
    font-size: 10.5px;
  }

  body[data-page="data"] .sentiment-standalone .bb-row {
    gap: 6px;
    padding: 4.5px 0;
    font-size: 12.5px;
  }

  body[data-page="data"] .sentiment-standalone .bb-row .bb-live-value > span {
    font-size: 12.5px;
  }

  body[data-page="data"] .sentiment-standalone .bb-row .bb-status {
    padding: 1px 6px;
    font-size: 10.5px;
  }

  body[data-page="data"] .sentiment-standalone .bb-foot {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  body[data-page="data"] .sentiment-standalone .bb-row {
    font-size: 12px;
  }

  body[data-page="data"] .sentiment-standalone .bb-row .bb-live-value > span {
    font-size: 12px;
  }

  body[data-page="data"] .sentiment-standalone .bb-row .bb-status {
    font-size: 9.5px;
  }
}

/* 链上正文、央行资讯与重点公司信息增强 */
body[data-page="data"] .chain-live-copy > p {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.68;
  -webkit-line-clamp: 4;
}

body[data-page="data"] .chain-insight {
  font-size: 10.8px;
  font-weight: 600;
  line-height: 1.62;
}

body[data-page="data"] .chain-insight b {
  font-size: 11px;
  font-weight: 800;
}

.exchange-rank-row {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.exchange-rank-row:hover,
.exchange-rank-row:focus-visible {
  border-radius: 7px;
  outline: none;
  background: var(--line-2);
}

.central-bank-list .cb-title,
.cb-list .cb-title,
.fed-official-card .cb-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.featured-companies-card .fc-id span {
  font-size: 12px;
  font-weight: 600;
}

.featured-companies-card .fc-quote span {
  font-size: 12.5px;
  font-weight: 700;
}

.featured-companies-card .fc-source {
  font-size: 11.5px;
  font-weight: 600;
}

.featured-companies-card .fc-report > span {
  font-size: 12px;
  font-weight: 600;
}

.featured-companies-card .fc-report > b {
  font-size: 13px;
  font-weight: 800;
}

.featured-companies-card .fc-report > a,
.featured-companies-card .fc-report > span:last-child {
  font-size: 12.5px;
  font-weight: 600;
}

@media (max-width: 960px) {
  body[data-page="data"] .chain-live-copy > p {
    font-size: 11.5px;
    line-height: 1.62;
  }

  body[data-page="data"] .chain-insight {
    font-size: 10px;
    line-height: 1.58;
  }

  body[data-page="data"] .chain-insight b {
    font-size: 10.5px;
  }

  .central-bank-list .cb-title,
  .cb-list .cb-title,
  .fed-official-card .cb-title {
    font-size: 13px;
  }

  .featured-companies-card .fc-id span {
    font-size: 11px;
  }

  .featured-companies-card .fc-quote span {
    font-size: 11.5px;
  }

  .featured-companies-card .fc-source {
    font-size: 10.5px;
  }

  .featured-companies-card .fc-report > span {
    font-size: 11px;
  }

  .featured-companies-card .fc-report > b {
    font-size: 12px;
  }

  .featured-companies-card .fc-report > a,
  .featured-companies-card .fc-report > span:last-child {
    font-size: 11.5px;
  }
}

@media (max-width: 360px) {
  body[data-page="data"] .chain-live-copy > p {
    font-size: 11px;
  }

  body[data-page="data"] .chain-insight {
    font-size: 9.7px;
  }

  .central-bank-list .cb-title,
  .cb-list .cb-title,
  .fed-official-card .cb-title {
    font-size: 12.5px;
  }
}

.home-section-link,
.home-section-link:visited {
  color: inherit;
  text-decoration: none;
}

.home-section-link:hover,
.home-section-link:focus-visible {
  color: var(--brand);
  outline: none;
}

[data-events-wide] .event-list {
  gap: 0 18px;
  padding: 7px 14px 8px;
}

[data-events-wide] .event-item {
  gap: 8px;
  padding: 6px 0;
}

[data-events-wide] .event-time {
  font-size: 12px;
}

[data-events-wide] .event-text {
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  [data-events-wide] .event-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 5px 10px 7px;
  }

  [data-events-wide] .event-item {
    padding: 5px 0;
  }
}

.central-bank-panel .cb-head b {
  color: var(--ink-3);
}

.central-bank-panel .cb-title,
.fed-official-card .cb-title {
  color: var(--ink-3);
}

.exchange-detail-grid > span {
  padding: 6px 0;
  font-size: 10.5px;
}

.exchange-detail-grid b {
  font-size: 11.5px;
}

@media (max-width: 960px) {
  .exchange-detail-grid > span {
    padding: 5px 0;
    font-size: 9.8px;
  }

  .exchange-detail-grid b {
    font-size: 10.5px;
  }
}

@media (max-width: 960px) {
  .exchange-detail-grid-wrap { gap: 6px; }
  .exchange-detail-card { padding: 7px; }
  .exchange-detail-head { gap: 5px; }
  .exchange-detail-head b { font-size: 12.5px; }
  .exchange-detail-head span,
  .exchange-detail-head > em { font-size: 8px; }
  .exchange-detail-volume { margin: 5px 0 3px; }
  .exchange-detail-volume b { font-size: 15px; }
  .exchange-detail-grid > span { padding: 2.5px 0; font-size: 8.5px; }
  .exchange-detail-grid b { font-size: 9px; }
}

@media (max-width: 720px) {
  body[data-page="tools"] #cryptoConverter .conv-grid {
    gap: 0;
  }

  body[data-page="tools"] #cryptoConverter .conv-swap {
    width: 24px;
    height: 24px;
    margin: -1px auto;
    font-size: 12px;
  }
}

.card-head .tool-copy {
  flex: none;
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.2;
  cursor: pointer;
}

.card-head .tool-copy:hover,
.card-head .tool-copy:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
}

@media (max-width: 960px) {
  .card-head .tool-copy {
    padding: 3px 7px;
    font-size: 9.5px;
  }
}

/* 财研数据：宏观深度数据 */
.finance-dashboard-section {
  margin-top: 10px;
  overflow: hidden;
}

.finance-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px 11px;
  border-bottom: 1px solid var(--line-2);
}

.finance-dashboard-head > div {
  min-width: 0;
}

.finance-dashboard-head h3 {
  margin: 0;
  font-size: 17px;
}

.finance-dashboard-head > div > span {
  display: block;
  margin-top: 3px;
  color: var(--ink-4);
  font-size: 11.5px;
  line-height: 1.45;
}

#financeDashboardStatus {
  flex: none;
  color: var(--ink-4);
  font-size: 11px;
  white-space: nowrap;
}

.finance-dashboard-modules {
  padding: 12px;
  background: var(--bg);
}

.fd-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fd-panel {
  min-width: 0;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.fd-pair-grid .fd-panel {
  margin-bottom: 0;
}

.fd-panel-wide {
  margin-top: 12px;
}

.fd-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px 8px;
  border-bottom: 1px solid var(--line-2);
}

.fd-panel-head h4 {
  margin: 0;
  font-size: 14px;
}

.fd-panel-head span {
  color: var(--ink-4);
  font-size: 10.5px;
  white-space: nowrap;
}

.fd-panel-body {
  min-width: 0;
  padding: 10px 13px 11px;
}

.fd-big-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.fd-metric {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 8px;
  background: var(--bg);
}

.fd-metric > span {
  display: block;
  color: var(--ink-4);
  font-size: 10.5px;
}

.fd-metric strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.fd-metric small {
  display: block;
  margin-top: 2px;
  color: var(--ink-4);
  font-size: 9.5px;
  line-height: 1.45;
}

.fd-liquidity-list {
  display: grid;
  gap: 2px;
}

.fd-liquidity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 5px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--line-2);
}

.fd-liquidity-row:last-child {
  border-bottom: 0;
}

.fd-liquidity-row > span {
  min-width: 0;
}

.fd-liquidity-row > span b {
  display: block;
  font-size: 11.5px;
}

.fd-liquidity-row > span small {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--ink-4);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fd-liquidity-row > strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.fd-liquidity-row > em {
  min-width: 66px;
  color: var(--ink-4);
  font-size: 9px;
  font-style: normal;
  text-align: right;
}

.fd-omo-row > strong,
.fd-omo-row > em {
  font-size: 12px;
}

.fd-note {
  margin: 3px 0 0;
  color: var(--ink-4);
  font-size: 8.5px;
  line-height: 1.3;
}

.fd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px dashed var(--line-2);
  color: var(--ink-4);
  font-size: 10px;
}

.fd-source-link {
  flex: none;
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
}

.fd-source-link:hover {
  text-decoration: underline;
}

.fd-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fd-panel.fd-clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fd-panel.fd-clickable:hover,
.fd-panel.fd-clickable:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(16, 20, 30, 0.08);
  outline: none;
}

.fd-policy-item {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fd-policy-item:hover,
.fd-policy-item:focus-visible {
  border-color: var(--brand);
  background: var(--brand-soft);
  outline: none;
}

.fd-policy-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.fd-policy-item b {
  font-size: 11.5px;
}

.fd-policy-item > div span {
  color: var(--ink-4);
  font-size: 8.5px;
  white-space: nowrap;
}

.fd-policy-item > strong {
  display: block;
  margin: 5px 0 3px;
  font-size: 12px;
  line-height: 1.45;
}

.fd-policy-item > small {
  display: block;
  color: var(--ink-4);
  font-size: 9.5px;
  line-height: 1.45;
}

.fd-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fd-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 11.5px;
}

.fd-table th {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-4);
  font-size: 10px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.fd-table td {
  padding: 8px;
  border-bottom: 1px dashed var(--line-2);
  color: var(--ink-2);
  vertical-align: middle;
}

.fd-table tr:last-child td {
  border-bottom: 0;
}

.fd-table td > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.fd-table td > a:hover b {
  color: var(--brand);
}

.fd-table td > a b {
  display: block;
  font-size: 11.5px;
  line-height: 1.4;
}

.fd-table td > a small {
  display: block;
  margin-top: 2px;
  color: var(--ink-4);
  font-size: 9px;
  line-height: 1.35;
}

.fd-country {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--line-2);
  font-size: 10px;
  white-space: nowrap;
}

.fd-actual {
  color: var(--ink) !important;
  font-weight: 700;
}

.fd-estimated {
  display: block;
  margin-top: 2px;
  color: #b87800;
  font-size: 9px;
}

.fd-importance {
  display: inline-grid;
  min-width: 24px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  background: var(--line-2);
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 700;
}

.fd-importance.high {
  background: var(--brand-soft);
  color: var(--brand);
}

.fd-importance.medium {
  background: #fff3d7;
  color: #a96d00;
}

.fd-earnings-table {
  min-width: 760px;
}

.finance-dashboard-modules .is-up {
  color: var(--up) !important;
}

.finance-dashboard-modules .is-down {
  color: var(--down) !important;
}

html[data-theme="dark"] .fd-importance.medium {
  background: rgba(240, 185, 11, 0.16);
  color: #f3c64d;
}

@media (max-width: 960px) {
  .fd-pair-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fd-pair-grid .fd-panel + .fd-panel {
    margin-top: 10px;
  }

  .fd-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .finance-dashboard-head {
    align-items: flex-start;
    padding: 11px 12px 9px;
  }

  .finance-dashboard-head h3 {
    font-size: 15.5px;
  }

  .finance-dashboard-head > div > span {
    display: none;
  }

  #financeDashboardStatus {
    max-width: 44%;
    white-space: normal;
    text-align: right;
  }

  .finance-dashboard-modules {
    padding: 8px;
  }

  .fd-panel-head {
    padding: 9px 10px 7px;
  }

  .fd-panel-body {
    padding: 8px 10px 9px;
  }

  .fd-big-grid {
    gap: 5px;
  }

  .fd-metric {
    padding: 7px 6px;
  }

  .fd-metric strong {
    font-size: 15px;
  }

  .fd-metric small {
    font-size: 8.5px;
  }

  .fd-liquidity-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
  }

  .fd-liquidity-row > em {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }

  .fd-omo-row > em {
    grid-column: 1 / -1;
    text-align: left;
  }

  .fd-policy-grid {
    gap: 6px;
  }

  .fd-policy-item {
    padding: 8px;
  }
}

/* 财研助手：手机端稳稳留在视口内，内容区单独向下滚动 */
@media (max-width: 960px) {
  .assistant-panel {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 200px);
  }

  .assistant-head,
  .assistant-quick,
  .assistant-form {
    flex: none;
  }

  .assistant-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }
}

.assistant-panel[hidden] {
  display: none !important;
}

/* 美联储：政策、流动性与市场定价看板 */
.fed-dashboard-section {
  margin-top: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.fed-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px 11px;
  border-bottom: 1px solid var(--line-2);
}

.fed-dashboard-head > div {
  min-width: 0;
}

.fed-dashboard-head h2 {
  margin: 0;
  font-size: 18px;
}

.fed-dashboard-head > div > span {
  display: block;
  margin-top: 3px;
  color: var(--ink-4);
  font-size: 11.5px;
  line-height: 1.45;
}

#fedDashboardStatus {
  flex: none;
  color: var(--ink-4);
  font-size: 11px;
}

.fed-dashboard-modules {
  padding: 12px;
  background: var(--bg);
}

.fed-dash-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fed-dash-panel {
  min-width: 0;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

#fedDashboardModules > .fed-dash-panel:first-child {
  margin-top: 0;
}

.fed-dash-pair .fed-dash-panel {
  margin-top: 0;
}

.fed-dash-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px 8px;
  border-bottom: 1px solid var(--line-2);
}

.fed-dash-panel-head h3 {
  margin: 0;
  font-size: 14.5px;
}

.fed-dash-panel-head > span {
  color: var(--ink-4);
  font-size: 10.5px;
  white-space: nowrap;
}

.fed-dash-panel-body {
  min-width: 0;
  padding: 10px 13px 11px;
}

.fed-policy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  gap: 8px;
}

.fed-policy-main,
.fed-policy-side > div {
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--bg);
}

.fed-policy-main > span,
.fed-policy-side span,
.fed-balance-item > span,
.fed-market-grid span {
  display: block;
  color: var(--ink-4);
  font-size: 9.5px;
}

.fed-policy-main > strong {
  display: block;
  margin-top: 3px;
  font-size: 23px;
  line-height: 1.25;
}

.fed-policy-main > small {
  display: block;
  margin-top: 3px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 600;
}

.fed-policy-side {
  display: grid;
  gap: 6px;
}

.fed-policy-side strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.fed-policy-side small {
  display: block;
  margin-top: 1px;
  color: var(--ink-4);
  font-size: 9px;
}

.fed-policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 10px;
}

.fed-policy-meta b {
  color: var(--ink-2);
}

.fed-dissent {
  width: 100%;
  color: var(--ink-4);
  line-height: 1.45;
}

.fed-balance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.fed-balance-item {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: var(--bg);
}

.fed-balance-item strong {
  display: block;
  margin-top: 3px;
  font-size: 14.5px;
  line-height: 1.35;
}

.fed-balance-item small,
.fed-balance-item em {
  display: block;
  margin-top: 2px;
  font-size: 8.8px;
  line-height: 1.4;
}

.fed-balance-item em {
  color: var(--ink-4);
  font-style: normal;
}

.fed-dash-verdict {
  margin: 8px 0 0;
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.55;
}

.fed-dash-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px dashed var(--line-2);
}

.fed-dash-source {
  color: var(--brand);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.fed-dash-source:hover {
  text-decoration: underline;
}

.fed-probability-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fed-probability-row > div {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg);
}

.fed-probability-row span {
  display: block;
  color: var(--ink-4);
  font-size: 9.5px;
}

.fed-probability-row strong {
  display: block;
  margin-top: 2px;
  color: var(--up);
  font-size: 19px;
}

.fed-probability-row .is-hold strong {
  color: var(--ink);
}

.fed-probability-row > div:last-child strong {
  color: var(--down);
}

.fed-probability-bar {
  display: flex;
  height: 8px;
  margin: 7px 0 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line-2);
}

.fed-probability-bar i {
  display: block;
  height: 100%;
  background: var(--up);
}

.fed-probability-bar i.hold {
  background: #9aa3b2;
}

.fed-probability-bar i.hike {
  background: var(--down);
}

.fed-probability > small {
  color: var(--ink-4);
  font-size: 9.5px;
}

.fed-market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.fed-market-grid > div {
  padding: 7px 8px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
}

.fed-market-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.fed-market-grid small {
  display: block;
  font-size: 9px;
}

.fed-dash-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fed-dash-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 11px;
}

.fed-dash-table th {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-4);
  font-size: 9.5px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.fed-dash-table td {
  padding: 7px 8px;
  border-bottom: 1px dashed var(--line-2);
  color: var(--ink-2);
}

.fed-dash-table tr:last-child td {
  border-bottom: 0;
}

.fed-dash-table td a {
  color: inherit;
  text-decoration: none;
}

.fed-dash-table td a:hover b {
  color: var(--brand);
}

.fed-dash-note {
  margin: 7px 0 0;
  color: var(--ink-4);
  font-size: 9.5px;
  line-height: 1.5;
}

.fed-resource-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.fed-resource-item {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fed-resource-item:hover,
.fed-resource-item:focus-visible {
  border-color: var(--brand);
  background: var(--brand-soft);
  outline: none;
}

.fed-resource-item > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
}

.fed-resource-item b {
  font-size: 11.5px;
}

.fed-resource-item span {
  color: var(--ink-4);
  font-size: 8.5px;
  white-space: nowrap;
}

.fed-resource-item small {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 9.5px;
  line-height: 1.4;
}

.fed-resource-item em {
  display: block;
  margin-top: 5px;
  color: var(--brand);
  font-size: 9px;
  font-style: normal;
}

.fed-dashboard-modules .is-up {
  color: var(--up) !important;
}

.fed-dashboard-modules .is-down {
  color: var(--down) !important;
}

.fed-dashboard-modules .is-flat,
.fed-dash-none {
  color: var(--ink-4) !important;
}

@media (max-width: 960px) {
  .fed-dash-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .fed-dash-pair .fed-dash-panel + .fed-dash-panel {
    margin-top: 8px;
  }

  .fed-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fed-dashboard-head {
    align-items: flex-start;
    padding: 11px 12px 9px;
  }

  .fed-dashboard-head h2 {
    font-size: 15.5px;
  }

  .fed-dashboard-head > div > span {
    display: none;
  }

  #fedDashboardStatus {
    max-width: 42%;
    text-align: right;
  }

  .fed-dashboard-modules {
    padding: 8px;
  }

  .fed-dash-panel-head,
  .fed-dash-panel-body {
    padding-left: 10px;
    padding-right: 10px;
  }

  .fed-policy-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .fed-policy-main > strong {
    font-size: 21px;
  }

  .fed-policy-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fed-balance-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fed-balance-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1px 8px;
    align-items: baseline;
  }

  .fed-balance-item > span {
    grid-column: 1;
  }

  .fed-balance-item > strong {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .fed-balance-item small,
  .fed-balance-item em {
    grid-column: 1;
  }

  .fed-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fed-probability-row {
    gap: 5px;
  }

  .fed-probability-row > div {
    padding: 7px;
  }

  .fed-probability-row strong {
    font-size: 16px;
  }

  .fed-resource-grid {
    gap: 6px;
  }
}

/* 快讯栏目：细分类、完整时间、详情和自动刷新 */
.flash-page-layout {
  display: block;
  width: 100%;
}

.flash-page-layout > div {
  width: 100%;
}

.flash-skeleton-list {
  padding: 8px 18px 18px;
}

.flash-skeleton-row {
  display: grid;
  gap: 10px;
  padding: 15px 0 18px;
  border-bottom: 1px dashed var(--line-2);
}

.flash-skeleton-row i,
.flash-skeleton-row b,
.flash-skeleton-row span {
  display: block;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--line-2) 20%, var(--surface-2) 50%, var(--line-2) 80%);
  background-size: 220% 100%;
  animation: flashSkeleton 1.2s ease-in-out infinite;
}

.flash-skeleton-row i {
  width: 118px;
  height: 12px;
}

.flash-skeleton-row b {
  width: 76%;
  height: 19px;
}

.flash-skeleton-row span {
  width: 92%;
  height: 14px;
}

@keyframes flashSkeleton {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.flash-category-scroll {
  width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 3px;
  -webkit-overflow-scrolling: touch;
}

.flash-category-scroll .chip {
  flex: none;
  font-weight: 700;
}

.flash-category-scroll .chip.active {
  font-weight: 800;
}

.flash-new-notice {
  padding: 0 18px;
}

.flash-new-notice[hidden] {
  display: none;
}

.flash-new-notice button {
  width: 100%;
  margin: 8px 0 2px;
  padding: 8px 12px;
  border: 1px solid rgba(217, 43, 43, .25);
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.flash-day-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 0;
  padding: 6px 0 5px 20px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
}

.flash-day-divider em {
  color: var(--ink-4);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 400;
}

.flash-clickable {
  cursor: pointer;
  transition: background-color .15s ease;
}

.flash-clickable:hover,
.flash-clickable:focus-visible {
  background: var(--line-2);
  outline: none;
}

.flash-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}

.flash-item-meta .time {
  margin: 0;
}

.flash-source {
  color: var(--ink-4);
  font-size: 9.5px;
  white-space: nowrap;
}

.flash-source a {
  color: var(--brand);
  text-decoration: none;
}

.flash-source a:hover {
  text-decoration: underline;
}

.flash-item .flash-title {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.flash-item .flash-summary {
  margin-bottom: 5px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.55;
}

.flash-impact {
  margin: 4px 0 6px;
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-3);
  font-size: 9.5px;
  line-height: 1.45;
}

.flash-impact b {
  margin-right: 5px;
  color: var(--brand);
}

.flash-detail-hint {
  margin-left: auto;
  color: var(--brand);
  font-size: 9.5px;
}

.flash-load-more {
  display: flex;
  justify-content: center;
  padding: 10px 16px 14px;
  color: var(--ink-4);
  font-size: 10px;
}

body[data-page="flash"] .flash-load-more {
  display: block;
  text-align: center;
}

.flash-page-summary {
  color: var(--ink-4);
  font-size: 12px;
  line-height: 1.6;
}

body[data-page="flash"] .flash-load-more .pager {
  padding: 10px 0 0;
}

.flash-detail-modal {
  width: min(760px, 100%);
}

.flash-detail-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.flash-detail-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.55;
}

.flash-detail-copy {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.flash-detail-impact {
  margin: 10px 0;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--brand-soft);
}

.flash-detail-impact b {
  color: var(--brand);
  font-size: 13px;
}

.flash-detail-impact p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.62;
  white-space: normal;
}

.flash-detail-impact small {
  color: var(--ink-4);
  font-size: 9.5px;
}

.flash-detail-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  color: var(--ink-4);
  font-size: 10px;
}

.flash-detail-source > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  body[data-page="flash"] .flash-day-divider {
    padding-left: 12px;
  }

  body[data-page="flash"] .flash-item .flash-title {
    font-size: 13px;
  }

  body[data-page="flash"] .flash-item .flash-summary {
    font-size: 11.5px;
  }

  body[data-page="flash"] .flash-impact {
    font-size: 9px;
  }

  .flash-detail-source {
    align-items: flex-start;
    flex-direction: column;
  }

  .flash-detail-title {
    font-size: 16px;
  }
}

/* 手机频道栏：固定右侧箭头，显示不下的频道收进菜单 */
@media (max-width: 960px) {
  .m-nav-box {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 50px;
    padding: 0 42px 0 10px;
    overflow: hidden;
  }

  .m-nav-row-primary {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 50px;
    grid-template-columns: none;
    width: max-content;
  }

  .m-nav-link {
    height: 50px;
    justify-content: flex-start;
    font-size: 15.5px;
  }

  .m-nav-more {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 70;
    display: grid;
    width: 40px;
    height: 50px;
    padding: 0;
    place-items: center;
    background: linear-gradient(90deg, rgba(245, 245, 245, 0), #f5f5f5 30%);
    color: #2f3645;
  }

  .m-nav-more .m-caret {
    width: 8px;
    height: 8px;
    margin: 0;
    border: 0;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .m-nav-more.open .m-caret {
    transform: rotate(135deg);
  }

  html[data-theme="dark"] .m-nav-more {
    background: linear-gradient(90deg, rgba(35, 38, 46, 0), #23262e 30%);
  }
}

/* 美股三大指数在手机端保持横向三列 */
@media (max-width: 960px) {
  .idx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .idx-card {
    min-width: 0;
    padding: 10px 10px 0;
  }

  .idx-name {
    display: -webkit-box;
    min-height: 34px;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .idx-price {
    margin-top: 4px;
    font-size: clamp(16px, 4.8vw, 21px);
    white-space: nowrap;
  }

  .idx-chg {
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .idx-spark { margin: 4px -10px -1px; }
  .idx-spark svg { height: 42px; }
}

@media (max-width: 960px) {
  body[data-page="home"] .finance-news-entry .news-item {
    padding: 8px 10px;
    gap: 9px;
  }

  body[data-page="home"] .finance-news-entry .news-item .thumb {
    width: 92px;
    height: 64px;
    border-radius: 6px;
  }

  body[data-page="home"] .finance-news-entry .news-item h3 {
    margin-bottom: 6px;
    color: #4b5563;
    font-size: 13.5px;
    line-height: 1.38;
  }

  body[data-page="home"] .finance-news-entry .news-item .item-meta {
    gap: 3px 5px;
    color: #a0a6b1;
    font-size: 9px;
    line-height: 1.3;
  }

  body[data-page="home"] .finance-news-entry .news-item .item-meta .mi {
    width: 11px;
    height: 11px;
  }

  body[data-page="home"] .finance-news-entry .news-item .item-meta .im-like,
  body[data-page="home"] .finance-news-entry .news-item .item-meta .im-star,
  body[data-page="home"] .finance-news-entry .news-item .item-meta .im-views {
    gap: 2px;
  }
}

@media (max-width: 960px) {
  #qaMacroTabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    overflow: visible;
  }

  #qaMacroTabs .nav-tab {
    width: 100%;
    min-width: 0;
    padding: 6px 2px;
    overflow: hidden;
    font-size: clamp(11px, 3.25vw, 13.5px);
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 960px) {
  #qaMacroTabs {
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #qaMacroTabs::-webkit-scrollbar {
    display: none;
  }

  #qaMacroTabs .nav-tab {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 13.5px;
    line-height: 1.2;
  }
}

@media (max-width: 960px) {
  body[data-page="bitcoin"] #marketTable tbody tr,
  body[data-page="market"] #marketTable tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr) 72px;
    grid-template-rows: auto auto;
    gap: 1px 3px;
    align-items: center;
    padding: 5px 6px;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(1),
  body[data-page="market"] #marketTable tbody td:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
    min-width: 0;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(2),
  body[data-page="market"] #marketTable tbody td:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0;
    text-align: right;
    white-space: nowrap;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(3),
  body[data-page="market"] #marketTable tbody td:nth-child(3) {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(4),
  body[data-page="market"] #marketTable tbody td:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
    overflow: hidden;
    font-size: 9px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(5),
  body[data-page="market"] #marketTable tbody td:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
    overflow: hidden;
    font-size: 9px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(6),
  body[data-page="market"] #marketTable tbody td:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
    overflow: hidden;
    font-size: 9px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(7),
  body[data-page="market"] #marketTable tbody td:nth-child(7) {
    grid-column: 4;
    grid-row: 2;
    margin-left: 0;
    align-self: center;
    justify-self: end;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(2),
  body[data-page="market"] #marketTable tbody td:nth-child(2) {
    font-size: 16px;
    white-space: nowrap;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(3) .pill,
  body[data-page="market"] #marketTable tbody td:nth-child(3) .pill {
    padding: 1px 4px;
    font-size: 9px;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(7) svg,
  body[data-page="market"] #marketTable tbody td:nth-child(7) svg {
    display: block;
    width: 68px;
    height: 26px;
  }
}

@media (max-width: 960px) {
  body[data-page="bitcoin"] #marketTable tbody tr,
  body[data-page="market"] #marketTable tbody tr {
    padding: 4px 6px;
    gap: 0 3px;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(1) .coin-cell,
  body[data-page="market"] #marketTable tbody td:nth-child(1) .coin-cell {
    gap: 5px;
  }

  body[data-page="bitcoin"] #marketTable .coin-fav-btn,
  body[data-page="market"] #marketTable .coin-fav-btn {
    width: 18px;
    font-size: 10px;
  }

  body[data-page="bitcoin"] #marketTable .coin-icon,
  body[data-page="market"] #marketTable .coin-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 9px;
  }

  body[data-page="bitcoin"] #marketTable .coin-cell .name b,
  body[data-page="market"] #marketTable .coin-cell .name b {
    font-size: 12px;
    line-height: 1.2;
  }

  body[data-page="bitcoin"] #marketTable .coin-cell .name span,
  body[data-page="market"] #marketTable .coin-cell .name span {
    font-size: 9px;
    line-height: 1.2;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(2),
  body[data-page="market"] #marketTable tbody td:nth-child(2) {
    font-size: 13.5px;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(3) .pill,
  body[data-page="market"] #marketTable tbody td:nth-child(3) .pill {
    padding: 0 3px;
    font-size: 8.5px;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(4),
  body[data-page="market"] #marketTable tbody td:nth-child(4),
  body[data-page="bitcoin"] #marketTable tbody td:nth-child(5),
  body[data-page="market"] #marketTable tbody td:nth-child(5),
  body[data-page="bitcoin"] #marketTable tbody td:nth-child(6),
  body[data-page="market"] #marketTable tbody td:nth-child(6) {
    font-size: 8.5px !important;
    line-height: 11px;
  }

  body[data-page="bitcoin"] #marketTable tbody td:nth-child(7) svg,
  body[data-page="market"] #marketTable tbody td:nth-child(7) svg {
    width: 64px;
    height: 22px;
  }
}

/* 专业市场行情页 */
.pro-page {
  padding-top: 14px;
  padding-bottom: 34px;
}

.pro-title-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 90% 10%, rgba(217, 43, 43, 0.12), transparent 34%),
    var(--card);
}

.pro-title-card h1 {
  margin: 3px 0 4px;
  font-size: 27px;
  line-height: 1.2;
}

.pro-title-card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.6;
}

.pro-kicker {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.pro-source-top {
  flex: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.pro-market-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.pro-market-tabs a {
  display: grid;
  min-height: 45px;
  place-items: center;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.pro-market-tabs a:hover,
.pro-market-tabs a:focus-visible {
  background: var(--line-2);
  color: var(--brand);
  outline: none;
}

.pro-market-tabs a.active {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(217, 43, 43, 0.2);
}

.pro-toolbar-card {
  padding: 10px 12px;
}

.pro-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
}

.pro-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pro-toolbar label > span {
  color: var(--ink-4);
  font-size: 10px;
  font-weight: 600;
}

.pro-search {
  flex: 1 1 300px;
}

.pro-sort {
  flex: 0 1 180px;
}

.pro-option-asset {
  flex: 0 1 190px;
}

.pro-option-asset[hidden] {
  display: none !important;
}

.pro-toolbar input,
.pro-toolbar select {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  outline: none;
}

.pro-toolbar input:focus,
.pro-toolbar select:focus {
  border-color: var(--brand);
}

.pro-refresh {
  flex: none;
  height: 36px;
}

.pro-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.pro-summary-card {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.pro-summary-card > span,
.pro-summary-card > small {
  display: block;
  overflow: hidden;
  color: var(--ink-4);
  font-size: 10.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-summary-card > b {
  display: block;
  margin: 3px 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-table-card {
  overflow: hidden;
}

.pro-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px 10px;
  border-bottom: 1px solid var(--line-2);
}

.pro-table-head h2 {
  margin: 0;
  font-size: 18px;
}

.pro-table-head p {
  margin: 3px 0 0;
  color: var(--ink-4);
  font-size: 11px;
  line-height: 1.5;
}

.pro-result-count {
  flex: none;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
}

.pro-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pro-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 12px;
}

.pro-table th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-4);
  font-size: 10.5px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.pro-table td {
  padding: 9px 10px;
  border-bottom: 1px dashed var(--line-2);
  color: var(--ink-2);
  vertical-align: middle;
}

.pro-table tbody tr:last-child td {
  border-bottom: 0;
}

.pro-table tbody tr:hover {
  background: var(--bg);
}

.pro-table .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.pro-name-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.pro-name-link b {
  display: block;
  max-width: 230px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-name-link small,
.pro-expiry {
  display: block;
  margin-top: 1px;
  color: var(--ink-4);
  font-size: 9.5px;
  line-height: 1.35;
}

.pro-name-link:hover b {
  color: var(--brand);
}

.pro-options-table {
  min-width: 1420px;
}

.pro-options-table th:nth-child(2) {
  text-align: center;
}

.pro-page .is-up {
  color: var(--up) !important;
}

.pro-page .is-down {
  color: var(--down) !important;
}

.pro-load-more {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 9px;
  border-top: 1px solid var(--line-2);
  color: var(--ink-4);
  font-size: 11px;
}

.pro-error-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

/* 六个专业市场统一行情列表 */
body[data-page="pro"] .pro-market-tabs {
  margin-bottom: 8px;
}

body[data-page="pro"] .pro-toolbar-card {
  margin-bottom: 8px;
  padding: 8px 10px;
}

body[data-page="pro"] .pro-toolbar {
  align-items: center;
  gap: 8px;
}

body[data-page="pro"] .pro-toolbar label {
  display: flex;
  align-items: center;
}

body[data-page="pro"] .pro-toolbar label > span {
  display: none;
}

body[data-page="pro"] .pro-toolbar input,
body[data-page="pro"] .pro-toolbar select {
  height: 40px;
  font-size: 13px;
}

body[data-page="pro"] .pro-search {
  flex: 1 1 auto;
}

body[data-page="pro"] .pro-search-btn {
  flex: 0 0 82px;
  height: 40px;
  min-height: 40px;
  padding: 0 20px;
  font-size: 13px;
}

body[data-page="pro"] .pro-sort {
  flex: 0 0 170px;
}

body[data-page="pro"] .pro-option-asset {
  flex: 0 0 180px;
}

body[data-page="pro"] .pro-table-card {
  overflow: hidden;
  border-radius: 12px;
}

body[data-page="pro"] .pro-table-head {
  padding: 10px 16px 9px;
}

body[data-page="pro"] .pro-table-head h2 {
  font-size: 17px;
}

body[data-page="pro"] .pro-table-head p {
  margin-top: 2px;
  font-size: 10.5px;
}

body[data-page="pro"] .pro-market-list {
  width: 100%;
  min-width: 1080px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}

body[data-page="pro"] .pro-market-list th {
  height: 40px;
  padding: 0 10px;
  background: var(--surface-2);
  color: var(--ink-4);
  font-size: 11.5px;
  font-weight: 650;
  text-align: right;
}

body[data-page="pro"] .pro-market-list th:nth-child(1) {
  width: 44px;
  padding: 0;
}

body[data-page="pro"] .pro-market-list th:nth-child(2) {
  width: 29%;
  text-align: left;
}

body[data-page="pro"] .pro-market-list th:nth-child(3) {
  width: 158px;
  text-align: center;
}

body[data-page="pro"] .pro-market-list tbody tr {
  height: 72px;
  cursor: pointer;
}

body[data-page="pro"] .pro-market-list tbody td {
  height: 72px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: middle;
}

body[data-page="pro"] .pro-market-list tbody tr:hover td {
  background: var(--surface-2);
}

body[data-page="pro"] .pro-market-list .pro-star-cell {
  width: 44px;
  padding: 0;
  text-align: center;
}

body[data-page="pro"] .pro-fav-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-4);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

body[data-page="pro"] .pro-fav-btn.on {
  color: #f0a30b;
}

body[data-page="pro"] .pro-stock-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-align: left;
}

body[data-page="pro"] .pro-row-logo {
  position: relative;
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

body[data-page="pro"] .pro-row-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 5px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
}

body[data-page="pro"] .pro-row-logo.has-image {
  background: #ffffff;
}

body[data-page="pro"] .pro-row-logo.has-image .pro-row-logo-letter {
  display: none;
}

body[data-page="pro"] .pro-row-logo-indices {
  background: #eaf8f4;
  color: #13745b;
  font-size: 8px;
}

body[data-page="pro"] .pro-row-logo-bonds {
  background: #eef4ff;
  color: #305f9e;
  font-size: 8px;
}

body[data-page="pro"] .pro-row-logo-hk {
  background: #fff7e8;
  color: #9a6700;
  font-size: 9px;
}

body[data-page="pro"] .pro-row-logo-funds {
  background: #f4efff;
  color: #6946a3;
  font-size: 8px;
}

body[data-page="pro"] .pro-row-logo-futures {
  background: #fff2e8;
  color: #a34d16;
  font-size: 8px;
  letter-spacing: -0.4px;
}

body[data-page="pro"] .pro-row-logo-options {
  background: #eef7ff;
  color: #245f95;
  font-size: 8px;
}

body[data-page="pro"] .pro-stock-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

body[data-page="pro"] .pro-stock-link b {
  flex: 0 0 auto;
  max-width: 132px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="pro"] .pro-stock-link span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="pro"] .pro-trend-cell {
  padding: 0 10px !important;
  text-align: center;
}

body[data-page="pro"] .pro-mini-trend {
  display: block;
  width: 150px;
  height: 38px;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
}

body[data-page="pro"] .pro-market-list td.num {
  font-size: 14px;
  font-weight: 650;
  text-align: right;
}

body[data-page="pro"] .pro-market-list td.is-up {
  color: var(--up) !important;
}

body[data-page="pro"] .pro-market-list td.is-down {
  color: var(--down) !important;
}

@media (max-width: 760px) {
  .pro-page {
    padding: 8px 8px 24px;
  }

  .pro-title-card {
    align-items: flex-start;
    padding: 13px 12px;
  }

  .pro-title-card h1 {
    font-size: 21px;
  }

  .pro-title-card p {
    font-size: 10.5px;
  }

  .pro-source-top {
    padding: 6px 9px;
    font-size: 10px;
  }

  .pro-market-tabs {
    gap: 3px;
    margin: 7px 0;
    padding: 4px;
  }

  .pro-market-tabs a {
    min-height: 40px;
    font-size: 13.5px;
  }

  .pro-toolbar-card {
    padding: 8px;
  }

  .pro-toolbar {
    flex-wrap: wrap;
    gap: 7px;
  }

  .pro-search {
    flex-basis: calc(100% - 90px);
  }

  .pro-sort,
  .pro-option-asset {
    flex: 1 1 45%;
  }

  .pro-refresh {
    align-self: end;
  }

  .pro-summary-grid {
    gap: 6px;
    margin: 7px 0;
  }

  .pro-summary-card {
    padding: 8px 7px;
  }

  .pro-summary-card > b {
    font-size: 13px;
  }

  .pro-summary-card > small {
    font-size: 8.5px;
  }

  .pro-table-head {
    padding: 9px 10px 8px;
  }

  .pro-table-head h2 {
    font-size: 16px;
  }

  .pro-table-head p {
    font-size: 9.5px;
  }

  .pro-table {
    min-width: 820px;
    font-size: 11px;
  }

  .pro-options-table {
    min-width: 1360px;
  }

  .pro-table th,
  .pro-table td {
    padding: 7px 8px;
  }
}

/* 电脑端五个主行情详情页：放大正文和右侧数据 */
@media (min-width: 961px) {
  body[data-page="stock"] .page-head h1 {
    font-size: 31px;
  }

  body[data-page="stock"] #stockInfo {
    font-size: 15px;
  }

  body[data-page="stock"] .kline-symbol select {
    height: 38px;
    font-size: 14px;
  }

  body[data-page="stock"] #stockIntervals button {
    padding: 6px 11px;
    font-size: 15px;
  }

  body[data-page="stock"] #stockOhlc {
    font-size: 14.5px !important;
  }

  body[data-page="stock"] .legend,
  body[data-page="stock"] #stockTabs button {
    font-size: 16px;
  }

  body[data-page="stock"] .stock-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
  }

  body[data-page="stock"] .card-head h2 {
    font-size: 19px;
  }

  body[data-page="stock"] .card-head .desc {
    font-size: 12px;
  }

  body[data-page="stock"] .company-meta b {
    font-size: 18px;
  }

  body[data-page="stock"] .company-meta span {
    font-size: 14px;
  }

  body[data-page="stock"] .company-meta .tag {
    font-size: 12.5px;
  }

  body[data-page="stock"] .company-text {
    font-size: 15.5px;
    line-height: 1.85;
  }

  body[data-page="stock"] #stockTech .topic-item h4 {
    font-size: 15.5px;
  }

  body[data-page="stock"] #stockTech .topic-item p {
    font-size: 14px;
    line-height: 1.72;
  }

  body[data-page="stock"] #stockNewsList h4 {
    font-size: 16px;
  }

  body[data-page="stock"] #stockNewsList p {
    font-size: 14px;
    line-height: 1.7;
  }

  body[data-page="stock"] #stockNewsList .meta {
    font-size: 12px;
  }

  body[data-page="stock"] .stock-side .stock-stats .ss-row {
    padding: 7px 0 4px;
    font-size: 13.5px;
  }

  body[data-page="stock"] .stock-side .stock-stats .ss-row span {
    font-size: 13px;
  }

  body[data-page="stock"] .stock-side .stock-stats .ss-row b {
    font-size: 14.5px;
  }

  body[data-page="stock"] .hot-item {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  body[data-page="stock"] .hot-id b,
  body[data-page="stock"] .hot-px b {
    font-size: 15px;
  }

  body[data-page="stock"] .hot-id i,
  body[data-page="stock"] .hot-px i {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .pro-title-card p {
    display: none;
  }

  .pro-source-top {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pro-market-tabs a {
    font-size: 12.5px;
  }
}

/* 中国流动性卡片：压缩行距与上下留白 */
.fd-liquidity-panel .fd-panel-head {
  padding: 7px 10px 6px;
}

.fd-liquidity-panel .fd-panel-body {
  padding: 5px 10px 7px;
}

.fd-liquidity-panel .fd-liquidity-list {
  gap: 0;
}

.fd-liquidity-panel .fd-liquidity-row {
  gap: 3px 6px;
  padding: 2px 0;
}

.fd-liquidity-panel .fd-liquidity-row > span b {
  font-size: 11px;
  line-height: 1.28;
}

.fd-liquidity-panel .fd-liquidity-row > span small {
  margin-top: 0;
  font-size: 8px;
  line-height: 1.2;
}

.fd-liquidity-panel .fd-liquidity-row > strong {
  font-size: 12.5px;
  line-height: 1.25;
}

.fd-liquidity-panel .fd-liquidity-row > em {
  font-size: 8.5px;
  line-height: 1.2;
}

.fd-liquidity-panel .fd-note {
  display: -webkit-box;
  margin: 1px 0 0;
  overflow: hidden;
  font-size: 8px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fd-liquidity-panel .fd-foot {
  margin-top: 1px;
  padding-top: 2px;
  font-size: 9px;
  line-height: 1.25;
}

@media (max-width: 640px) {
  .fd-liquidity-panel .fd-panel-head {
    padding: 6px 9px 5px;
  }

  .fd-liquidity-panel .fd-panel-body {
    padding: 4px 9px 6px;
  }

  .fd-liquidity-panel .fd-liquidity-row {
    gap: 1px 6px;
    padding: 1.5px 0;
  }

  .fd-liquidity-panel .fd-liquidity-row > em {
    min-width: 0;
  }
}

.pro-table th:first-child,
.pro-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--card);
  box-shadow: 1px 0 0 var(--line-2);
}

.pro-table th:first-child {
  z-index: 3;
  background: var(--bg);
}

.pro-option-cards {
  display: none;
}

@media (max-width: 760px) {
  .pro-options-desktop {
    display: none;
  }

  .pro-option-cards {
    display: grid;
    gap: 7px;
    padding: 8px;
  }

  .pro-option-card {
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 9px;
    background: var(--surface);
  }

  .pro-option-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 9px;
    border-bottom: 1px solid var(--line-2);
    color: inherit;
    text-decoration: none;
  }

  .pro-option-title b {
    color: var(--ink);
    font-size: 12px;
  }

  .pro-option-title span {
    flex: none;
    color: var(--ink-4);
    font-size: 9.5px;
  }

  .pro-option-sides {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pro-option-side {
    min-width: 0;
    padding: 7px 9px 8px;
  }

  .pro-option-side + .pro-option-side {
    border-left: 1px solid var(--line-2);
  }

  .pro-option-side.call {
    background: rgba(229, 72, 77, 0.035);
  }

  .pro-option-side.put {
    background: rgba(26, 160, 109, 0.035);
  }

  .pro-option-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
  }

  .pro-option-side-head b {
    font-size: 10.5px;
  }

  .pro-option-side-head span,
  .pro-option-main,
  .pro-option-pairs {
    font-size: 9px;
  }

  .pro-option-main {
    margin-top: 3px;
    color: var(--ink-4);
  }

  .pro-option-main b {
    color: var(--ink);
    font-size: 13px;
  }

  .pro-option-pairs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px 5px;
    margin-top: 3px;
    color: var(--ink-3);
  }
}

/* 电脑端：美联储、快讯、工具三个栏目放大正文 */
@media (min-width: 961px) {
  body[data-page="column"] .fed-dashboard-head h2 {
    font-size: 23px;
  }

  body[data-page="column"] .fed-dashboard-head > div > span,
  body[data-page="column"] #fedDashboardStatus {
    font-size: 13.5px !important;
    line-height: 1.6;
  }

  body[data-page="column"] .fed-dash-panel-head h3 {
    font-size: 18px;
  }

  body[data-page="column"] .fed-dash-panel-head > span,
  body[data-page="column"] .fed-policy-main > span,
  body[data-page="column"] .fed-policy-side span,
  body[data-page="column"] .fed-balance-item > span,
  body[data-page="column"] .fed-market-grid span {
    font-size: 13px;
    line-height: 1.55;
  }

  body[data-page="column"] .fed-policy-main > strong,
  body[data-page="column"] .fed-policy-side strong,
  body[data-page="column"] .fed-balance-item strong,
  body[data-page="column"] .fed-probability-row strong {
    font-size: 18px;
  }

  body[data-page="column"] .fed-policy-main > small,
  body[data-page="column"] .fed-policy-side small,
  body[data-page="column"] .fed-balance-item small,
  body[data-page="column"] .fed-balance-item em,
  body[data-page="column"] .fed-probability > small,
  body[data-page="column"] .fed-dash-foot,
  body[data-page="column"] .fed-dash-source {
    font-size: 12.5px !important;
    line-height: 1.55;
  }

  body[data-page="column"] .fed-dash-verdict {
    font-size: 14px;
    line-height: 1.7;
  }

  body[data-page="column"] .fed-dash-table {
    font-size: 14px;
  }

  body[data-page="column"] .fed-dash-table th {
    padding: 9px 10px;
    font-size: 12.5px;
    font-weight: 700;
  }

  body[data-page="column"] .fed-dash-table td {
    padding: 10px;
    line-height: 1.55;
  }

  body[data-page="column"] .fed-dash-note,
  body[data-page="column"] .fed-resource-item small {
    font-size: 12.5px;
    line-height: 1.6;
  }

  body[data-page="column"] .fed-resource-item {
    padding: 12px;
  }

  body[data-page="column"] .fed-resource-item b {
    font-size: 14px;
  }

  body[data-page="column"] .fed-resource-item span,
  body[data-page="column"] .fed-resource-item em {
    font-size: 12px;
  }

  body[data-page="column"] .flash-title {
    font-size: 16px;
  }

  body[data-page="column"] .flash-summary,
  body[data-page="column"] .fed-detail-content {
    font-size: 14.5px;
    line-height: 1.75;
  }

  body[data-page="column"] .flash-item-meta,
  body[data-page="column"] .flash-source,
  body[data-page="column"] .flash-impact {
    font-size: 13px;
    line-height: 1.6;
  }

  body[data-page="flash"] .page-head h1 {
    font-size: 30px;
  }

  body[data-page="flash"] .flash-title {
    font-size: 16.5px;
    line-height: 1.55;
  }

  body[data-page="flash"] .flash-summary {
    font-size: 14.5px;
    line-height: 1.72;
  }

  body[data-page="flash"] .flash-item-meta,
  body[data-page="flash"] .flash-source,
  body[data-page="flash"] .flash-impact {
    font-size: 13px;
    line-height: 1.6;
  }

  body[data-page="flash"] .sidebar .card-body,
  body[data-page="flash"] .sidebar .notice {
    font-size: 14px;
    line-height: 1.7;
  }

  body[data-page="tools"] .card-head h3 {
    font-size: 19px;
  }

  body[data-page="tools"] .calc-field {
    font-size: 14.5px;
  }

  body[data-page="tools"] .calc-field > span,
  body[data-page="tools"] .calc-out span {
    color: var(--ink-2);
    font-weight: 750;
  }

  body[data-page="tools"] .calc-field .text-input,
  body[data-page="tools"] .conv-pick select,
  body[data-page="tools"] .conv-amount {
    font-size: 15px;
  }

  body[data-page="tools"] .calc-field .text-input {
    min-height: 42px;
  }

  body[data-page="tools"] .calc-out span {
    font-size: 13.5px;
  }

  body[data-page="tools"] .calc-out b {
    font-size: 19px;
  }

  body[data-page="tools"] .calc-note,
  body[data-page="tools"] .conv-hint {
    font-size: 13.5px;
    line-height: 1.7;
  }

  body[data-page="tools"] .tool-copy {
    font-size: 13px;
  }
}
