/* ============================================================
   MARKET CHRONICLE — Design System
   A股每日行情复盘站点 · MVP v0.1
   ============================================================
   Aesthetic: Editorial Financial · Dark Warmth · Data Forward
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@600;700;900&family=DM+Serif+Display:ital@0;1&display=swap');

/* ---- CSS Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---- Design Tokens ---- */
:root {
  /* Backgrounds */
  --bg-deep: #070b15;
  --bg-surface: #0d1425;
  --bg-card-1: #111b2e;
  --bg-card-2: #0c1425;
  --bg-elevated: rgba(255,255,255,0.03);
  --bg-hover: rgba(212,168,83,0.06);

  /* Gold Accent */
  --gold: #d4a853;
  --gold-dim: rgba(212,168,83,0.10);
  --gold-glow: rgba(212,168,83,0.20);
  --gold-dark: #b8913e;

  /* Semantic */
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.12);
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.12);
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,0.12);

  /* Text */
  --text: #f0ece4;
  --text-mid: rgba(255,255,255,0.60);
  --text-dim: rgba(255,255,255,0.35);
  --text-faint: rgba(255,255,255,0.15);

  /* Borders */
  --border-subtle: rgba(255,255,255,0.06);
  --border-mid: rgba(255,255,255,0.10);

  /* Typography */
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --font-sans: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'DM Serif Display', 'Georgia', serif;

  /* Card dimensions */
  --card-w: 360px;
  --card-h: 480px;
  --card-gap: 28px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-normal: 0.4s;
}

/* ---- Base ---- */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
}

/* ---- Background Effects ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 15% 65%, rgba(212,168,83,0.025) 0%, transparent 70%),
    radial-gradient(ellipse 600px 600px at 85% 25%, rgba(239,68,68,0.015) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 50% 85%, rgba(34,197,94,0.01) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.008) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-faint); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(7,11,21,0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-brand .brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--bg-deep);
  font-weight: 700;
  font-family: var(--font-mono);
}

.site-brand .brand-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-dim);
  font-family: var(--font-sans);
  letter-spacing: 1px;
  display: none;
}

@media (min-width: 640px) {
  .site-brand .brand-sub { display: block; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-date-indicator {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mid);
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

/* ---- Header Nav Button ---- */
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: all var(--duration-normal) ease;
  border: 1px solid transparent;
}

.header-link:hover {
  color: var(--gold);
  background: var(--bg-hover);
  border-color: var(--gold-dim);
}

/* ============================================================
   LANDING / HOMEPAGE
   ============================================================ */
.landing {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 56px;
}

/* Hero */
.hero {
  padding: 60px 24px 40px;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 1px;
}

.hero-title .gold {
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(13px, 2vw, 16px);
  color: var(--text-mid);
  margin-top: 12px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-dim);
}

.hero-meta .stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-meta .stat-num {
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 600;
}

/* ---- Latest Preview Card ---- */
.latest-preview {
  max-width: 420px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.latest-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.latest-card {
  background: linear-gradient(165deg, var(--bg-card-1), var(--bg-card-2));
  border: 1px solid var(--gold-dim);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-inout);
  cursor: pointer;
}

.latest-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.latest-card:hover {
  border-color: var(--gold-glow);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 60px rgba(212,168,83,0.04);
}

.latest-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  background: var(--gold-dim);
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.latest-card .lc-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.latest-card .lc-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.latest-card .lc-desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 14px;
}

.latest-card .lc-indices {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.latest-card .lc-index {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
}

.latest-card .lc-index .lc-name {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 10px;
}

.latest-card .lc-index .lc-val {
  font-weight: 600;
}

.lc-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gold);
  transition: all var(--duration-normal) ease;
}

.latest-card:hover .lc-arrow {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

/* ---- Date Timeline ---- */
.date-timeline {
  padding: 0 24px 60px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.timeline-header h2 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-mid);
}

.timeline-header .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  padding: 2px 10px;
  background: var(--bg-elevated);
  border-radius: 10px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  align-items: stretch;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  position: relative;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item:hover {
  padding-left: 12px;
}

.timeline-item:hover .ti-chevron {
  opacity: 1;
  transform: translateX(0);
}

.ti-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  padding-top: 2px;
}

.ti-date-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.ti-date-weekday {
  font-size: 10px;
  color: var(--text-dim);
}

.ti-divider {
  width: 1px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.ti-content {
  flex: 1;
  min-width: 0;
}

.ti-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 3px;
}

.ti-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ti-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ti-tags .minitag {
  font-size: 8px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-faint);
}

.ti-indices {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.ti-indices span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.ti-chevron {
  display: flex;
  align-items: center;
  color: var(--text-faint);
  font-size: 14px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s ease;
}

.timeline-item:hover .ti-chevron {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold);
}

/* ---- Site Footer ---- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 24px;
  text-align: center;
}

.site-footer p {
  font-size: 10px;
  color: var(--text-faint);
  line-height: 1.6;
}

.site-footer .footer-brand {
  color: var(--text-dim);
  font-weight: 500;
}

/* ============================================================
   REVIEW PAGE
   ============================================================ */
.review-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 56px;
}

/* ---- Date Nav Bar ---- */
.date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7,11,21,0.5);
  flex-shrink: 0;
}

.date-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-sans);
}

.date-nav-btn:hover:not(:disabled) {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--bg-hover);
}

.date-nav-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.date-nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
}

.date-nav-current {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}

.date-nav-weekday {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

.date-nav-title {
  font-size: 10px;
  color: var(--text-mid);
  margin-top: 2px;
  display: none;
}

@media (min-width: 640px) {
  .date-nav-title { display: block; }
}

/* ---- Date Selector Dropdown ---- */
.date-selector-wrapper {
  position: relative;
}

.date-selector-toggle {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-mid);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.date-selector-toggle:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--bg-hover);
}

.date-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-card-1);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.25s var(--ease-inout);
  z-index: 50;
}

.date-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.date-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border-subtle);
}

.date-dropdown-item:last-child { border-bottom: none; }
.date-dropdown-item:hover { background: var(--bg-hover); }

.date-dropdown-item .dd-date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.date-dropdown-item .dd-weekday {
  font-size: 10px;
  color: var(--text-dim);
}

.date-dropdown-item .dd-active {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ============================================================
   CAROUSEL
   ============================================================ */
.carousel-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.carousel-track {
  display: flex;
  gap: var(--card-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  height: var(--card-h);
  align-items: center;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

/* ---- Card Base ---- */
.card {
  flex: 0 0 var(--card-w);
  height: var(--card-h);
  scroll-snap-align: center;
  background: linear-gradient(165deg, var(--bg-card-1), var(--bg-card-2));
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s var(--ease-smooth),
              transform 0.5s var(--ease-smooth),
              border-color 0.5s ease,
              box-shadow 0.5s ease;
  opacity: 0.5;
  transform: scale(0.88);
  will-change: transform, opacity;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(212,168,83,0.10), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card.active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--gold-dim);
  box-shadow: 0 8px 48px rgba(0,0,0,0.4), 0 0 80px rgba(212,168,83,0.03);
}

.card.active::before {
  opacity: 1;
}

/* Card inner */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.card-title .gold { color: var(--gold); }

.card-subdate {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  white-space: nowrap;
  margin-top: 2px;
}

.card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.tag {
  display: inline-block;
  font-size: 8px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(212,168,83,0.08);
  border: 1px solid rgba(212,168,83,0.15);
  color: var(--gold);
  letter-spacing: 0.3px;
}

.tag-red {
  background: var(--red-dim);
  border-color: rgba(239,68,68,0.2);
  color: var(--red);
}

.tag-green {
  background: var(--green-dim);
  border-color: rgba(34,197,94,0.2);
  color: var(--green);
}

.tag-amber {
  background: var(--amber-dim);
  border-color: rgba(245,158,11,0.2);
  color: var(--amber);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ---- CARD TYPE: Dashboard ---- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  align-content: center;
}

.index-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}

.index-card:hover {
  border-color: rgba(212,168,83,0.15);
  background: rgba(212,168,83,0.03);
}

.index-name {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.index-value {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.index-change {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
}

.index-change.up { color: var(--red); }
.index-change.down { color: var(--green); }

.qualitative-line {
  text-align: center;
  font-size: 10px;
  color: var(--text-mid);
  margin-top: 8px;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.qualitative-line strong { color: var(--text); font-weight: 600; }

/* ---- CARD TYPE: Market Data ---- */
.data-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.data-row:last-child { border-bottom: none; }

.data-label {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 400;
}

.data-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.data-value .sub-info {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 400;
  color: var(--text-dim);
  display: block;
  margin-top: -1px;
}

.data-value.red { color: var(--red); }
.data-value.green { color: var(--green); }
.data-value.gold { color: var(--gold); }

/* Sentiment */
.sentiment-section {
  margin-top: 10px;
  flex-shrink: 0;
}

.sentiment-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.sentiment-bar {
  height: 6px;
  border-radius: 3px;
  display: flex;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.sentiment-bar .up-seg {
  background: linear-gradient(90deg, var(--red), #f87171);
  border-radius: 3px 0 0 3px;
  transition: width 0.6s ease;
  height: 100%;
}

.sentiment-bar .down-seg {
  background: linear-gradient(90deg, #16a34a, var(--green));
  border-radius: 0 3px 3px 0;
  transition: width 0.6s ease;
  height: 100%;
}

.sentiment-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 8px;
  color: var(--text-dim);
}

.sentiment-meta span { display: flex; align-items: center; gap: 3px; }
.sentiment-meta .dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; }
.sentiment-meta .dot.red { background: var(--red); }
.sentiment-meta .dot.green { background: var(--green); }
.sentiment-meta .dot.gold { background: var(--gold); }

/* ---- CARD TYPE: Sectors ---- */
.sector-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.sector-item {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.sector-item:last-child { border-bottom: none; }

.sector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.sector-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
}

.sector-change {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.sector-change.up { color: var(--red); }
.sector-change.down { color: var(--green); }

.sector-bar-wrap {
  height: 3px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2px;
}

.sector-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s var(--ease-smooth);
}

.sector-bar-fill.up { background: linear-gradient(90deg, #dc2626, var(--red)); }
.sector-bar-fill.down { background: linear-gradient(90deg, #16a34a, var(--green)); }

.sector-desc {
  font-size: 8px;
  color: var(--text-dim);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- CARD TYPE: Capital Flow ---- */
.flow-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-content: start;
}

.flow-col-title {
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  padding: 3px 0;
  border-radius: 4px;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}

.flow-col-title.inflow { background: var(--red-dim); color: var(--red); }
.flow-col-title.outflow { background: var(--green-dim); color: var(--green); }

.flow-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  padding: 2px 4px;
}

.flow-item .name { color: var(--text-mid); }
.flow-item .val { font-family: var(--font-mono); font-size: 10px; font-weight: 600; }
.flow-item .val.red { color: var(--red); }
.flow-item .val.green { color: var(--green); }

.flow-central {
  margin-top: 6px;
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(212,168,83,0.03);
  flex-shrink: 0;
}

.flow-central-title {
  font-size: 8px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.flow-central-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  padding: 1px 0;
}

.flow-central-row .l { color: var(--text-dim); }
.flow-central-row .r { font-family: var(--font-mono); font-weight: 600; color: var(--text); }
.flow-central-row .r.gold { color: var(--gold); }
.flow-central-row .r.red { color: var(--red); }
.flow-central-row .r.green { color: var(--green); }

.warning-bar {
  margin-top: 6px;
  padding: 5px 10px;
  background: rgba(245,158,11,0.08);
  border-left: 3px solid var(--amber);
  border-radius: 0 4px 4px 0;
  font-size: 8px;
  color: var(--amber);
  line-height: 1.3;
  flex-shrink: 0;
}

.warning-bar strong { font-weight: 600; }

/* ---- CARD TYPE: Spotlight ---- */
.spotlight-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.spot-item {
  flex: 1;
  border-radius: 10px;
  padding: 7px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.spot-item.leader {
  background: linear-gradient(135deg, rgba(239,68,68,0.10), rgba(239,68,68,0.03));
  border: 1px solid rgba(239,68,68,0.12);
}

.spot-item.flash {
  background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(245,158,11,0.03));
  border: 1px solid rgba(245,158,11,0.12);
}

.spot-item.danger {
  background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(34,197,94,0.03));
  border: 1px solid rgba(34,197,94,0.12);
}

.spot-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.spot-item.leader .spot-label { color: var(--red); }
.spot-item.flash .spot-label { color: var(--amber); }
.spot-item.danger .spot-label { color: var(--green); }

.spot-main {
  font-size: 10px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.spot-main .highlight { color: var(--gold); font-weight: 600; }

.spot-sub {
  font-size: 8px;
  color: var(--text-dim);
  line-height: 1.2;
  margin-top: 1px;
}

/* ---- CARD TYPE: Thesis ---- */
.thesis-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 4px;
}

.thesis-quote {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
}

.thesis-quote.bottom {
  transform: rotate(180deg);
  margin-top: auto;
}

.thesis-text {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: 0.5px;
  margin: 8px 0;
}

.thesis-text em { color: var(--amber); font-style: normal; }

.thesis-sub {
  font-size: 9px;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 90%;
  margin-top: 4px;
}

/* ---- CARD TYPE: Watchlist ---- */
.watchlist {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.watch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.3s ease;
  cursor: default;
}

.watch-item:hover {
  background: rgba(212,168,83,0.05);
}

.watch-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  transition: background 0.3s, color 0.3s;
}

.watch-item:hover .watch-num {
  background: var(--gold);
  color: var(--bg-deep);
}

.watch-text {
  font-size: 10px;
  color: var(--text);
  line-height: 1.3;
}

.watch-text .sig { color: var(--gold); font-weight: 500; }
.watch-text .sub { display: block; font-size: 8px; color: var(--text-dim); margin-top: 1px; }

.footer-note {
  margin-top: auto;
  font-size: 7px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.4;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ---- Carousel Arrows ---- */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(13,20,37,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-mid);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 20;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(13,20,37,0.95);
  box-shadow: 0 0 24px var(--gold-dim);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.carousel-arrow.left { left: 16px; }
.carousel-arrow.right { right: 16px; }

@media (max-width: 640px) {
  .carousel-arrow { display: none; }
}

/* ---- Carousel Dots ---- */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 20;
  padding: 3px 10px;
  background: rgba(7,11,21,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.45s var(--ease-smooth);
  border: none;
  outline: none;
  padding: 0;
  flex-shrink: 0;
}

.carousel-dot.active {
  width: 24px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}

.carousel-dot:hover:not(.active) {
  background: rgba(255,255,255,0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  :root {
    --card-w: min(320px, 78vw);
    --card-h: calc(min(320px, 78vw) * 4 / 3);
    --card-gap: 20px;
  }
  .card { padding: 20px; }
  .index-value { font-size: 17px; }
  .thesis-text { font-size: 15px; }
  .hero { padding: 40px 20px 30px; }
}

@media (max-width: 480px) {
  :root {
    --card-w: min(280px, 82vw);
    --card-h: calc(min(280px, 82vw) * 4 / 3);
    --card-gap: 14px;
  }
  .card { padding: 16px; border-radius: 12px; }
  .card-title { font-size: 14px; }
  .index-value { font-size: 15px; }
  .index-name { font-size: 9px; }
  .index-change { font-size: 11px; }
  .data-value { font-size: 12px; }
  .thesis-text { font-size: 13px; }
  .site-header { padding: 0 12px; height: 48px; }
  .review-page { padding-top: 48px; }
  .landing { padding-top: 48px; }
  .hero { padding: 30px 16px 24px; }
  .date-nav { padding: 10px 12px; gap: 8px; }
  .date-nav-center { min-width: 120px; }
  .date-nav-current { font-size: 13px; }
  .date-nav-btn { padding: 4px 10px; font-size: 11px; }
  .flow-item .val { font-size: 9px; }
  .sector-change { font-size: 11px; }
  .carousel-dots { bottom: 12px; gap: 4px; padding: 3px 8px; }
}

@media (max-height: 600px) {
  :root {
    --card-w: min(280px, 70vw);
    --card-h: calc(min(280px, 70vw) * 4 / 3);
  }
  .card { padding: 14px; }
  .date-nav { padding: 8px 16px; }
}
