/* ===== GLOBAL RESET & VARIABLES ===== */
:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --accent2: #0f3460;
  --gold: #f0a500;
  --light: #f8f8f8;
  --text: #2d2d2d;
  --text-light: #6b7280;
  --gradient1: linear-gradient(135deg, #1a1a2e, #16213e);
  --gradient2: linear-gradient(135deg, #e94560, #f0a500);
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans TC', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.8;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

nav .logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav .logo span { color: var(--accent); }

nav .nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav .nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

nav .nav-links a:hover,
nav .nav-links a.active { color: var(--accent); }

nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

nav .nav-links a:hover::after,
nav .nav-links a.active::after { width: 100%; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient1);
  color: #fff;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(233,69,96,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(15,52,96,0.2) 0%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-2%, 2%) rotate(2deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff, #e94560);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.3rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(233,69,96,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(233,69,96,0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  color: #fff;
  position: relative;
}

.page-hero.stories-hero { background: linear-gradient(135deg, #0f3460, #f0a500); }
.page-hero.nba-hero { background: linear-gradient(135deg, #1d428a, #c8102e); }
.page-hero.asia-hero { background: linear-gradient(135deg, #2d1b69, #e94560); }
.page-hero.default-hero { background: var(--gradient1); }

.page-hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.page-hero p { font-size: 1.2rem; opacity: 0.9; max-width: 700px; margin: 0 auto; }

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #fff;
}

.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; color: var(--primary); }

.card-body .tag {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: rgba(233,69,96,0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-body p { color: var(--text-light); font-size: 0.95rem; }
.card-body .arrow { display: inline-block; margin-top: 0.5rem; color: var(--accent); font-weight: 600; }

/* ===== STORY ARTICLE ===== */
.story-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.story-article article {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}

.story-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.story-emoji {
  font-size: 3rem;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(233,69,96,0.1), rgba(240,165,0,0.1));
  border-radius: 16px;
  flex-shrink: 0;
}

.story-body { color: var(--text-light); line-height: 2; }
.story-body p { margin-bottom: 1rem; }

.story-takeaway {
  background: linear-gradient(135deg, rgba(233,69,96,0.05), rgba(15,52,96,0.05));
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--text);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-item:nth-child(odd) .timeline-content { text-align: right; margin-right: 3rem; margin-left: 0; }
.timeline-item:nth-child(even) .timeline-content { margin-left: 3rem; }

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(233,69,96,0.2);
  z-index: 1;
}

.timeline-content {
  width: 45%;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.timeline-content:hover { transform: translateY(-3px); }

.timeline-year {
  display: inline-block;
  background: var(--gradient2);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.timeline-content h3 { margin-bottom: 0.5rem; color: var(--primary); }
.timeline-content p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

/* ===== STATS ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 3rem 2rem;
  background: var(--gradient1);
  color: #fff;
  margin: 2rem 0;
  border-radius: 16px;
}

.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.9rem; opacity: 0.8; margin-top: 0.3rem; }

/* ===== CHART ===== */
.chart-section {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: var(--shadow);
}

.chart-section h3 { text-align: center; margin-bottom: 1.5rem; color: var(--primary); }

/* ===== INSIGHT BOX ===== */
.insight-box {
  background: linear-gradient(135deg, rgba(233,69,96,0.05), rgba(15,52,96,0.05));
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
}

.insight-box h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ===== QUOTE ===== */
.quote-block {
  background: var(--gradient1);
  color: #fff;
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  margin: 3rem 0;
  position: relative;
}

.quote-block::before {
  content: '\201C';
  font-size: 6rem;
  position: absolute;
  top: -10px; left: 30px;
  opacity: 0.2;
  font-family: Georgia, serif;
}

.quote-block blockquote {
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.quote-block cite {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

/* ===== SLOWVAR CONTENT ===== */
.slowvar-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.slowvar-content h2, .slowvar-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ===== WAVE CARD ===== */
.wave-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.wave-card-header {
  padding: 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.wave-number { font-size: 3rem; font-weight: 900; opacity: 0.4; flex-shrink: 0; }
.wave-card-header h3 { font-size: 1.5rem; }
.wave-card-header .period { font-size: 0.9rem; opacity: 0.8; margin-top: 0.3rem; }
.wave-card-body { padding: 2rem; }
.wave-card-body p { color: var(--text-light); line-height: 2; margin-bottom: 1rem; }

.figure-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }

.figure-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(233,69,96,0.08);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.wave-impact {
  background: linear-gradient(135deg, rgba(233,69,96,0.05), rgba(15,52,96,0.05));
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1rem;
}

.wave-impact strong { color: var(--accent); }

/* ===== KEY FIGURES ===== */
.key-figure {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  align-items: center;
}

.key-figure-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  font-weight: 800;
}

.key-figure-info h4 { color: var(--primary); margin-bottom: 0.3rem; }
.key-figure-info .years { color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.key-figure-info p { color: var(--text-light); font-size: 0.9rem; margin-top: 0.5rem; }

.evolution-arrow { text-align: center; font-size: 2rem; color: var(--accent); margin: 1rem 0; }

/* ===== DATA CARDS ===== */
.data-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.data-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}

.data-card .value { font-size: 2rem; font-weight: 800; color: var(--accent); }
.data-card .label { font-size: 0.85rem; color: var(--text-light); margin-top: 0.3rem; }

/* ===== FLOW DIAGRAM ===== */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.flow-node {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.flow-arrow { font-size: 1.5rem; color: var(--accent); }

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.feature-card:hover { transform: translateY(-5px); }
.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 0.5rem; color: var(--primary); }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem;
  text-align: center;
}

footer h3 { color: #fff; margin-bottom: 1rem; }
footer p { font-size: 0.9rem; margin-bottom: 0.5rem; }

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  list-style: none;
}

footer .footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero h1 { font-size: 2.2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(odd) { flex-direction: column; padding-left: 50px; }
  .timeline-dot { left: 20px; }
  .timeline-content, .timeline-item:nth-child(odd) .timeline-content { width: 100%; margin: 1rem 0 0 0; text-align: left; }
  .stats-bar { gap: 1.5rem; }
  .key-figure { grid-template-columns: 80px 1fr; }
}
