/* ============================================================
   2026 World Cup — Yiwu Index (YWI) Prediction Website
   Design System & Component Styles
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   1. CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  /* 主色 — 绿茵场 */
  --color-primary: #1B5E20;
  --color-primary-light: #4CAF50;
  --color-primary-dark: #0D3B0E;

  /* 强调色 — 金色奖杯 */
  --color-accent: #FFD700;
  --color-accent-warm: #FFA000;

  /* 背景 */
  --color-bg: #0A1F0A;
  --color-bg-card: #132D13;
  --color-bg-hover: #1A3D1A;

  /* 文字 */
  --color-text: #E8F5E9;
  --color-text-secondary: #A5D6A7;
  --color-text-muted: #66BB6A;

  /* 语义色 */
  --color-up: #00E676;
  --color-down: #FF5252;
  --color-neutral: #FFD740;

  /* 排名 */
  --color-gold: #FFD700;
  --color-silver: #C0C0C0;
  --color-bronze: #CD7F32;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.25);
  --shadow-glow-green: 0 0 24px rgba(76, 175, 80, 0.3);

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* 字体 */
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-number: 'Outfit', 'Noto Sans SC', sans-serif;

  /* Glassmorphism */
  --glass-bg: rgba(19, 45, 19, 0.65);
  --glass-border: rgba(76, 175, 80, 0.18);
  --glass-blur: blur(16px);
}

/* ============================================================
   2. Reset & Base
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  /* 绿茵场纹理背景 */
  background-image:
    radial-gradient(ellipse 600px 600px at 20% 50%, rgba(27, 94, 32, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 20%, rgba(27, 94, 32, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 60% 80%, rgba(255, 215, 0, 0.04) 0%, transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(27, 94, 32, 0.03) 40px,
      rgba(27, 94, 32, 0.03) 80px
    );
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-warm);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  outline: none;
}

::selection {
  background: rgba(76, 175, 80, 0.35);
  color: var(--color-text);
}

/* ============================================================
   3. Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-warm) 50%, var(--color-accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s ease-in-out infinite;
}

h2 {
  font-size: 1.75rem;
  color: var(--color-text);
}

h3 {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
}

h4 {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.number {
  font-family: var(--font-number);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

small {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ============================================================
   4. Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* ============================================================
   5. Navigation
   ============================================================ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 31, 10, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.main-nav.nav-scrolled {
  background: rgba(10, 31, 10, 0.96);
  box-shadow: var(--shadow-md);
}

.main-nav .container,
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-number);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

.nav-logo .logo-icon {
  font-size: 1.5rem;
}

.nav-logo .logo-badge {
  font-size: 0.6875rem;
  padding: 2px 8px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tab-icon {
  margin-right: 4px;
}

.tab-text {
  /* tab text */
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(19, 45, 19, 0.5);
  border-radius: var(--radius-full);
  padding: 4px;
}

.nav-tab {
  position: relative;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--color-text);
  background: rgba(76, 175, 80, 0.1);
}

.nav-tab.active {
  color: var(--color-bg);
  background: var(--color-accent);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* 底部指示条动画（可选替代方案） */
.nav-tab::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
}

.nav-tab.active::after {
  transform: translateX(-50%) scaleX(0); /* 使用pill样式时隐藏底部线条 */
}

/* 若需底部线条风格，取消注释以下内容 */
/*
.nav-tabs--underline .nav-tab.active {
  background: transparent;
  color: var(--color-accent);
}
.nav-tabs--underline .nav-tab.active::after {
  transform: translateX(-50%) scaleX(1);
}
*/

/* ============================================================
   6. Hero Section
   ============================================================ */
.hero {
  position: relative;
  padding: calc(64px + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle 500px at 50% 40%, rgba(27, 94, 32, 0.35) 0%, transparent 70%),
    radial-gradient(circle 300px at 30% 60%, rgba(255, 215, 0, 0.08) 0%, transparent 60%),
    radial-gradient(circle 300px at 70% 30%, rgba(255, 160, 0, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* 足球场线条装饰 */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border: 2px solid rgba(76, 175, 80, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease both;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-up);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 3.25rem;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .hero-stat-value,
.hero-stat .stat-value {
  font-family: var(--font-number);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.hero-stat .hero-stat-label,
.hero-stat .stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   7. Dashboard / 排行榜
   ============================================================ */
.dashboard-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--glass-border);
}

.dashboard-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.dashboard-update-time {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.update-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-up);
  animation: pulse 2s infinite;
}

.dashboard-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

/* ── Team List ── */
.team-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ── Team Row ── */
.team-row {
  display: grid;
  grid-template-columns: 72px 140px 1fr 80px 80px;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
  cursor: pointer;
  position: relative;
  animation: fadeInUp 0.4s ease both;
}

.team-rank {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.team-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.team-bar {
  padding-right: var(--space-md);
}

.team-score {
  text-align: right;
}

.team-trend {
  text-align: center;
}

.team-insight {
  grid-column: 1 / -1;
  padding-top: var(--space-xs);
  border-top: 1px solid rgba(76, 175, 80, 0.06);
}

.rank-change {
  font-size: 0.6875rem;
  font-family: var(--font-number);
  font-weight: 600;
}

.rank-up-indicator {
  color: var(--color-up);
}

.rank-down-indicator {
  color: var(--color-down);
}

.rank-same {
  color: var(--color-text-muted);
  opacity: 0.4;
}

.team-row:hover {
  background: var(--color-bg-hover);
  border-color: rgba(76, 175, 80, 0.35);
  transform: translateX(4px);
  box-shadow: var(--shadow-md), var(--shadow-glow-green);
}

/* 动画延迟——每行依次出现 */
.team-row:nth-child(1)  { animation-delay: 0.05s; }
.team-row:nth-child(2)  { animation-delay: 0.10s; }
.team-row:nth-child(3)  { animation-delay: 0.15s; }
.team-row:nth-child(4)  { animation-delay: 0.20s; }
.team-row:nth-child(5)  { animation-delay: 0.25s; }
.team-row:nth-child(6)  { animation-delay: 0.30s; }
.team-row:nth-child(7)  { animation-delay: 0.35s; }
.team-row:nth-child(8)  { animation-delay: 0.40s; }
.team-row:nth-child(9)  { animation-delay: 0.45s; }
.team-row:nth-child(10) { animation-delay: 0.50s; }

/* ── 前三名特殊样式 ── */
/* 🥇 第一名 — 金色 */
.team-row:nth-child(1) {
  border-left: 4px solid var(--color-gold);
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0%, var(--glass-bg) 40%);
  box-shadow: var(--shadow-sm), 0 0 24px rgba(255, 215, 0, 0.12);
}
.team-row:nth-child(1):hover {
  box-shadow: var(--shadow-md), 0 0 32px rgba(255, 215, 0, 0.25);
}

/* 🥈 第二名 — 银色 */
.team-row:nth-child(2) {
  border-left: 4px solid var(--color-silver);
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.06) 0%, var(--glass-bg) 40%);
  box-shadow: var(--shadow-sm), 0 0 18px rgba(192, 192, 192, 0.08);
}
.team-row:nth-child(2):hover {
  box-shadow: var(--shadow-md), 0 0 28px rgba(192, 192, 192, 0.18);
}

/* 🥉 第三名 — 铜色 */
.team-row:nth-child(3) {
  border-left: 4px solid var(--color-bronze);
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.06) 0%, var(--glass-bg) 40%);
  box-shadow: var(--shadow-sm), 0 0 18px rgba(205, 127, 50, 0.08);
}
.team-row:nth-child(3):hover {
  box-shadow: var(--shadow-md), 0 0 28px rgba(205, 127, 50, 0.18);
}

/* ── Rank Number ── */
.rank-number {
  font-family: var(--font-number);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  color: var(--color-text-muted);
  min-width: 32px;
}

.team-row:nth-child(1) .rank-number { color: var(--color-gold); text-shadow: 0 0 12px rgba(255, 215, 0, 0.4); }
.team-row:nth-child(2) .rank-number { color: var(--color-silver); text-shadow: 0 0 10px rgba(192, 192, 192, 0.3); }
.team-row:nth-child(3) .rank-number { color: var(--color-bronze); text-shadow: 0 0 10px rgba(205, 127, 50, 0.3); }

/* ── Team Flag ── */
.team-flag {
  font-size: 1.5rem;
  text-align: center;
  line-height: 1;
}

/* ── Team Name ── */
.team-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Progress Bar ── */
.progress-bar {
  position: relative;
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar .progress-bar-fill,
.progress-bar .progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary-light) 50%, var(--color-accent) 100%);
  position: relative;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.progress-bar .progress-bar-fill::after,
.progress-bar .progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25));
  border-radius: var(--radius-full);
}

/* ── YWI Score ── */
.ywi-score {
  font-family: var(--font-number);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-accent);
  text-align: right;
  min-width: 56px;
}

.team-row:nth-child(1) .ywi-score { color: var(--color-gold); }
.team-row:nth-child(2) .ywi-score { color: var(--color-silver); }
.team-row:nth-child(3) .ywi-score { color: var(--color-bronze); }

/* ── Trend Badge ── */
.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-family: var(--font-number);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  min-width: 60px;
  justify-content: center;
}

.trend-badge.trend-up {
  color: var(--color-up);
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.trend-badge.trend-down {
  color: var(--color-down);
  background: rgba(255, 82, 82, 0.12);
  border: 1px solid rgba(255, 82, 82, 0.25);
}

.trend-badge.trend-neutral {
  color: var(--color-neutral);
  background: rgba(255, 215, 64, 0.12);
  border: 1px solid rgba(255, 215, 64, 0.25);
}

/* ── Insight Text ── */
.insight-text {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: var(--space-xs);
}

/* ── Expand Button ── */
.expand-section {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
}

.expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md);
  background: rgba(76, 175, 80, 0.08);
  border: 1px dashed rgba(76, 175, 80, 0.25);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.expand-btn:hover {
  background: rgba(76, 175, 80, 0.15);
  border-color: var(--color-primary-light);
  color: var(--color-text);
}

.expand-icon {
  transition: transform var(--transition-base);
}

.expand-icon.expanded {
  transform: rotate(180deg);
}

.expand-btn:hover .expand-icon {
  transform: translateY(2px);
}

/* ============================================================
   8. Hover Detail Card / 气泡卡片 (Glassmorphism)
   ============================================================ */
.detail-card {
  position: fixed;
  width: 340px;
  padding: var(--space-lg);
  background: rgba(19, 45, 19, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  pointer-events: auto;
}

.detail-card.visible,
.team-row:hover .detail-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.detail-card::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(19, 45, 19, 0.85);
  border-top: 1px solid rgba(76, 175, 80, 0.2);
  border-left: 1px solid rgba(76, 175, 80, 0.2);
}

.detail-card .detail-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--glass-border);
}

.detail-card .detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.8125rem;
}

.detail-card .detail-row .detail-label {
  color: var(--color-text-muted);
}

.detail-card .detail-row .detail-value {
  font-family: var(--font-number);
  font-weight: 600;
  color: var(--color-text);
}

.detail-card .mini-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 4px;
}

.detail-card .mini-bar .mini-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
}

/* ============================================================
   9. Methodology Section
   ============================================================ */
.methodology-section {
  padding: var(--space-2xl) 0;
}

.methodology-section h2 {
  margin-bottom: var(--space-xl);
}

.methodology-section p {
  max-width: 720px;
}

.formula-display {
  background: linear-gradient(135deg, rgba(19, 45, 19, 0.8) 0%, rgba(10, 31, 10, 0.9) 100%);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-2xl);
  margin: var(--space-xl) 0;
  font-family: var(--font-number);
  font-size: 1.125rem;
  color: var(--color-accent);
  overflow-x: auto;
  position: relative;
}

.formula-display::before {
  content: 'Formula';
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
}

.formula-display code {
  font-family: var(--font-number);
  color: var(--color-accent);
}

/* Weight Table */
.weight-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  font-size: 0.875rem;
}

.weight-table thead th {
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  background: rgba(27, 94, 32, 0.2);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--glass-border);
}

.weight-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.weight-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.weight-table tbody td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(76, 175, 80, 0.08);
  color: var(--color-text-secondary);
}

.weight-table tbody tr {
  transition: background var(--transition-fast);
}

.weight-table tbody tr:hover {
  background: rgba(76, 175, 80, 0.06);
}

.weight-table .weight-value {
  font-family: var(--font-number);
  font-weight: 700;
  color: var(--color-accent);
}

/* Platform Card */
.platform-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.platform-card:hover {
  border-color: rgba(76, 175, 80, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow-green);
}

.platform-card .platform-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.platform-card .platform-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.platform-card .platform-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   10. About Section
   ============================================================ */
.about-section {
  padding: var(--space-3xl) 0;
}

.about-section .about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-section h2 {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.about-section p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.about-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.about-card:hover {
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.about-card .about-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.about-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

/* ============================================================
   11. Footer
   ============================================================ */
.footer {
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid var(--glass-border);
  margin-top: var(--space-3xl);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-number);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ============================================================
   12. Disclaimer (免责声明底部栏)
   ============================================================ */
.disclaimer {
  background: rgba(255, 82, 82, 0.06);
  border: 1px solid rgba(255, 82, 82, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-lg);
}

.disclaimer p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.disclaimer .disclaimer-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-down);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10, 31, 10, 0.96);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid rgba(255, 82, 82, 0.2);
  padding: var(--space-sm) var(--space-lg);
  text-align: center;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.disclaimer-bar.visible {
  transform: translateY(0);
}

/* ============================================================
   13. Animations
   ============================================================ */
@keyframes progressFill {
  from {
    width: 0;
  }
  to {
    width: var(--progress, 0%);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmerText {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.3);
  }
}

/* 通用进入动画 class */
.animate-in {
  animation: fadeInUp 0.5s ease both;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }
.animate-in-delay-5 { animation-delay: 0.5s; }

.slide-in {
  animation: slideIn 0.5s ease both;
}

/* ============================================================
   14. Custom Scrollbar
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(76, 175, 80, 0.25);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(76, 175, 80, 0.45);
  background-clip: padding-box;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(76, 175, 80, 0.25) var(--color-bg);
}

/* ============================================================
   15. Utilities
   ============================================================ */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-gold   { color: var(--color-accent) !important; }
.text-up     { color: var(--color-up) !important; }
.text-down   { color: var(--color-down) !important; }
.text-muted  { color: var(--color-text-muted) !important; }

.bg-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w-full { width: 100%; }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

.pt-section { padding-top: var(--space-3xl); }
.pb-section { padding-bottom: var(--space-3xl); }

/* Button Utility */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md), var(--shadow-glow-green);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent-warm) 0%, var(--color-accent) 100%);
  color: var(--color-bg);
  border: none;
}

.btn-accent:hover {
  box-shadow: var(--shadow-md), var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: rgba(76, 175, 80, 0.1);
  border-color: var(--color-primary-light);
  color: var(--color-text);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--glass-border);
  margin: var(--space-xl) 0;
}

/* Card Utility */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(76, 175, 80, 0.3);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   16. Responsive — Tablet (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero {
    padding: calc(64px + var(--space-xl)) 0 var(--space-xl);
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    gap: var(--space-lg);
    flex-wrap: wrap;
  }

  .hero-stat .stat-value {
    font-size: 1.5rem;
  }

  .nav-tabs {
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-tab {
    padding: 6px 14px;
    font-size: 0.8125rem;
  }

  .team-row {
    grid-template-columns: 36px 32px 1fr auto;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
  }

  /* 在移动端隐藏进度条和趋势 */
  .team-row .progress-bar {
    display: none;
  }

  .team-row .trend-badge {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-header .stats-summary {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .detail-card {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .detail-card.visible {
    transform: translateY(0);
  }

  .detail-card::before {
    display: none;
  }

  .footer .container {
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }

  .formula-display {
    padding: var(--space-md);
    font-size: 0.9375rem;
  }

  .weight-table {
    font-size: 0.8125rem;
  }

  .weight-table thead th,
  .weight-table tbody td {
    padding: var(--space-sm) var(--space-md);
  }
}

/* ============================================================
   17. Responsive — Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .navbar .container {
    height: 56px;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .nav-tabs {
    padding: 3px;
  }

  .nav-tab {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  .hero-stats {
    gap: var(--space-md);
  }

  .hero-stat .stat-value {
    font-size: 1.25rem;
  }

  .team-row {
    grid-template-columns: 28px 28px 1fr auto;
    gap: var(--space-xs);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
  }

  .rank-number {
    font-size: 1rem;
  }

  .team-flag {
    font-size: 1.25rem;
  }

  .team-name {
    font-size: 0.8125rem;
  }

  .ywi-score {
    font-size: 1.125rem;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .platform-card {
    padding: var(--space-md);
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }
}

/* ============================================================
   18. Print Styles
   ============================================================ */
/* ============================================================
   19. Detail Card Internals (JS rendered)
   ============================================================ */
.detail-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: var(--space-md);
}

.detail-flag {
  font-size: 1.5rem;
}

.detail-team-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  flex: 1;
}

.detail-score {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-accent);
}

.detail-section {
  margin-bottom: var(--space-md);
}

.detail-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.detail-bar-label {
  width: 80px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.detail-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
  transition: width 0.6s ease;
}

.detail-bar-fill.category-fill {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

.detail-bar-value {
  width: 40px;
  text-align: right;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.detail-trend-summary {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
}

/* Mini Chart (sparkline) */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  padding: var(--space-xs) 0;
}

.mini-bar {
  flex: 1;
  background: var(--color-primary-light);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.mini-bar-last {
  background: var(--color-accent);
  opacity: 1;
}

.mini-bar:hover {
  opacity: 1;
}

/* ============================================================
   20. Methodology Page Components (JS rendered)
   ============================================================ */
.methodology-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.methodology-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.methodology-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: rgba(255, 160, 0, 0.06);
  border: 1px solid rgba(255, 160, 0, 0.15);
  border-radius: var(--radius-md);
}

.methodology-disclaimer {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.methodology-disclaimer ul {
  margin-top: var(--space-md);
  padding-left: var(--space-lg);
  list-style: disc;
}

.methodology-disclaimer li {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
}

.platform-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.platform-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.platform-names {
  flex: 1;
}

.platform-name-en {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.platform-weight {
  font-family: var(--font-number);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-accent);
}

.platform-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.formula-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.formula-content {
  margin-bottom: var(--space-md);
}

.formula-main {
  font-size: 1.125rem;
  color: var(--color-accent);
  font-family: var(--font-number);
  font-weight: 600;
}

.formula-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.formula-components {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.formula-component-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.formula-component-card:hover {
  border-color: rgba(76, 175, 80, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.component-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.component-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.component-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.weight-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.weight-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
}

.weight-high { color: var(--color-accent); font-weight: 800; }
.weight-medium { color: var(--color-primary-light); font-weight: 700; }
.weight-low { color: var(--color-text-muted); font-weight: 600; }

.decay-explanation {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.decay-rule {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.decay-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.decay-content strong {
  display: block;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.decay-content p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.decay-content code {
  font-family: var(--font-number);
  background: rgba(255, 215, 0, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 0.8125rem;
}

.anomaly-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

.anomaly-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 82, 82, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.anomaly-card:hover {
  border-color: rgba(255, 82, 82, 0.35);
  box-shadow: 0 0 20px rgba(255, 82, 82, 0.1);
}

.anomaly-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.anomaly-card h4 {
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.anomaly-card p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.anomaly-penalty {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-number);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-down);
}

/* ============================================================
   21. About Page Grid (JS rendered)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.about-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.about-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.about-card p {
  font-size: 0.875rem;
  text-align: left;
}

.about-footer {
  margin-top: var(--space-2xl);
  text-align: center;
  padding: var(--space-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.about-tech {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.about-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ============================================================
   22. Tab Content, Loading, Footer
   ============================================================ */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  color: var(--color-text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(76, 175, 80, 0.15);
  border-top-color: var(--color-primary-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--space-md);
}

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

.error-state {
  text-align: center;
  padding: var(--space-2xl);
}

.error-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-md);
}

.error-state h3 {
  color: var(--color-down);
  margin-bottom: var(--space-sm);
}

.error-state p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.main-footer {
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid var(--glass-border);
  margin-top: var(--space-3xl);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.7;
  margin-bottom: 0;
}

/* ============================================================
   23. Responsive fixes for new components
   ============================================================ */
@media (max-width: 768px) {
  .platform-cards,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .formula-components,
  .anomaly-rules {
    grid-template-columns: 1fr;
  }

  .team-row {
    grid-template-columns: 48px 1fr 60px;
  }

  .team-bar,
  .team-trend {
    display: none;
  }

  .team-insight {
    display: none;
  }

  .detail-card {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0 !important;
    right: 0;
    width: 100% !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 60vh;
    overflow-y: auto;
  }

  .main-nav .nav-logo .logo-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .team-row {
    grid-template-columns: 36px 1fr 50px;
    gap: var(--space-xs);
  }
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .navbar,
  .disclaimer-bar,
  .expand-btn {
    display: none;
  }

  .team-row {
    border: 1px solid #ccc;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .progress-bar .progress-fill {
    background: #333;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
