/* ============================================================
   华夏守护 · 全站样式
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --red: #C41E3A;
  --red-light: #E8475F;
  --red-dark: #9B1B30;
  --gold: #D4A843;
  --gold-light: #F0D68A;
  --gold-dark: #B08A2E;
  --ink: #1A1A2E;
  --ink-light: #2D2D44;
  --ink-mid: #3A3A55;
  --paper: #FAF6F0;
  --paper-warm: #F5EFE0;
  --paper-cool: #F0F2F8;
  --jade: #2E8B6F;
  --jade-light: #4ADEAA;
  --jade-dark: #1D6B53;
  --blue: #2563EB;
  --blue-dark: #1E40AF;
  --blue-light: #60A5FA;
  --orange: #FF6B35;
  --purple: #8B5CF6;
  --cyan: #06B6D4;
  --text: #2C2C2C;
  --text-light: #666;
  --text-muted: #999;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
  --shadow-heavy: 0 20px 60px rgba(0,0,0,0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  line-height: 1.85;
}
h1, h2, h3, h4, h5 { font-family: 'Noto Serif SC', 'SimSun', serif; line-height: 1.4; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ---------- UTILITIES ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-jade { color: var(--jade); }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 72px;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(26, 26, 46, 0.98);
  border-bottom-color: var(--gold);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem; font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
}
.nav-links { display: flex; gap: 0.5rem; }
.nav-links a {
  color: rgba(255,255,255,0.75); font-size: 0.9rem;
  font-weight: 500; letter-spacing: 0.5px;
  padding: 0.5rem 1rem; border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-light); background: rgba(212,168,67,0.1);
}
.mobile-toggle {
  display: none; color: #fff; font-size: 1.5rem;
  cursor: pointer; background: none; border: none;
  width: 44px; height: 44px;
  display: none; align-items: center; justify-content: center;
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--ink) 0%, #0D0D1A 50%, #1A0A0A 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196,30,58,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(212,168,67,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(46,139,111,0.06) 0%, transparent 50%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.035;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(212,168,67,0.5) 60px, rgba(212,168,67,0.5) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(212,168,67,0.5) 60px, rgba(212,168,67,0.5) 61px);
}
.hero-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(212,168,67,0.12);
  animation: float 20s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  33% { transform: translate(20px, -20px) rotate(5deg); }
  66% { transform: translate(-15px, 15px) rotate(-3deg); }
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 2rem; max-width: 900px;
}
.hero-badge {
  display: inline-block; padding: 0.4rem 1.5rem;
  border: 1px solid rgba(212,168,67,0.35); border-radius: 50px;
  color: var(--gold-light); font-size: 0.85rem; letter-spacing: 3px;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900; color: #fff; margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s both;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold-light), var(--red), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero p {
  font-size: 1.15rem; color: rgba(255,255,255,0.65);
  max-width: 620px; margin: 0 auto 2.5rem;
  animation: fadeInUp 1s ease 0.4s both;
}
.hero-buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.35); font-size: 0.8rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll .arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,0.25);
  border-bottom: 2px solid rgba(255,255,255,0.25);
  transform: rotate(45deg);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- PAGE HERO (sub pages) ---------- */
.page-hero {
  position: relative;
  padding: 10rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
}
.page-hero.culture-hero { background: linear-gradient(135deg, #2C1810, #5C3A28, #3A2010); }
.page-hero.safety-hero { background: linear-gradient(135deg, #1A2A1A, #2E4A1E, #1A3020); }
.page-hero.cyber-hero { background: linear-gradient(135deg, #0D1B2A, #1B2D4A, #0A1628); }
.page-hero.quiz-hero { background: linear-gradient(135deg, #2A0A2A, #4A1A4A, #1A0A2A); }
.page-hero.resources-hero { background: linear-gradient(135deg, #1A1A2E, #2D2D55, #1A1A3E); }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(212,168,67,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(196,30,58,0.08) 0%, transparent 60%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; opacity: 0.03;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(212,168,67,0.5) 60px, rgba(212,168,67,0.5) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(212,168,67,0.5) 60px, rgba(212,168,67,0.5) 61px);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero .breadcrumb {
  color: rgba(255,255,255,0.5); font-size: 0.85rem;
  margin-bottom: 1rem; letter-spacing: 1px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a:hover { color: var(--gold-light); }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; color: #fff; margin-bottom: 1rem;
}
.page-hero p {
  color: rgba(255,255,255,0.6); font-size: 1.1rem;
  max-width: 600px; margin: 0 auto;
}
.page-hero .page-icon {
  font-size: 3rem; margin-bottom: 1rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.5px;
  transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; box-shadow: 0 4px 20px rgba(196,30,58,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(196,30,58,0.45); }
.btn-secondary {
  background: transparent; color: var(--gold-light);
  border: 1.5px solid rgba(212,168,67,0.45);
}
.btn-secondary:hover { background: rgba(212,168,67,0.1); border-color: var(--gold); }
.btn-jade {
  background: linear-gradient(135deg, var(--jade), var(--jade-dark));
  color: #fff; box-shadow: 0 4px 20px rgba(46,139,111,0.35);
}
.btn-jade:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(46,139,111,0.45); }
.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,0.45); }
.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ---------- SECTIONS ---------- */
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .label {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  color: var(--red); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 0.8rem; position: relative;
}
.section-header .label::before,
.section-header .label::after {
  content: ''; position: absolute; top: 50%; width: 30px; height: 1px;
  background: var(--red); opacity: 0.4;
}
.section-header .label::before { right: calc(100% + 12px); }
.section-header .label::after { left: calc(100% + 12px); }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--ink); margin-bottom: 1rem;
}
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 620px; margin: 0 auto; }
.section-alt { background: var(--paper-warm); }
.section-dark {
  background: var(--ink); color: #fff;
}
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header .label { color: var(--gold-light); }
.section-dark .section-header .label::before,
.section-dark .section-header .label::after { background: var(--gold-light); }
.section-dark .section-header p { color: rgba(255,255,255,0.6); }

/* ---------- CARDS ---------- */
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: all var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-img { position: relative; overflow: hidden; }
.card-img .emoji-bg {
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; height: 200px;
}
.card-img .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}
.card-img .tag {
  position: absolute; top: 0.8rem; left: 0.8rem;
  padding: 0.25rem 0.7rem; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; color: #fff;
}
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--ink); }
.card-body p { color: var(--text-light); font-size: 0.92rem; line-height: 1.7; }
.card-body .link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 0.8rem; color: var(--red); font-weight: 600; font-size: 0.88rem;
  transition: gap var(--transition);
}
.card:hover .link { gap: 0.7rem; }

/* ---------- GRIDS ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

/* ---------- STATS ---------- */
.stats-banner {
  background: linear-gradient(135deg, var(--ink), var(--ink-light));
  padding: 4rem 2rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem; max-width: 1000px; margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Noto Serif SC', serif;
  font-size: 3rem; font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 0.3rem; }

/* ---------- SAFETY CARDS ---------- */
.safety-card {
  background: #fff; border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  border-left: 4px solid transparent;
  transition: all var(--transition);
}
.safety-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.safety-card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.safety-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--ink); }
.safety-card p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 0.8rem; }
.safety-card ul { margin-top: 0.5rem; }
.safety-card li {
  position: relative; padding-left: 1.4rem;
  color: var(--text-light); font-size: 0.88rem; margin-bottom: 0.4rem;
}
.safety-card li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--jade); font-weight: 700;
}
.safety-card.fire { border-left-color: var(--orange); }
.safety-card.fire .icon { background: #FFF0E8; }
.safety-card.traffic { border-left-color: var(--blue); }
.safety-card.traffic .icon { background: #EBF2FF; }
.safety-card.earthquake { border-left-color: var(--purple); }
.safety-card.earthquake .icon { background: #F0EAFF; }
.safety-card.flood { border-left-color: var(--cyan); }
.safety-card.flood .icon { background: #E8F9FD; }
.safety-card.food { border-left-color: var(--jade); }
.safety-card.food .icon { background: #E8F9F0; }
.safety-card.home { border-left-color: var(--gold); }
.safety-card.home .icon { background: #FFF8E8; }
.safety-card.electric { border-left-color: #F59E0B; }
.safety-card.electric .icon { background: #FFF9E8; }
.safety-card.outdoor { border-left-color: #10B981; }
.safety-card.outdoor .icon { background: #E8FFF5; }

/* ---------- CYBER CARDS ---------- */
.cyber-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.cyber-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(212,168,67,0.25);
  transform: translateY(-4px);
}
.cyber-card .card-icon { font-size: 2.2rem; margin-bottom: 0.8rem; }
.cyber-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; color: var(--gold-light); }
.cyber-card p { color: rgba(255,255,255,0.6); font-size: 0.92rem; line-height: 1.7; }
.cyber-card .tips {
  margin-top: 0.8rem; padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cyber-card .tips span {
  display: inline-block; padding: 0.2rem 0.6rem;
  background: rgba(212,168,67,0.12); color: var(--gold-light);
  border-radius: 20px; font-size: 0.78rem; margin: 0.15rem;
}

/* ---------- DETAIL SECTIONS (sub pages) ---------- */
.detail-section { padding: 5rem 0; }
.detail-section .detail-header {
  display: flex; align-items: flex-start; gap: 2rem;
  margin-bottom: 3rem;
}
.detail-section .detail-icon {
  width: 72px; height: 72px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.detail-section .detail-header h2 {
  font-size: 1.8rem; color: var(--ink); margin-bottom: 0.5rem;
}
.detail-section .detail-header p { color: var(--text-light); }
.detail-section .detail-content {
  background: #fff; border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow);
}
.detail-section .detail-content h3 {
  font-size: 1.15rem; color: var(--ink); margin: 1.5rem 0 0.8rem;
}
.detail-section .detail-content h3:first-child { margin-top: 0; }
.detail-section .detail-content p {
  color: var(--text-light); font-size: 0.95rem; margin-bottom: 0.8rem;
}
.detail-section .detail-content ul { margin: 0.5rem 0 1rem; }
.detail-section .detail-content li {
  position: relative; padding-left: 1.6rem;
  color: var(--text-light); font-size: 0.92rem; margin-bottom: 0.5rem;
}
.detail-section .detail-content li::before {
  content: '▸'; position: absolute; left: 0; color: var(--red); font-weight: 700;
}
.detail-section .highlight-box {
  background: linear-gradient(135deg, #FFF5F5, #FFF0F0);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem 1.5rem; margin: 1.5rem 0;
}
.detail-section .highlight-box.jade {
  background: linear-gradient(135deg, #F0FFF5, #E8FFF0);
  border-left-color: var(--jade);
}
.detail-section .highlight-box.blue {
  background: linear-gradient(135deg, #F0F5FF, #E8F0FF);
  border-left-color: var(--blue);
}
.detail-section .highlight-box p {
  color: var(--text); font-size: 0.92rem; margin: 0;
}

/* ---------- TIMELINE ---------- */
.timeline { max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 28px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--red), var(--gold), var(--jade));
}
.timeline-item { position: relative; padding-left: 68px; margin-bottom: 2.5rem; }
.timeline-item .dot {
  position: absolute; left: 18px; top: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--red); z-index: 1;
}
.timeline-item:nth-child(2) .dot { border-color: var(--gold); }
.timeline-item:nth-child(3) .dot { border-color: var(--jade); }
.timeline-item:nth-child(4) .dot { border-color: var(--blue); }
.timeline-item:nth-child(5) .dot { border-color: var(--purple); }
.timeline-item:nth-child(6) .dot { border-color: var(--orange); }
.timeline-item .content {
  background: #fff; border-radius: var(--radius-sm); padding: 1.5rem;
  box-shadow: var(--shadow); transition: transform var(--transition);
}
.timeline-item .content:hover { transform: translateX(4px); }
.timeline-item h4 { font-size: 1.1rem; color: var(--ink); margin-bottom: 0.3rem; }
.timeline-item p { color: var(--text-light); font-size: 0.9rem; }

/* ---------- QUIZ ---------- */
.quiz-box {
  max-width: 720px; margin: 0 auto;
  background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-hover); overflow: hidden;
}
.quiz-header {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  padding: 2rem; text-align: center; color: #fff;
}
.quiz-header h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.quiz-header p { opacity: 0.85; font-size: 0.88rem; }
.quiz-progress {
  display: flex; gap: 0.4rem; justify-content: center;
  margin-top: 1rem;
}
.quiz-progress .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.3); transition: all 0.3s;
}
.quiz-progress .dot.active { background: #fff; transform: scale(1.2); }
.quiz-progress .dot.done { background: var(--gold-light); }
.quiz-progress .dot.wrong-done { background: #E74C3C; }
.quiz-body { padding: 2rem; }
.quiz-question {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.15rem; color: var(--ink);
  margin-bottom: 1.5rem; line-height: 1.6;
}
.quiz-options { display: flex; flex-direction: column; gap: 0.7rem; }
.quiz-option {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: 12px;
  border: 2px solid #E8E8E8; cursor: pointer;
  transition: all 0.3s; font-size: 0.95rem;
}
.quiz-option:hover { border-color: var(--red); background: #FFF5F5; }
.quiz-option.correct { border-color: var(--jade); background: #F0FFF5; }
.quiz-option.wrong { border-color: #E74C3C; background: #FFF5F5; }
.quiz-option .marker {
  width: 32px; height: 32px; border-radius: 50%;
  background: #F0F0F0; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: var(--text-light);
  flex-shrink: 0; transition: all 0.3s;
}
.quiz-option:hover .marker { background: var(--red); color: #fff; }
.quiz-option.correct .marker { background: var(--jade); color: #fff; }
.quiz-option.wrong .marker { background: #E74C3C; color: #fff; }
.quiz-explanation {
  display: none; margin-top: 1rem; padding: 1rem 1.2rem;
  background: #F8F8F8; border-radius: var(--radius-sm);
  font-size: 0.88rem; color: var(--text-light);
  border-left: 3px solid var(--jade);
}
.quiz-footer {
  padding: 1.5rem 2rem; text-align: center;
  border-top: 1px solid #F0F0F0;
}
.quiz-result { display: none; padding: 2rem; text-align: center; }
.quiz-result .result-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.quiz-result .result-text { font-size: 1.2rem; color: var(--ink); font-weight: 700; }
.quiz-result .result-desc { color: var(--text-light); font-size: 0.9rem; margin-top: 0.3rem; }
.quiz-category-select {
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.quiz-category-btn {
  padding: 0.6rem 1.5rem; border-radius: 50px;
  border: 2px solid #E0E0E0; background: #fff;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: all 0.3s;
}
.quiz-category-btn:hover { border-color: var(--red); color: var(--red); }
.quiz-category-btn.active {
  background: var(--red); color: #fff; border-color: var(--red);
}

/* ---------- RESOURCE CARDS ---------- */
.resource-card {
  background: #fff; border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  transition: all var(--transition);
  text-align: center;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.resource-card .r-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 1rem;
}
.resource-card h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: 0.3rem; }
.resource-card .r-number {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem; font-weight: 900;
  margin: 0.5rem 0;
}
.resource-card p { color: var(--text-light); font-size: 0.85rem; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.65);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.footer h4 {
  color: var(--gold-light); font-size: 1rem;
  margin-bottom: 1rem; font-family: 'Noto Serif SC', serif;
}
.footer p, .footer a { font-size: 0.88rem; line-height: 2; }
.footer a:hover { color: var(--gold-light); }
.footer-links a { display: flex; align-items: center; gap: 0.5rem; }
.footer-links a::before { content: '›'; color: var(--gold); }
.footer-bottom {
  text-align: center; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem; color: rgba(255,255,255,0.35);
}
.footer-bottom .heart { color: var(--red); }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(196,30,58,0.4);
  opacity: 0; transform: translateY(20px);
  transition: all var(--transition); z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(196,30,58,0.5); }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ---------- FEATURE GRID (homepage) ---------- */
.feature-card {
  background: #fff; border-radius: var(--radius);
  padding: 2.5rem 2rem; box-shadow: var(--shadow);
  text-align: center; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0); transition: transform var(--transition);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-card .f-icon {
  width: 72px; height: 72px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1.2rem;
}
.feature-card h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: 0.6rem; }
.feature-card p { color: var(--text-light); font-size: 0.9rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .navbar { padding: 0 1.5rem; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(26,26,46,0.98);
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s;
  }
  .nav-links.open { max-height: 500px; }
  .nav-links a { display: block; padding: 1rem 1.5rem; border-radius: 0; }
  .mobile-toggle { display: flex; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .page-hero { padding: 8rem 1.5rem 3rem; }
  .detail-section .detail-header { flex-direction: column; }
  .timeline::before { left: 15px; }
  .timeline-item { padding-left: 45px; }
  .timeline-item .dot { left: 5px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
