/* 链研社数据看板 — LYS Tokens */

.db-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 80px;
}

.db-hero {
  padding: clamp(30px, 5vw, 52px) 0 20px;
}
.db-hero-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.db-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 18px;
}
.db-hero .eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--grad-line);
  border-radius: 2px;
}
.db-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
  color: var(--text-primary);
}
.db-hero h1 .accent {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.db-hero .lede {
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}
.db-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
  justify-content: flex-end;
  padding-bottom: 4px;
}
.db-meta-row .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-family: var(--mono);
  font-size: 11.5px;
}
.db-meta-row .pill.ok {
  border-color: color-mix(in srgb, var(--accent-call) 40%, var(--border));
  color: var(--accent-call);
}
.db-meta-row .pill.wait {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
}

/* 今日：结论 → 跨资产脉冲 → 下一催化 */
.db-overview {
  display: grid;
  gap: 20px;
}
.db-section-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--accent-2);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.db-decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.db-decision h2 {
  max-width: 18em;
  margin: 0;
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.22;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.db-decision-copy > p {
  max-width: 66ch;
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}
.db-decision-updated {
  margin-top: 14px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11.5px;
}
.db-score {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 150px;
  padding-left: clamp(18px, 3vw, 32px);
  border-left: 1px solid var(--border);
  text-align: center;
}
.db-score strong {
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: clamp(58px, 8vw, 82px);
  font-weight: 700;
  line-height: .95;
  font-variant-numeric: tabular-nums;
}
.db-score span {
  margin-top: 12px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}
.db-overview-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 12px;
}
.db-overview-section-head h2,
.db-catalyst-header h2,
.db-data-header h2,
.db-week-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
}
.db-overview-section-head > p {
  max-width: 38ch;
  margin: 0 0 2px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: right;
}
.db-pulse-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.db-pulse-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(110px, .7fr) 88px;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
}
.db-pulse-row:last-child {
  border-bottom: 0;
}
.db-pulse-market {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.db-pulse-market strong {
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 17px;
}
.db-pulse-market span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-pulse-value {
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.db-pulse-change {
  justify-self: end;
  min-width: 72px;
  padding: 5px 8px;
  border-radius: var(--radius-full);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.db-pulse-change.up {
  color: var(--accent-call);
  background: color-mix(in srgb, var(--accent-call) 11%, transparent);
}
.db-pulse-change.down {
  color: var(--accent-put);
  background: color-mix(in srgb, var(--accent-put) 10%, transparent);
}
.db-pulse-change.flat {
  color: var(--text-muted);
  background: var(--bg-tertiary);
}
.db-catalysts {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.db-catalyst-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 15px;
}
.db-catalyst-header > p {
  max-width: 32em;
  margin: 0 0 3px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}
.db-catalyst-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.db-catalyst-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-secondary) 48%, var(--bg-card));
}
.db-catalyst-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 10.5px;
}
.db-catalyst-meta > span {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: .1em;
}
.db-catalyst-meta time {
  font-family: var(--mono);
  text-align: right;
}
.db-catalyst-card h3 {
  margin: 9px 0 13px;
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.32;
}

.db-catalyst-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
  margin: 12px 0 2px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-card));
}

.db-catalyst-option > span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.db-catalyst-option > strong {
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1;
}

.db-catalyst-option > small,
.db-catalyst-option > em {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.db-catalyst-option a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.db-catalyst-option.unavailable {
  border-color: var(--border);
  background: var(--bg-tertiary);
}

.db-catalyst-option.unavailable > strong {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}
.db-catalyst-option.estimated {
  border-style: dashed;
  background: color-mix(in srgb, var(--accent) 4%, var(--bg-card));
}
.db-catalyst-option.estimated > strong { color: var(--text-primary); }
.db-catalyst-context {
  display: grid;
  gap: 0;
  margin: 0;
}
.db-catalyst-context > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border-light);
}
.db-catalyst-context dt {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.db-catalyst-context dd {
  min-width: 0;
  margin: 0;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.65;
}
.db-catalyst-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}
.db-catalyst-empty strong,
.db-catalyst-empty span {
  display: block;
}
.db-catalyst-empty strong {
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 18px;
}
.db-catalyst-empty span {
  margin-top: 4px;
  font-size: 12px;
}
.db-basis {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--bg-secondary) 58%, var(--bg-card));
}
.db-basis summary {
  min-height: 48px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.db-basis-list {
  border-top: 1px solid var(--border);
}
.db-basis-row {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1.4fr) 54px;
  gap: 16px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12.5px;
}
.db-basis-row strong {
  color: var(--text-primary);
  font-weight: 600;
}
.db-basis-row small {
  color: var(--accent-2);
  font-family: var(--mono);
  text-align: right;
}
.db-basis-note {
  margin: 0;
  padding: 13px 18px;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.6;
}

/* 美股回调风险：综合分头 + 因子明细（复用 .db-basis-row 分项行） */
/* 分项行是三列（名称/说明/得分），综合卡需要更宽才不挤：桌面跨 2 列 */
.db-card.db-risk-card {
  grid-column: span 2;
}
@media (max-width: 900px) {
  .db-card.db-risk-card { grid-column: span 2; }
}
@media (max-width: 560px) {
  .db-card.db-risk-card { grid-column: span 1; }
}
.db-risk-card .db-card-main {
  padding-top: 2px;
}
/* 卡头自带下边框做分隔；再叠加 .db-basis-list 的上边框会出现两条平行线（今日页 gauge 无卡头边框，仍需该上边框） */
.db-risk-card .db-basis-list {
  border-top: 0;
}
.db-risk-head {
  padding: 12px 18px 10px;
  border-bottom: 1px solid var(--border-light);
}
.db-risk-score-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.db-risk-score {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.db-risk-unit {
  color: var(--text-muted);
  font-size: 12px;
}
.db-risk-level {
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.db-risk-score.is-calm,
.db-risk-score.is-low,
.db-risk-level.is-calm,
.db-risk-level.is-low {
  color: var(--accent-call);
}
.db-risk-level.is-calm {
  border-color: color-mix(in srgb, var(--accent-call) 40%, var(--border));
  background: color-mix(in srgb, var(--accent-call) 10%, transparent);
}
.db-risk-level.is-low {
  border-color: color-mix(in srgb, var(--accent-call) 30%, var(--border));
}
.db-risk-score.is-neutral,
.db-risk-level.is-neutral {
  color: var(--accent);
}
.db-risk-score.is-elevated,
.db-risk-score.is-high,
.db-risk-level.is-elevated,
.db-risk-level.is-high {
  color: var(--accent-put);
}
.db-risk-level.is-elevated {
  border-color: color-mix(in srgb, var(--accent-put) 40%, var(--border));
  background: color-mix(in srgb, var(--accent-put) 8%, transparent);
}
.db-risk-level.is-high {
  border-color: color-mix(in srgb, var(--accent-put) 55%, var(--border));
  background: color-mix(in srgb, var(--accent-put) 14%, transparent);
}
.db-risk-score.is-unknown,
.db-risk-level.is-unknown {
  color: var(--text-muted);
}
.db-risk-flag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--accent-put);
  border: 1px solid color-mix(in srgb, var(--accent-put) 45%, var(--border));
  background: color-mix(in srgb, var(--accent-put) 10%, transparent);
}
.db-risk-sub {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 11.5px;
}
.db-basis-row.is-na strong {
  color: var(--text-muted);
  font-weight: 400;
}
.db-today-skeleton {
  display: grid;
  gap: 16px;
}
.db-today-skeleton span {
  display: block;
  min-height: 140px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  animation: db-pulse-loading 1.4s ease-in-out infinite alternate;
}
@keyframes db-pulse-loading {
  from { opacity: .48; }
  to { opacity: .9; }
}

/* 今日：恢复原市场状态仪表盘，并把真实的当日事件和跨资产读数放在同一视图。 */
.db-today-grid {
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.db-status-card,
.db-today-focus {
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.db-status-card {
  display: flex;
  min-height: 374px;
  padding: 26px 22px 22px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.db-status-card .gauge-cap {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
}
.db-status-card .gauge-ring {
  width: 220px;
}
.db-status-card .gauge-score {
  margin-top: 6px;
  font-size: 48px;
  font-weight: 700;
}
.db-status-card .gauge-level {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 19px;
}
.db-status-card .gauge-asof {
  max-width: 26em;
  margin-top: 12px;
  line-height: 1.65;
}
.db-today-focus {
  overflow: hidden;
  padding: 24px;
}
.db-focus-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.db-focus-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
}
.db-focus-header time {
  margin-bottom: 3px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
}
.db-focus-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.db-focus-event,
.db-focus-empty {
  min-height: 118px;
  padding: 14px 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 5%, var(--bg-card));
}
.db-focus-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.db-focus-event h3 {
  margin: 7px 0 3px;
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
}
.db-focus-event p {
  margin: 0;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 12px;
}
.db-focus-event small {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.5;
}
.db-focus-empty {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.db-focus-empty strong {
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 20px;
}
.db-focus-empty span {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
}
.db-focus-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
}
.db-focus-metric {
  display: grid;
  min-width: 0;
  padding: 13px 12px;
  border-right: 1px solid var(--border);
}
.db-focus-metric:last-child {
  border-right: 0;
}
.db-focus-metric > span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-focus-metric > strong {
  overflow: hidden;
  margin-top: 5px;
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 22px);
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-focus-change {
  margin-top: 4px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10.5px;
}
.db-focus-change.up { color: var(--accent-call); }
.db-focus-change.down { color: var(--accent-put); }
.db-focus-reading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  align-items: baseline;
  margin-top: 16px;
}
.db-focus-reading > span {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.db-focus-reading > strong {
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 17px;
}
.db-focus-reading > p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.65;
}
.db-today-news {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.db-news-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}
.db-news-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.2;
}
.db-news-header > p {
  margin: 0 0 3px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11px;
}
.db-news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.db-news-item {
  min-width: 0;
  padding: 17px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.db-news-item:nth-child(even) {
  border-right: 0;
}
.db-news-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.db-news-list:has(> .db-news-item:last-child:nth-child(odd)) .db-news-item:nth-last-child(2) {
  border-bottom: 1px solid var(--border);
}
.db-news-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
}
.db-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 10.5px;
}
.db-news-meta > span {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: .1em;
}
.db-news-meta time {
  font-family: var(--mono);
}
.db-news-item h3 {
  margin: 9px 0 7px;
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
}
.db-news-item > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.65;
}
.db-news-item > ul {
  margin: 9px 0 0;
  padding-left: 1.2em;
  color: var(--text-secondary);
  font-size: 11.5px;
  line-height: 1.55;
}
.db-news-item > small {
  display: block;
  margin-top: 11px;
  color: var(--text-muted);
  font-size: 10.5px;
}
.db-news-item > small a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.db-news-empty {
  display: flex;
  grid-column: 1 / -1;
  min-height: 94px;
  padding: 17px 18px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.db-news-empty strong {
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 18px;
}
.db-news-empty span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

/* 全部数据：一级阅读入口下的四类完整指标 */
.db-data-header,
.db-week-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}
.db-data-header > p,
.db-week-header > p {
  max-width: 48ch;
  margin: 0 0 3px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: right;
}
.db-data-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.db-data-tab {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.db-data-tab:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.db-data-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--bg-card));
  color: var(--accent-2);
}
.db-data-panel[hidden] {
  display: none !important;
}
.db-data-panel.is-active {
  display: block;
}

/* AI 周期雷达 · 美股简要卡 */
.ai-cycle-summary {
  margin: 0 0 20px;
}
.ac-mini-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
}
.ac-mini-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ac-mini-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.ac-mini-regime {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.ac-mini-regime[data-id="expansion"] { color: var(--accent-call, #2d6a4f); }
.ac-mini-regime[data-id="valuation_froth"],
.ac-mini-regime[data-id="compute_indigestion"] { color: var(--accent, #b8763a); }
.ac-mini-cta {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  white-space: nowrap;
}
.ac-mini-lights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.ac-mini-light {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.ac-mini-light::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}
.ac-mini-light[data-light="green"]::before { background: #1b7a4e; }
.ac-mini-light[data-light="yellow"]::before { background: #c9a227; }
.ac-mini-light[data-light="red"]::before { background: #c45c26; }
.ac-mini-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.ac-mini-metrics-rich {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .ac-mini-metrics-rich {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .ac-mini-metrics-rich {
    grid-template-columns: 1fr 1fr;
  }
}
.ac-mini-metrics .k {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.ac-mini-metrics .v {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.ac-mini-metrics .v small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}
.ac-mini-reason {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 52ch;
}
.ac-mini-light-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ac-mini-asof {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* Next watch banner */
.db-next-watch {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent),
    var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.db-next-watch.is-pending {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent),
    var(--bg-card);
}
.db-next-watch.is-released {
  border-color: color-mix(in srgb, var(--accent-call) 50%, var(--border));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent-call) 14%, transparent), transparent),
    var(--bg-card);
}
.db-next-watch .nw-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.db-next-watch.is-released .nw-kicker {
  color: var(--accent-call);
}
.db-next-watch .nw-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.db-next-watch .nw-date {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-2);
}
.db-next-watch .nw-headline {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.db-next-watch .nw-headline-lab {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}
.db-next-watch .nw-pub-value {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.db-next-watch .nw-next-up {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.db-next-watch .nw-next-up strong {
  color: var(--text-primary);
  font-weight: 700;
}
.db-next-watch .nw-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.db-next-watch .nw-multi em {
  font-style: normal;
  color: var(--text-muted);
  margin-right: 6px;
}
.db-next-watch .nw-multi strong {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 16px;
  color: var(--text-primary);
}
.db-next-watch .nw-desc {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 720px;
}
.release-grid .rv-current.is-today {
  border-color: color-mix(in srgb, var(--accent-call) 45%, var(--border));
  background: color-mix(in srgb, var(--accent-call) 10%, var(--bg-tertiary));
}
.release-grid .rv-val.is-bold-pub {
  font-size: 20px;
  font-weight: 800;
}
.db-card.card-released-today {
  border-color: color-mix(in srgb, var(--accent-call) 40%, var(--border));
}
.db-card.card-flash {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.release-grid .rv-current.is-flash {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-tertiary));
}
.release-flash-note {
  font-size: 11px;
  color: var(--text-muted);
  margin: 6px 0 2px;
  line-height: 1.4;
}
.fed-countdown {
  margin-top: 4px;
}
.fed-countdown strong {
  color: var(--accent);
  font-weight: 800;
}
.release-grid .rv-val .eps-tag {
  vertical-align: middle;
  margin-left: 4px;
}

/* Tabs */
.db-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 0 28px;
  padding: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: 100%;
}
.db-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  transition: background .2s, color .2s, box-shadow .2s;
  cursor: pointer;
  white-space: nowrap;
}
.db-tab:hover { color: var(--text-primary); }
.db-tab[aria-selected="true"] {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.db-gate {
  display: none;
  text-align: center;
  padding: 56px 28px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-4xl);
  margin-bottom: 24px;
}
.db-gate.is-visible { display: block; }
.db-gate h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 10px;
}
.db-gate p {
  margin: 0 auto;
  max-width: 480px;
  color: var(--text-secondary);
  font-size: 14px;
}

.db-panel { display: none; }
.db-panel.is-active { display: block; }
.db-panel[hidden] { display: none !important; }

/* 首屏 week 数据到达前先占住视口，避免页尾导读被整块向下推造成 CLS。 */
#week-root[aria-busy="true"] {
  min-height: clamp(520px, 70vh, 720px);
}

.db-section-head {
  margin-bottom: 16px;
}
.db-section-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0;
  color: var(--text-primary);
}

.db-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  /* 同行底边对齐，整体整齐 */
  align-items: stretch;
}
@media (max-width: 900px) {
  .db-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .db-grid { grid-template-columns: 1fr; }
}

/*
 * 卡片三段式：标题 / 主内容 / 脚注
 * - 同行等高（stretch）保证整齐
 * - 主内容区 flex:1，多余空间均匀落在内容与脚注之间，而不是「数值下方一块空」
 * - 解读文案限 2 行，避免一行里某张卡过高把整行撑开
 */
.db-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px 15px 12px;
  box-shadow: var(--shadow-sm);
  overflow: visible;
  min-height: 124px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color .2s, box-shadow .2s;
}
.db-card-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  /* 数值块在「标题—脚注」之间垂直居中，留白上下均分，不会像贴顶后空一大截 */
  justify-content: center;
  gap: 4px;
  min-height: 2.75rem;
  padding: 2px 0 4px;
}
.db-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--grad-line);
  border-radius: 3px 0 0 3px;
  opacity: .9;
}
.db-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: var(--shadow-md);
}
.db-card.is-next-focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), var(--shadow-md);
}
.db-focus-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--grad-warm);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  padding-left: 6px;
  position: relative;
  flex: 0 0 auto;
}
.db-card .label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.2px;
  line-height: 1.3;
  font-family: var(--serif);
}
.db-tip-btn {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: help;
}
.db-tip-btn:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-card));
}
/* 挂 tip 的父级：与宏观卡片 .label-row 一样，absolute 气泡出现在悬停下方 */
.db-tip-host,
.label-row {
  position: relative;
}
.db-tip-pop {
  display: none;
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 8px);
  width: min(280px, 72vw);
  z-index: 40;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre-line;
  text-align: left;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
/* 卡片标题行：? 在右侧，气泡右对齐更自然 */
.label-row > .db-tip-pop {
  left: auto;
  right: 0;
  top: 28px;
}
.db-tip-pop.open { display: block; }
.db-tip-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
/* 策略表头：悬停显示列说明 */
.db-tip-label {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted color-mix(in srgb, var(--text-muted) 70%, transparent);
  outline: none;
}
.db-tip-label:hover,
.db-tip-label:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* 衍生品策略表头 tip：fixed 挂 body，避免 overflow 裁切 */
.db-tip-pop.is-fixed {
  position: fixed;
  right: auto;
  transform: none;
  z-index: 200;
  max-height: min(50vh, 280px);
  overflow: auto;
}

.db-card .value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding-left: 6px;
  margin-bottom: 2px;
  flex: 0 0 auto;
}
.db-card .value {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.12;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
}
.db-card .unit {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}
.db-card .chg {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.db-card .chg.up {
  color: var(--accent-call);
  background: color-mix(in srgb, var(--accent-call) 12%, transparent);
}
.db-card .chg.down {
  color: var(--accent-put);
  background: color-mix(in srgb, var(--accent-put) 12%, transparent);
}
.db-card .chg.flat {
  color: var(--text-muted);
  background: var(--bg-tertiary);
}
.db-card .extra {
  padding-left: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.4;
  flex: 0 0 auto;
}
.db-card .extra.muted { color: var(--text-muted); font-size: 11.5px; }
.db-card .foot {
  /* 固定在卡片底部；主内容区吃掉中间弹性空间 */
  margin-top: 0;
  padding: 10px 0 0 6px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 0 0 auto;
}
.db-card .foot .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2px;
}
.db-card .der-inline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.db-card .der-inline-meta .muted {
  color: var(--text-muted);
  font-size: 11.5px;
}
.db-card .der-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.db-card .der-pill.sig-sell {
  color: var(--accent-call);
  border-color: color-mix(in srgb, var(--accent-call) 40%, var(--border));
  background: color-mix(in srgb, var(--accent-call) 10%, transparent);
}
.db-card .der-pill.sig-caution {
  color: var(--accent-put);
  border-color: color-mix(in srgb, var(--accent-put) 40%, var(--border));
  background: color-mix(in srgb, var(--accent-put) 10%, transparent);
}
.db-card .der-pill.sig-neutral {
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}

/* Release triple */
.release-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-left: 6px;
  margin-bottom: 10px;
}
.release-grid .rv {
  text-align: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 10px 4px 8px;
  border: 1px solid var(--border-light);
}
.release-grid .rv-val {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.release-grid .rv-lab {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.release-next {
  padding-left: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}
.release-next strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Fed monitor */
.fed-meeting {
  padding-left: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.fed-probs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-left: 6px;
  margin-bottom: 8px;
}
.fed-probs .fp {
  text-align: center;
  border-radius: var(--radius-md);
  padding: 12px 4px;
  border: 1px solid var(--border-light);
  background: var(--bg-tertiary);
}
.fed-probs .fp-val {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
}
.fed-probs .fp-lab {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.fed-probs .cut .fp-val { color: var(--accent-call); }
.fed-probs .hold .fp-val { color: var(--text-primary); }
.fed-probs .hike .fp-val { color: var(--accent-put); }
.db-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Long / short — MHT style bar */
.ls-compare {
  display: flex;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  margin: 4px 0 10px 6px;
  font-size: 13px;
  font-weight: 700;
}
.ls-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 10px;
  min-width: 0;
  color: #fff;
}
.ls-side.long {
  background: var(--accent-call);
}
.ls-side.short {
  background: var(--accent-put);
  justify-content: flex-end;
}

/* Fear & greed — SVG 半环（alternative.me：左红→右绿） */
.fg-wrap {
  padding: 2px 4px 0;
}
.fg-now {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 4px;
}
.fg-now em {
  font-style: normal;
  color: #ea8c00;
}
.fg-svg {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}
.fg-scale {
  display: flex;
  justify-content: space-between;
  max-width: 220px;
  margin: 0 auto;
  padding: 0 12px;
  font-size: 11px;
  color: var(--text-muted);
}
.fg-scale .c-red { color: #ea3943; font-weight: 600; }
.fg-scale .c-green { color: #16c784; font-weight: 600; }
html[data-theme="dark"] .fg-svg circle[fill="#c5ccd4"] {
  fill: #4a4238;
}
html[data-theme="dark"] .fg-svg text[fill="#6b7280"] {
  fill: #c9b894;
}

/* Market share stacked bar (BTC / ETH / Stable / Others) */
.card-ms.wide-2 {
  grid-column: span 2;
}
@media (max-width: 560px) {
  .card-ms.wide-2 { grid-column: span 1; }
}
.ms-bar {
  display: flex;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 6px 14px;
  background: var(--bg-tertiary);
  box-shadow: inset 0 0 0 1px var(--border-light);
}
.ms-seg {
  display: block;
  min-width: 2px;
  height: 100%;
}
.ms-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 10px;
  padding: 0 6px 4px;
}
@media (max-width: 720px) {
  .ms-legend { grid-template-columns: repeat(2, 1fr); }
}
.ms-item {
  min-width: 0;
}
.ms-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.ms-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.ms-pct {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

/* Probs */
.probs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-left: 6px;
  margin-bottom: 8px;
}
.prob {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-tertiary);
  padding: 14px 10px;
  text-align: center;
}
.prob-val {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
}
.prob.up .prob-val { color: var(--accent-call); }
.prob.down .prob-val { color: var(--accent-put); }
.prob-lab {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Chips for BTC / cycle */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 6px;
  margin-bottom: 8px;
}
.chip {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}
.chip.btc {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.chip.bottom {
  color: var(--accent-call);
  border-color: color-mix(in srgb, var(--accent-call) 40%, var(--border));
  background: color-mix(in srgb, var(--accent-call) 10%, transparent);
}
.chip.top {
  color: var(--accent-put);
  border-color: color-mix(in srgb, var(--accent-put) 40%, var(--border));
  background: color-mix(in srgb, var(--accent-put) 10%, transparent);
}
.chip.mid {
  color: var(--text-muted);
}
.chip.bull {
  color: var(--accent-call);
  border-color: color-mix(in srgb, var(--accent-call) 40%, var(--border));
  background: color-mix(in srgb, var(--accent-call) 10%, transparent);
}
.chip.bear {
  color: var(--accent-put);
  border-color: color-mix(in srgb, var(--accent-put) 40%, var(--border));
  background: color-mix(in srgb, var(--accent-put) 10%, transparent);
}

.guide {
  margin: 4px 0 0 6px;
  padding: 6px 9px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--bg-tertiary) 85%, var(--bg-card));
  border-left: 2px solid color-mix(in srgb, var(--accent) 70%, var(--border));
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  flex: 0 0 auto;
  /* 限高，防止单卡解读把整行撑得过高 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* 回调风险分项卡：说明文字本身就是判读依据（含动量等数值），不能用全局 2 行截断成半句 */
.db-card[data-id="market_breadth"] .guide,
.db-card[data-id="spx_trend"] .guide,
.db-card[data-id="vix_term"] .guide,
.db-card[data-id="hy_oas"] .guide {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

/* 双值小格（主流合约 OI / 成交量）更紧凑 */
.db-card .release-grid {
  margin-bottom: 4px;
}
.db-card .release-grid .rv-val {
  font-size: 18px;
}
.db-card .release-grid .rv-lab {
  font-size: 11px;
  margin-top: 2px;
}

/* 全市场合约：双列卡片，数值 / 涨跌 / 标签分行，避免 B 与 -0.xx% 挤乱 */
.contract-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
}
.contract-cell {
  text-align: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 6px 8px;
  min-width: 0;
}
.contract-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
}
.contract-num .unit {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.contract-cell .rv-chg,
.contract-cell .chg {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
  white-space: nowrap;
}
.contract-lab {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* 各 Tab 顶部：数据总评（投资判断） */
.db-panel-lede {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border-light));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-card));
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 500;
}
.db-reading-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  border-radius: var(--radius-xl);
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 58%),
    var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.db-reading-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
}
.db-reading-card h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 20px;
}
.db-reading-card p {
  max-width: 68ch;
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}
.db-reading-link {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.db-reading-link:hover {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 640px) {
  .db-reading-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }
}
.db-section-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 72ch;
}

/* 综合市场状态：方法说明用小字 */
.gauge-note-sm {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 42ch;
}

/* 特殊卡：恐惧贪婪等本身内容多，允许略高 */
.db-card.card-fg,
.db-card.card-ms,
.db-card.wide-2 {
  min-height: 124px;
}

.miner-range {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 8px 6px 4px;
}
.miner-range .mr-val {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
}
.miner-range .mr-sep {
  color: var(--text-muted);
  font-size: 16px;
}
.profit-n {
  color: var(--accent-call);
}

.db-next-watch .nw-meta {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-family: var(--mono);
}

.db-skel .value {
  width: 48%;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-tertiary), var(--bg-hover), var(--bg-tertiary));
  background-size: 200% 100%;
  animation: db-shimmer 1.2s ease-in-out infinite;
  color: transparent;
}
@keyframes db-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* night logo 透明底，无需额外描边 */
body:has([data-portal-host]) { padding-top: 56px; }
body:has([data-portal-host]) > header.ls-topbar { display: none !important; }

/* —— 衍生品面板 —— */
.db-section-desc {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 720px;
}
.der-block { margin-top: 8px; }
.der-opt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.der-currency-tabs,
.der-risk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.der-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.der-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--text-primary);
}
.der-chip.is-on {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-card));
  color: var(--accent);
}
.der-thesis {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.der-thesis.sig-sell {
  border-color: color-mix(in srgb, var(--accent-call) 45%, var(--border));
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-call) 10%, transparent), transparent), var(--bg-card);
}
.der-thesis.sig-caution {
  border-color: color-mix(in srgb, var(--accent-put) 45%, var(--border));
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-put) 10%, transparent), transparent), var(--bg-card);
}
.der-thesis.sig-neutral {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.der-thesis-kicker {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.der-thesis p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-primary);
}
.der-bullets {
  margin: 10px 0 0;
  padding-left: 1.15em;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.der-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--border);
}
.der-pill.sig-sell {
  color: var(--accent-call);
  border-color: color-mix(in srgb, var(--accent-call) 40%, var(--border));
}
.der-pill.sig-caution {
  color: var(--accent-put);
  border-color: color-mix(in srgb, var(--accent-put) 40%, var(--border));
}
.der-mini-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.der-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.der-row span:first-child {
  color: var(--text-primary);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pain-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.pain-bar {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-family: var(--mono);
}
.pain-bar .pb-lab { color: var(--text-muted); text-align: right; }
.pain-bar .pb-fill {
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 55%, var(--border));
}
.pain-bar.is-mp .pb-fill {
  background: var(--accent);
}
.pain-bar.is-mp .pb-lab {
  color: var(--accent);
  font-weight: 700;
}
.der-table-head,
.der-table-row {
  display: grid;
  grid-template-columns: minmax(120px, 2fr) repeat(6, minmax(48px, 1fr));
  gap: 8px;
  font-size: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.der-table-head {
  color: var(--text-muted);
  font-weight: 700;
  border-bottom-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}
.der-table-row .mono {
  font-family: var(--mono);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.der-strategy-block {
  margin: 14px 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow-x: auto;
}
.der-strategy-block h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-primary);
}
.der-why {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.der-banner.caution {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent-put) 40%, var(--border));
  background: color-mix(in srgb, var(--accent-put) 8%, var(--bg-card));
  color: var(--text-primary);
  font-size: 13px;
}
.der-disclaimer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.der-learn-links {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.der-learn-link {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.der-learn-link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-2, var(--accent));
}
.der-learn-link[target="_blank"]::after {
  content: " ↗";
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}
.der-interp {
  display: inline;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.55;
}
.der-trades-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow-x: auto;
  padding: 4px 12px 8px;
}
.der-trade-head,
.der-trade-row {
  display: grid;
  grid-template-columns: minmax(140px, 2fr) 0.7fr 1fr 0.9fr 0.7fr 1fr;
  gap: 8px;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
  align-items: center;
}
.der-trade-head-compact,
.der-trade-row-compact {
  grid-template-columns: minmax(140px, 2.2fr) 0.7fr 1fr 0.9fr 1.1fr;
}
.der-trade-head {
  color: var(--text-muted);
  font-weight: 700;
  border-bottom-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}
.der-trade-row .mono {
  font-family: var(--mono);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .der-trade-head,
  .der-trade-row {
    grid-template-columns: minmax(100px, 1.5fr) 0.6fr 1fr 1fr;
  }
  .der-trade-head span:nth-child(n+5),
  .der-trade-row span:nth-child(n+5) {
    display: none;
  }
}
.db-card .tag {
  display: inline-block;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
}
@media (max-width: 720px) {
  .der-table-head,
  .der-table-row {
    grid-template-columns: minmax(100px, 1.6fr) repeat(3, minmax(40px, 1fr));
  }
  .der-table-head span:nth-child(n+5),
  .der-table-row span:nth-child(n+5) {
    display: none;
  }
}

/* —— 本周关注 / 美股 —— */
.db-section-note {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 640px;
}
.wk-hero {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 22px;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  /* 允许 gauge/因子 tip 溢出卡片下缘展示 */
  overflow: visible;
}
.gauge { text-align: center; }
.gauge-cap {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  /* tip 较宽时不把整列撑爆 */
  max-width: 100%;
}
.gauge-cap .db-tip-pop {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  text-align: left;
  letter-spacing: 0;
  font-weight: 400;
  z-index: 50;
}
.wk-table th .db-tip-btn {
  vertical-align: middle;
  margin-left: 4px;
}
.gauge-ring { width: 200px; max-width: 100%; height: auto; margin: 0 auto; display: block; }
.gauge-score {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin-top: 4px;
  color: var(--text-primary);
}
.gauge-level {
  font-weight: 800;
  margin-top: 4px;
  color: var(--accent);
}
.gauge-asof {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}
.factors { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.factor-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 4px;
}
.factor-top .fn {
  position: relative;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.factor-top .fn .db-tip-pop {
  left: 0;
  right: auto;
  z-index: 50;
  letter-spacing: 0;
  font-weight: 400;
}
.factor-top .fv { color: var(--text-muted); text-align: right; }
.factor-bar {
  height: 7px;
  background: var(--bg-tertiary);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.factor-fill {
  height: 100%;
  background: var(--grad-warm);
  border-radius: 999px;
}
.wk-section { margin-bottom: 22px; }
.wk-section h2 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-primary);
}
.wk-section h2 .tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
}
.wk-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.wk-table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-radius: var(--radius-xl);
  -webkit-overflow-scrolling: touch;
}
.wk-table th,
.wk-table td {
  text-align: left;
  padding: 11px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}
.wk-table th {
  background: var(--bg-secondary);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.wk-table tr:last-child td { border-bottom: none; }
.wk-table .tk { font-weight: 800; }
.wk-table .co { color: var(--text-muted); font-size: 12px; }
.wk-table .imp { letter-spacing: 1px; }
.wk-table .imp .on { color: var(--accent); }
.wk-table .imp .off { color: var(--border); }
.wk-table .bm { color: var(--accent-put); font-weight: 700; }
.wk-table .amc { color: var(--accent-call); font-weight: 700; }
.wk-table .time-unk { color: var(--text-muted); font-weight: 600; }
.wk-table .rx { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 涨/好于预期=绿，跌/差于预期=红（call=绿 put=红） */
.wk-table .rx-up { color: var(--accent-call); }
.wk-table .rx-down { color: var(--accent-put); }
.wk-table .rx-flat { color: var(--text-muted); }
.wk-table .rx-wait { color: var(--text-muted); font-weight: 600; }
.wk-option-move {
  display: inline-grid;
  gap: 2px;
  min-width: 78px;
  white-space: nowrap;
}
.wk-option-move strong {
  color: var(--accent);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.wk-option-move small,
.wk-option-empty {
  color: var(--text-muted);
  font-size: 11px;
}
.wk-option-move a { text-decoration: none; }
.wk-option-move a:hover { text-decoration: underline; text-underline-offset: 2px; }
.wk-option-move.estimated strong { color: var(--text-primary); }
.wk-footnote {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.eps-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 16rem;
  line-height: 1.35;
}
.eps-est {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.eps-arrow {
  color: var(--text-muted);
  margin: 0 1px;
}
.eps-act {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.eps-pct {
  font-weight: 700;
  opacity: 0.9;
}
.eps-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.eps-beat {
  color: var(--accent-call);
  background: color-mix(in srgb, var(--accent-call) 12%, transparent);
}
.eps-miss {
  color: var(--accent-put);
  background: color-mix(in srgb, var(--accent-put) 12%, transparent);
}
.eps-inline {
  color: var(--text-muted);
  background: var(--bg-tertiary);
}
.eps-pending {
  color: var(--text-muted);
  background: var(--bg-tertiary);
  font-weight: 600;
}
.wk-section-note {
  margin: -2px 0 14px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.ev-list { display: grid; gap: 20px; }
.ev-day { display: grid; gap: 9px; }
.ev-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 7px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ev-day-head small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}
.ev-day-list { display: grid; gap: 9px; }
.ev-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid color-mix(in srgb, var(--accent) 62%, var(--border));
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.ev-body { min-width: 0; flex: 1 1 auto; }
.ev-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  color: var(--text-primary);
  line-height: 1.45;
}
.ev-channel {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 750;
  white-space: nowrap;
}
.ev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}
.ev-note { color: var(--text-muted); font-size: 12.5px; margin-top: 4px; line-height: 1.55; }
.ev-takeaway {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
  margin-top: 6px;
  line-height: 1.55;
}
.ev-heads {
  margin: 6px 0 0;
  padding-left: 1.15em;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.ev-heads li { margin: 2px 0; }
.ad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ad-cell {
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
}
.ad-cell .v { font-family: var(--serif); font-size: 20px; font-weight: 800; color: var(--text-primary); }
.ad-cell .l { font-size: 11px; color: var(--text-muted); }
.ad-up .v { color: var(--accent-put); }
.ad-down .v { color: var(--accent-call); }
.sec-rows { display: flex; flex-direction: column; gap: 6px; }
.sec-row { display: flex; justify-content: space-between; font-size: 13px; gap: 8px; }
.sec-row .n { font-weight: 700; color: var(--text-primary); }
.sec-row .c { font-weight: 800; font-variant-numeric: tabular-nums; }
.sec-up { color: var(--accent-put); }
.sec-down { color: var(--accent-call); }
.sec-col { flex: 1; min-width: 0; }
.sec-col h4 {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}
.sec-divider { width: 1px; background: var(--border-light); margin: 0 12px; }
.wk-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
}
@media (max-width: 720px) {
  .wk-hero { grid-template-columns: 1fr; }
  .gauge-ring { width: 160px; }
  .wk-table-earnings { min-width: 900px; }
  .wk-table-macro { min-width: 680px; }
  .wk-table-earnings td:nth-child(2),
  .wk-table-earnings th:nth-child(2),
  .wk-table-macro td:first-child,
  .wk-table-macro th:first-child { white-space: nowrap; }
  .wk-table-earnings th:first-child,
  .wk-table-earnings td:first-child {
    width: 150px;
    min-width: 150px;
  }
  .wk-table-earnings .co {
    display: block;
    max-width: 142px;
    margin-top: 2px;
    white-space: normal;
    line-height: 1.35;
  }
  .wk-table th, .wk-table td { padding: 9px 10px; font-size: 12.5px; }
  .db-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
}

/* SEO static intro (crawlable copy at end of page) */
.db-seo-intro {
  max-width: 1120px;
  margin: 28px auto 8px;
  padding: 16px clamp(16px, 4vw, 28px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card, var(--bg-primary));
}
.db-seo-h2 { font-size: 1.05rem; margin: 0 0 8px; color: var(--text-primary); }
.db-seo-h3 { font-size: 0.92rem; margin: 14px 0 6px; color: var(--text-secondary); }
.db-seo-p { font-size: 0.88rem; line-height: 1.65; color: var(--text-secondary); margin: 0 0 8px; }
.db-seo-list { margin: 0; padding-left: 1.2em; font-size: 0.88rem; line-height: 1.65; color: var(--text-secondary); }
.db-seo-list li { margin-bottom: 4px; }
.db-seo-intro a { color: var(--accent); }
/* 看板移动端以重排为主，不把桌面组件压缩成竖排文字。 */
@media (max-width: 720px) {
  .db-main {
    padding-inline: 16px;
    padding-bottom: 64px;
  }
  .db-hero {
    padding: 26px 0 16px;
  }
  .db-hero .eyebrow {
    margin-bottom: 12px;
    letter-spacing: 2.2px;
  }
  .db-hero-heading {
    display: block;
  }
  .db-hero h1 {
    margin-bottom: 8px;
    font-size: clamp(34px, 10vw, 42px);
  }
  .db-hero .lede {
    max-width: 30em;
    font-size: 14px;
    line-height: 1.65;
  }
  .db-meta-row {
    justify-content: flex-start;
    margin-top: 13px;
    padding-bottom: 0;
  }
  .db-tabs {
    width: 100%;
    margin-bottom: 18px;
    overflow: visible;
    border-radius: var(--radius-xl);
  }
  .db-tab {
    min-width: 0;
    min-height: 44px;
    padding: 8px 5px;
    border-radius: var(--radius-lg);
    font-size: 13px;
  }
  .db-overview {
    gap: 16px;
  }
  .db-today-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .db-status-card {
    min-height: 338px;
    padding: 21px 16px 18px;
    border-radius: var(--radius-xl);
  }
  .db-status-card .gauge-cap {
    font-size: 13px;
  }
  .db-status-card .gauge-ring {
    width: 210px;
  }
  .db-status-card .gauge-score {
    font-size: 46px;
  }
  .db-status-card .gauge-asof {
    max-width: 24em;
    font-size: 10.5px;
  }
  .db-today-focus {
    padding: 18px 16px;
    border-radius: var(--radius-xl);
  }
  .db-focus-header {
    margin-bottom: 13px;
  }
  .db-focus-header h2 {
    font-size: 28px;
  }
  .db-focus-header time {
    font-size: 10.5px;
  }
  .db-focus-events {
    grid-template-columns: 1fr;
  }
  .db-focus-event,
  .db-focus-empty {
    min-height: 0;
    padding: 13px 14px;
  }
  .db-focus-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .db-focus-metric {
    padding: 11px 12px;
  }
  .db-focus-metric:nth-child(2) {
    border-right: 0;
  }
  .db-focus-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .db-focus-metric > strong {
    font-size: 20px;
  }
  .db-focus-reading {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .db-focus-reading > p {
    grid-column: 1;
  }
  .db-today-news {
    padding: 17px 16px;
  }
  .db-news-header {
    display: block;
    align-items: start;
    margin-bottom: 12px;
  }
  .db-news-header h2 {
    font-size: 27px;
  }
  .db-news-header > p {
    margin: 6px 0 0;
    text-align: left;
  }
  .db-news-list {
    grid-template-columns: 1fr;
  }
  .db-news-item {
    padding: 15px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .db-news-item:last-child {
    border-bottom: 0;
  }
  .db-catalysts {
    order: 2;
  }
  .db-pulse {
    order: 3;
  }
  .db-basis {
    order: 4;
  }
  .db-decision {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 16px;
    padding: 19px 17px;
    border-radius: var(--radius-xl);
  }
  .db-decision h2 {
    font-size: clamp(27px, 8.2vw, 34px);
    line-height: 1.28;
    text-wrap: pretty;
  }
  .db-decision-copy > p {
    margin-top: 11px;
    font-size: 13px;
    line-height: 1.65;
  }
  .db-decision-updated {
    margin-top: 11px;
    font-size: 10.5px;
  }
  .db-score {
    min-height: 120px;
    padding-left: 14px;
  }
  .db-score strong {
    font-size: 52px;
  }
  .db-score span {
    margin-top: 9px;
    font-size: 15px;
  }
  .db-overview-section-head,
  .db-data-header,
  .db-week-header {
    display: block;
    margin-bottom: 12px;
  }
  .db-overview-section-head > p,
  .db-data-header > p,
  .db-week-header > p {
    margin-top: 6px;
    text-align: left;
  }
  .db-pulse-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    min-height: 66px;
    padding: 10px 13px;
  }
  .db-pulse-market {
    grid-row: 1 / 3;
    align-self: center;
  }
  .db-pulse-market strong {
    font-size: 16px;
  }
  .db-pulse-value {
    font-size: 19px;
  }
  .db-pulse-change {
    min-width: 0;
    padding: 0;
    background: transparent !important;
    font-size: 11px;
  }
  .db-catalysts {
    padding: 17px 16px;
  }
  .db-catalyst-header {
    display: block;
    margin-bottom: 12px;
  }
  .db-catalyst-header > p {
    margin-top: 6px;
    text-align: left;
  }
  .db-catalyst-grid {
    grid-template-columns: 1fr;
  }
  .db-catalyst-card {
    padding: 15px 14px;
  }
  .db-catalyst-context > div {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 9px;
  }
  .db-basis-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 11px 14px;
  }
  .db-basis-row strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .db-basis-row small {
    grid-column: 2;
    grid-row: 1;
  }
  .db-risk-score {
    font-size: 28px;
  }
  .db-data-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
  }
  .db-data-tab {
    min-height: 46px;
  }
  .db-panel-lede {
    padding: 11px 12px;
    font-size: 13px;
    line-height: 1.65;
  }
  .db-seo-intro {
    margin-top: 22px;
  }
}

@media (max-width: 390px) {
  .db-main {
    padding-inline: 14px;
  }
  .db-tab {
    font-size: 12.5px;
  }
  .db-status-card {
    min-height: 326px;
  }
  .db-status-card .gauge-ring {
    width: 200px;
  }
  .db-decision {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 12px;
    padding-inline: 15px;
  }
  .db-decision h2 {
    font-size: 26px;
  }
  .db-score {
    padding-left: 11px;
  }
  .db-score strong {
    font-size: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .db-data-tab,
  .db-tab,
  .db-today-skeleton span {
    animation: none;
    transition: none;
  }
}

/* ─────────────── 美股核心 50 热图（按需渲染） ─────────────── */
.hm-shell{
  position:relative;margin:0 0 28px;padding:clamp(18px,2.5vw,28px);
  background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-xl);
  box-shadow:var(--shadow-sm);overflow:hidden;
}
.hm-shell::before{
  content:"";position:absolute;left:0;top:0;width:100%;height:4px;background:var(--grad-line);
}
.hm-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:18px}
.hm-kicker{display:block;margin-bottom:8px;font:600 11px/1 var(--serif);letter-spacing:.18em;color:var(--accent);text-transform:uppercase}
.hm-head h2{margin:0;font:700 clamp(24px,3vw,34px)/1.2 var(--serif);color:var(--text-primary)}
.hm-head p{max-width:680px;margin:8px 0 0;font-size:13px;line-height:1.65;color:var(--text-muted)}
.hm-summary{display:flex;gap:8px;flex:0 0 auto}
.hm-summary span{display:inline-flex;align-items:baseline;gap:5px;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-full);font-size:12px;background:var(--bg-tertiary)}
.hm-summary .is-up{color:var(--accent-call)}
.hm-summary .is-down{color:var(--accent-put)}
.hm-summary b{font:700 17px/1 var(--serif)}
.hm-controls{display:grid;grid-template-columns:minmax(190px,240px) 1fr;gap:12px;align-items:center;margin-bottom:12px}
.hm-search-wrap{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius-full);background:var(--bg-primary);color:var(--text-muted);font-size:12px}
.hm-search-wrap:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent)}
.hm-search{min-width:0;width:100%;height:38px;border:0;outline:0;background:transparent;color:var(--text-primary);font:500 13px/1 var(--sans)}
.hm-search::placeholder{color:var(--text-muted)}
.hm-sector-filters{display:flex;gap:6px;overflow-x:auto;padding:2px 0;overscroll-behavior-inline:contain;scrollbar-width:thin}
.hm-sector-filters button,.hm-sector-label,.hm-sector-overview{
  border:0;font-family:var(--sans);cursor:pointer;
}
.hm-sector-filters button{flex:0 0 auto;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-full);background:var(--bg-primary);color:var(--text-secondary);font-size:12px;line-height:1}
.hm-sector-filters button:hover,.hm-sector-filters button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-2)}
.hm-map{position:relative;width:100%;height:clamp(470px,53vw,610px);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg-secondary);overflow:hidden;isolation:isolate}
.hm-sector{position:absolute;border:1px solid color-mix(in srgb,var(--border) 72%,var(--text-primary));background:var(--bg-secondary);overflow:hidden}
.hm-sector-label{position:absolute;z-index:3;left:0;top:0;width:100%;height:24px;padding:0 7px;display:flex;align-items:center;justify-content:space-between;gap:6px;background:color-mix(in srgb,var(--bg-card) 88%,var(--accent-soft));border-bottom:1px solid var(--border);color:var(--text-primary);font-size:10px;font-weight:700;text-align:left}
.hm-sector-label:hover{color:var(--accent)}
.hm-sector-label em{font-style:normal;font-family:var(--mono);font-weight:600;color:var(--text-secondary)}
.hm-sector-body{position:absolute;left:0;right:0;top:24px;bottom:0}
.hm-stock,.hm-sector-overview{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:0;padding:3px;color:#fdfaf2;text-align:center;text-decoration:none;overflow:hidden;border:1px solid color-mix(in srgb,var(--bg-primary) 65%,transparent);transition:filter .15s ease,box-shadow .15s ease,opacity .15s ease,transform .15s ease}
.hm-stock:hover,.hm-stock:focus-visible{z-index:5;filter:brightness(1.12);box-shadow:0 0 0 2px var(--accent);outline:0}
.hm-stock strong{font:750 clamp(9px,1.3vw,17px)/1 var(--sans);white-space:nowrap}
.hm-stock-name{max-width:100%;font-size:10px;line-height:1.1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;opacity:.9}
.hm-stock em{font:700 10px/1 var(--mono);font-style:normal;white-space:nowrap}
.hm-size-sm .hm-stock-name,.hm-size-sm em{display:none}
.hm-size-md .hm-stock-name{display:none}
.hm-size-lg strong{font-size:clamp(15px,2vw,23px)}
.hm-size-lg em{font-size:12px}
.hm-stock.is-dimmed{opacity:.18;filter:saturate(.4)}
.hm-stock.is-match{z-index:6;box-shadow:inset 0 0 0 3px var(--accent-hi),0 0 0 2px var(--bg-card)}
.hm-stock.is-unavailable{background:var(--bg-hover);color:var(--text-muted)}
.hm-tone-up-1{background:color-mix(in srgb,var(--accent-call) 48%,var(--bg-card));color:var(--text-primary)}
.hm-tone-up-2{background:color-mix(in srgb,var(--accent-call) 82%,var(--bg-primary))}
.hm-tone-up-3{background:var(--accent-call)}
.hm-tone-down-1{background:color-mix(in srgb,var(--accent-put) 48%,var(--bg-card));color:var(--text-primary)}
.hm-tone-down-2{background:color-mix(in srgb,var(--accent-put) 82%,var(--bg-primary))}
.hm-tone-down-3{background:var(--accent-put)}
.hm-tone-flat{background:color-mix(in srgb,var(--text-muted) 48%,var(--bg-card));color:var(--text-primary)}
.hm-tooltip{position:absolute;z-index:20;width:220px;padding:10px 12px;border:1px solid var(--accent);border-radius:var(--radius-md);background:var(--bg-card);box-shadow:var(--shadow-lg);pointer-events:none;color:var(--text-secondary);font-size:12px;line-height:1.45}
.hm-tooltip strong,.hm-tooltip span{display:block}
.hm-tooltip strong{margin-bottom:3px;color:var(--text-primary);font-size:13px}
.hm-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;color:var(--text-muted);font-size:11px}
.hm-foot p{margin:0;text-align:right}
.hm-legend{display:flex;align-items:center;gap:3px;white-space:nowrap}
.hm-legend i{display:block;width:18px;height:8px;border-radius:2px;border:1px solid color-mix(in srgb,var(--border) 70%,transparent)}
.hm-empty{display:grid;place-items:center;min-height:220px;border:1px dashed var(--border);border-radius:var(--radius-lg);background:var(--bg-secondary);color:var(--text-muted);font-size:13px;text-align:center}
.hm-sector-overview{gap:5px;padding:8px}
.hm-sector-overview strong{font:700 clamp(13px,4vw,20px)/1.1 var(--serif)}
.hm-sector-overview span{font-size:10px;opacity:.88}
.hm-sector-overview em{font:700 12px/1 var(--mono);font-style:normal}
.hm-sector-overview:hover,.hm-sector-overview:focus-visible{z-index:3;box-shadow:inset 0 0 0 3px var(--accent-hi);outline:0}

@media(max-width:700px){
  .hm-shell{margin-inline:-2px;padding:16px 12px 14px}
  .hm-head{display:block;margin-bottom:14px}
  .hm-summary{margin-top:12px}
  .hm-controls{grid-template-columns:1fr;gap:8px}
  .hm-search-wrap{max-width:none}
  .hm-sector-filters{margin-inline:-2px;padding-bottom:4px}
  .hm-map{height:590px}
  .hm-map.is-mobile-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;height:auto;padding:2px}
  .hm-map.is-mobile-overview .hm-sector-overview{position:relative;min-height:82px}
  .hm-map.is-mobile-overview .hm-sector-overview:first-child{grid-column:1/-1;min-height:104px}
  .hm-map.is-focused .hm-stock strong{font-size:clamp(10px,4vw,18px)}
  .hm-map.is-focused .hm-size-md .hm-stock-name{display:block}
  .hm-foot{align-items:flex-start;flex-direction:column}
  .hm-foot p{text-align:left}
  .hm-tooltip{display:none!important}
}

@media(prefers-reduced-motion:reduce){
  .hm-stock,.hm-sector-overview{transition:none}
}
