/* Institutional · 金融气质界面 */

:root {
  /* 暗黑 · 统一金融气质（低刺激、非纯黑） */
  --paper: #0a0c10;
  --paper-deep: #06080b;
  --white: #121822;
  --surface-2: #1a2230;
  --ink: #e2e6ee;
  --ink-soft: #aab4c4;
  --muted: #7d8899;
  --heading: #f0ebe3;
  --navy: #05070d;
  --navy-soft: #9eb4d4;
  --gold: #b89f72;
  --gold-soft: #d4c9aa;
  --gold-dim: rgba(184, 159, 114, 0.22);
  --line: rgba(255, 255, 255, 0.065);
  --line-strong: rgba(184, 159, 114, 0.3);
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 14px 44px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 22px 70px rgba(0, 0, 0, 0.5);
  --radius: 14px;
  --radius-sm: 10px;
  --link: #9eb6d8;
  --link-hover: var(--gold-soft);
  --on-gold: #0a0d14;
  --danger: #d4a0a0;
  --danger-bg: rgba(200, 100, 100, 0.12);
  --danger-border: rgba(200, 120, 120, 0.28);
  --font-display: "Songti SC", "SimSun", "STSong", "NSimSun", serif;
  --font-ui: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--paper-deep);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% 115%, rgba(184, 159, 114, 0.07), transparent 58%),
    radial-gradient(ellipse 70% 45% at 15% 0%, rgba(80, 120, 180, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(184, 159, 114, 0.04), transparent 45%),
    linear-gradient(180deg, #0c1018 0%, var(--paper) 42%, var(--paper-deep) 100%);
  pointer-events: none;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #0a1018 0%, var(--navy) 100%);
  border-bottom: 1px solid rgba(184, 159, 114, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.brand-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  /* 顶栏用浅色字；--white 在暗黑主题为卡片底色 */
  color: var(--heading);
}

.brand:hover {
  color: var(--gold-soft);
  text-decoration: none;
}

.brand-mark {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(212, 196, 168, 0.35);
}

.brand-text {
  font-feature-settings: "kern" 1;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 196, 168, 0.55);
  padding-left: 1.55rem;
}

.nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  position: relative;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(247, 245, 242, 0.72);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav a.active {
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  box-shadow: 0 2px 12px rgba(184, 149, 108, 0.35);
  text-decoration: none;
}

/* ----- Main ----- */

.main {
  flex: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  width: 100%;
}

/* ----- 首页 VIX ----- */

.panel--vix {
  margin-bottom: 1.75rem;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, var(--white) 0%, var(--surface-2) 100%);
}

.panel-header--vix {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.vix-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  width: 100%;
}

.vix-header-title {
  margin: 0 !important;
  min-width: 0;
}

.vix-header-top .vix-chart-updated {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}

.vix-header-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 1rem;
  width: 100%;
}

.vix-header-controls .vix-underlying-tabs {
  justify-content: flex-start;
}

.vix-header-controls .vix-range-tabs {
  margin-left: auto;
  justify-content: flex-end;
}

.vix-range-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.vix-underlying-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.vix-chart-updated {
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sentiment-window-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.vix-range-tab {
  margin: 0;
  padding: 0.32rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vix-range-tab:hover {
  border-color: rgba(184, 159, 114, 0.35);
  color: var(--heading);
  background: rgba(255, 255, 255, 0.09);
}

.vix-range-tab.is-active {
  color: rgba(230, 236, 245, 0.96);
  background: linear-gradient(165deg, #1e3a5a 0%, #152a42 100%);
  border-color: rgba(100, 140, 190, 0.45);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.vix-range-tab:focus-visible {
  outline: 2px solid rgba(140, 180, 220, 0.45);
  outline-offset: 2px;
}

.vix-status {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
}

.vix-status[hidden] {
  display: none !important;
}

.vix-status--error {
  color: var(--danger);
}

.vix-charts-stack {
  position: relative;
  margin: 0 0 1rem;
}

.vix-chart-wrap {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: none;
  background: linear-gradient(180deg, #141c28 0%, #101820 55%, #0d1219 100%);
  box-shadow: none;
}

.vix-chart-wrap--combined {
  border: none;
  background: linear-gradient(180deg, #151d2a 0%, #101820 48%, #0c1018 100%);
}

.vix-chart-wrap canvas {
  display: block;
  vertical-align: top;
  cursor: crosshair;
}

.vix-term-verdict {
  color: var(--gold-soft);
  font-weight: 600;
}

.vix-chart-tooltip {
  position: fixed;
  z-index: 10000;
  min-width: 10.5rem;
  max-width: 16rem;
  padding: 0.55rem 0.7rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-soft);
  pointer-events: none;
  background: rgba(18, 24, 36, 0.94);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.35);
}

.vix-chart-tooltip__range {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.vix-chart-tooltip__date {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--heading);
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.vix-chart-tooltip__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.2rem;
  color: var(--muted);
}

.vix-chart-tooltip__row strong {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.vix-chart-tooltip__hint {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

.vix-chart-tooltip__hint--warn {
  color: #d4a574;
}

.vix-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.vix-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: 0.04em;
}

.vix-input {
  width: 9.5rem;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
}

.vix-input:focus {
  outline: none;
  border-color: rgba(184, 149, 108, 0.65);
  box-shadow: 0 0 0 3px rgba(184, 149, 108, 0.15);
}

.btn-vix {
  padding: 0.55rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  border: 1px solid rgba(184, 149, 108, 0.5);
  border-radius: 999px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-vix:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-vix:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vix-hint {
  margin: 0.35rem 0 1rem;
  font-size: 0.82rem;
}

.vix-error {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: 8px;
}

/* ----- 首页 波动率温度 / 说明卡片 ----- */

.vix-edu {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}

.vix-edu__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.vix-edu__title {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--heading);
}

.vix-edu__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: none;
}

.vix-edu__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.vix-edu__intro-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.vix-edu__live-pill {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 999px;
}

.vix-edu__live-time {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.vix-edu-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

a.vix-edu-pill {
  display: inline-block;
  padding: 0.32rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.vix-edu-pill:hover {
  border-color: rgba(184, 159, 114, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.vix-edu-card {
  margin-bottom: 1rem;
  padding: 1.1rem 1.15rem 1.15rem;
  background: linear-gradient(165deg, var(--white) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.vix-edu-card--sentiment-shell {
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.vix-edu-card--sentiment-shell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(184, 149, 108, 0.45) 100%);
  pointer-events: none;
}

.vix-edu-card__title--section {
  margin: 0 0 0.85rem;
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--heading);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.vix-edu-card--sentiment-shell > .vix-edu {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.vix-edu-card--sentiment-shell.vix-edu-card--pcr > .pcr-metrics {
  margin-top: 0.35rem;
}

/* 期权 PCR 大标题与持仓量分档徽章同一行，底边与区块分隔线对齐 */
.vix-edu-card--pcr > .pcr-shell-head {
  align-items: baseline;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.vix-edu-card--pcr > .pcr-shell-head .vix-edu-card__title--section {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.vix-temp-badge[data-zone="pcr-ok"] {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.vix-edu-card--insight {
  background: linear-gradient(165deg, #151c28 0%, #121822 100%);
}

.vix-edu-card--pcr {
  background: linear-gradient(165deg, #151d2a 0%, #121a26 55%, #101820 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pcr-card__status {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
}

.pcr-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .pcr-metrics {
    grid-template-columns: 1fr;
  }
}

.pcr-metrics__block {
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pcr-metrics__block--atm {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(184, 159, 114, 0.06) 100%);
}

.pcr-metrics__h {
  margin: 0 0 0.55rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pcr-market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0;
}

.vix-edu-card--pcr .pcr-market-grid.vix-edu-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .vix-edu-card--pcr .pcr-market-grid.vix-edu-metrics,
  .pcr-market-grid {
    grid-template-columns: 1fr;
  }
}

.vix-edu-card--pcr .pcr-stat {
  display: flex;
  margin: 0;
  padding: 0.5rem 0.45rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.vix-edu-card--pcr .pcr-stat .vix-edu-metric__k {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.vix-edu-card--pcr .pcr-stat .vix-edu-metric__v {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.pcr-term-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pcr-term {
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.pcr-term__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.pcr-term__body {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.pcr-atm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin-bottom: 0.35rem;
}

.pcr-atm__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.pcr-atm__value {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}

.pcr-metrics__block--atm .pcr-hint {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
}

.pcr-cross {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem 0.75rem 1rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  max-width: none;
}

.pcr-line {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.pcr-line__k {
  display: inline-block;
  min-width: 3.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.pcr-line__v {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pcr-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
}

.vix-error--inline {
  margin-top: 0.75rem;
}

.vix-edu-card--risk {
  background: linear-gradient(165deg, #1a1816 0%, #151210 100%);
  border-color: rgba(184, 120, 90, 0.22);
}

.vix-edu-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}

.vix-edu-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--heading);
}

.vix-edu-card__sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 40rem;
  color: var(--ink-soft);
}

.vix-temp-badge {
  flex-shrink: 0;
  padding: 0.28rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.vix-temp-badge[data-zone="calm"] {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.28);
}

.vix-temp-badge[data-zone="normal"] {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.vix-temp-badge[data-zone="tense"] {
  color: #fdba74;
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.28);
}

.vix-temp-badge[data-zone="cautious"] {
  color: #fdba74;
  background: rgba(251, 146, 60, 0.16);
  border-color: rgba(251, 146, 60, 0.3);
}

.vix-temp-badge[data-zone="panic"] {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.28);
}

.vix-temp-badge--ghost {
  opacity: 0.85;
}

.vix-temp-line {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

/* p 提高优先级，避免被靠后的 .muted { font-size } 覆盖 */
p.vix-data-range {
  margin: 0.3rem 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: center;
}

.vix-temp-value {
  margin-left: 0.35rem;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}

.vix-temp-asof {
  margin: 0.2rem 0 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.vix-gauge-wrap {
  max-width: 27rem;
  margin: 0.35rem auto 0.5rem;
}

.vix-gauge-wrap canvas {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  aspect-ratio: 440 / 200;
  margin: 0 auto;
  vertical-align: top;
}

.vix-edu-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
  margin-top: 0.65rem;
}

@media (min-width: 560px) {
  .vix-edu-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.vix-edu-metric {
  padding: 0.45rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.vix-edu-metric__k {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.vix-edu-metric__v {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

/* 市场情绪页：指标数值涨红跌绿（如 VIX 当值涨跌、相对 20 日均偏离） */
#vix-edu-metrics .vix-edu-metric__v--up {
  color: #f87171;
}

#vix-edu-metrics .vix-edu-metric__v--down {
  color: #4ade80;
}

#vix-edu-metrics .vix-edu-metric__v--flat {
  color: var(--ink-soft);
}

.vix-edu-foot {
  margin: 0.65rem 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
}

.vix-edu-bullets {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.vix-edu-bullets li {
  margin-bottom: 0.35rem;
}

.vix-edu-bullets li::marker {
  color: rgba(234, 88, 12, 0.75);
}

.vix-edu-callout {
  margin: 0.85rem 0 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.vix-edu-insight__body {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.vix-edu-deflist {
  margin: 0.5rem 0 0;
  padding-left: 1.05rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}

.vix-edu-deflist li {
  margin-bottom: 0.45rem;
}

.vix-edu-deflist strong {
  color: var(--heading);
}

.vix-edu-investor {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.vix-edu-investor:first-of-type {
  margin-top: 0.55rem;
}

.vix-edu-investor__title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading);
}

.vix-edu-investor p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.vix-edu-card--risk p {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.vix-edu-card--risk p:last-child {
  margin-bottom: 0;
}

/* ----- 读懂指数：恐慌指数实操区间表 ----- */

.vix-range-table {
  margin: 1.1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.vix-range-card {
  padding: 1rem 1.15rem 1.1rem;
  background: linear-gradient(165deg, #161d2a 0%, #121820 100%);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.vix-range-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.vix-range-card__range {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--heading);
}

.vix-range-card__badge {
  flex-shrink: 0;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1px solid transparent;
}

.vix-range-card__badge[data-tone="calm"] {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.28);
}

.vix-range-card__badge[data-tone="ok"] {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.vix-range-card__badge[data-tone="cautious"] {
  color: #fdba74;
  background: rgba(251, 146, 60, 0.14);
  border-color: rgba(251, 146, 60, 0.28);
}

.vix-range-card__badge[data-tone="tense"] {
  color: #fdba74;
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.26);
}

.vix-range-card__badge[data-tone="panic"] {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.28);
}

.vix-range-card__row {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.vix-range-card__head + .vix-range-card__row {
  margin-top: 0;
}

.vix-range-card__k {
  font-weight: 700;
  color: var(--heading);
  margin-right: 0.2rem;
}

.retail-whisper {
  margin: 2.75rem auto 0;
  padding: 0 1rem;
  max-width: 26rem;
  text-align: center;
  font-size: 0.84rem;
  font-style: italic;
  letter-spacing: 0.08em;
  line-height: 1.95;
  color: rgba(170, 180, 196, 0.55);
}

.prose--retail {
  border-left: 2px solid rgba(184, 149, 108, 0.45);
  box-shadow: var(--shadow-sm);
}

.prose-highlight {
  margin: 1.15rem 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.28) 0%, rgba(184, 159, 114, 0.06) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

.tech-note {
  font-size: 0.87rem !important;
  line-height: 1.75 !important;
}

/* ----- Panels & cards ----- */

.muted {
  color: var(--muted);
  font-size: 0.94rem;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.85rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--heading);
}

.panel .muted {
  margin: 0 0 1rem;
}

.panel.panel--sentiment {
  padding-top: 1.15rem;
}

.sentiment-panel-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  width: 100%;
  margin: 0 0 0.85rem;
}

.sentiment-panel-meta__status:not([hidden]) {
  margin-right: auto;
}

.sentiment-series-asof {
  margin: 0 0 1rem;
  padding: 0 0.05rem;
  font-size: 0.82rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.sentiment-panel-meta .sentiment-series-asof--panel-tray {
  margin: 0;
  text-align: right;
}

/* 恐慌：左（标题+种类按钮）| 右（分档徽章） */
#sentiment-block-panic > .panic-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.panic-section-head__cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}

#vix-edu-overview .vix-kind-caption {
  margin: 0.15rem 0 0.45rem;
  padding: 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#sentiment-block-panic > .panic-section-head .vix-temp-badge {
  flex-shrink: 0;
  margin-left: auto;
}

#sentiment-block-panic > .panic-section-head .vix-edu-card__title--section {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.panel.panel--sentiment .vix-edu {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.25rem 2.25rem;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 1.85rem 0 0.65rem;
  color: var(--heading);
  letter-spacing: 0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

/* 关于页：连续 deflist 与小节副标题之间的留白 */
.prose.prose--about .vix-edu-deflist + p.muted {
  margin-top: 1.15rem;
  margin-bottom: 0.15rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ol {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.back-home {
  margin: 2rem 0 0;
  font-size: 0.92rem;
}

.back-home a {
  color: var(--muted);
}

.back-home a:hover {
  color: var(--gold);
}

/* ----- Footer ----- */

.site-footer {
  margin-top: auto;
  background: linear-gradient(180deg, #0a121f 0%, var(--navy) 100%);
  border-top: 1px solid rgba(184, 149, 108, 0.2);
  padding: 2rem 1.5rem 2.25rem;
}

.site-footer .inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.site-footer p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(247, 245, 242, 0.55);
}

.footer-contact {
  margin-top: 0.55rem !important;
  font-size: 0.86rem;
}

.footer-contact a {
  color: rgba(210, 184, 140, 0.92);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-meta {
  margin-top: 0.65rem !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(184, 149, 108, 0.45) !important;
}

/* ----- Responsive ----- */

@media (max-width: 640px) {
  .site-header .inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: flex-start;
  }

  .brand-sub {
    padding-left: 0;
  }

  .prose {
    padding: 1.5rem 1.35rem;
  }
}
