/* ===== SCL-90 心理健康自评量表 样式表 ===== */
/* Design Direction: "Editorial Warmth" — refined magazine aesthetic with warm gold tones,
   atmospheric depth, sophisticated typography, and elegant micro-interactions. */

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --gold-100: #FFF9E6;
  --gold-200: #FFF0BF;
  --gold-300: #FFE08A;
  --gold-400: #F6C343;
  --gold-500: #E8A838;
  --amber-400: #F0945A;
  --amber-500: #E07C3A;
  --warm-white: #FFFCF5;
  --warm-gray-50: #FBF7F0;
  --warm-gray-100: #F5EDE0;
  --warm-gray-200: #E8DDD0;
  --warm-gray-300: #C9BDA8;
  --warm-gray-400: #A89880;
  --warm-gray-600: #6B5D4A;
  --warm-gray-800: #3D3224;
  --warm-gray-900: #2A2015;
  --shadow-warm: 0 4px 24px rgba(232, 168, 56, 0.12);
  --shadow-warm-lg: 0 12px 48px rgba(232, 168, 56, 0.18);
  --shadow-soft: 0 2px 12px rgba(61, 50, 36, 0.06);
  --shadow-elevated: 0 20px 60px rgba(61, 50, 36, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--warm-white);
  color: var(--warm-gray-800);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture overlay for atmospheric depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--amber-400));
  z-index: 1001;
  width: 0;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(246, 195, 67, 0.5);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 252, 245, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(246, 195, 67, 0.15);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 24px rgba(232, 168, 56, 0.1);
  background: rgba(255, 252, 245, 0.92);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--warm-gray-900);
  transition: opacity 0.2s ease;
}

.nav-logo:hover { opacity: 0.85; }

.nav-logo-icon {
  width: 36px;
  height: 36px;
  position: relative;
  filter: drop-shadow(0 2px 8px rgba(246, 195, 67, 0.3));
}

.nav-logo-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-logo-sub {
  font-size: 0.7rem;
  color: var(--warm-gray-400);
  font-weight: 400;
  display: block;
  line-height: 1;
  margin-top: 2px;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--warm-gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  transition: all 0.25s var(--ease-out-quart);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--amber-400));
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out-quart);
}

.nav-links a:not(.nav-cta):hover::after { width: 60%; }

.nav-links a:hover {
  color: var(--amber-500);
  background: rgba(246, 195, 67, 0.1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold-400), var(--amber-400)) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 8px 24px !important;
  box-shadow: 0 4px 16px rgba(232, 168, 56, 0.3);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  box-shadow: 0 6px 24px rgba(232, 168, 56, 0.45) !important;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--warm-gray-600);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Layered gradient mesh for atmospheric depth */
.hero-bg::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 160%;
  height: 120%;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(246, 195, 67, 0.22) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 40%, rgba(240, 148, 90, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(246, 195, 67, 0.15) 0%, transparent 50%);
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 240, 191, 0.3) 0%, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(255, 224, 138, 0.2) 0%, transparent 25%);
  animation: pulseGlow 8s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
  0% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* Clouds */
.cloud {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  filter: blur(1px);
}

.cloud-1 {
  width: 300px; height: 80px;
  top: 15%; left: -5%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  animation: driftRight 25s linear infinite;
}
.cloud-2 {
  width: 200px; height: 60px;
  top: 25%; right: -3%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 80px;
  animation: driftLeft 30s linear infinite;
}
.cloud-3 {
  width: 250px; height: 70px;
  top: 40%; left: 10%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 90px;
  animation: driftRight 35s linear infinite;
  animation-delay: -10s;
}
.cloud-4 {
  width: 180px; height: 55px;
  top: 55%; right: 15%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 70px;
  animation: driftLeft 28s linear infinite;
  animation-delay: -5s;
}
.cloud-5 {
  width: 350px; height: 90px;
  bottom: 25%; left: 20%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 120px;
  animation: driftRight 32s linear infinite;
  animation-delay: -15s;
}

@keyframes driftRight {
  0% { transform: translateX(-20px); }
  100% { transform: translateX(40px); }
}
@keyframes driftLeft {
  0% { transform: translateX(20px); }
  100% { transform: translateX(-40px); }
}

/* Light rays */
.light-rays {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.ray {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 3px;
  height: 85%;
  background: linear-gradient(to bottom, rgba(246, 195, 67, 0.18), transparent);
  transform-origin: top center;
  animation: rayPulse 4s ease-in-out infinite alternate;
}

.ray:nth-child(1) { transform: rotate(-35deg); animation-delay: 0s; }
.ray:nth-child(2) { transform: rotate(-25deg); animation-delay: 0.5s; width: 4px; }
.ray:nth-child(3) { transform: rotate(-15deg); animation-delay: 1s; }
.ray:nth-child(4) { transform: rotate(-5deg); animation-delay: 1.5s; width: 4px; }
.ray:nth-child(5) { transform: rotate(5deg); animation-delay: 2s; }
.ray:nth-child(6) { transform: rotate(15deg); animation-delay: 2.5s; width: 4px; }
.ray:nth-child(7) { transform: rotate(25deg); animation-delay: 3s; }
.ray:nth-child(8) { transform: rotate(35deg); animation-delay: 3.5s; width: 4px; }

@keyframes rayPulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  background: rgba(246, 195, 67, 0.15);
  border: 1px solid rgba(246, 195, 67, 0.25);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--amber-500);
  font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: badgeFadeIn 0.8s var(--ease-out-expo) both;
}

@keyframes badgeFadeIn {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--warm-gray-900);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  animation: h1FadeIn 1s var(--ease-out-expo) 0.15s both;
}

@keyframes h1FadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold-500), var(--amber-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--warm-gray-600);
  line-height: 1.9;
  margin-bottom: 12px;
  animation: descFadeIn 1s var(--ease-out-expo) 0.3s both;
}

@keyframes descFadeIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-warm-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.15rem;
  color: var(--amber-500);
  line-height: 2;
  margin: 24px 0 36px;
  padding: 20px 28px;
  background: linear-gradient(135deg, rgba(246, 195, 67, 0.08), rgba(240, 148, 90, 0.06));
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold-400);
  text-align: left;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: descFadeIn 1s var(--ease-out-expo) 0.45s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: descFadeIn 1s var(--ease-out-expo) 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(246, 195, 67, 0.15);
  animation: descFadeIn 1s var(--ease-out-expo) 0.75s both;
}

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

.hero-stat-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-500), var(--amber-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--warm-gray-400);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease-out-quart);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--amber-400));
  color: white;
  box-shadow: 0 6px 24px rgba(232, 168, 56, 0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s var(--ease-out-quart);
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 168, 56, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--warm-gray-800);
  border: 1.5px solid var(--warm-gray-200);
  box-shadow: var(--shadow-warm);
}

.btn-secondary:hover {
  border-color: var(--gold-400);
  color: var(--amber-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm-lg);
}

/* ===== SECTIONS COMMON ===== */
.section {
  padding: 100px 24px;
  position: relative;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-label svg {
  width: 18px;
  height: 18px;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--warm-gray-900);
  margin-bottom: 16px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--warm-gray-600);
  line-height: 1.9;
  max-width: 640px;
  margin-bottom: 48px;
}

/* ===== SECTION ALTERNATING BACKGROUNDS ===== */
.section-alt {
  background: linear-gradient(180deg, var(--warm-gray-50), var(--warm-white));
}

/* Decorative floating orbs for section backgrounds */
.section-alt::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(246, 195, 67, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.section:not(.section-alt)::before {
  content: '';
  position: absolute;
  bottom: 5%;
  left: -5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(240, 148, 90, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.section-inner { position: relative; z-index: 1; }

/* ===== INTRO CARDS (Part 2) ===== */
/* ★ FIX: PC端一行两个、分两行展示 */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.intro-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(246, 195, 67, 0.08);
  transition: all 0.4s var(--ease-out-quart);
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--amber-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-quart);
}

/* Decorative corner glow */
.intro-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(246, 195, 67, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0.5;
}

.intro-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(246, 195, 67, 0.2);
}

.intro-card:hover::before { transform: scaleX(1); }
.intro-card:hover::after { opacity: 1; }

.intro-card-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(246, 195, 67, 0.15), rgba(240, 148, 90, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-500);
  transition: transform 0.3s var(--ease-out-quart);
}

.intro-card:hover .intro-card-icon {
  transform: scale(1.1) rotate(-5deg);
}

.intro-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.intro-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--warm-gray-900);
  margin: 0;
}

.intro-card p {
  font-size: 0.875rem;
  color: var(--warm-gray-600);
  line-height: 1.8;
}

/* ===== DIMENSIONS (Part 3) ===== */
.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.dim-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid rgba(246, 195, 67, 0.08);
  transition: all 0.4s var(--ease-out-quart);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Subtle gradient wash on hover */
.dim-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(246, 195, 67, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.dim-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
  border-color: rgba(246, 195, 67, 0.2);
}

.dim-card:hover::before { opacity: 1; }

.dim-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.dim-count {
  background: linear-gradient(135deg, rgba(246, 195, 67, 0.15), rgba(240, 148, 90, 0.1));
  border: 1px solid rgba(246, 195, 67, 0.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber-500);
  white-space: nowrap;
  line-height: 1.2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dim-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-300), var(--amber-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.dim-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--warm-gray-900);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.dim-card p {
  font-size: 0.825rem;
  color: var(--warm-gray-600);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ===== SCORING (Part 4) ===== */
.scoring-flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  counter-reset: none;
}

.score-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(246, 195, 67, 0.08);
  transition: all 0.4s var(--ease-out-quart);
  position: relative;
  overflow: hidden;
}

/* Left accent bar */
.score-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-400), var(--amber-400));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out-quart);
}

.score-step:hover {
  box-shadow: var(--shadow-warm);
  transform: translateX(4px);
}

.score-step:hover::before { transform: scaleY(1); }

.score-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--amber-400));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(232, 168, 56, 0.25);
}

.score-step-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--warm-gray-900);
  margin-bottom: 8px;
}

.score-step-content p {
  font-size: 0.9rem;
  color: var(--warm-gray-600);
  line-height: 1.8;
}

.score-formula {
  display: inline-block;
  background: var(--gold-100);
  border: 1px solid rgba(246, 195, 67, 0.2);
  border-radius: 8px;
  padding: 4px 14px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--amber-500);
  margin-top: 8px;
  font-weight: 600;
}

.score-table-wrap {
  margin-top: 32px;
  overflow-x: auto;
}

.score-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
}

.score-table th {
  background: linear-gradient(135deg, var(--gold-400), var(--amber-400));
  color: white;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}

.score-table td {
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--warm-gray-600);
  border-bottom: 1px solid var(--warm-gray-100);
}

.score-table tr:last-child td {
  border-bottom: none;
}

.score-table tr:hover td {
  background: rgba(246, 195, 67, 0.04);
}

/* ===== COMPARISON (Part 5) ===== */
.compare-table-wrap {
  overflow-x: auto;
  margin-top: 0;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
}

.compare-table th {
  background: linear-gradient(135deg, var(--gold-400), var(--amber-400));
  color: white;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}

.compare-table th:first-child {
  width: 120px;
}

.compare-table td {
  padding: 14px 20px;
  font-size: 0.875rem;
  color: var(--warm-gray-600);
  border-bottom: 1px solid var(--warm-gray-100);
  line-height: 1.7;
  vertical-align: top;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(246, 195, 67, 0.04); }

.compare-table td:first-child,
.compare-table th:first-child {
  font-weight: 600;
  color: var(--warm-gray-800);
  background: rgba(246, 195, 67, 0.04);
}

/* ★ FIX: Mobile sticky first column with horizontal scroll */
@media (max-width: 768px) {
  .compare-table-wrap {
    overflow-x: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    background:
      linear-gradient(to right, white 70px, transparent 70px),
      linear-gradient(to right, transparent calc(100% - 12px), rgba(0,0,0,0.04) 100%);
    background-attachment: local, local;
  }

  .compare-table {
    min-width: 580px;
    border-radius: 0;
    /* ★ Critical fix: override overflow:hidden from main rule to allow sticky */
    overflow: visible;
  }

  /* Sticky first column */
  .compare-table th:first-child,
  .compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    padding: 12px 10px;
    font-size: 0.78rem;
    line-height: 1.5;
    box-shadow: 4px 0 8px -3px rgba(0, 0, 0, 0.12);
  }

  .compare-table th:first-child {
    background: linear-gradient(135deg, var(--gold-400), var(--amber-400));
    color: white;
  }

  .compare-table td:first-child {
    background: var(--warm-gray-50);
    color: var(--warm-gray-800);
  }

  /* Scrolling columns */
  .compare-table th:not(:first-child),
  .compare-table td:not(:first-child) {
    padding: 12px 14px;
    font-size: 0.8rem;
    min-width: 140px;
    line-height: 1.7;
  }

  /* Last row colspan=3: full width, not sticky */
  .compare-table tr:last-child td {
    position: static;
    min-width: auto;
  }
}

/* ===== AUDIENCE (Part 6) ===== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.audience-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(246, 195, 67, 0.08);
  transition: all 0.4s var(--ease-out-quart);
  position: relative;
  overflow: hidden;
}

.audience-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-400), var(--amber-400));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-out-quart);
}

/* Decorative top glow */
.audience-card::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(246, 195, 67, 0.08) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.audience-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}

.audience-card:hover::after { transform: scaleX(1); }
.audience-card:hover::before { opacity: 1; }

.audience-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(246, 195, 67, 0.15), rgba(240, 148, 90, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--amber-500);
  transition: transform 0.4s var(--ease-out-quart);
  box-shadow: 0 4px 16px rgba(232, 168, 56, 0.1);
}

.audience-card:hover .audience-icon {
  transform: scale(1.1) translateY(-2px);
}

.audience-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--warm-gray-900);
  margin-bottom: 12px;
}

.audience-card p {
  font-size: 0.9rem;
  color: var(--warm-gray-600);
  line-height: 1.8;
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.audience-tag {
  padding: 4px 12px;
  background: var(--gold-100);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--amber-500);
  font-weight: 500;
  border: 1px solid rgba(246, 195, 67, 0.12);
}

/* ===== FAQ (Part 7) ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid rgba(246, 195, 67, 0.08);
  overflow: hidden;
  transition: all 0.3s var(--ease-out-quart);
}

.faq-item:hover {
  border-color: rgba(246, 195, 67, 0.2);
  box-shadow: var(--shadow-soft);
}

.faq-item.open {
  box-shadow: var(--shadow-warm);
  border-color: rgba(246, 195, 67, 0.2);
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-q:hover {
  background: rgba(246, 195, 67, 0.04);
}

.faq-q-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(246, 195, 67, 0.15), rgba(240, 148, 90, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-500);
  font-size: 0.8rem;
  font-weight: 700;
}

.faq-q-text {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--warm-gray-800);
}

.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--warm-gray-400);
  transition: transform 0.3s var(--ease-out-quart);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--amber-500);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-quart), padding 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 500px;
}

.faq-a-inner {
  padding: 0 24px 20px 66px;
  font-size: 0.9rem;
  color: var(--warm-gray-600);
  line-height: 1.9;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--warm-gray-900);
  color: var(--warm-gray-300);
  padding: 60px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative glow at top of footer */
.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(246, 195, 67, 0.4), transparent);
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse at top, rgba(246, 195, 67, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer p {
  font-size: 0.85rem;
  line-height: 1.8;
  opacity: 0.7;
}

.footer-warm {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: var(--gold-400);
  opacity: 1;
  margin-bottom: 16px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--amber-400));
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(232, 168, 56, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s var(--ease-out-quart);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(232, 168, 56, 0.5);
}

/* ===== MOBILE FLOATING CTA ===== */
.mobile-fab {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(255, 252, 245, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(246, 195, 67, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.mobile-fab.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-fab-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 0;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--gold-400), var(--amber-400));
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232, 168, 56, 0.35);
  font-family: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-fab-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.mobile-fab-inner:active::before { left: 100%; }

.mobile-fab-inner:active {
  transform: scale(0.97);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .dimensions-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero { min-height: auto; padding: 120px 20px 80px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-desc { font-size: 1rem; }
  .hero-warm-text { font-size: 1rem; padding: 16px 20px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }

  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 1.6rem; }

  .section { padding: 64px 20px; }

  .intro-grid { grid-template-columns: repeat(2, 1fr); max-width: 560px; gap: 16px; }
  .dimensions-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: 1fr; }

  .score-step { flex-direction: column; gap: 16px; }
  .score-step-num { width: 36px; height: 36px; font-size: 0.9rem; }

  .mobile-fab { display: block; }
  .back-to-top { bottom: 80px; }

  .cloud-1, .cloud-5 { display: none; }
}

@media (max-width: 480px) {
  .nav-inner { height: 56px; }
  .nav-logo-text { font-size: 1.05rem; }
  .nav-logo-sub { font-size: 0.6rem; }
  .nav-logo-icon { width: 30px; height: 30px; }
  .hero h1 { font-size: 1.55rem; }
  .section-title { font-size: 1.4rem; }
  .intro-card { padding: 20px; }
  .dim-card { padding: 22px 18px; }
  .audience-card { padding: 28px 20px; }
  .intro-grid { grid-template-columns: 1fr; max-width: 360px; }
  .dimensions-grid { grid-template-columns: 1fr; }
}

/* ===== MOBILE NAV DRAWER ===== */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nav-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--warm-white);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out-expo);
  padding: 24px;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}

.nav-drawer.open { transform: translateX(0); }

.nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.nav-drawer-close button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--warm-gray-600);
  transition: color 0.2s ease;
}

.nav-drawer-close button:hover { color: var(--amber-500); }

.nav-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--warm-gray-800);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-drawer-links a:hover {
  background: rgba(246, 195, 67, 0.1);
  color: var(--amber-500);
  transform: translateX(4px);
}

.nav-drawer-links a svg {
  width: 18px;
  height: 18px;
  color: var(--warm-gray-400);
}

.nav-drawer-cta {
  margin-top: 24px;
}

.nav-drawer-cta .btn {
  width: 100%;
  justify-content: center;
}

/* ===== SMOOTH ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-out-expo);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for grid children */
.intro-grid .fade-up:nth-child(1) { transition-delay: 0s; }
.intro-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.intro-grid .fade-up:nth-child(3) { transition-delay: 0.2s; }
.intro-grid .fade-up:nth-child(4) { transition-delay: 0.3s; }

.dimensions-grid .fade-up:nth-child(1) { transition-delay: 0s; }
.dimensions-grid .fade-up:nth-child(2) { transition-delay: 0.06s; }
.dimensions-grid .fade-up:nth-child(3) { transition-delay: 0.12s; }
.dimensions-grid .fade-up:nth-child(4) { transition-delay: 0.18s; }
.dimensions-grid .fade-up:nth-child(5) { transition-delay: 0.24s; }
.dimensions-grid .fade-up:nth-child(6) { transition-delay: 0.3s; }
.dimensions-grid .fade-up:nth-child(7) { transition-delay: 0.36s; }
.dimensions-grid .fade-up:nth-child(8) { transition-delay: 0.42s; }
.dimensions-grid .fade-up:nth-child(9) { transition-delay: 0.48s; }
.dimensions-grid .fade-up:nth-child(10) { transition-delay: 0.54s; }

.audience-grid .fade-up:nth-child(1) { transition-delay: 0s; }
.audience-grid .fade-up:nth-child(2) { transition-delay: 0.12s; }
.audience-grid .fade-up:nth-child(3) { transition-delay: 0.24s; }

/* ===== DIVIDER ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 195, 67, 0.2), transparent);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== PRINT ===== */
@media print {
  .navbar, .mobile-fab, .back-to-top, .scroll-progress { display: none !important; }
  .section { padding: 24px 0; page-break-inside: avoid; }
  body::before { display: none; }
}
