:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --sidebar-bg: #f9fafb;
  --hover-bg: #f3f4f6;
  --border: #e5e7eb;
  --border-light: #f1f3f5;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --ink: #18181b;
  --emerald: #059669;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --danger: #dc2626;
  --shadow-float: 0 12px 32px rgba(17, 24, 39, 0.12), 0 2px 6px rgba(17, 24, 39, 0.06);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ==========================================
   极简顶部导航
   ========================================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
  flex-shrink: 0;
}

.app-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text);
  white-space: nowrap;
}

.source-switcher {
  display: inline-flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 7px;
  padding: 2px;
  margin-left: 6px;
}

.source-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s;
}

.source-btn:hover {
  color: var(--text);
}

.source-btn.active {
  background: #ffffff;
  color: var(--text);
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.meta-divider {
  color: #d1d5db;
}

.meta-text {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* 按钮体系：克制、干净 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s, color 0.12s, opacity 0.12s;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.btn-dark {
  background: var(--ink);
  color: #ffffff;
}

.btn-dark:hover:not(:disabled) {
  background: #27272a;
}

.btn-compare {
  background: var(--ink);
  color: #ffffff;
}

.btn-compare:hover:not(:disabled) {
  background: #27272a;
}

.btn-subtle {
  background: #ffffff;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-subtle:hover:not(:disabled) {
  background: var(--hover-bg);
  color: var(--text);
  border-color: #d1d5db;
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
  padding: 0 8px;
}

.btn-text:hover:not(:disabled) {
  color: var(--danger);
  background: #fef2f2;
}

.btn-danger-outline {
  background: #ffffff;
  color: var(--danger);
  border-color: #fecaca;
}

.btn-danger-outline:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #f87171;
}

.mobile-only {
  display: none !important;
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--hover-bg);
  color: var(--text);
}

.count-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--emerald);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.hidden-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--danger);
  font-size: 10.5px;
  font-weight: 700;
}

.btn-spinner {
  width: 12px;
  height: 12px;
  border: 1.8px solid #d1d5db;
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ==========================================
   8 个榜单标签栏
   ========================================== */
.bench-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 14px;
  height: 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
}

.bench-tabs::-webkit-scrollbar {
  height: 0;
}

.bench-tab {
  position: relative;
  height: 40px;
  padding: 0 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.12s;
}

.bench-tab:hover {
  color: var(--text);
}

.bench-tab.active {
  color: var(--text);
  font-weight: 600;
}

.bench-tab.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px 2px 0 0;
}

.bench-tab-zh {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 11.5px;
}

.bench-tab.active .bench-tab-zh {
  color: var(--emerald);
  font-weight: 500;
}

.bench-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 8px 0 6px;
  flex-shrink: 0;
}

.cat-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
  flex-shrink: 0;
}

.cat-picker-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cat-picker-btn:hover {
  background: #e5e7eb;
}

.more-bench-menu {
  position: fixed;
  z-index: 1080;
  width: 300px;
  max-height: 70vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-float);
  padding: 6px;
}

.more-bench-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
}

.more-bench-item:hover {
  background: var(--hover-bg);
}

.more-bench-item.active {
  background: var(--emerald-bg);
}

.more-bench-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.more-bench-item-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.more-bench-item.active .more-bench-item-title {
  color: var(--emerald);
}

.more-bench-item-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.more-bench-cat {
  font-size: 11px;
  font-weight: 650;
  color: var(--text-muted);
  padding: 8px 10px 4px;
  letter-spacing: 0.02em;
}

.more-bench-cat:not(:first-child) {
  border-top: 1px solid var(--border-light);
  margin-top: 4px;
}

/* ==========================================
   主体布局
   ========================================== */
.workspace {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* 左侧极简模型栏 */
.sidebar {
  width: 296px;
  min-width: 270px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: margin-left 0.18s ease, opacity 0.18s ease;
}

.sidebar.collapsed {
  margin-left: -296px;
  opacity: 0;
  pointer-events: none;
}

.sidebar-top {
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

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

.sidebar-tabs {
  display: inline-flex;
  background: #eceef2;
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}

.sidebar-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.sidebar-tab:hover {
  color: var(--text);
}

.sidebar-tab.active {
  background: #ffffff;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.stab-count {
  font-size: 11px;
  color: var(--emerald);
  font-weight: 650;
}

.selected-remove-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.sidebar-head-ops {
  display: flex;
  align-items: center;
  gap: 6px;
}

.emphasis-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 30px;
  min-height: 30px;
  margin-top: 8px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  font-size: 11.5px;
  font-weight: 600;
  color: #065f46;
  white-space: nowrap;
}

.emphasis-bar #emphasisHint {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emphasis-bar #btnClearEmphasis {
  flex-shrink: 0;
  font-weight: 600;
}

.family-row.emphasized,
.tier-row.emphasized {
  background: #ecfdf5 !important;
  box-shadow: inset 2.5px 0 0 #059669;
}

.family-row.emphasized .family-name,
.tier-row.emphasized .effort-chip {
  color: #047857;
  font-weight: 700;
}

.selected-clickable {
  cursor: pointer;
}

.selected-emph-guide {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 2px 8px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.sidebar-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.sidebar-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-num {
  font-size: 11.5px;
  color: var(--text-muted);
}

.link-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  color: var(--danger);
  text-decoration: underline;
}

.search-wrap {
  position: relative;
  margin-bottom: 8px;
}

.search-wrap input {
  width: 100%;
  height: 30px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #ffffff;
  font-size: 12.5px;
  color: var(--text);
  outline: none;
}

.search-wrap input:focus {
  border-color: #9ca3af;
}

.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 3px;
}

.filter-toggles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.toggle-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.toggle-item input {
  margin: 0;
  accent-color: var(--ink);
}

/* 三层极简模型树 */
.model-tree {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px 24px;
}

.tree-loading {
  padding: 28px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
}

.brand-section {
  margin-bottom: 4px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}

.brand-row:hover {
  background: var(--hover-bg);
}

.tree-caret {
  width: 14px;
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  transition: transform 0.14s;
  flex-shrink: 0;
}

.tree-caret.open {
  transform: rotate(90deg);
}

.brand-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.brand-meta.has-sel {
  color: var(--emerald);
  font-weight: 600;
}

.brand-children {
  padding-left: 10px;
}

.family-block {
  margin-bottom: 1px;
}

.family-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}

.family-row:hover {
  background: var(--hover-bg);
}

.family-row input[type="checkbox"] {
  margin: 0;
  accent-color: var(--ink);
  flex-shrink: 0;
  cursor: pointer;
}

.family-shape {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.family-name {
  font-size: 12.5px;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-iq {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.tier-list {
  padding: 2px 2px 6px 20px;
}

.tier-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 5px;
  border-radius: 6px;
  font-size: 12px;
}

.tier-row:hover {
  background: #ffffff;
}

.tier-row.no-data {
  opacity: 0.45;
}

.tier-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.tier-check-label input {
  margin: 0;
  accent-color: var(--ink);
  flex-shrink: 0;
}

.effort-chip {
  font-size: 11px;
  font-weight: 500;
  color: #374151;
  background: #eceef2;
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.effort-chip.strong {
  background: #e2e8f0;
  color: #111827;
  font-weight: 600;
}

.tier-cost {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  white-space: nowrap;
}

.tier-cmp-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.12s;
}

.tier-cmp-btn:hover {
  background: #f3f4f6;
  color: var(--text);
  border-color: var(--border);
}

.tier-cmp-btn.active {
  background: var(--emerald-bg);
  color: var(--emerald);
  border-color: var(--emerald-border);
  font-weight: 600;
}

/* ==========================================
   右侧图表主画布
   ========================================== */
.chart-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  flex: 1;
}

.bench-meta {
  min-width: 0;
}

.bench-title-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bench-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text);
}

.visible-count {
  font-size: 11.5px;
  color: var(--text-muted);
}

.bench-desc {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.segmented {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 7px;
  padding: 2px;
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 3px 9px;
  font-size: 12px;
  color: var(--text-secondary);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

.seg-btn.active {
  background: #ffffff;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* 画布舞台 */
.chart-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #ffffff;
  overflow: hidden;
}

/* 图表右上角：仅看某一家快速切换 */
.brand-focus-bar {
  position: absolute;
  top: 12px;
  right: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
  max-width: calc(100% - 140px);
  flex-wrap: wrap;
}

.focus-pill {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}

.focus-pill:hover {
  background: var(--hover-bg);
  color: var(--text);
}

.focus-pill.active {
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
}

.focus-pill.brand-on {
  background: #f3f4f6;
  color: var(--text);
  font-weight: 500;
}

.focus-pill.brand-on:hover {
  background: #e5e7eb;
}

.focus-pill.brand-off {
  background: transparent;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.65;
}

.focus-pill.brand-off:hover {
  opacity: 1;
  text-decoration: none;
  background: var(--hover-bg);
  color: var(--text);
}

.scatter-svg {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
}

.chart-footnote {
  position: absolute;
  left: 70px;
  bottom: 6px;
  font-size: 11px;
  color: #9ca3af;
  pointer-events: none;
}

.watermark {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  font-size: 15px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.055);
  letter-spacing: 0.1em;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* 绿区设置弹出层 */
.popover-panel {
  position: fixed;
  z-index: 1120;
  width: 300px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-float);
  padding: 13px 14px;
  font-size: 12.5px;
}

.popover-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.popover-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.45;
}

.green-mode-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.radio-row input {
  margin: 0;
  accent-color: var(--emerald);
}

.custom-green-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px;
  background: #f9fafb;
  border-radius: 7px;
  border: 1px solid var(--border-light);
}

.num-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--text-secondary);
}

.num-field input {
  height: 28px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  width: 100%;
  outline: none;
}

.popover-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* 删除范围确认弹窗 */
.confirm-sheet {
  width: min(400px, 92vw);
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.22);
  border: 1px solid var(--border);
}

.confirm-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.confirm-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.confirm-remember {
  margin-bottom: 14px;
  display: flex;
}

.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm-actions .btn {
  width: 100%;
  height: 34px;
}

/* 引导窗英雄卡片与提示 */
.guide-card-hero {
  grid-column: 1 / -1;
}

.guide-note {
  display: block;
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11.5px;
}

/* 手机端触屏操作底栏与连线提示 */
.touch-pair-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: #18181b;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}

.touch-pair-banner .link-btn {
  color: #6ee7b7;
}

.touch-sheet {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1050;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.2);
}

.touch-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.touch-sheet-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.touch-sheet-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.touch-sheet-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 7px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 10px;
}

.touch-sheet-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 6px;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 880;
  background: rgba(17, 24, 39, 0.35);
}

/* ==========================================
   手机端全面响应式适配（<= 768px）
   ========================================== */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-flex !important;
  }
  .topbar {
    height: auto;
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .app-title {
    font-size: 13.5px;
  }
  .source-switcher {
    margin-left: 2px;
  }
  .source-btn {
    padding: 3px 8px;
    font-size: 11.5px;
  }
  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 5px;
  }
  .topbar-actions .btn {
    height: 27px;
    padding: 0 9px;
    font-size: 11.5px;
  }
  .bench-tabs {
    height: 36px;
    padding: 0 8px;
  }
  .bench-tab {
    height: 36px;
    font-size: 11.5px;
    padding: 0 7px;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    z-index: 900;
    transform: translateX(-105%);
    margin-left: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: transform 0.2s ease;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  #btnToggleSidebar {
    display: none;
  }
  .chart-toolbar {
    padding: 8px 10px;
    gap: 6px;
  }
  .bench-title {
    font-size: 13px;
  }
  .bench-desc {
    font-size: 11px;
  }
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .brand-focus-bar {
    top: 6px;
    right: 8px;
    left: 8px;
    max-width: none;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .watermark {
    font-size: 12px;
  }
  .pair-dock {
    left: 8px;
    right: 8px;
    bottom: 8px;
    min-width: 0;
    max-width: none;
    padding: 9px 11px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }
  .guide-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  padding: 24px;
}

.empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.empty-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================
   0 毫秒瞬时极简悬浮卡片
   ========================================== */
.tooltip-card {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  background: #18181b;
  color: #fafafa;
  border-radius: 9px;
  padding: 10px 12px;
  min-width: 220px;
  max-width: 310px;
  box-shadow: var(--shadow-float);
  font-size: 12px;
}

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

.tt-title {
  font-weight: 650;
  font-size: 13px;
  color: #ffffff;
}

.tt-brand {
  font-size: 11px;
  color: #a1a1aa;
  margin-top: 1px;
}

.tt-effort {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  white-space: nowrap;
}

.tt-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 4px;
  column-gap: 14px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tt-k {
  color: #a1a1aa;
}

.tt-v {
  font-weight: 650;
  color: #ffffff;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.tt-tag {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.tt-tag-green {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.tt-tag-frontier {
  background: rgba(255, 255, 255, 0.14);
  color: #e4e4e7;
}

.tt-tag-neutral {
  color: #a1a1aa;
  padding-left: 0;
}

.tt-overlap {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.tt-overlap-title {
  font-size: 10.5px;
  color: #a1a1aa;
  margin-bottom: 3px;
}

.tt-overlap-item {
  font-size: 11px;
  color: #e4e4e7;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* ==========================================
   右键菜单
   ========================================== */
.context-menu {
  position: fixed;
  z-index: 1100;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--shadow-float);
  min-width: 235px;
  padding: 4px;
}

.context-header {
  padding: 6px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.context-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
}

.context-item:hover:not(:disabled) {
  background: var(--hover-bg);
}

.context-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.context-item-accent {
  color: var(--emerald);
  font-weight: 600;
}

.context-item-accent:hover:not(:disabled) {
  background: var(--emerald-bg);
}

.context-item-danger {
  color: var(--danger);
}

.context-item-danger:hover:not(:disabled) {
  background: #fef2f2;
}

.context-divider {
  height: 1px;
  background: var(--border-light);
  margin: 3px 0;
}

.ctx-icon {
  width: 14px;
  text-align: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* ==========================================
   全榜横评对比大屏抽屉
   ========================================== */
.compare-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: rgba(17, 24, 39, 0.36);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.compare-sheet {
  width: min(1180px, 96vw);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.compare-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.compare-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.compare-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-body {
  flex: 1;
  overflow: auto;
  padding: 18px 22px 24px;
}

.compare-empty {
  padding: 64px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.compare-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

/* 顶部性价比总评卡片 */
.compare-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafafa;
  position: relative;
}

.summary-card.top-value {
  border-color: var(--emerald-border);
  background: var(--emerald-bg);
}

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

.summary-model {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.summary-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.summary-remove {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0 3px;
  line-height: 1;
}

.summary-remove:hover {
  color: var(--danger);
}

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

.stat-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
}

.stat-chip.green {
  background: #d1fae5;
  border-color: #a7f3d0;
  color: #065f46;
}

.stat-chip.gold {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

/* 全榜对比矩阵表格 */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 12.5px;
}

.compare-table th,
.compare-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  vertical-align: top;
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-right: none;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table thead th {
  background: #f9fafb;
  font-weight: 650;
  text-align: left;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.cmp-bench-cell {
  width: 220px;
  background: #fcfcfd;
}

.cmp-bench-name {
  font-weight: 650;
  color: var(--text);
  font-size: 12.5px;
}

.cmp-bench-zh {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cmp-cell.best-score {
  background: #f0fdf4;
}

.cmp-score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.cmp-score-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.cmp-cell.best-score .cmp-score-val {
  color: #047857;
}

.cmp-badge {
  font-size: 10.5px;
  font-weight: 650;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.cmp-badge-win {
  background: #d1fae5;
  color: #065f46;
}

.cmp-badge-cheap {
  background: #fef3c7;
  color: #92400e;
}

.cmp-badge-exp {
  background: #fef2f2;
  color: #b91c1c;
}

.cmp-bar-track {
  height: 5px;
  background: #eef0f3;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.cmp-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #94a3b8;
}

.cmp-cell.best-score .cmp-bar-fill {
  background: var(--emerald);
}

.cmp-cost-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.cmp-value-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed #eceef2;
  font-size: 11.5px;
  color: #374151;
  font-variant-numeric: tabular-nums;
}

.cmp-value-line.best-value {
  color: #047857;
  font-weight: 650;
}

.cmp-time-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.cmp-time-line.best-time {
  color: #0369a1;
  font-weight: 600;
}

.cmp-badge-value {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.cmp-badge-fast {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.cmp-badge-muted {
  background: #f3f4f6;
  color: #6b7280;
}

/* 双点拖拽虚线对比：右下角固定可叉掉卡片（严格沿用图表模型原色 + 模型与思考强度分两行完整显示） */
.pair-dock {
  position: absolute;
  right: 18px;
  bottom: 28px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #18181b;
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 376px;
  max-width: 480px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06);
  border: 1px solid #d4d4d8;
  font-size: 12px;
}

.pair-close-btn {
  border: none;
  background: #f4f4f5;
  color: #52525b;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-left: 4px;
}

.pair-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.tooltip-card.pair-mode {
  min-width: 376px;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.97);
  color: #18181b;
  border: 1px solid #d4d4d8;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.pair-color-a {
  color: var(--pair-a, #2563eb) !important;
}

.pair-color-b {
  color: var(--pair-b, #d97706) !important;
}

.pair-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

.pair-dot-a { background: var(--pair-a, #2563eb); }
.pair-dot-b { background: var(--pair-b, #d97706); }

.pair-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4e4e7;
}

.pair-model {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pair-model-right {
  text-align: right;
  align-items: flex-end;
}

.pair-model-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
}

.pair-model-name .pair-dot {
  margin-right: 0;
}

.pair-model-right .pair-model-name {
  justify-content: flex-end;
}

.pair-model-effort-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.pair-model-effort-right {
  justify-content: flex-end;
}

.pair-effort-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* 思考强度五级分色（浅底卡片：拉线对比弹窗） */
.pair-effort-pill.effort-lv-low {
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
}

.pair-effort-pill.effort-lv-medium {
  color: #047857;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
}

.pair-effort-pill.effort-lv-high {
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}

.pair-effort-pill.effort-lv-xhigh {
  color: #c2410c;
  background: #ffedd5;
  border: 1px solid #fdba74;
}

.pair-effort-pill.effort-lv-max {
  color: #7e22ce;
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
}

.pair-effort-pill.effort-lv-default {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

/* 思考强度五级分色（深底卡片：悬停简介弹窗） */
.tt-effort.effort-lv-low {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.tt-effort.effort-lv-medium {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.tt-effort.effort-lv-high {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.48);
}

.tt-effort.effort-lv-xhigh {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.24);
  border: 1px solid rgba(251, 146, 60, 0.52);
}

.tt-effort.effort-lv-max {
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.28);
  border: 1px solid rgba(192, 132, 252, 0.56);
}

.tt-effort.effort-lv-default {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tt-crown-note {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 11px;
  color: #fde68a;
  font-weight: 500;
}

.pair-model-sub {
  font-size: 10.5px;
  color: #71717a;
}

.pair-vs {
  font-size: 11px;
  font-weight: 700;
  color: #047857;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  flex-shrink: 0;
  margin-top: 2px;
}

.pair-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pair-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 5px;
  border-bottom: 1px dashed #e4e4e7;
}

.pair-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pair-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.pair-label {
  color: #52525b;
  font-weight: 500;
}

.pair-vals {
  color: #71717a;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pair-verdict {
  font-size: 11.5px;
  font-weight: 650;
  color: #047857;
}

.pair-verdict.neutral {
  color: #52525b;
  font-weight: 500;
}

.pair-foot {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid #e4e4e7;
  font-size: 10.5px;
  color: #71717a;
}

.pair-line-hit {
  cursor: pointer;
}

/* 首次打开图文并茂功能引导窗 */
.guide-sheet {
  width: min(880px, 94vw);
  max-height: 92vh;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.24);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.guide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 20px 11px;
  border-bottom: 1px solid var(--border-light);
}

.guide-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
}

.guide-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.guide-video-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 20px 0;
  padding: 11px 15px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff1f5 0%, #fef2f2 52%, #ecfdf5 100%);
  border: 1.5px solid #fda4af;
  text-decoration: none;
  color: #18181b;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.1);
}

.guide-video-banner:hover {
  transform: translateY(-1px);
  border-color: #fb7185;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.18);
}

.guide-video-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fb7299 0%, #f43f5e 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.28);
}

.guide-video-info {
  flex: 1;
  min-width: 0;
}

.guide-video-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 3px;
}

.guide-video-badge {
  display: inline-block;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: #fb7299;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.guide-video-sub {
  font-size: 11.5px;
  color: #6b7280;
  font-weight: 500;
}

.guide-video-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.guide-video-cta {
  padding: 6px 13px;
  border-radius: 999px;
  background: #18181b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.16s ease;
}

.guide-video-banner:hover .guide-video-cta {
  background: #e11d48;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px 20px;
  overflow-y: auto;
}

@media (max-width: 680px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

.guide-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px 12px;
  background: #fafafa;
}

.guide-illus {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.guide-illus svg {
  width: 100%;
  height: 112px;
  display: block;
}

.guide-card-title {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 4px;
}

.guide-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.52;
}

.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: #f9fafb;
}

/* 引导卡片精致轻动效 */
.anim-green-zone {
  fill-opacity: 0.12;
  animation: greenPulse 2.8s ease-in-out infinite;
}

@keyframes greenPulse {
  0%, 100% { fill-opacity: 0.08; }
  50% { fill-opacity: 0.2; }
}

.anim-draw-line {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: drawLine 3.2s ease-out infinite;
}

@keyframes drawLine {
  0% { stroke-dashoffset: 220; }
  45%, 85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

.anim-sweet-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ringPulse 2.2s ease-out infinite;
}

@keyframes ringPulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  70% { transform: scale(1.25); opacity: 0.15; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* 卡片 3 单向正向放大动画：删掉右侧红点 -> 剩余点向右展开 -> 淡出重置，绝不反向回缩 */
.anim-scene-cycle {
  animation: sceneCycleFade 4s linear infinite;
}

@keyframes sceneCycleFade {
  0%, 84% { opacity: 1; }
  92%, 98% { opacity: 0; }
  100% { opacity: 1; }
}

.anim-del-target {
  animation: delTargetPop 4s ease-out infinite;
}

@keyframes delTargetPop {
  0%, 26% { opacity: 1; transform: scale(1); }
  34%, 100% { opacity: 0; transform: scale(0.4); }
}

.anim-zoom-pt1 {
  animation: zoomPt1 4s ease-out infinite;
}
@keyframes zoomPt1 {
  0%, 32% { transform: translateX(0); }
  54%, 95% { transform: translateX(22px); }
  96%, 100% { transform: translateX(0); }
}

.anim-zoom-pt2 {
  animation: zoomPt2 4s ease-out infinite;
}
@keyframes zoomPt2 {
  0%, 32% { transform: translateX(0); }
  54%, 95% { transform: translateX(58px); }
  96%, 100% { transform: translateX(0); }
}

.anim-zoom-pt3 {
  animation: zoomPt3 4s ease-out infinite;
}
@keyframes zoomPt3 {
  0%, 32% { transform: translateX(0); }
  54%, 95% { transform: translateX(92px); }
  96%, 100% { transform: translateX(0); }
}

.anim-dash-flow {
  animation: dashFlow 1.4s linear infinite;
}

@keyframes dashFlow {
  to { stroke-dashoffset: -18; }
}

.anim-badge-float {
  animation: badgeFloat 2.6s ease-in-out infinite;
}

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

.cmp-extra {
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-muted);
}

.cmp-na {
  color: #cbd5e1;
  font-size: 12px;
}

/* 轻提示 */
.toast {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1250;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-float);
  max-width: 520px;
  text-align: center;
}

.toast.info { background: #18181b; color: #ffffff; }
.toast.success { background: #065f46; color: #ecfdf5; }
.toast.error { background: #991b1b; color: #fef2f2; }

/* SVG 交互样式 */
.series-line {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.08s;
}

.point-group {
  cursor: pointer;
  transition: opacity 0.08s;
}

.point-label {
  font-size: 11px;
  font-weight: 500;
  fill: #374151;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 3.2px;
  stroke-linejoin: round;
}

.dimmed {
  opacity: 0.14 !important;
}

.highlighted-line {
  stroke-width: 3 !important;
  opacity: 1 !important;
}


/* 页面底部极简开源与社区友链页脚 */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 5px 14px;
  font-size: 11px;
  color: #71717a;
  background: #fafafa;
  border-top: 1px solid #e4e4e7;
  flex-shrink: 0;
}

.site-footer a {
  color: #3f3f46;
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  color: #059669;
  text-decoration: underline;
}

.footer-sep {
  color: #d4d4d8;
}
