/* ============================================================
   Design System — 中国品牌价值增长排行榜
   Premium Dark Theme with Glassmorphism
   ============================================================ */

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

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

:root {
  --bg-primary: #030712;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-card-hover: rgba(30, 41, 59, 0.7);
  --border: rgba(99, 102, 241, 0.12);
  --border-hover: rgba(99, 102, 241, 0.3);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
  --font-cn: 'Noto Sans SC', 'PingFang SC', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-light); text-decoration: none; transition: var(--transition); }
a:hover { color: #c4b5fd; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Navigation ─────────────────────────────────────────── */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  background: transparent;
  transition: var(--transition);
}
.main-nav.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 36px; height: 36px; border-radius: 10px; }
.nav-title {
  font-family: var(--font-cn); font-weight: 700; font-size: 1.1rem;
  background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-link {
  padding: 8px 18px; border-radius: var(--radius-sm); font-size: 0.9rem;
  color: var(--text-secondary); font-weight: 500; transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(99, 102, 241, 0.1); }
.nav-link.active { color: var(--accent-light); }
.menu-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 8px; }
.menu-icon { width: 24px; height: 24px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding-top: 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--gradient-hero);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(99,102,241,0.12) 0%, transparent 70%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='g' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%236366f1' stroke-width='.3' opacity='.06'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23g)' width='60' height='60'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-block; padding: 8px 20px; border-radius: 100px;
  background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 0.85rem; color: var(--accent-light); font-weight: 500; margin-bottom: 28px;
  animation: fadeSlideUp 0.8s ease forwards;
}
.hero-title {
  font-family: var(--font-cn); font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, #e2e8f0 0%, #c4b5fd 40%, #818cf8 70%, #6366f1 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.3rem; color: var(--text-secondary); font-weight: 400;
  margin-bottom: 20px; letter-spacing: 0.5px;
}
.hero-desc { font-size: 1rem; color: var(--text-muted); margin-bottom: 40px; max-width: 560px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
  border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: var(--transition); border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary); color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
  color: white;
}
.btn-secondary {
  background: rgba(99, 102, 241, 0.1); color: var(--accent-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.btn-secondary:hover { background: rgba(99, 102, 241, 0.2); color: white; }
.btn-icon { width: 20px; height: 20px; }

/* ── Stats ───────────────────────────────────────────────── */
.stats-section { padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  text-align: center; padding: 32px 20px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  backdrop-filter: blur(10px); transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.stat-value {
  font-size: 2.8rem; font-weight: 800; background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-secondary); font-size: 0.85rem; margin-top: 8px; }

/* ── Section Titles ──────────────────────────────────────── */
.section-title {
  font-family: var(--font-cn); font-size: 1.8rem; font-weight: 700;
  margin-bottom: 40px; text-align: center;
}

/* ── Top 3 Cards ─────────────────────────────────────────── */
.top3-section { padding: 60px 0 80px; }
.top3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.top3-card {
  display: flex; flex-direction: column; position: relative; padding: 28px;
  border-radius: var(--radius-lg); background: var(--bg-card);
  border: 1px solid var(--border); backdrop-filter: blur(10px);
  transition: var(--transition); animation: fadeSlideUp 0.7s ease forwards;
  animation-delay: var(--delay);
}
.top3-card:hover {
  border-color: var(--border-hover); transform: translateY(-6px);
  box-shadow: var(--shadow-glow); color: var(--text-primary);
}
.top3-rank {
  position: absolute; top: -14px; left: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.top3-info { flex: 1; }
.top3-name { font-family: var(--font-cn); font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.top3-name-en { font-family: var(--font-sans); font-weight: 400; color: var(--text-secondary); font-size: 0.9rem; }
.top3-index { margin: 12px 0; display: flex; align-items: center; gap: 12px; }
.index-value { font-size: 1.6rem; font-weight: 800; color: var(--accent-light); }
.top3-chart-wrap { height: 160px; margin-top: 12px; }

/* ── Tier Badge ──────────────────────────────────────────── */
.tier-badge {
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--tier-color); background: var(--tier-bg);
  border: 1px solid color-mix(in srgb, var(--tier-color) 25%, transparent);
  white-space: nowrap;
}

/* ── Change Indicator ────────────────────────────────────── */
.change { font-weight: 600; font-size: 0.85rem; }
.change.positive { color: #22c55e; }
.change.negative { color: #ef4444; }
.change.neutral { color: var(--text-muted); }

/* ── Industry Tag ────────────────────────────────────────── */
.industry-tag {
  display: inline-block; padding: 3px 12px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 500;
  color: var(--ind-color); background: color-mix(in srgb, var(--ind-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ind-color) 20%, transparent);
}

/* ── Dimensions Grid ─────────────────────────────────────── */
.dimensions-section { padding: 60px 0 100px; }
.dims-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dim-card {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  backdrop-filter: blur(10px); transition: var(--transition);
  animation: fadeSlideUp 0.7s ease forwards; animation-delay: var(--delay);
}
.dim-card:hover { border-color: var(--dim-color); transform: translateY(-4px); }
.dim-weight {
  font-size: 2rem; font-weight: 800; color: var(--dim-color); margin-bottom: 8px;
}
.dim-name { font-family: var(--font-cn); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.dim-name-en { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 16px; }
.dim-indicator-item {
  font-size: 0.8rem; color: var(--text-muted); padding: 4px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}
.dim-indicator-item:last-child { border-bottom: none; }

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  padding: 120px 0 48px;
  background: var(--gradient-hero); border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: var(--font-cn); font-size: 2.2rem; font-weight: 800;
}
.title-en { font-family: var(--font-sans); font-weight: 400; color: var(--text-secondary); font-size: 1.2rem; }
.page-desc { color: var(--text-secondary); margin-top: 12px; font-size: 1rem; }

/* ── Rankings Controls ───────────────────────────────────── */
.rankings-section { padding: 40px 0 80px; }
.rankings-controls { margin-bottom: 32px; overflow-x: auto; }
.industry-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); font-size: 0.85rem;
  font-weight: 500; cursor: pointer; transition: var(--transition); white-space: nowrap;
  font-family: var(--font-cn);
}
.tab-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.tab-btn.active { background: rgba(99, 102, 241, 0.15); border-color: var(--accent); color: var(--accent-light); }

/* ── Chart Section ───────────────────────────────────────── */
.chart-section {
  margin-bottom: 40px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
}
.chart-title { font-family: var(--font-cn); font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; }
.chart-container { position: relative; }

/* ── Rankings Table ──────────────────────────────────────── */
.rankings-table-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-card);
}
.rankings-table { width: 100%; border-collapse: collapse; }
.rankings-table th {
  padding: 14px 16px; text-align: left; font-size: 0.78rem;
  color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8); white-space: nowrap; line-height: 1.4;
}
.rankings-table td {
  padding: 14px 16px; border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  font-size: 0.9rem; vertical-align: middle;
}
.rank-row { transition: var(--transition); cursor: pointer; }
.rank-row:hover { background: rgba(99, 102, 241, 0.05); }
.rank-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(148, 163, 184, 0.1); font-weight: 700; font-size: 0.9rem;
}
.rank-num.top-rank {
  background: var(--gradient-primary); color: white;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}
.company-link { display: flex; flex-direction: column; gap: 2px; }
.company-name { font-family: var(--font-cn); font-weight: 600; color: var(--text-primary); }
.company-name-en { font-size: 0.78rem; color: var(--text-muted); }
.index-val { font-weight: 700; color: var(--accent-light); font-size: 1.05rem; }
.dim-score {
  position: relative; font-weight: 500; font-size: 0.85rem; color: var(--text-secondary);
}

/* ── Company Detail ──────────────────────────────────────── */
.back-link { display: inline-block; color: var(--text-secondary); margin-bottom: 24px; font-size: 0.9rem; }
.back-link:hover { color: var(--accent-light); }
.company-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.company-hero-left { flex: 1; }
.company-title { font-family: var(--font-cn); font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.company-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stock-code { color: var(--text-muted); font-size: 0.85rem; font-family: 'Inter', monospace; }
.company-hero-right { display: flex; gap: 32px; text-align: center; flex-wrap: wrap; }
.hero-index-value { font-size: 3rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-index-label, .hero-rank-label, .hero-change-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.hero-rank-value { font-size: 2rem; font-weight: 800; color: var(--accent-light); }
.hero-change .change { font-size: 1.4rem; }

.company-detail-section { padding: 40px 0 80px; }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-bottom: 40px; }
.detail-card {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.card-title { font-family: var(--font-cn); font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; }
.summary-items { display: flex; flex-direction: column; gap: 16px; }
.summary-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(148,163,184,0.06); }
.summary-label { color: var(--text-secondary); font-size: 0.9rem; }
.summary-value { font-weight: 600; }

.dim-scores-grid { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.dim-score-item { }
.dim-score-bar { height: 8px; background: rgba(148,163,184,0.1); border-radius: 100px; overflow: hidden; }
.dim-score-fill { height: 100%; background: var(--dim-color); border-radius: 100px; transition: width 1s ease; }
.dim-score-info { display: flex; justify-content: space-between; margin-top: 4px; }
.dim-score-name { font-size: 0.8rem; color: var(--text-secondary); }
.dim-score-val { font-size: 0.8rem; font-weight: 600; color: var(--dim-color); }

/* ── Indicator Tabs ──────────────────────────────────────── */
.indicators-section {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
}
.indicator-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.ind-tab {
  padding: 8px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); font-size: 0.85rem;
  font-weight: 500; cursor: pointer; transition: var(--transition);
  font-family: var(--font-cn);
}
.ind-tab:hover { border-color: var(--dim-color); color: var(--text-primary); }
.ind-tab.active { background: color-mix(in srgb, var(--dim-color) 15%, transparent); border-color: var(--dim-color); color: var(--dim-color); }

/* ── Methodology ─────────────────────────────────────────── */
.methodology-section { padding: 40px 0 80px; }
.method-card {
  padding: 36px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  margin-bottom: 24px; backdrop-filter: blur(10px);
}
.method-card h2 { font-family: var(--font-cn); font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }
.method-card p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }

.weight-visual { display: flex; flex-direction: column; gap: 24px; }
.weight-bar-wrap { }
.weight-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.weight-name { font-weight: 600; font-size: 0.95rem; }
.weight-pct { font-weight: 800; font-size: 1.1rem; }
.weight-bar { height: 12px; background: rgba(148,163,184,0.1); border-radius: 100px; overflow: hidden; }
.weight-fill { height: 100%; border-radius: 100px; transition: width 1.2s ease; width: 0; }
.weight-indicators { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.weight-indicator {
  font-size: 0.75rem; color: var(--text-muted); padding: 3px 10px;
  background: rgba(148,163,184,0.06); border-radius: 100px;
}

.tier-table { margin-top: 20px; overflow-x: auto; }
.tier-table table { width: 100%; border-collapse: collapse; }
.tier-table th { padding: 12px 16px; text-align: left; font-size: 0.8rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.tier-table td { padding: 12px 16px; border-bottom: 1px solid rgba(148,163,184,0.06); font-size: 0.9rem; }

.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.source-item { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius-md); background: rgba(148,163,184,0.04); border: 1px solid rgba(148,163,184,0.08); }
.source-tier {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: white; background: var(--gradient-primary); flex-shrink: 0;
}
.source-tier.tier-b { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.source-tier.tier-c { background: linear-gradient(135deg, #f59e0b, #d97706); }
.source-desc { font-size: 0.85rem; color: var(--text-secondary); }
.source-desc strong { color: var(--text-primary); display: block; margin-bottom: 4px; }

/* ── Footer ──────────────────────────────────────────────── */
.main-footer {
  padding: 40px 0; border-top: 1px solid var(--border);
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
}
.footer-brand { font-family: var(--font-cn); font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .top3-grid { grid-template-columns: 1fr; }
  .dims-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .source-grid { grid-template-columns: 1fr; }
  .company-hero-right { gap: 24px; }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(3,7,18,0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 12px 16px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 14px 18px; font-size: 1rem; }
  .menu-toggle { display: block; }
  .nav-title { font-size: 0.95rem; }

  /* Container */
  .container { padding: 0 16px; }

  /* Hero */
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-desc { font-size: 0.9rem; }
  .hero-badge { font-size: 0.78rem; padding: 6px 16px; margin-bottom: 20px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; padding: 16px 24px; }

  /* Stats */
  .stats-section { padding: 48px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 20px 12px; }
  .stat-value { font-size: 2rem; }
  .stat-label { font-size: 0.75rem; }

  /* Top 3 */
  .top3-section { padding: 40px 0 60px; }
  .top3-grid { grid-template-columns: 1fr; gap: 20px; }
  .top3-card { padding: 20px; }
  .top3-chart-wrap { height: 140px; }
  .section-title { font-size: 1.4rem; margin-bottom: 28px; }

  /* Dimensions */
  .dimensions-section { padding: 40px 0 60px; }
  .dims-grid { grid-template-columns: 1fr; gap: 14px; }
  .dim-card { padding: 20px; }
  .dim-weight { font-size: 1.6rem; }
  .dim-name { font-size: 1rem; }

  /* Page Header */
  .page-header { padding: 90px 0 32px; }
  .page-title { font-size: 1.6rem; }
  .title-en { font-size: 0.95rem; display: block; margin-top: 4px; }
  .page-desc { font-size: 0.9rem; }

  /* Rankings */
  .rankings-section { padding: 24px 0 60px; }
  .rankings-controls { margin-bottom: 20px; }
  .industry-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; gap: 8px; }
  .tab-btn { padding: 8px 14px; font-size: 0.8rem; flex-shrink: 0; }
  .chart-section { padding: 16px; }
  .chart-title { font-size: 0.95rem; }

  /* Rankings Table — horizontal scroll with visual hint */
  .rankings-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); }
  .rankings-table th { padding: 10px 10px; font-size: 0.7rem; }
  .rankings-table td { padding: 10px 10px; font-size: 0.8rem; }
  .rank-num { width: 28px; height: 28px; font-size: 0.8rem; }
  .company-name { font-size: 0.85rem; }
  .company-name-en { font-size: 0.7rem; }
  .index-val { font-size: 0.9rem; }
  .industry-tag { font-size: 0.65rem; padding: 2px 8px; }
  .tier-badge { font-size: 0.65rem; padding: 3px 10px; }
  .change { font-size: 0.78rem; }

  /* Company Detail */
  .company-hero { flex-direction: column; gap: 24px; }
  .company-title { font-size: 1.5rem; }
  .company-hero-right { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
  .hero-index-value { font-size: 2.2rem; }
  .hero-rank-value { font-size: 1.5rem; }
  .hero-change .change { font-size: 1.1rem; }
  .hero-index-label, .hero-rank-label, .hero-change-label { font-size: 0.7rem; }
  .detail-card { padding: 20px; }
  .card-title { font-size: 1rem; margin-bottom: 16px; }
  .summary-item { padding: 8px 0; }
  .summary-label { font-size: 0.82rem; }
  .summary-value { font-size: 0.85rem; }
  .indicators-section { padding: 20px; }
  .indicator-tabs { flex-wrap: wrap; gap: 6px; }
  .ind-tab { padding: 6px 14px; font-size: 0.8rem; }

  /* Methodology */
  .method-card { padding: 20px; }
  .method-card h2 { font-size: 1.15rem; }
  .method-card p { font-size: 0.9rem; line-height: 1.7; }
  .weight-name { font-size: 0.85rem; }
  .weight-pct { font-size: 0.95rem; }
  .weight-indicator { font-size: 0.7rem; }
  .tier-table th, .tier-table td { padding: 8px 10px; font-size: 0.8rem; }
  .source-grid { grid-template-columns: 1fr; gap: 12px; }
  .source-item { padding: 14px; }

  /* Footer */
  .main-footer { padding: 28px 0; font-size: 0.78rem; }
  .footer-brand { font-size: 0.85rem; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-value { font-size: 1.6rem; }
  .company-hero-right { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .hero-index-value { font-size: 1.8rem; }
  .hero-rank-value { font-size: 1.3rem; }
  .nav-title { font-size: 0.85rem; }
}
