* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: #0b0e14;
  color: #e6edf3;
  overflow-anchor: none;
}

.container {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 12px;
}

.vr-tag--golden {
    background-color: #22c55e; /* 醒目的绿色 */
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}
.vr-tag--warning {
    background-color: #ef4444; /* 预警红色 */
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

.top-replay-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: linear-gradient(180deg, rgba(14, 17, 24, 0.98) 0%, rgba(11, 14, 20, 0.96) 100%);
  border-bottom: 1px solid #30363d;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* sticky 仅保留顶栏/工具栏；双栏头已改为 relative */
.top-replay-bar,
.board-toolbar,
.risk-banner {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 滑动中暂停闪动动画，减少合成层抖动 */
body.is-scrolling .row-seal-decay,
body.is-scrolling .row-xuangu-new,
body.is-scrolling .row-first-seal,
body.is-scrolling .row-delta-new,
body.is-scrolling .row-delta-migrate-up,
body.is-scrolling .row-delta-migrate-break,
body.is-scrolling .badge-delta-up,
body.is-scrolling .badge-delta-down,
body.is-scrolling .industry-cell--flash,
body.is-scrolling .industry-cell--migrate-up,
body.is-scrolling .industry-cell--migrate-break,
body.is-scrolling .risk-DANGER {
  animation: none !important;
  transition: none !important;
}

body.is-scrolling article.industry-cell,
body.is-scrolling article.industry-cell--up,
body.is-scrolling article.industry-cell--unsealed,
body.is-scrolling .board-toolbar,
body.is-scrolling .top-replay-bar {
  box-shadow: none !important;
}

/*
 * 不再在滑动期开关 content-visibility：
 * 「折叠单只」时卡片真实高度约 50px，CV 估算 220px，
 * 滑到底部后关掉 CV 会文档骤缩，window 滚动被钳回顶部。
 */

.replay-quick-jumps {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 4px;
  align-items: center;
}

.replay-quick-jumps::before {
  content: "跳转";
  font-size: 12px;
  color: #8b949e;
  margin-right: 4px;
}

.replay-quick-btn {
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid #30363d;
  border-radius: 4px;
  background: #21262d;
  color: #c9d1d9;
  cursor: pointer;
}

.replay-quick-btn:hover {
  background: #30363d;
  border-color: #58a6ff;
  color: #58a6ff;
}

.replay-quick-btn--active {
  background: #0c2d48;
  border-color: #1f6feb;
  color: #79c0ff;
  font-weight: 600;
}

.replay-date-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 2px;
}

.replay-date-chip {
  padding: 2px 10px;
  font-size: 12px;
  border: 1px solid #30363d;
  border-radius: 999px;
  background: #161b22;
  color: #c9d1d9;
  cursor: pointer;
}

.replay-date-chip:hover {
  border-color: #58a6ff;
  color: #58a6ff;
}

.replay-date-chip--active {
  border-color: #238636;
  background: #122c1b;
  color: #3fb950;
}

.replay-session-phase {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: #21262d;
  color: #79c0ff;
  border: 1px solid #30363d;
  flex-shrink: 0;
}

.replay-session-phase[data-phase="集合竞价"] {
  color: #f0c674;
  border-color: #6e5a1e;
}

.replay-session-phase[data-phase="午休"] {
  color: #8b949e;
}

.replay-session-phase[data-phase="下午盘"] {
  color: #3fb950;
  border-color: #238636;
}

.replay-keymap-hint {
  font-size: 11px;
  color: #6e7681;
  padding: 2px 0 4px;
  letter-spacing: 0.02em;
}

.replay-lunch-gap {
  position: absolute;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(110, 118, 129, 0.18),
    rgba(110, 118, 129, 0.18) 4px,
    transparent 4px,
    transparent 8px
  );
  pointer-events: none;
  border-radius: 2px;
}

.replay-btn--playing {
  border-color: #22d3ee;
  color: #22d3ee;
}

.dot--pulse {
  animation: review-dot-pulse 1s ease-in-out infinite;
}

@keyframes review-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.15); }
}

.cell-board-link {
  color: #58a6ff;
  text-decoration: none;
}

.cell-board-link:hover {
  text-decoration: underline;
}

.industry-cell-table-wrap .cell-board-link {
  font-weight: 500;
}

.cell-concept-link {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.92;
}

.cell-symbol-link {
  font-weight: 600;
}

tr.row-highlight {
  background: rgba(88, 166, 255, 0.18) !important;
  outline: 1px solid rgba(88, 166, 255, 0.45);
}

@keyframes row-delta-flash {
  0% { background: rgba(63, 185, 80, 0.35); }
  100% { background: transparent; }
}

tr.row-delta-new {
  animation: row-delta-flash 1.6s ease-out;
}

@keyframes row-seal-decay-flash {
  0% { background: rgba(248, 81, 73, 0.38); }
  100% { background: transparent; }
}

tr.row-seal-decay {
  animation: row-seal-decay-flash 2s ease-out;
}

@keyframes row-migrate-up-flash {
  0% { background: rgba(63, 185, 80, 0.45); box-shadow: inset 3px 0 0 #3fb950; }
  100% { background: transparent; box-shadow: none; }
}

@keyframes row-migrate-break-flash {
  0% { background: rgba(248, 81, 73, 0.4); box-shadow: inset 3px 0 0 #f85149; }
  100% { background: transparent; box-shadow: none; }
}

tr.row-delta-migrate-up {
  animation: row-migrate-up-flash 2.2s ease-out;
}

tr.row-delta-migrate-break {
  animation: row-migrate-break-flash 2.2s ease-out;
}

@keyframes badge-delta-down {
  0% { transform: scale(1); background: #f85149; color: #fff; }
  40% { transform: scale(1.1); background: #ff7b72; color: #fff; }
  100% { transform: scale(1); }
}

.industry-cell-badge.badge-delta-down {
  animation: badge-delta-down 0.9s ease-out;
}

@keyframes row-xuangu-new-flash {
  0% { background: rgba(163, 113, 247, 0.4); box-shadow: inset 3px 0 0 #a371f7; }
  100% { background: transparent; box-shadow: none; }
}

tr.row-xuangu-new {
  animation: row-xuangu-new-flash 2s ease-out;
}

@keyframes row-first-seal-flash {
  0% { background: rgba(88, 166, 255, 0.4); box-shadow: inset 3px 0 0 #58a6ff; }
  100% { background: transparent; box-shadow: none; }
}

tr.row-first-seal {
  animation: row-first-seal-flash 2s ease-out;
}

tr.row-first-seal td.time-cell {
  color: #79b8ff;
  font-weight: 700;
}

@keyframes badge-delta-up {
  0% { transform: scale(1); background: #3fb950; color: #0d1117; }
  40% { transform: scale(1.12); background: #56d364; color: #0d1117; }
  100% { transform: scale(1); }
}

.industry-cell-badge.badge-delta-up {
  animation: badge-delta-up 0.9s ease-out;
}

.gold-history-diff {
  margin-bottom: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  font-size: 12px;
}

.top-replay-inner {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 12px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 16px;
}

/* 策略总结面板样式 */
.strategy-guide {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  width: 100%; /* 确保宽度撑满 */
}

.strategy-guide h3 {
  color: #f8fafc;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1rem;
  border-left: 4px solid #3b82f6;
  padding-left: 10px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.guide-item {
  background: #0f172a;
  padding: 12px;
  border-radius: 6px;
  border-top: 3px solid #22c55e; /* 默认绿色（优选） */
}

.guide-item h4 {
  margin: 0 0 8px 0;
  color: #4ade80;
  font-size: 0.95rem;
}

.guide-item p {
  margin: 4px 0;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

.guide-item b {
  color: #f8fafc;
}

.guide-item.warning {
  border-top-color: #ef4444; /* 红色（预警） */
}

.guide-item.warning h4 {
  color: #f87171;
}

.header-left {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.header-link {
  color: #58a6ff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-link:hover {
  text-decoration: underline;
}

.header-link--active {
  color: #ffffff;
  background: rgba(88, 166, 255, 0.16);
  border: 1px solid rgba(88, 166, 255, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  text-decoration: none;
}

.header-link--active:hover {
  text-decoration: none;
}

.header h1 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.meta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  color: #c9d1d9;
  font-size: 13px;
}

.meta b {
  color: #ffffff;
  font-weight: 700;
}

.fetch-breakdown {
  color: #8b949e;
  font-size: 12px;
}

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c9d1d9;
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.55);
}

#liveText.is-stale-clickable {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(234, 179, 8, 0.55);
}

#liveText.is-stale-clickable:hover {
  color: #fbbf24;
  text-decoration-color: #fbbf24;
}

.replay.panel {
  margin-bottom: 0;
  padding: 12px 14px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
}

.replay h3 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

/* ── Replay bar redesign ──────────────────────────────────────────────────── */

.replay-label {
  font-size: 13px;
  font-weight: 600;
  color: #8b949e;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.replay-date-input {
  width: 98px;
  padding: 4px 8px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 5px;
  color: #e6edf3;
  font-size: 13px;
}
.replay-date-input:focus { outline: none; border-color: #58a6ff; }

.replay-btn {
  background: #21262d;
  border: 1px solid #30363d;
  color: #e6edf3;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.replay-btn:hover { background: #2d333b; border-color: #58a6ff; }
.replay-btn:disabled { opacity: .38; cursor: default; }
.replay-btn--live { border-color: #238636; color: #3fb950; }
.replay-btn--live:hover { background: #122c1b; }

.replay-btn--ghost {
  opacity: 0.72;
}

.replay-btn--primary {
  border-color: #1f6feb;
  color: #79c0ff;
  background: #0c2d48;
}

.replay-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.replay-row--primary {
  margin-bottom: 6px;
}

.replay-row--transport {
  margin-bottom: 4px;
}

.replay-clock-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}

.replay-more {
  position: relative;
}

.replay-more > summary {
  list-style: none;
  cursor: pointer;
}

.replay-more > summary::-webkit-details-marker {
  display: none;
}

.replay-more-body {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 60;
  min-width: 280px;
  padding: 10px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.header--replay .meta {
  display: none;
}

.replay-empty {
  margin: 24px 0;
  padding: 28px 24px;
  border: 1px dashed #30363d;
  border-radius: 10px;
  background: #11161d;
  text-align: center;
}

.replay-empty h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #e6edf3;
}

.replay-empty p {
  margin: 0 0 16px;
  color: #8b949e;
  line-height: 1.55;
}

.replay-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.replay-diff-bar {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid #30363d;
  border-radius: 8px;
  background: #11161d;
}

.replay-diff-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #8b949e;
  margin-bottom: 6px;
}

.replay-diff-meta {
  font-variant-numeric: tabular-nums;
}

.replay-diff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.replay-diff-chip {
  border: 1px solid #30363d;
  background: #161b22;
  color: #c9d1d9;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  cursor: pointer;
}

.replay-diff-chip span {
  color: #8b949e;
}

.replay-diff-chip--seal {
  border-color: #238636;
  color: #3fb950;
}

.replay-diff-chip--break {
  border-color: #da3633;
  color: #ff7b72;
}

.replay-timeline-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(1, 4, 9, 0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.replay-timeline-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 92vw);
  z-index: 90;
  background: #0d1117;
  border-left: 1px solid #30363d;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
}

.replay-timeline-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px;
}

.replay-timeline-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.replay-timeline-drawer-head h2 {
  margin: 0;
  font-size: 16px;
}

.replay-timeline-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #8b949e;
  line-height: 1.45;
}

.replay-timeline-drawer-actions {
  margin-bottom: 10px;
}

.replay-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
}

.replay-timeline-item {
  margin: 0 0 6px;
  content-visibility: auto;
  contain-intrinsic-size: auto 44px;
}

.replay-timeline-jump {
  width: 100%;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #161b22;
  color: #c9d1d9;
  cursor: pointer;
  font-size: 13px;
}

.replay-timeline-item--active .replay-timeline-jump {
  border-color: #f0c674;
  background: rgba(240, 198, 116, 0.12);
  box-shadow: inset 3px 0 0 #f0c674;
}

.replay-timeline-jump:hover {
  border-color: #58a6ff;
}

.replay-timeline-jump time {
  font-variant-numeric: tabular-nums;
  color: #79c0ff;
}

.replay-timeline-item--seal .replay-timeline-jump b {
  color: #3fb950;
}

.replay-timeline-item--break .replay-timeline-jump b {
  color: #ff7b72;
}

.replay-timeline-empty {
  color: #8b949e;
  font-size: 13px;
  padding: 12px 4px;
}

.replay-frame-progress {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #8b949e;
  flex-shrink: 0;
}

.replay-row--windows {
  gap: 6px;
  margin-bottom: 4px;
}

.replay-windows-label {
  font-size: 12px;
  color: #8b949e;
  margin-right: 2px;
}

.replay-window-btn {
  padding: 2px 8px;
  font-size: 12px;
  opacity: 0.92;
}

.replay-window-btn--active {
  border-color: #f0c674 !important;
  color: #f0c674 !important;
  background: rgba(240, 198, 116, 0.12) !important;
}

.replay-diff-bar--fade {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.replay-outcome {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #30363d;
  border-radius: 8px;
  background: #161b22;
  font-size: 13px;
  line-height: 1.45;
}

.replay-outcome-title {
  font-size: 11px;
  color: #8b949e;
  margin-bottom: 4px;
}

.replay-outcome-status--limit_up { color: #3fb950; }
.replay-outcome-status--unsealed { color: #f0c674; }
.replay-outcome-status--limit_down { color: #ff7b72; }
.replay-outcome-status--out { color: #8b949e; }

.replay-outcome-loading,
.replay-outcome-muted {
  color: #8b949e;
  font-size: 12px;
}

#replayBoardWrap:not(.replay-board--ready) .cards {
  opacity: 0.55;
}

.replay-more-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: #c9d1d9;
  cursor: pointer;
}

.replay-bookmark-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.replay-bookmark-list--bar {
  margin-top: 0;
  margin-left: 4px;
  flex: 1 1 auto;
  min-width: 0;
  max-height: 52px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
}

.replay-bookmark-list--bar .replay-bookmark-head {
  display: none;
}

.replay-bookmark-head {
  width: 100%;
  font-size: 11px;
  color: #8b949e;
}

.replay-bookmark-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid #30363d;
  background: #21262d;
  color: #c9d1d9;
  cursor: pointer;
}

.replay-bookmark-chip:hover {
  border-color: #f0c674;
  color: #f0c674;
}

.replay-bookmark-del {
  opacity: 0.55;
  margin-left: 2px;
}

.replay-bookmark-del:hover {
  opacity: 1;
  color: #ff7b72;
}

.replay-bookmark-view {
  font-style: normal;
  font-size: 10px;
  opacity: 0.7;
  margin-left: 2px;
}

body.replay-drawer-open {
  overflow: hidden;
}

.review-search--hint {
  outline: 2px solid #f0c674;
  outline-offset: 1px;
}

.replay-info--hint {
  color: #f0c674 !important;
}

.replay-btn--bookmarked {
  border-color: #f0c674;
  color: #f0c674;
}

body.is-replay-loading {
  cursor: progress;
}

body.is-replay-loading .replay-curr-time--review {
  opacity: 0.55;
}

body.is-replay-loading::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 100;
  background: linear-gradient(90deg, transparent, #58a6ff, transparent);
  animation: replay-loading-bar 0.9s linear infinite;
}

@keyframes replay-loading-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 900px) {
  .replay-clock-block {
    margin-left: 0;
    width: 100%;
  }
  .replay-row--transport {
    position: sticky;
    bottom: 0;
    z-index: 40;
    padding: 6px 0;
    background: rgba(11, 14, 20, 0.96);
  }
  .replay-timeline-drawer {
    width: 100%;
  }
}

.replay-diff-bar-head small {
  color: #6e7681;
  font-weight: 400;
}

.replay-curr-time {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #58a6ff;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.replay-curr-time--review {
  font-size: 22px;
  color: #22d3ee;
}

.replay-label--review {
  color: #22d3ee;
  font-weight: 700;
}

.top-replay-bar--review {
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
}

.review-view-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}

.review-view-tab {
  background: #161b22;
  border: 1px solid #30363d;
  color: #c9d1d9;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.review-view-tab:hover {
  border-color: #58a6ff;
}

.review-view-tab--active {
  background: #122c1b;
  border-color: #238636;
  color: #3fb950;
  font-weight: 600;
}

.review-view-tabs--loading {
  opacity: 0.55;
  pointer-events: none;
}

a.replay-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.review-entry-cta {
  margin-left: 8px;
  background: #0c2d48;
  border-color: #1f6feb;
  color: #79c0ff;
}

.review-entry-cta:hover {
  background: #123a5c;
  border-color: #58a6ff;
}

.replay-info {
  font-size: 12px;
  color: #8b949e;
  min-width: 0;
  flex-shrink: 1;
}

.replay-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Timeline (time axis) ─────────────────────────────────────────────────── */

.replay-timeline-wrap {
  margin-top: 6px;
  padding: 0 2px;
}

.replay-timeline-track {
  position: relative;
}

/* Custom range slider */
.replay-range {
  width: 100%;
  cursor: pointer;
  accent-color: #58a6ff;
  height: 4px;
  margin: 0;
}

/* Tick marks row */
.replay-ticks {
  position: relative;
  height: 20px;
  margin-top: 2px;
  user-select: none;
}

.replay-tick {
  position: absolute;
  transform: translateX(-50%);
  font-size: 11px;
  color: #8b949e;
  cursor: pointer;
  transition: color .15s;
  white-space: nowrap;
}
.replay-tick::before {
  content: '';
  display: block;
  width: 1px;
  height: 5px;
  background: #484f58;
  margin: 0 auto 2px;
}
.replay-tick:hover { color: #58a6ff; }

/* Speed control strip */
.replay-speed-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.replay-speed-label {
  color: #8b949e;
  font-size: 12px;
  margin-right: 2px;
}

.speed-btn {
  background: #1e222d;
  border: 1px solid #30363d;
  color: #8b949e;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.speed-btn:hover {
  background: #2d333b;
  color: #e6edf3;
}

.speed-btn--active {
  background: #1f4068;
  border-color: #58a6ff;
  color: #58a6ff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.card {
  border-radius: 10px;
  padding: 14px 16px;
  background: #1e222d;
  border: 1px solid #30363d;
}

.card p {
  margin: 0;
  color: #8b949e;
  font-size: 13px;
  font-weight: 500;
}

.card h2 {
  margin: 8px 0 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card.up h2 {
  color: #fadb14;
  text-shadow: 0 0 20px rgba(250, 219, 20, 0.25);
}

.streak-tier-info {
  display: block;
  color: #e3b341;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.card.down h2 {
  color: #4ade80;
}

.card.normal h2 {
  color: #ffa940;
}

.diag-panel {
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #30363d;
  background: #161b22;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #c9d1d9;
}

.diag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 20px;
  border-radius: 999px;
  padding: 0 8px;
  border: 1px solid transparent;
  font-weight: 700;
}

.diag-badge--ok {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
}

.diag-badge--warn {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
}

.diag-badge--error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
}

.diag-text {
  color: #8b949e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tall-panel {
  height: 1500px;
  max-height: min(1500px, calc(100vh - 240px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: auto;
  margin: 0 -4px 0 0;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #484f58 #0d1117;
}

.industry-column-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  /* 纵向交给整页；横向由组内表格容器处理 */
  overflow: visible;
  margin: 0;
  padding-right: 0;
}

.panel-scroll::-webkit-scrollbar,
.industry-column-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.panel-scroll::-webkit-scrollbar-track,
.industry-column-scroll::-webkit-scrollbar-track {
  background: #0d1117;
  border-radius: 8px;
  margin: 4px 0;
}

.panel-scroll::-webkit-scrollbar-thumb,
.industry-column-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5c6370 0%, #484f58 100%);
  border-radius: 8px;
  border: 2px solid #0d1117;
}

.panel-scroll::-webkit-scrollbar-thumb:hover,
.industry-column-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6e7681 0%, #5c6370 100%);
}

.panel-scroll::-webkit-scrollbar-corner,
.industry-column-scroll::-webkit-scrollbar-corner {
  background: #0d1117;
}

.panel {
  margin-bottom: 12px;
  background: #1e222d;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 12px;
  overflow: hidden;
}

.panel-accent {
  border-top: 3px solid transparent;
}

.panel-accent--up {
  border-top-color: #3fb950;
  box-shadow: inset 0 1px 0 rgba(63, 185, 80, 0.15);
}

.panel-accent--down {
  border-top-color: #f85149;
  box-shadow: inset 0 1px 0 rgba(248, 81, 73, 0.12);
}

.panel-accent--neutral {
  border-top-color: #d29922;
  box-shadow: inset 0 1px 0 rgba(210, 153, 34, 0.12);
}

.panel-title {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

thead {
  background: rgba(22, 27, 34, 0.85);
}

th,
td {
  padding: 7px 8px;
  border-bottom: 1px solid #21262d;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

/* 序号与代码列收紧，避免「#」与代码之间留白过大 */
th:nth-child(1),
td:nth-child(1) {
  width: 2.25rem;
  min-width: 2.25rem;
  max-width: 2.75rem;
  padding: 7px 2px 7px 6px;
  text-align: center;
}

th:nth-child(2),
td:nth-child(2) {
  width: 4.75rem;
  min-width: 4.5rem;
  max-width: 5.5rem;
  padding: 7px 6px 7px 2px;
  white-space: nowrap;
}

th {
  color: #8b949e;
  font-weight: 600;
  font-size: 12px;
}

td {
  color: #e6edf3;
}

tbody tr:hover td {
  background: rgba(56, 139, 253, 0.06);
}

/* 细粒度列配色（与截图：代码青、名称白、行业弱色、金额金橙、时间紫、炸板青） */
td:nth-child(1) {
  color: #6e7681;
  font-weight: 500;
}

td:nth-child(2) {
  color: #58a6ff;
  font-weight: 700;
}

td:nth-child(3) {
  color: #ffffff;
  font-weight: 700;
}

td:nth-child(4) {
  color: #a5a0c8;
  font-weight: 500;
}

td:nth-child(6) {
  color: #ffffff;
  font-weight: 600;
}

td:nth-child(7),
td.time-cell {
  color: #c4b5fd;
  font-weight: 500;
}

td.time-cell--empty {
  color: #ff7b72 !important;
}

td:nth-child(8) {
  color: #e3b341;
  font-weight: 700;
}

td:nth-child(9) {
  color: #ffa940;
  font-weight: 700;
}

td:nth-child(10) {
  color: #f0c14a;
  font-weight: 700;
}

td:nth-child(11) {
  color: #67e8f9;
  font-weight: 600;
}

.up-text {
  color: #ff7b72 !important;
  font-weight: 800;
}

.down-text {
  color: #56d364 !important;
  font-weight: 800;
}

/* 涨幅列：主数字 + 连板小字（与东财风格接近） */
td.pct-cell {
  vertical-align: middle;
  line-height: 1.2;
}

td.pct-cell .pct-main {
  display: block;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
}

td.pct-cell.pct-up .pct-main {
  color: #f0f4fc !important;
}

td.pct-cell.pct-down .pct-main {
  color: #86efac !important;
}

td.pct-cell .pct-streak {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #e3b341;
  letter-spacing: 0.02em;
}

.xg-tag {
  display: inline-block;
  min-width: 34px;
  text-align: center;
  font-size: 11px;
  line-height: 16px;
  padding: 0 6px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.xg-tag--new {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
}

.xg-tag--stay {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.xg-tag--out {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.12);
}

.xg-tag--none {
  color: #8b949e;
  border-color: rgba(139, 148, 158, 0.35);
  background: rgba(139, 148, 158, 0.08);
}

input,
button {
  background: #0d1117;
  border: 1px solid #30363d;
  color: #e6edf3;
  border-radius: 6px;
  padding: 6px 10px;
}

button {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-weight: 600;
}

button:hover:not(:disabled) {
  border-color: #58a6ff;
  background: #161b22;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: #30363d;
}

#replayDate {
  width: 128px;
  color: #ffffff;
}

#replayDate::placeholder {
  color: #6e7681;
}

#replayInfo {
  color: #79c0ff;
  font-size: 13px;
}

#replayInfo.error-text {
  color: #ff7b72;
}

/* 行业/概念：涨停 vs 未封板 左右对照 */
.industry-board-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 4px;
  /* 轮询改高度时禁止浏览器锚定跳动 */
  overflow-anchor: none;
}

.industry-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  /* 随内容增高，整页统一下滑；不再锁死视口内独立滚动 */
  height: auto;
  max-height: none;
  min-height: 12rem;
  overflow: visible;
  background: #12161e;
  border: 1px solid #30363d;
  border-radius: 12px;
  contain: layout style;
}

.industry-column--up {
  border-top: 3px solid #3fb950;
}

.industry-column--unsealed {
  border-top: 3px solid #f85149;
}

.industry-column-head {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 11px 14px 10px;
  border-bottom: 1px solid #21262d;
  background: rgba(22, 27, 34, 0.92);
  /* 整页滚动下取消双栏头 sticky，避免长列表双 sticky 拖垮滑动 */
  position: relative;
  z-index: 1;
}

.industry-column-head.panel-title {
  margin-bottom: 0;
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}

.industry-column-head-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.industry-column-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.industry-column-sub {
  font-size: 11px;
  font-weight: 500;
  color: #8b949e;
  line-height: 1.3;
}

.industry-column--up .industry-column-label {
  color: #3fb950;
}

.industry-column--unsealed .industry-column-label {
  color: #f85149;
}

.industry-column-count {
  flex-shrink: 0;
  min-width: 28px;
  height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #21262d;
  border: 1px solid #30363d;
  color: #e6edf3;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.industry-column--up .industry-column-count {
  color: #3fb950;
  border-color: rgba(63, 185, 80, 0.35);
  background: rgba(63, 185, 80, 0.1);
}

.industry-column--unsealed .industry-column-count {
  color: #f85149;
  border-color: rgba(248, 81, 73, 0.35);
  background: rgba(248, 81, 73, 0.1);
}

.industry-column-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 10px 10px 12px;
}

/* flex 子项默认可收缩，会把内容压进视口导致 scrollHeight≈clientHeight、无法滚动 */
.industry-column-scroll > * {
  flex-shrink: 0;
  min-height: min-content;
}

/* 双栏内表格：略收窄，减少横向滚动 */
.industry-board-wrap .industry-cell-table-wrap table {
  min-width: 820px;
}

/* 行业分组页：组标题已是行业名，表内「行业」列可藏 */
.industry-board-wrap--by-industry .industry-cell-table-wrap th:nth-child(4),
.industry-board-wrap--by-industry .industry-cell-table-wrap td:nth-child(4) {
  display: none;
}

.industry-board-wrap--by-industry .industry-cell-table-wrap table {
  min-width: 740px;
}

/* 双栏紧凑列：隐藏最新价 / 成交额 / 流通市值 / 换手率（13 列涨停/未封板） */
.industry-board-wrap--compact article:not(.industry-cell--down) .industry-cell-table-wrap th:nth-child(6),
.industry-board-wrap--compact article:not(.industry-cell--down) .industry-cell-table-wrap td:nth-child(6),
.industry-board-wrap--compact article:not(.industry-cell--down) .industry-cell-table-wrap th:nth-child(9),
.industry-board-wrap--compact article:not(.industry-cell--down) .industry-cell-table-wrap td:nth-child(9),
.industry-board-wrap--compact article:not(.industry-cell--down) .industry-cell-table-wrap th:nth-child(10),
.industry-board-wrap--compact article:not(.industry-cell--down) .industry-cell-table-wrap td:nth-child(10),
.industry-board-wrap--compact article:not(.industry-cell--down) .industry-cell-table-wrap th:nth-child(11),
.industry-board-wrap--compact article:not(.industry-cell--down) .industry-cell-table-wrap td:nth-child(11),
.industry-group-modal.industry-board-wrap--compact:not(.industry-group-modal--down) .industry-group-modal-table-wrap th:nth-child(6),
.industry-group-modal.industry-board-wrap--compact:not(.industry-group-modal--down) .industry-group-modal-table-wrap td:nth-child(6),
.industry-group-modal.industry-board-wrap--compact:not(.industry-group-modal--down) .industry-group-modal-table-wrap th:nth-child(9),
.industry-group-modal.industry-board-wrap--compact:not(.industry-group-modal--down) .industry-group-modal-table-wrap td:nth-child(9),
.industry-group-modal.industry-board-wrap--compact:not(.industry-group-modal--down) .industry-group-modal-table-wrap th:nth-child(10),
.industry-group-modal.industry-board-wrap--compact:not(.industry-group-modal--down) .industry-group-modal-table-wrap td:nth-child(10),
.industry-group-modal.industry-board-wrap--compact:not(.industry-group-modal--down) .industry-group-modal-table-wrap th:nth-child(11),
.industry-group-modal.industry-board-wrap--compact:not(.industry-group-modal--down) .industry-group-modal-table-wrap td:nth-child(11) {
  display: none;
}

/* 跌停 11 列：隐藏最新价 / 成交额 / 流通 / 换手（勿藏选股命中） */
.industry-board-wrap--compact article.industry-cell--down .industry-cell-table-wrap th:nth-child(6),
.industry-board-wrap--compact article.industry-cell--down .industry-cell-table-wrap td:nth-child(6),
.industry-board-wrap--compact article.industry-cell--down .industry-cell-table-wrap th:nth-child(8),
.industry-board-wrap--compact article.industry-cell--down .industry-cell-table-wrap td:nth-child(8),
.industry-board-wrap--compact article.industry-cell--down .industry-cell-table-wrap th:nth-child(9),
.industry-board-wrap--compact article.industry-cell--down .industry-cell-table-wrap td:nth-child(9),
.industry-board-wrap--compact article.industry-cell--down .industry-cell-table-wrap th:nth-child(10),
.industry-board-wrap--compact article.industry-cell--down .industry-cell-table-wrap td:nth-child(10),
.industry-group-modal.industry-board-wrap--compact.industry-group-modal--down .industry-group-modal-table-wrap th:nth-child(6),
.industry-group-modal.industry-board-wrap--compact.industry-group-modal--down .industry-group-modal-table-wrap td:nth-child(6),
.industry-group-modal.industry-board-wrap--compact.industry-group-modal--down .industry-group-modal-table-wrap th:nth-child(8),
.industry-group-modal.industry-board-wrap--compact.industry-group-modal--down .industry-group-modal-table-wrap td:nth-child(8),
.industry-group-modal.industry-board-wrap--compact.industry-group-modal--down .industry-group-modal-table-wrap th:nth-child(9),
.industry-group-modal.industry-board-wrap--compact.industry-group-modal--down .industry-group-modal-table-wrap td:nth-child(9),
.industry-group-modal.industry-board-wrap--compact.industry-group-modal--down .industry-group-modal-table-wrap th:nth-child(10),
.industry-group-modal.industry-board-wrap--compact.industry-group-modal--down .industry-group-modal-table-wrap td:nth-child(10) {
  display: none;
}

.industry-board-wrap--compact .industry-cell-table-wrap table,
.industry-group-modal.industry-board-wrap--compact .industry-group-modal-table-wrap table {
  min-width: 560px;
}

/* 首板溢价成功率 */
.board-gene-cell {
  text-align: center;
  white-space: nowrap;
}
.bg-rate {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.bg-rate small {
  margin-left: 1px;
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.78em;
}
.bg-rate--empty {
  color: var(--muted, #8b93a7);
  font-weight: 500;
}
.bg-rate--hot {
  color: #ff6b6b;
}
.bg-rate--mid {
  color: #e6c07b;
}
.bg-rate--cold {
  color: #6bcb77;
}
.bg-rate--thin {
  opacity: 0.72;
  font-weight: 500;
}
.bg-rate-recent {
  margin-left: 2px;
  opacity: 0.8;
  font-size: 0.72em;
  font-weight: 500;
}
.bg-grade {
  margin-left: 3px;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.9;
}
.bg-grade--S { color: #ff8a7a; }
.bg-grade--A { color: #ff6b6b; }
.bg-grade--B { color: #e6c07b; }
.bg-grade--C { color: #9aa3b5; }
.bg-grade--D { color: #6bcb77; }
.bg-rate-recent,
.bg-grade {
  margin-left: 2px;
  font-weight: 500;
  opacity: 0.8;
  font-size: 0.72em;
}
.bg-grade {
  color: var(--muted, #a8b0c0);
}

.industry-board-wrap--by-industry.industry-board-wrap--compact .industry-cell-table-wrap table {
  min-width: 520px;
}

.board-filter-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.board-clear-filter {
  font-size: 12px;
  padding: 4px 10px;
}

article.industry-cell {
  flex-shrink: 0;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  max-width: 100%;
  background: #1e222d;
  border: 1px solid #30363d;
  border-radius: 10px;
  scroll-margin-top: 3.25rem;
  overflow-anchor: none;
  contain: layout style;
}

article.industry-cell--up {
  border-top: 3px solid #3fb950;
}

article.industry-cell--unsealed {
  border-top: 3px solid #f85149;
}

.panel-accent--unsealed {
  border-top-color: #f85149;
  box-shadow: inset 0 1px 0 rgba(248, 81, 73, 0.12);
}

.industry-cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #21262d;
  background: rgba(22, 27, 34, 0.85);
  cursor: pointer;
  user-select: none;
}

.industry-cell-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

.industry-streak-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

.industry-leader-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  border: none;
  background: rgba(234, 179, 8, 0.18);
  color: #fde047;
  font-size: 11px;
  font-weight: 500;
  vertical-align: middle;
  cursor: pointer;
  font-family: inherit;
}

.industry-leader-tag:hover {
  background: rgba(234, 179, 8, 0.32);
}

.industry-break-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(248, 81, 73, 0.14);
  color: #ffa198;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

button.industry-weak-tag {
  border: 1px solid rgba(248, 81, 73, 0.35);
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

button.industry-weak-tag:hover {
  background: rgba(248, 81, 73, 0.28);
  color: #fecaca;
}

.industry-pin-btn {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border: 1px solid #30363d;
  border-radius: 4px;
  background: #21262d;
  color: #8b949e;
  font-size: 11px;
  line-height: 1.6;
  cursor: pointer;
  vertical-align: middle;
  opacity: 0.55;
}

.industry-pin-btn:hover,
.industry-pin-btn.is-pinned {
  opacity: 1;
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
}

article.industry-cell--pinned {
  box-shadow: inset 3px 0 0 #fbbf24;
}

.migrate-event-rail {
  margin-bottom: 10px;
  padding: 8px 12px;
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid #30363d;
  border-radius: 8px;
}

.migrate-event-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: #c9d1d9;
  font-size: 12px;
  font-weight: 600;
}

.migrate-event-mute {
  padding: 2px 8px;
  border: 1px solid #30363d;
  border-radius: 4px;
  background: #21262d;
  color: #8b949e;
  font-size: 11px;
  cursor: pointer;
}

.migrate-event-mute:hover {
  color: #58a6ff;
  border-color: #58a6ff;
}

.migrate-event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.migrate-event-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #30363d;
  background: #0d1117;
  color: #e6edf3;
  font-size: 12px;
  cursor: pointer;
}

.migrate-event-chip b {
  font-size: 11px;
}

.migrate-event-chip--seal {
  border-color: rgba(63, 185, 80, 0.45);
}

.migrate-event-chip--seal b {
  color: #3fb950;
}

.migrate-event-chip--break {
  border-color: rgba(248, 81, 73, 0.45);
}

.migrate-event-chip--break b {
  color: #f85149;
}

.migrate-event-group {
  color: #8b949e;
  font-size: 11px;
}

.migrate-event-chip:hover {
  filter: brightness(1.08);
}

.industry-peer-btn {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid #30363d;
  border-radius: 4px;
  background: #21262d;
  color: #8b949e;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1.6;
}

.industry-peer-btn:hover {
  color: #58a6ff;
  border-color: #58a6ff;
}

.industry-peer-btn--miss {
  color: #e3b341 !important;
  border-color: #e3b341 !important;
}

article.industry-cell--flash {
  outline: 2px solid #58a6ff;
  box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.25);
  transition: outline-color 0.3s ease, box-shadow 0.3s ease;
}

article.industry-cell--migrate-up {
  outline: 2px solid #3fb950;
  box-shadow: 0 0 0 4px rgba(63, 185, 80, 0.28);
}

article.industry-cell--migrate-break {
  outline: 2px solid #f85149;
  box-shadow: 0 0 0 4px rgba(248, 81, 73, 0.28);
}

.industry-board-wrap--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr);
  gap: 0 0;
  align-items: stretch;
}

.industry-board-split {
  width: 8px;
  margin: 0 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, #30363d 0%, #21262d 100%);
  cursor: col-resize;
  flex-shrink: 0;
  align-self: stretch;
  position: relative;
  z-index: 2;
}

.industry-board-split:hover,
.industry-board-wrap.is-splitting .industry-board-split {
  background: #58a6ff;
}

.industry-board-split:focus-visible {
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
  background: #58a6ff;
}

.industry-board-wrap.is-splitting {
  user-select: none;
  cursor: col-resize;
}

.industry-hot-strip {
  margin-bottom: 12px;
  border: 1px solid #30363d;
  border-radius: 10px;
  background: #161b22;
  padding: 10px 12px;
}

.industry-hot-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #e6edf3;
}

.industry-hot-strip-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.industry-hot-clear {
  appearance: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(248, 81, 73, 0.45);
  background: rgba(248, 81, 73, 0.12);
  color: #ffa198;
  cursor: pointer;
  white-space: nowrap;
}

.industry-hot-clear:hover {
  border-color: #f85149;
  background: rgba(248, 81, 73, 0.22);
  color: #ffdcd9;
}

.industry-hot-hint {
  font-size: 11px;
  font-weight: 500;
  color: #8b949e;
}

.industry-hot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.industry-hot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(63, 185, 80, 0.35);
  background: rgba(63, 185, 80, 0.1);
  color: #3fb950;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  font-family: inherit;
}

.industry-hot-chip:hover {
  border-color: #58a6ff;
  color: #79b8ff;
  background: rgba(88, 166, 255, 0.12);
}

.industry-hot-chip:focus-visible,
.hot-concept-chip:focus-visible,
.xuangu-resonance-chip:focus-visible,
.industry-group-modal-close:focus-visible,
.board-toolbar-btn:focus-visible,
.board-clear-filter:focus-visible {
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
}

.industry-hot-chip.is-active,
.hot-concept-chip.is-active,
.xuangu-resonance-chip.is-active {
  border-color: #58a6ff;
  color: #79b8ff;
  background: rgba(88, 166, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.35);
}

.industry-hot-chip b {
  color: #e6edf3;
  font-variant-numeric: tabular-nums;
}

.industry-cell-badge {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #30363d;
  color: #e6edf3;
  font-size: 12px;
  font-weight: 700;
}

.industry-cell-table-wrap {
  /* 仅横向滚动；纵向交给整页，避免嵌套 scrollport 吞滚轮 */
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  min-width: 0;
  max-width: 100%;
  padding: 0 8px 10px;
}

.industry-cell-table-wrap table {
  margin: 0;
  min-width: 960px;
  table-layout: fixed;
}

/* 概念/行业分组表：加宽行业、涨幅列，避免「主线」与「N连板」横向挤叠 */
.industry-cell-table-wrap th:nth-child(3),
.industry-cell-table-wrap td:nth-child(3) {
  width: 5.25rem;
  min-width: 5rem;
  max-width: 6.5rem;
  overflow: hidden;
  vertical-align: top;
}

.industry-cell-table-wrap th:nth-child(4),
.industry-cell-table-wrap td:nth-child(4) {
  width: 5.75rem;
  min-width: 5.5rem;
  max-width: 7rem;
  overflow: hidden;
  vertical-align: top;
}

.industry-cell-table-wrap th:nth-child(5),
.industry-cell-table-wrap td:nth-child(5) {
  width: 4.25rem;
  min-width: 4.25rem;
  max-width: 4.75rem;
  padding-left: 4px;
  padding-right: 4px;
  overflow: hidden;
  vertical-align: top;
}

.industry-cell-table-wrap td.name-cell {
  max-width: 6.5rem;
  line-height: 1.35;
  word-break: keep-all;
}

.industry-cell-table-wrap td.name-cell .surge-tag,
.industry-cell-table-wrap td.name-cell .sniper-tag,
.industry-cell-table-wrap td.name-cell .speed-tag,
.industry-cell-table-wrap td.name-cell .broke-tag {
  display: block;
  margin-left: 0;
  margin-top: 3px;
  width: fit-content;
}

.industry-cell-table-wrap td.industry-res-cell {
  line-height: 1.3;
  padding-top: 6px;
  padding-bottom: 6px;
}

.industry-cell-table-wrap td.industry-res-cell .industry-main {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: #e6edf3;
}

.industry-cell-table-wrap td.industry-res-cell .res-tag {
  display: block;
  margin-left: 0;
  margin-top: 3px;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  padding: 1px 4px;
  line-height: 1.35;
}

.industry-cell-table-wrap td.pct-cell {
  white-space: nowrap;
  line-height: 1.25;
}

.industry-cell-table-wrap td.pct-cell .pct-main {
  display: block;
}

.industry-cell-table-wrap td.pct-cell .pct-streak {
  display: block;
  margin-top: 2px;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.2;
}

.industry-empty {
  padding: 24px;
  text-align: center;
  color: #8b949e;
  font-size: 14px;
  border: 1px dashed #30363d;
  border-radius: 10px;
}

.concept-cell {
  color: #a5a0c8;
  font-weight: 500;
  font-size: 12px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.concept-more {
  display: inline-block;
  margin-left: 4px;
  color: #58a6ff;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .panel-wrap {
    grid-template-columns: 1fr;
  }

  .industry-board-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .industry-board-wrap--split {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .industry-board-split {
    display: none;
  }

  .industry-column {
    height: auto;
    max-height: none;
  }

  .industry-board-wrap .industry-cell-table-wrap table,
  .industry-board-wrap--by-industry .industry-cell-table-wrap table,
  .industry-board-wrap--compact .industry-cell-table-wrap table,
  .industry-board-wrap--by-industry.industry-board-wrap--compact .industry-cell-table-wrap table {
    min-width: 740px;
  }
}

@media (max-width: 980px) {
  .industry-column {
    height: auto;
    max-height: none;
  }
}

article.industry-cell--hot {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(245, 158, 11, 0.2);
  animation: hotPulse 2s ease-in-out infinite;
}

@keyframes hotPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(245, 158, 11, 0.35); }
}

article.industry-cell--down {
  border-left: 3px solid #f85149;
}

.industry-cell--collapsed .industry-cell-table-wrap {
  display: none;
}

.industry-cell--collapsed .industry-cell-more {
  display: none;
}

/* 折叠壳层约 50px：用匹配的 intrinsic 估算，避免展开/滑动时文档高度跳变 */
article.industry-cell.industry-cell--collapsed {
  content-visibility: auto;
  contain-intrinsic-size: auto 48px;
}

.industry-cell-more {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 12px 10px;
  border: 0;
  border-top: 1px solid #21262d;
  background: rgba(22, 27, 34, 0.65);
  color: #58a6ff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.industry-cell-more:hover {
  color: #79b8ff;
  background: rgba(56, 139, 253, 0.08);
}

.industry-group-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(1, 4, 9, 0.72);
  backdrop-filter: blur(2px);
}

.industry-group-overlay[hidden] {
  display: none !important;
}

body.industry-group-overlay-open {
  overflow: hidden;
}

.industry-group-modal {
  display: flex;
  flex-direction: column;
  width: min(96vw, 1400px);
  height: min(90vh, 900px);
  max-height: 90vh;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.industry-group-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #21262d;
  background: rgba(22, 27, 34, 0.95);
}

.industry-group-modal-title {
  margin: 0;
  color: #f0f6fc;
  font-size: 16px;
  font-weight: 700;
}

.industry-group-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid #30363d;
  border-radius: 8px;
  background: #21262d;
  color: #c9d1d9;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.industry-group-modal-close:hover {
  background: #30363d;
  color: #fff;
}

.industry-group-modal-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 12px 14px;
}

.industry-group-modal-table-wrap table {
  margin: 0;
  min-width: 960px;
  table-layout: fixed;
}

/* 行业/主板浮层：与双栏一致隐藏重复「行业」列 */
.industry-group-modal--by-industry .industry-group-modal-table-wrap th:nth-child(4),
.industry-group-modal--by-industry .industry-group-modal-table-wrap td:nth-child(4) {
  display: none;
}

.industry-group-modal--by-industry .industry-group-modal-table-wrap table {
  min-width: 840px;
}

.industry-cell-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.industry-cell-toggle:focus-visible {
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
  border-radius: 4px;
}

.industry-cell-toggle::before {
  content: "▾";
  display: inline-block;
  width: 1em;
  color: #8b949e;
  margin-right: 4px;
}

.industry-cell--collapsed .industry-cell-toggle::before {
  content: "▸";
}

/* 过滤隐藏的分组彻底跳过绘制 */
article.industry-cell.is-filter-hidden {
  content-visibility: hidden;
}

.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  position: sticky;
  top: calc(var(--sticky-chrome-h, 52px) + var(--risk-banner-h, 0px));
  z-index: 40;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.board-toolbar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8b949e;
}

.board-toolbar-search {
  width: 160px;
  padding: 4px 8px;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: #0d1117;
  color: #e6edf3;
}

.board-toolbar-check {
  font-size: 13px;
  color: #c9d1d9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.board-toolbar-btn {
  padding: 4px 10px;
  font-size: 12px;
}

.board-toolbar-hint {
  margin-left: 4px;
  padding: 2px 8px;
  border: 1px dashed #30363d;
  border-radius: 4px;
  color: #8b949e;
  font-size: 11px;
  font-weight: 600;
  user-select: none;
}

.chip-delta {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.chip-delta--up {
  color: #3fb950;
}

.chip-delta--down {
  color: #f85149;
}

/* 禅模式：腾垂直空间给双栏，保留工具栏 / 情绪条 / 状态 */
body.board-zen .top-replay-bar,
body.board-zen .cards,
body.board-zen .diag-panel,
body.board-zen .industry-hot-strip,
body.board-zen .hot-concepts-strip,
body.board-zen .xuangu-resonance-strip,
body.board-zen .limit-down-panel,
body.board-zen .migrate-event-rail {
  display: none !important;
}

body.board-zen .header h1 {
  display: none;
}

body.board-zen .board-toolbar {
  top: var(--risk-banner-h, 0px);
}

body.board-zen .industry-board-wrap {
  min-height: 0;
}

body.board-zen .industry-column {
  height: auto;
  max-height: none;
}

body.board-zen .board-toolbar-hint {
  border-color: #58a6ff;
  color: #58a6ff;
}

.board-filter-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(63, 185, 80, 0.45);
  background: rgba(63, 185, 80, 0.12);
  color: #3fb950;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.limit-down-panel {
  margin-bottom: 16px;
}

.limit-down-panel-head {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-toggle {
  font-size: 13px;
  color: #8b949e;
  font-weight: normal;
}

.limit-down-panel-body {
  max-height: 360px;
  overflow: auto;
}

.hot-concepts-strip {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.12), rgba(234, 179, 8, 0.08));
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 8px;
}

.hot-concepts-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #fdba74;
  margin-bottom: 8px;
}

.hot-concepts-hint {
  font-size: 12px;
  color: #8b949e;
}

.hot-concepts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-concept-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  color: #fed7aa;
  cursor: pointer;
  transition: background 0.12s;
  appearance: none;
  font-family: inherit;
}

.hot-concept-chip:hover {
  background: rgba(249, 115, 22, 0.35);
}

.hot-concept-chip b {
  color: #fff;
  font-weight: 800;
}

.mini-sparkline {
  flex-shrink: 0;
  color: #fb923c;
  opacity: 0.95;
  vertical-align: middle;
}

.xuangu-resonance-strip {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.35), rgba(30, 41, 59, 0.6));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 8px;
}

.xuangu-resonance-chip {
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #e9d5ff;
}

.xuangu-resonance-chip b {
  color: #fbbf24;
}

.xuangu-resonance-chip--approach {
  border-color: rgba(56, 189, 248, 0.45);
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.25);
}

.xuangu-resonance-chip--approach b {
  color: #7dd3fc;
}

.br-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #c9d1d9;
  background: rgba(110, 118, 129, 0.25);
  border: 1px solid rgba(110, 118, 129, 0.35);
  white-space: nowrap;
}

.br-tag--warn {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}

.broke-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.res-group-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.hot-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #f59e0b;
  animation: hotBadgeBlink 1.5s ease-in-out infinite;
}

@keyframes hotBadgeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.resonance-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0e14;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.5);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.resonance-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.resonance-toast--jump {
  cursor: pointer;
}

.resonance-toast--jump:hover {
  filter: brightness(1.05);
}

.resonance-toast-perm {
  margin-left: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(11, 14, 20, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  color: #0b0e14;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  vertical-align: middle;
}

.resonance-toast-perm:hover {
  background: #fff;
}

/* 抢跑点火标签 */
.surge-tag {
    background: #ef4444;
    color: white;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 6px;
    animation: flashSurge 1s infinite; /* 强闪烁提醒 */
}

.speed-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(88, 166, 255, 0.18);
  color: #79b8ff;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@keyframes flashSurge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* 主线共振得分标签 - 优化版 */
.res-tag {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 4px;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: baseline;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
    line-height: 1.3;
}

/* 全局风控报警横幅 */
.risk-banner {
    width: 100%;
    padding: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    z-index: 45;
    position: sticky;
    top: var(--sticky-chrome-h, 52px);
}

.risk-DANGER {
    background-color: #7f1d1d;
    color: #fca5a5;
    border-bottom: 3px solid #ef4444;
    animation: alarmPulse 1.5s infinite;
}

.risk-WARNING {
    background-color: #78350f;
    color: #fcd34d;
    border-bottom: 3px solid #f59e0b;
}

@keyframes alarmPulse {
    0%, 100% { background-color: #7f1d1d; }
    50% { background-color: #991b1b; }
}

/* 封单比强度标签 */
.ss-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
}

.ss-tag--strong {
    background-color: #ef4444; /* 红色：封单极强，大单顶死 */
    color: white;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.ss-tag--weak {
    background-color: #22c55e; /* 绿色：封单极弱，提示随时可能炸板风险 */
    color: white;
}

/* 首板起爆潜质分 */
.fb-cell {
    font-weight: 700;
    white-space: nowrap;
}
.fb-cell.fb-empty {
    color: #555;
    font-weight: 400;
}
.fb-cell .fb-score {
    display: inline-block;
}
.fb-cell.fb--top .fb-score {
    color: #f97316; /* 橙色：妖股潜质 */
    font-size: 14px;
}
.fb-cell.fb--top .fb-badge {
    color: #facc15;
    margin-left: 2px;
}
.fb-cell.fb--high { color: #22c55e; }   /* 深绿：强 */
.fb-cell.fb--mid  { color: #10b981; }   /* 浅绿：可 */
.fb-cell.fb--low  { color: #64748b; }   /* 灰色：弱 */
.fb-cell.fb--weak { color: #94a3b8; font-weight: 500; }   /* 弱化：非候选首板 */
.fb-cell .fb-score--dim { color: #64748b; }
.fb-cell .fb-reso {
    display: inline-block;
    font-size: 10px;
    line-height: 1;
    padding: 1px 4px;
    margin-left: 2px;
    border-radius: 3px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-weight: 600;
    vertical-align: middle;
}
.fb-cell .fb-oneword {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    padding: 0 3px;
    margin-left: 3px;
    border-radius: 3px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-weight: 700;
    vertical-align: middle;
}

/* 半路狙击绝对确信信号 */
.sniper-tag {
    background: linear-gradient(90deg, #ec4899 0%, #be185d 100%); /* 骚粉色渐变，全场最亮眼 */
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
    animation: sniperPulse 0.8s infinite alternate;
}

@keyframes sniperPulse {
    from { transform: scale(1); box-shadow: 0 0 8px rgba(236, 72, 153, 0.5); }
    to { transform: scale(1.08); box-shadow: 0 0 15px rgba(236, 72, 153, 0.9); }
}

.burst-tag {
    background: #7c3aed; /* 深紫色 */
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 4px;
}
.sweep-tag {
    background: linear-gradient(90deg, #f59e0b, #ef4444); /* 橙红渐变 */
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* style.css 末尾 */
#replayProgress {
    accent-color: #7c3aed; /* 进度条滑块颜色，跟狙击手板块统一 */
    height: 6px;
    background: #30363d;
    border-radius: 5px;
    outline: none;
}

#replayProgress:hover {
    accent-color: #a78bfa;
}

.replay-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap; /* 保证手机端也能排得开 */
}

.main-nav {
    display: flex;
    gap: 15px;
    margin-left: 25px;
}
.nav-item {
    text-decoration: none;
    color: #8b949e;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}
.nav-item:hover {
    background: #30363d;
    color: white;
}
.nav-item.header-link--active,
.nav-item.nav-item--active {
  background: #238636;
  color: white;
}

.gold-rush-hint {
  font-size: 13px;
  color: #8b949e;
  margin: 0 0 14px;
  line-height: 1.55;
}

.meta--gold-rush {
  flex-wrap: wrap;
  gap: 8px 14px;
}

.meta-gold-times {
  font-size: 13px;
  color: #c9d1d9;
}

.meta-gold-times b {
  color: #e6edf3;
  font-variant-numeric: tabular-nums;
}

.panel-scroll--gold-pick {
  overflow-x: auto;
}

.gold-pick-table {
  width: 100%;
  min-width: 920px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}

.gold-pick-table th,
.gold-pick-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #21262d;
}

.gold-pick-table th {
  color: #8b949e;
  font-weight: 600;
  white-space: nowrap;
}

.gold-pick-table .col-symbol {
  width: 96px;
  max-width: 96px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

.gold-pick-table .col-name {
  width: 140px;
  min-width: 120px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gold-pick-table .col-industry {
  width: 100px;
}

.gold-pick-table .col-pct {
  width: 72px;
  text-align: right;
}

.gold-pick-table .col-price {
  width: 72px;
  text-align: right;
}

.gold-pick-table .col-vr {
  width: 64px;
  text-align: right;
}

.gold-pick-table .col-concepts {
  min-width: 200px;
}

.gold-context p {
  margin: 6px 0;
  font-size: 14px;
  color: #c9d1d9;
}

.gold-history-list {
  max-height: 440px;
  overflow: auto;
}

.gold-history-row {
  display: grid;
  grid-template-columns: 150px 72px minmax(0, 1fr) 72px 72px 24px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #21262d;
  font-size: 13px;
  cursor: pointer;
}

.gold-history-row:hover {
  background: rgba(88, 166, 255, 0.06);
}

.gold-history-row--open {
  background: rgba(234, 179, 8, 0.08);
}

.gold-history-expand {
  color: #8b949e;
  text-align: center;
  user-select: none;
}

.gold-history-detail {
  grid-column: 1 / -1;
  padding: 4px 0 10px 4px;
  font-size: 12px;
  color: #8b949e;
  border-top: 1px dashed #30363d;
  margin-top: 4px;
}

.gold-history-detail table {
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
}

.gold-pick-table tbody tr[data-symbol],
.gold-shortlist-table tbody tr[data-symbol] {
  cursor: pointer;
}

.gold-pick-table tbody tr[data-symbol]:hover,
.gold-shortlist-table tbody tr[data-symbol]:hover {
  background: rgba(88, 166, 255, 0.07);
}

.gold-history-time {
  color: #8b949e;
  font-variant-numeric: tabular-nums;
}

.gold-history-code {
  color: #58a6ff;
  font-weight: 700;
}

.gold-history-name {
  color: #e6edf3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gold-history-pct {
  color: #f85149;
  text-align: right;
}

.gold-history-score {
  color: #d29922;
  text-align: right;
}

.gold-shortlist {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #30363d;
}

.gold-shortlist-title {
  font-size: 13px;
  color: #8b949e;
  margin-bottom: 8px;
}

.gold-shortlist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.gold-shortlist-table th,
.gold-shortlist-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #21262d;
}

.gold-shortlist-table th {
  color: #8b949e;
  font-weight: 600;
}

.gold-pick-table .col-pct.pct-up {
  color: #3fb950;
}

.gold-pick-table .col-pct.pct-down {
  color: #f85149;
}

.gold-shortlist-table .pct-up {
  color: #3fb950;
}

.gold-shortlist-table .pct-down {
  color: #f85149;
}

.gold-score-breakdown {
  font-size: 12px;
  color: #8b949e;
  margin-top: 8px;
  line-height: 1.45;
}

.overnight-stats-panel {
  margin-bottom: 16px;
  border: 1px solid #30363d;
  background: #161b22;
}
.overnight-stats-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #21262d;
  color: #e6edf3;
}
.overnight-stats-meta {
  font-size: 12px;
  color: #8b949e;
  font-weight: 400;
}
.overnight-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px 14px;
}
.overnight-stat-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #30363d;
  background: #0d1117;
  font-size: 13px;
  color: #c9d1d9;
}
.overnight-stat-chip b {
  font-size: 16px;
  color: #e6edf3;
}
.overnight-stat-chip--ok b { color: #3fb950; }
.overnight-stat-chip--hot b { color: #f85149; }
.overnight-stat-chip--warn b { color: #d29922; }
.overnight-stat-chip--down b { color: #3fb950; }
.overnight-stat-chip--miss b { color: #8b949e; }
.overnight-sell-banner--soon {
  border-color: #58a6ff;
  background: rgba(56, 139, 253, 0.1);
}
.overnight-sell-banner--soon strong { color: #79c0ff; }
.overnight-sell-banner--passed {
  border-color: #484f58;
  background: rgba(48, 54, 61, 0.5);
}
.overnight-sell-banner--passed strong { color: #8b949e; }
.diag-badge--warn {
  background: #9e6a03;
  color: #fff;
  border-color: #d29922;
}
.overnight-replay-empty {
  margin-bottom: 14px;
  padding: 16px 14px;
  border-radius: 8px;
  border: 1px dashed #30363d;
  background: #0d1117;
  color: #c9d1d9;
}
.overnight-replay-empty h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #e6edf3;
}
.overnight-replay-empty p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #8b949e;
  line-height: 1.45;
}
.overnight-replay-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.overnight-hit-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.overnight-hit-chip--limit {
  color: #fff;
  background: #da3633;
  border-color: #f85149;
}
.overnight-hit-chip--strong {
  color: #0d1117;
  background: #f0c674;
  border-color: #d29922;
}
.overnight-hit-chip--profit {
  color: #fff;
  background: #238636;
  border-color: #3fb950;
}
.overnight-hit-chip--flat {
  color: #8b949e;
  background: #21262d;
  border-color: #30363d;
}
.overnight-hit-chip--down {
  color: #3fb950;
  background: rgba(63, 185, 80, 0.12);
  border-color: #238636;
}
.overnight-hit-chip--miss {
  color: #8b949e;
  background: transparent;
  border-color: #30363d;
}
.overnight-open-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #30363d;
  background: #21262d;
  color: #c9d1d9;
  white-space: nowrap;
}
.overnight-open-chip--up {
  color: #f85149;
  background: rgba(248, 81, 73, 0.12);
  border-color: #da3633;
}
.overnight-open-chip--down {
  color: #3fb950;
  background: rgba(63, 185, 80, 0.12);
  border-color: #238636;
}
.overnight-open-chip--flat {
  color: #8b949e;
}
.overnight-open-pct {
  font-weight: 500;
  opacity: 0.9;
}
.overnight-action-cell {
  font-size: 12px;
  color: #e6edf3;
  white-space: nowrap;
}
.overnight-action-cell.is-muted {
  color: #8b949e;
}
.overnight-yesterday-panel {
  margin-bottom: 16px;
  border: 2px solid #3b82f6;
}
.overnight-yesterday-title {
  background: #3b82f6;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.overnight-today-panel {
  border: 2px solid #22c55e;
  margin-bottom: 16px;
}
.overnight-today-title {
  background: #22c55e;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.overnight-empty {
  padding: 18px 16px 20px;
  color: #8b949e;
  font-size: 13px;
  line-height: 1.5;
  background: #0d1117;
  border-top: 1px solid #30363d;
}
.overnight-sell-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d29922;
  background: rgba(210, 153, 34, 0.12);
  color: #e6edf3;
  font-size: 13px;
  line-height: 1.45;
}
.overnight-sell-banner strong {
  color: #f0c674;
}
.overnight-replay-delta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #388bfd;
  background: rgba(56, 139, 253, 0.1);
  color: #e6edf3;
  font-size: 13px;
  line-height: 1.45;
}
.overnight-replay-delta strong {
  color: #79c0ff;
}
.top-replay-bar--overnight {
  border-bottom-color: #238636;
}
.top-replay-bar--overnight .replay-label {
  color: #3fb950;
  font-weight: 600;
}
body.strategy-page.is-overnight-replay .overnight-today-panel {
  box-shadow: 0 0 0 1px rgba(63, 185, 80, 0.35);
}
@media (max-width: 720px) {
  .top-replay-bar--overnight .replay-row--primary {
    flex-wrap: wrap;
  }
}
.diag-badge--locked {
  background: #1f6feb;
  color: #fff;
  border-color: #388bfd;
}

@media (max-width: 720px) {
  /* 主板 / 狙击 / 隔夜：列多时横向滑，避免 13 列被压扁 */
  .tall-panel .panel-scroll,
  .overnight-yesterday-panel .panel-scroll,
  .overnight-today-panel .panel-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tall-panel .panel-scroll table,
  .overnight-yesterday-panel table,
  .overnight-today-panel table {
    min-width: 720px;
    table-layout: auto;
  }
  .overnight-stats-bar {
    gap: 8px;
    padding: 10px 10px 12px;
  }
  .overnight-stat-chip {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    justify-content: space-between;
  }
  .overnight-sell-banner {
    font-size: 12px;
  }
  #overnightStatusPanel {
    align-items: flex-start;
  }
  #overnightStatusText {
    display: block;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* volume-anchor live columns */
th.live-col, td.live-col {
  font-weight: 600;
}
td.live-col.up {
  color: #f6465d;
}
td.live-col.down {
  color: #0ecb81;
}
td.dim {
  opacity: 0.55;
}
tr.row-breakout td {
  background: rgba(246, 70, 93, 0.08) !important;
}
tr.row-breakout td.symbol-cell::after {
  content: " ⚡";
  font-size: 10px;
  color: #f6465d;
}
td.name-cell.name-new {
  color: #f6465d;
  font-weight: 600;
}
.new-tag {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  padding: 1px 4px;
  margin-left: 4px;
  border-radius: 3px;
  background: #f6465d;
  color: #fff;
  vertical-align: middle;
}
