/* TK 论坛 · 宽屏 80% · 墨青单色主题（去金青混搭） */
:root {
  --void: #06080c;
  --bg: #0c1118;
  --text: #e6ebf2;
  --text-secondary: #9aa8bc;
  --text-tertiary: #6b7a90;
  --accent: #7eb0d6;
  --accent-dim: #5a8fb8;
  --accent-soft: rgba(126, 176, 214, 0.14);
  --mint: #6a9e8e;
  --rose: #c45c5c;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-brand: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  --card-bg: #e9edf3;
  --card-muted: #dde3eb;
  --card-text: #141a22;
  --card-text-2: #4a5568;
  --card-text-3: #7a8494;
  --card-border: #c5ced9;
  --card-border-strong: #a8b4c4;
  --card-input: #f3f5f8;
  --panel: var(--card-bg);
  --ink: var(--card-text);
  --soft: var(--card-text-2);
  --faint: var(--card-text-3);
  --line: var(--card-border);
  --brand: var(--font-brand);
  --you: #2563eb;
  --you-bg: rgba(37, 99, 235, 0.12);
  --shell-bg: linear-gradient(145deg, rgba(18, 24, 34, 0.96), rgba(10, 14, 22, 0.92));
  --shell-line: rgba(148, 163, 184, 0.14);
  --emph: #c5d4e4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--void);
  color: var(--text);
  overflow: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 40% at 50% -10%, rgba(126, 176, 214, 0.07), transparent 55%),
    radial-gradient(ellipse 45% 35% at 90% 15%, rgba(106, 158, 142, 0.05), transparent 50%),
    linear-gradient(180deg, #06080c 0%, #0c1118 50%, #080b10 100%);
}
.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

.page {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 74vw;
  max-width: 74vw;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.75rem;
  min-height: 0;
  padding: 0.75rem 0 12px;
}
@media (max-width: 1100px) {
  .page { width: 94vw; max-width: 94vw; min-width: 0; }
}

.shell {
  border: 1px solid var(--shell-line);
  border-radius: var(--radius);
  background: var(--shell-bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  min-height: 0;
}
.shell-kpi {
  margin: 0 0.15rem;
  padding: 0.7rem 0.75rem;
}
.shell-main {
  margin: 0 0.15rem;
  padding: 0.55rem 0.65rem 0.65rem;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  overflow: hidden;
}
body.page-data .shell-main {
  grid-template-rows: 1fr;
}

.kpi-tri {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.65rem;
  align-items: stretch;
}
@media (max-width: 960px) {
  .kpi-tri { grid-template-columns: 1fr; }
}
.kpi-cell {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(8, 11, 17, 0.55);
  padding: 0.65rem 0.75rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.kpi-cell-nav {
  justify-content: space-between;
}
.tag-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.tag-row {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.tag-lab {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--text-tertiary);
  text-transform: none;
}
.tag-row .lot-tabs,
.tag-row .page-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.lot-tabs { display: inline-flex; gap: 0.35rem; }
.lot-tab {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: transparent;
  color: var(--text-tertiary);
  padding: 0.28rem 0.85rem;
  font-family: var(--font-brand);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  cursor: pointer;
  border-radius: 999px;
}
.lot-tab.active {
  border-color: rgba(126, 176, 214, 0.55);
  color: var(--emph);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(126, 176, 214, 0.12);
}
body.lot-ao .lot-tab.active {
  border-color: rgba(126, 176, 214, 0.65);
  color: #d4e6f5;
  background: rgba(126, 176, 214, 0.16);
  box-shadow: inset 0 0 0 1px rgba(126, 176, 214, 0.14);
}
.page-tabs { display: flex; gap: 0.4rem; }
.page-tab, .tab {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(14, 18, 26, 0.5);
  color: var(--text-secondary);
  padding: 0.28rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  border-radius: 999px;
}
.page-tab.active, .tab.active {
  border-color: rgba(126, 176, 214, 0.5);
  color: #e2eef8;
  background: rgba(126, 176, 214, 0.16);
  font-weight: 650;
}
.kpi-card-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
  min-height: 3.1rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.kpi-pillars-label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--text-tertiary);
}
.kpi-pillars-text {
  font-family: var(--font-brand);
  font-size: clamp(0.92rem, 1.5vw, 1.12rem);
  letter-spacing: 0.1em;
  color: var(--emph);
  line-height: 1.45;
  word-break: break-word;
  min-height: 1.6em;
}
.kpi-pillars-text.is-pending {
  opacity: 0.55;
}
.kpi-stat {
  justify-content: flex-start;
}
.kpi-stat-h {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--text-tertiary);
}
.kpi-stat-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  flex: 1;
}
.kpi-stat-body span {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.kpi-stat-body span:last-child { border-bottom: 0; }
.kpi-stat-body b {
  color: var(--emph);
  font-weight: 650;
}
body.lot-ao .kpi-stat-body b { color: #d4e6f5; }
body.lot-ao .kpi-pillars-text { color: #d4e6f5; }

.pager {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}
.pager-btn {
  border: 1px solid var(--card-border);
  background: var(--card-input);
  color: var(--card-text-2);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
}
.pager-btn:disabled { opacity: 0.4; cursor: default; }
.pager-info {
  font-size: 0.76rem;
  color: var(--card-text-3);
  font-variant-numeric: tabular-nums;
  min-width: 5.5rem;
  text-align: center;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding: 0.55rem 0.65rem;
  margin: 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--card-text);
}
.tabs { display: flex; gap: 0.2rem; margin-right: 0.25rem; }
.bar .tab {
  border-radius: var(--radius-sm);
  background: var(--card-input);
  color: var(--card-text-2);
  border-color: var(--card-border);
}
.bar .tab.active {
  color: #1e3a5f;
  border-color: #93c5fd;
  background: #dbeafe;
}
.bar select, .bar input {
  border: 1px solid var(--card-border);
  background: var(--card-input);
  color: var(--card-text);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
}
.bar input { min-width: 9rem; flex: 1; }

.body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 0;
  margin: 0.55rem 0 0;
  overflow: hidden;
}
.body-forum { min-height: 0; }
.feed, .xiao-kpi, .data-wrap, .period-card, .pk-period, .data-hero {
  background: var(--card-bg);
  color: var(--card-text);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.feed {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
  padding: 0.65rem 0.75rem 0.2rem;
  scrollbar-width: thin;
}
.v-spacer { position: relative; width: 100%; }
.v-window { position: absolute; left: 0; right: 0; top: 0; }

.post {
  background: #eef0f4;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem 0.7rem;
  margin-bottom: 10px;
}
.post-top {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}
.post-top .who { font-weight: 650; font-size: 0.92rem; }
.post-top .when {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--card-text-3);
  font-variant-numeric: tabular-nums;
}
.post-hd {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}
.badge {
  flex: 0 0 auto;
  border: 1px solid rgba(37, 99, 235, 0.45);
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.post-hd h2 { margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.4; }
.line {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #344054;
  word-break: break-word;
}
.em-open { color: var(--rose); font-weight: 650; }
.em-bracket { font-weight: 700; color: var(--card-text); }
.post-ft {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.72rem;
  color: #1d4ed8;
  text-align: right;
}
.foot {
  text-align: center;
  color: var(--card-text-3);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0 0.55rem;
}
.empty {
  text-align: center;
  color: var(--card-text-2);
  padding: 3.5rem 1rem;
  font-family: var(--font-brand);
  letter-spacing: 0.14em;
}

body.kind-xiao { --kind: #0d9488; --kind-ink: #0f766e; }
body.kind-ma { --kind: #2563eb; --kind-ink: #1d4ed8; }

.xiao-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem 0.75rem;
  margin: 0.65rem 0.15rem 0;
  max-height: 38vh;
  overflow: auto;
}
.xiao-kpi-title {
  font-size: 0.78rem;
  color: var(--card-text-2);
  letter-spacing: 0.06em;
}
.xiao-kpi-title b { color: var(--kind-ink); }
.pk-period {
  padding: 0.45rem 0.6rem 0.5rem;
  background: #eef0f4;
}
.pk-pillars, .period-pillars, .pillars-today {
  font-size: 0.82rem;
  color: var(--muted, #64748b);
  padding: 0.15rem 0.35rem 0.35rem;
  letter-spacing: 0.02em;
}
.pillars-today b { color: var(--kind-ink, #0f766e); }
.period-pillars {
  padding: 0.25rem 0.75rem 0;
}
.pk-hd {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
}
.pk-hd b {
  font-family: var(--font-brand);
  letter-spacing: 0.12em;
  color: var(--kind-ink);
  font-weight: normal;
}
.pk-draw { color: var(--card-text-3); font-variant-numeric: tabular-nums; }
.pk-line { display: flex; align-items: center; gap: 0.45rem; min-height: 1.55rem; }
.pk-tag {
  flex: 0 0 1.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}
.pk-line.push .pk-tag { color: #0d9488; }
.pk-line.kill .pk-tag { color: var(--rose); }
.pk-cells {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.4rem;
  flex: 1;
  min-width: 0;
}
.pk-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18rem;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  padding: 0.05rem 0.28rem;
  border-radius: 4px;
  background: #fff;
  border: 1px solid transparent;
}
.pk-cell b { font-weight: 650; letter-spacing: 0.08em; }
.pk-cell i { font-style: normal; color: var(--card-text-2); }
.pk-cell.push b { color: #0d9488; }
.pk-cell.kill b { color: var(--rose); }
.pk-cell.hit {
  border-color: rgba(5, 150, 105, 0.45);
  background: rgba(16, 185, 129, 0.12);
}

.hidden { display: none !important; }
body.page-data #forum-bar,
body.page-data #panel-forum { display: none !important; }
body.page-data .page { grid-template-rows: auto 1fr; }
body.page-data .body { margin-top: 0; }

.data-panel {
  grid-template-columns: 1fr !important;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  margin-top: 0;
}
.data-wrap {
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding: 0.9rem 1rem 1.1rem;
}
.data-hero {
  margin-bottom: 0.85rem;
  padding: 0.9rem 1rem 1rem;
  background: linear-gradient(165deg, #eef0f4 0%, #e4e7ed 100%);
}
.data-hero-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}
.data-hero-title strong {
  font-family: var(--font-brand);
  font-weight: normal;
  letter-spacing: 0.2em;
  color: #1e3a5f;
  font-size: 1.05rem;
}
.data-sub { font-size: 0.78rem; color: var(--card-text-3); }
.six-rule {
  margin: 0.7rem 0 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--card-text-2);
}
.six-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  min-width: 0;
}
.kpi-row.kpi-row-solo {
  grid-template-columns: 1fr;
}
.kpi-group.kpi-group-wide {
  width: 100%;
}
.kpi-group {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: #f1f3f7;
  padding: 0.35rem 0.45rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}
.kpi-group-h {
  font-family: var(--font-brand);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: #1e3a5f;
  padding: 0 0.1rem 0.2rem;
  border-bottom: 1px solid var(--card-border);
  line-height: 1.2;
}
.kpi-group-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
}
.kpi-chip {
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.32rem 0.45rem;
  background: #fff;
  min-width: 0;
}
.kpi-chip.kpi-chip-hrow {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.55rem;
}
.kpi-chip-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
}
.kpi-chip.model {
  background: linear-gradient(145deg, #f5ecd0, #fff);
  border-color: #d4b84a;
}
.kpi-chip-h {
  font-size: 0.62rem;
  color: var(--card-text-3);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-chip-v {
  display: flex;
  align-items: baseline;
  gap: 0.28rem;
  font-variant-numeric: tabular-nums;
}
.kpi-chip-v b {
  font-size: 1.05rem;
  color: var(--card-text);
  font-weight: 700;
}
.kpi-chip .lift { font-size: 0.66rem; color: var(--card-text-3); }
.kpi-chip .lift.up { color: var(--mint); font-weight: 650; }
.kpi-chip .lift.down { color: var(--rose); font-weight: 650; }
.kpi-chip-s {
  font-size: 0.62rem;
  color: var(--card-text-3);
}
.kpi-chip-you {
  flex: 0 0 auto;
  min-width: 5.2rem;
  margin: 0;
  padding: 0.1rem 0 0.1rem 0.55rem;
  border: none;
  border-left: 1px dashed rgba(148, 163, 184, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.06rem;
  font-variant-numeric: tabular-nums;
}
.kpi-chip-you .k {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #a16207;
}
.kpi-chip-you b {
  font-size: 0.92rem;
  color: #92400e;
  font-weight: 800;
  line-height: 1.15;
}
.kpi-chip-you .s {
  font-size: 0.62rem;
  color: #a16207;
}
.kpi-streak {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.04rem;
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
}
.kpi-streak .win { color: var(--mint); }
.kpi-streak .lose { color: var(--rose); font-weight: 650; }
.kpi-streak i { font-style: normal; color: var(--card-text-3); margin-right: 0.1rem; }

.data-board { display: flex; flex-direction: column; gap: 0.5rem; }
.period-card {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.period-card.is-pending { border-color: rgba(37, 99, 235, 0.45); }
.period-card.is-hit { border-color: rgba(5, 150, 105, 0.45); }
.period-card.is-both-miss {
  background: #fff5f5;
  border-color: rgba(196, 92, 92, 0.55);
}
.period-card.is-both-miss .period-meta,
.period-card.is-both-miss .period-pk,
.period-card.is-both-miss .period-picks,
.period-card.is-both-miss .period-top {
  background: #fff5f5;
}
.period-top {
  display: grid;
  grid-template-columns: minmax(9.5rem, 0.28fr) 1fr;
  gap: 0;
  border-bottom: 1px solid var(--card-border);
  background: #fff;
}
.period-meta {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.4rem 0.6rem 0.45rem;
  border-right: 1px solid var(--card-border);
  background: #fff;
  justify-content: center;
}
.period-id b {
  font-family: var(--font-brand);
  letter-spacing: 0.12em;
  color: #1e3a5f;
  font-weight: normal;
  font-size: 1rem;
}
.period-draw {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.45rem;
  font-size: 0.8rem;
  color: var(--card-text-2);
}
.period-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.period-pillars {
  font-size: 0.68rem;
  color: var(--card-text-3);
  letter-spacing: 0.04em;
}
.draw-zhi { color: #334155; font-weight: 650; }
.draw-xiao { color: #0f766e; font-weight: 700; letter-spacing: 0.08em; }
.draw-sep {
  margin: 0 0.18em;
  color: #94a3b8;
  font-weight: 700;
}
.draw-num { font-variant-numeric: tabular-nums; color: #475569; }
.period-badge {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.period-badge.hit {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
}
.period-badge.you {
  color: #a16207;
  background: rgba(250, 204, 21, 0.18);
  border-color: rgba(202, 138, 4, 0.4);
}
.period-badge.miss { color: var(--card-text-3); background: var(--card-muted); }
.period-badge.wait {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.28);
}
.period-badge.weak {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
}
.period-pk {
  padding: 0.32rem 0.6rem 0.35rem;
  background: #fff;
  min-width: 0;
}
.period-pk .pk-line { margin: 0.06rem 0; }
.period-picks {
  padding: 0.35rem 0.65rem 0.45rem;
  background: #fff;
}
.period-picks .six-label { margin-top: 0.22rem; }
.period-picks .six-label:first-child { margin-top: 0; }
.six-label {
  font-size: 0.64rem;
  color: var(--card-text-2);
  letter-spacing: 0.06em;
  margin-bottom: 0.18rem;
}
.six-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  margin: 0 0 0.4rem;
  font-size: 0.66rem;
  color: var(--card-text-3);
}
.six-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.six-legend .lg i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  display: inline-block;
}
.six-legend .lg.heavy i {
  background: #d97706;
  box-shadow: inset 0 0 0 1px #b45309;
}
.six-legend .lg.light i {
  background: #94a3b8;
  box-shadow: inset 0 0 0 1px #64748b;
}
.six-legend .lg.rank {
  letter-spacing: 0.04em;
  color: var(--card-text-2);
}
.six-board {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.six-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem 0.4rem;
}
.six-row-tag {
  flex: 0 0 auto;
  min-width: 4.6rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.4rem;
  border-radius: 6px;
}
.six-row-tag.heavy-tag {
  color: #9a3412;
  background: rgba(217, 119, 6, 0.16);
  border: 1px solid rgba(180, 83, 9, 0.35);
}
.six-row-tag.light-tag {
  color: #334155;
  background: rgba(148, 163, 184, 0.22);
  border: 1px solid rgba(100, 116, 139, 0.35);
}
.six-cells { display: flex; flex-wrap: wrap; gap: 0.22rem; }
.six-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 1.85rem;
  height: 1.55rem;
  padding: 0 0.28rem;
  border-radius: 7px;
  border: 1.5px solid var(--card-border);
  background: #fff;
  font-size: 0.78rem;
  box-sizing: border-box;
}
.six-cell .six-rank {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 0.75rem;
  text-align: center;
}
.six-cell .six-band {
  font-style: normal;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.six-cell.heavy,
.six-cell.you {
  background: #fff;
}
/* 前位：白底 + 蓝边框加粗/加深，不再灌蓝底 */
.six-cell.you-r0 {
  border-width: 2.5px;
  border-color: #1e3a8a;
  color: #1e3a8a;
}
.six-cell.you-r0 b,
.six-cell.you-r0 .six-band,
.six-cell.you-r0 .six-rank { color: #1e3a8a !important; }
.six-cell.you-r1 {
  border-width: 2.5px;
  border-color: #2563eb;
  color: #1d4ed8;
}
.six-cell.you-r1 b,
.six-cell.you-r1 .six-band,
.six-cell.you-r1 .six-rank { color: #1d4ed8 !important; }
.six-cell.you-r2 {
  border-width: 2px;
  border-color: #3b82f6;
}
.six-cell.you-r2 b,
.six-cell.you-r2 .six-band,
.six-cell.you-r2 .six-rank { color: #1e40af !important; }
.six-cell.you-r3 {
  border-width: 2px;
  border-color: #60a5fa;
}
.six-cell.you-r3 b,
.six-cell.you-r3 .six-band,
.six-cell.you-r3 .six-rank { color: #1e40af !important; }
.six-cell.you-r4,
.six-cell.you-r5 {
  border-width: 2px;
  border-color: #93c5fd;
}
.six-cell.you-r4 b,
.six-cell.you-r5 b,
.six-cell.you-r4 .six-band,
.six-cell.you-r5 .six-band { color: #1d4ed8 !important; }
.six-cell.you-r6,
.six-cell.you-r7,
.six-cell.you-r8,
.six-cell.you-r9 {
  border-width: 1.5px;
  border-color: #93c5fd;
}
.six-cell.you-r6 b,
.six-cell.you-r7 b,
.six-cell.you-r8 b,
.six-cell.you-r9 b,
.six-cell.you-r6 .six-band,
.six-cell.you-r7 .six-band,
.six-cell.you-r8 .six-band,
.six-cell.you-r9 .six-band { color: #2563eb !important; }
.six-cell.light {
  border-color: #94a3b8;
  background: #fff;
}
.six-cell.light .six-rank { color: #64748b; }
.six-cell.light b { color: #475569; font-weight: 600; }
.six-cell.light .six-band { color: #64748b; }
.six-cell b { letter-spacing: 0.04em; }
/* 命中：与主站演算史同尺 —— 圆底绿填充（非描边方块） */
.six-cell.six-hit {
  border-radius: 999px !important;
  border: none !important;
  background: #6ee7b7 !important;
  box-shadow: none !important;
  color: #064e3b;
  font-weight: 800;
}
.six-cell.you.six-hit,
.six-cell.light.six-hit,
.six-cell.you-r0.six-hit,
.six-cell.you-r1.six-hit,
.six-cell.you-r2.six-hit,
.six-cell.you-r3.six-hit,
.six-cell.you-r4.six-hit,
.six-cell.you-r5.six-hit,
.six-cell.you-r6.six-hit,
.six-cell.you-r7.six-hit,
.six-cell.you-r8.six-hit,
.six-cell.you-r9.six-hit {
  background: #6ee7b7 !important;
  border: none !important;
  box-shadow: none !important;
}
.six-cell.six-hit b,
.six-cell.six-hit .six-band,
.six-cell.six-hit .six-rank,
.six-cell.you-r0.six-hit b,
.six-cell.you-r1.six-hit b,
.six-cell.you-r2.six-hit b,
.six-cell.you-r3.six-hit b,
.six-cell.you-r4.six-hit b,
.six-cell.you-r5.six-hit b,
.six-cell.you-r6.six-hit b,
.six-cell.you-r7.six-hit b,
.six-cell.you-r8.six-hit b,
.six-cell.you-r9.six-hit b {
  color: #064e3b !important;
}
.ma-wrap { margin-top: 0.25rem; }
.ma-bands { gap: 0.3rem; }
.ma-band-row { align-items: center; }
.ma-k-tag {
  color: #1e3a5f;
  background: transparent;
  border: 1px solid rgba(37, 99, 235, 0.35);
  margin-top: 0;
  padding: 0.1rem 0.32rem;
  min-width: 2.6rem;
  font-size: 0.62rem;
}
.data-more {
  display: flex;
  justify-content: center;
  padding: 1rem 0 1.4rem;
}
.period-badge.hit.mid {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

@media (max-width: 960px) {
  .kpi-row { grid-template-columns: 1fr; }
  .kpi-group-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* 窄屏：优期改到主指标下方，避免横排挤叠 */
  .kpi-chip.kpi-chip-hrow {
    flex-direction: column;
    align-items: stretch;
    gap: 0.32rem;
  }
  .kpi-chip-you {
    min-width: 0;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.28rem 0.45rem;
    padding: 0.28rem 0 0;
    border-left: none;
    border-top: 1px dashed rgba(148, 163, 184, 0.65);
  }
  .kpi-chip-you b { font-size: 0.88rem; }
  .kpi-chip-v b { font-size: 0.98rem; }
  .kpi-chip { padding: 0.4rem 0.42rem; }
  .body { grid-template-columns: 1fr; }
  .period-top { grid-template-columns: 1fr; }
  .period-meta { border-right: none; border-bottom: 1px solid var(--card-border); }
  .six-row-tag { min-width: 4.2rem; }
}
@media (max-width: 560px) {
  /* 手机：KPI 单列，主指标 | 优期 再横排（宽度够用） */
  body { overflow: auto !important; }
  .page {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.45rem 0.55rem calc(3.5rem + env(safe-area-inset-bottom, 0px)) !important;
    gap: 0.5rem !important;
  }
  .kpi-group-body {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .kpi-chip.kpi-chip-hrow {
    flex-direction: row;
    align-items: stretch;
    gap: 0.65rem;
  }
  .kpi-chip-you {
    flex: 0 0 auto;
    width: auto;
    min-width: 5.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.06rem;
    padding: 0.1rem 0 0.1rem 0.55rem;
    border-top: none;
    border-left: 1px dashed rgba(148, 163, 184, 0.65);
  }
  .kpi-chip-v b { font-size: 1.12rem; }
  .kpi-chip-you b { font-size: 0.98rem; }
  .top-tabs { padding: 0.45rem 0.55rem 0.5rem; }
  .lot-tab { padding: 0.32rem 0.85rem !important; font-size: 0.86rem !important; }
}

/* ========== forum60 · 顶栏浅色 + 数据表一行 + 明细弹窗 ========== */
body {
  background: #e8ecf2 !important;
  color: #0f172a !important;
  overflow: hidden;
}
.ambient { display: none !important; }
.page {
  width: 74vw !important;
  max-width: 74vw !important;
  min-width: 0 !important;
  gap: 0.65rem !important;
  padding: 0.65rem 0 calc(3.4rem + env(safe-area-inset-bottom, 0px)) !important;
}
@media (max-width: 1100px) {
  .page { width: 94vw !important; max-width: 94vw !important; }
}
/* 顶栏回主站 */
.top-tabs-home {
  justify-content: space-between;
  padding-top: 0.1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(100, 116, 139, 0.22);
  margin-bottom: 0.1rem;
}
.top-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  background: #0f172a;
  color: #f8fafc !important;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.top-home-link:hover { background: #1e293b; }
.top-home-now {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #475569;
}
/* 底栏：主站 / 论坛站（PC+移动） */
.tk-site-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: flex;
  align-items: stretch;
  min-height: 3.05rem;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  background: #0f172a;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.18);
}
.tk-site-nav-link {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 3.05rem;
  color: rgba(148, 163, 184, 0.95);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.tk-site-nav-link.is-active {
  color: #5eead4;
  font-weight: 800;
}
.tk-site-nav-link:hover { color: #e2e8f0; }
.auth-home {
  display: block;
  margin-top: 0.15rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}
.auth-home:hover { color: #5eead4; }
.top-bar {
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(15rem, 0.85fr) 1.45fr;
}
@media (max-width: 960px) {
  .top-bar { grid-template-columns: 1fr; }
}
.top-tabs {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #d7dde8 0%, #cfd6e2 100%);
  border-right: 1px solid rgba(100, 116, 139, 0.35);
  padding: 0.55rem 0.75rem 0.65rem;
  min-width: 0;
}
.top-tabs-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.28rem 0;
}
.top-tabs-sub {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.7) 0%, rgba(232, 236, 242, 0.45) 100%);
  margin: 0 -0.75rem;
  padding: 0.35rem 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}
.top-lab {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #64748b;
}
.lot-tabs, .page-tabs { display: inline-flex; gap: 0.35rem; flex-wrap: wrap; }
.lot-tab {
  border: 1px solid rgba(71, 85, 105, 0.35) !important;
  background: rgba(15, 23, 42, 0.06) !important;
  color: #64748b !important;
  padding: 0.38rem 1.15rem !important;
  border-radius: 6px !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  font-family: inherit !important;
  cursor: pointer;
}
.lot-tab.active {
  color: #fff !important;
  background: #0f172a !important;
  border-color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28) !important;
}
body.lot-ao .lot-tab.active {
  color: #fff !important;
  background: #0f172a !important;
  border-color: #0f172a !important;
}
.page-tab, .tab {
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
  background: rgba(15, 23, 42, 0.05) !important;
  color: #64748b !important;
  padding: 0.32rem 0.95rem !important;
  border-radius: 8px !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  cursor: pointer;
}
.page-tab.active, .tab.active {
  color: #fff !important;
  background: #1e293b !important;
  border-color: #1e293b !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2) !important;
}
.top-pillars {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.35rem;
  min-width: 0;
}
.top-pillars-lab {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #64748b;
}
.top-pillars-text {
  font-size: 0.82rem;
  color: #334155;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  min-width: 0;
}
.top-stat {
  padding: 0.55rem 0.85rem 0.65rem;
  border-left: 1px solid rgba(148, 163, 184, 0.28);
  min-width: 0;
}
.top-stat:first-child { border-left: none; }
.top-stat-h {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.top-stat-body {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.55rem;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.top-stat-body span {
  display: contents !important;
  border: none !important;
  padding: 0 !important;
}
.top-stat-body .k, .top-stat-body span > span:first-child { color: #94a3b8; }
.top-stat-body .v, .top-stat-body b {
  color: #0f172a !important;
  font-weight: 650 !important;
  text-align: left;
}
.shell-main {
  margin: 0 !important;
  border: 1px solid rgba(100, 116, 139, 0.28) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

/* 数据表一行 */
.data-table-wrap {
  overflow: auto;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #fff;
}
.data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #cbd5e1;
  white-space: nowrap;
}
.data-table tbody td {
  padding: 0.48rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  color: #0f172a;
}
.data-table tbody tr:hover td { background: #f8fafc; }
.data-table tr.is-pending td { background: #fff; }
.data-table tr.is-both-hit td { background: #dcfce7; }
.data-table tr.is-both-miss td { background: #fee2e2; }
.data-table tr.is-both-hit:hover td { background: #bbf7d0; }
.data-table tr.is-both-miss:hover td { background: #fecaca; }
.data-table tr.is-row-open { cursor: pointer; }
.data-table tr.is-row-open:hover td { filter: brightness(0.97); }
.data-table tr.is-both-hit.is-row-open:hover td { filter: none; background: #bbf7d0; }
.data-table tr.is-both-miss.is-row-open:hover td { filter: none; background: #fecaca; }
.data-table .col-id b {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
  white-space: nowrap;
}
.data-table .col-draw {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.data-table .col-six,
.data-table .col-ma {
  max-width: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.data-table .col-six .cell-main,
.data-table .col-ma .cell-main {
  display: inline;
  max-width: none;
  overflow: visible;
  vertical-align: middle;
}
.data-table .col-detail {
  white-space: nowrap;
  vertical-align: middle;
}
/* 命中肖/码：与主站演算史同尺圆底绿 */
.data-table .xiao-digit.is-hit,
.data-table .pred-code.is-hit {
  display: inline-block;
  min-width: 1.55em;
  min-height: 1.55em;
  padding: 0.12em 0.28em;
  margin: 0 0.04em;
  line-height: 1.15;
  text-align: center;
  border-radius: 999px;
  color: #064e3b;
  font-weight: 800;
  background: #6ee7b7;
  border: none;
  box-sizing: border-box;
  vertical-align: middle;
}
.data-table .pred-code {
  display: inline-block;
  margin: 0 0.08em;
  color: #334155;
  font-weight: 650;
  vertical-align: middle;
}
/* 与主站 calc-xiao-copy 同尺：肖/码列复制 */
.data-table .cell-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.2rem;
  padding: 0.12rem 0.2rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1;
}
.data-table .cell-copy:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}
.data-table .cell-copy.is-ok {
  color: #16a34a;
}
.data-table .you-tag {
  display: inline-block;
  margin-left: 0.28rem;
  padding: 0.06rem 0.32rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #a16207;
  background: rgba(250, 204, 21, 0.2);
  border: 1px solid rgba(202, 138, 4, 0.4);
  vertical-align: middle;
}
.data-table .hit-mark {
  display: inline-block;
  margin-left: 0.22rem;
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1;
  vertical-align: middle;
}
.data-table .hit-mark.is-hit { color: #059669; }
.data-table .hit-mark.is-miss { color: #dc2626; }
.data-table .col-hit { white-space: nowrap; }
.kpi-row-ma-only {
  grid-template-columns: 1fr !important;
}
.kpi-row-ma-only .kpi-group-body {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.btn-detail {
  border: 1px solid rgba(100, 116, 139, 0.35);
  background: #f8fafc;
  color: #334155;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-detail:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}
.period-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  margin-right: 0.2rem;
  border: 1px solid transparent;
}

/* 明细弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.hidden { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, 96vw);
  max-height: min(86vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}
.modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.modal-hd h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f172a;
}
.modal-x {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}
.modal-bd {
  overflow: auto;
  padding: 0.85rem 1rem 1.1rem;
}
.modal-bd .period-pk,
.modal-bd .period-picks {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  margin-top: 0.55rem;
}
.modal-bd .period-picks-top { margin-top: 0.35rem; }
.modal-bd .pick-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin: 0.45rem 0 0.35rem;
  flex-wrap: wrap;
}
.modal-bd .pick-hd:first-child { margin-top: 0; }
.modal-bd .pick-hd .six-label { margin: 0; }
.modal-bd .copy-btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-left: 0;
  padding: 0.48rem 0.95rem;
  border: 1px solid #64748b;
  border-radius: 8px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  line-height: 1.1;
  vertical-align: middle;
}
.modal-bd .copy-btn-lg:hover {
  background: #cbd5e1;
  color: #0f172a;
}
.modal-bd .copy-btn-lg.is-ok {
  color: #15803d;
  border-color: #86efac;
  background: #dcfce7;
}
.modal-bd .copy-btn-lg svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.reason-card {
  margin: 0.45rem 0 0.15rem;
  padding: 0.65rem 0.75rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #c7d2fe;
  background: linear-gradient(165deg, #eef2ff 0%, #e0e7ff 100%);
  color: #1e1b4b;
}
.reason-card.faint {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}
.reason-title {
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: #312e81;
}
.reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin: 0.45rem 0 0.35rem;
}
.reason-chip {
  display: inline-block;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #3730a3;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.reason-block {
  margin-top: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(165, 180, 252, 0.55);
}
.reason-h {
  font-weight: 800;
  font-size: 0.78rem;
  color: #4338ca;
  margin-bottom: 0.28rem;
}
.reason-row {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 0.25rem 0.45rem;
  font-size: 0.78rem;
  margin-top: 0.18rem;
  align-items: baseline;
}
.reason-row .rk { color: #64748b; font-weight: 650; }
.reason-row .rv { color: #0f172a; }
.reason-row .rv b { color: #1e3a8a; font-weight: 800; }
.reason-card.is-mark {
  border-color: #fcd34d;
  background: linear-gradient(165deg, #fffbeb 0%, #fef3c7 100%);
}
.reason-card.is-mark .reason-title { color: #92400e; }
.reason-chip.is-mark {
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.45);
  background: rgba(255, 255, 255, 0.85);
}
.reason-sum {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #78350f;
}
.reason-rows { margin-top: 0.2rem; }
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.data-hero {
  background: linear-gradient(165deg, #f8fafc 0%, #eef2f7 100%) !important;
  border: 1px solid #e2e8f0;
}
.data-hero-title strong { color: #0f172a !important; }
.kpi-group-h { color: #0f172a !important; }

/* ========== forum67 · 强弱K线（KPI 下方独立一块，对齐主站） ========== */
.data-panel .forum-strength-kline-frame {
  margin: 0 0 0.75rem;
  border-radius: 10px;
  border: 1px solid #2a2e39;
  background: #131722;
  overflow: hidden;
}
.data-panel .calc-strength-kline-chart-wrap { position: relative; width: 100%; }
.data-panel .calc-strength-kline-chart { width: 100%; min-height: 300px; height: 300px; }
.data-panel .calc-kline-hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  padding: 0.45rem 0.55rem 0.35rem;
  background: linear-gradient(180deg, rgba(19,23,34,0.94) 0%, rgba(19,23,34,0.72) 70%, rgba(19,23,34,0) 100%);
  pointer-events: none;
}
.data-panel .calc-kline-hud-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.55rem; }
.data-panel .calc-kline-mini {
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.25rem 0.45rem; border-radius: 6px;
  background: rgba(30,34,45,0.88); border: 1px solid rgba(120,123,134,0.35);
  pointer-events: none;
}
.data-panel .calc-kline-mini-k { font-size: 0.68rem; color: #848e9c; }
.data-panel .calc-kline-mini-v { font-size: 0.95rem; font-weight: 800; color: #f0f3fa; }
.data-panel .calc-kline-mini-sub { font-size: 0.62rem; color: #848e9c; }
.data-panel .calc-kline-hud-legend { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-left: auto; font-size: 0.68rem; color: #848e9c; }
.data-panel .calc-kline-hud-legend .lg { display: inline-flex; align-items: center; gap: 0.2rem; }
.data-panel .calc-kline-hud-legend .lg::before { content: ''; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: #848e9c; }
.data-panel .calc-kline-hud-legend .lg.is-up::before { background: #F6465D; }
.data-panel .calc-kline-hud-legend .lg.is-down::before { background: #0ECB81; }
.data-panel .calc-kline-hud-legend .lg.is-pending::before { background: #A855F7; }
.data-panel .calc-kline-hud-legend .lg.is-ma::before { background: #67E8F9; }
.data-panel .calc-kline-hud-btn {
  pointer-events: auto; padding: 0.18rem 0.5rem; font-size: 0.68rem; border-radius: 5px;
  border: 1px solid rgba(120,123,134,0.45); background: rgba(30,34,45,0.92); color: #d1d4dc; cursor: pointer;
}
.data-panel .calc-kline-tip {
  position: absolute; z-index: 5; max-width: 260px; padding: 0.55rem 0.65rem; border-radius: 8px;
  background: rgba(20,24,36,0.96); border: 1px solid rgba(120,123,134,0.55);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35); pointer-events: none; font-size: 0.76rem; line-height: 1.45; color: #d1d4dc;
}
.data-panel .calc-kline-tip-title { font-weight: 700; color: #f0f3fa; margin-bottom: 0.35rem; }
.data-panel .calc-kline-tip-row { display: flex; justify-content: space-between; gap: 0.6rem; }

/* 登录闸 */
.auth-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #0f766e 120%);
}
.auth-gate[hidden] { display: none !important; }
.auth-card {
  width: min(22rem, 92vw); padding: 1.5rem 1.35rem 1.25rem;
  border-radius: 14px; background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
  display: flex; flex-direction: column; gap: 0.7rem;
}
.auth-lab { display: flex; flex-direction: column; gap: 0.28rem; font-size: 0.78rem; color: #cbd5e1; }
.auth-lab input {
  padding: 0.55rem 0.65rem; border-radius: 8px; border: 1px solid rgba(148,163,184,0.4);
  background: #0b1220; color: #f1f5f9; font-size: 0.95rem;
}
.auth-btn {
  margin-top: 0.35rem; padding: 0.6rem 0.8rem; border: 0; border-radius: 8px;
  background: #0d9488; color: #fff; font-weight: 700; cursor: pointer;
}
.auth-btn:hover { background: #0f766e; }
.auth-err { margin: 0; color: #f87171; font-size: 0.8rem; }
#app-root[hidden] { display: none !important; }
.data-panel .calc-kline-tip-row .is-up-k { color: #f6465d; }
.data-panel .calc-kline-tip-row .is-down-k { color: #0ecb81; }
