/* ============================================
   智伴家育 — Warm Scholarly Aesthetic
   "温润书香" Design System
   ============================================ */

/* --- CSS Variables --- */
:root {
  --amber: #E8A838;
  --amber-light: #FDF3E0;
  --amber-dark: #C4882A;
  --sage: #6B9E7A;
  --sage-light: #E8F5EC;
  --sage-dark: #4A7A58;
  --indigo: #4A6FA5;
  --indigo-light: #E3EDF8;
  --indigo-dark: #365380;
  --coral: #E07A5F;
  --coral-light: #FDE8E2;
  --rose: #C97B84;
  --cream: #FFF9F0;
  --cream-dark: #F5EDE0;
  --ink: #2C2C2C;
  --ink-light: #5A5A5A;
  --ink-muted: #8A8A8A;
  --white: #FFFFFF;
  --paper: #FFFCF7;
  --shadow-sm: 0 2px 8px rgba(44,44,44,0.06);
  --shadow-md: 0 8px 30px rgba(44,44,44,0.08);
  --shadow-lg: 0 20px 60px rgba(44,44,44,0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,252,247,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(44,44,44,0.06);
  transition: var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: white; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(232,168,56,0.3);
}
.logo-text {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem;
  background: linear-gradient(135deg, var(--ink), var(--indigo-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--ink-light);
  position: relative; transition: var(--transition);
}
.nav-links a:not(.nav-cta):hover { color: var(--amber-dark); }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--amber); transform: scaleX(0);
  transition: var(--transition); border-radius: 1px;
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: white !important; padding: 8px 24px; border-radius: 50px;
  font-weight: 600 !important; box-shadow: 0 4px 15px rgba(232,168,56,0.3);
  transition: var(--transition) !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,168,56,0.4); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: var(--transition);
}
/* --- Hero Section --- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 100px 2rem 60px;
  background: linear-gradient(160deg, var(--cream) 0%, var(--amber-light) 30%, var(--paper) 60%, var(--indigo-light) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-circle {
  position: absolute; border-radius: 50%;
  opacity: 0.12;
}
.hero-circle.c1 {
  width: 600px; height: 600px; top: -200px; right: -100px;
  background: radial-gradient(circle, var(--amber) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}
.hero-circle.c2 {
  width: 400px; height: 400px; bottom: -100px; left: -50px;
  background: radial-gradient(circle, var(--sage) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}
.hero-circle.c3 {
  width: 300px; height: 300px; top: 30%; left: 40%;
  background: radial-gradient(circle, var(--indigo) 0%, transparent 70%);
  animation: float 18s ease-in-out infinite 5s;
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(232,168,56,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content {
  max-width: 1280px; margin: 0 auto; position: relative; z-index: 2;
  flex: 1;
}
.hero-badge {
  display: inline-block; padding: 8px 20px;
  background: rgba(232,168,56,0.12); border: 1px solid rgba(232,168,56,0.2);
  border-radius: 50px; font-size: 0.85rem; font-weight: 500;
  color: var(--amber-dark); letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease both;
}
.hero-title {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.hero-title-main {
  font-family: var(--font-serif); font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.1;
  background: linear-gradient(135deg, var(--ink) 0%, var(--indigo-dark) 50%, var(--amber-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.hero-title-sub {
  font-family: var(--font-serif); font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600; color: var(--ink-light);
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-desc {
  font-size: 1.05rem; color: var(--ink-light); max-width: 640px;
  line-height: 1.9; margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 36px; border-radius: 50px;
  font-size: 1rem; font-weight: 600;
  transition: var(--transition); cursor: pointer;
  border: none; font-family: var(--font-sans);
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: white; box-shadow: 0 8px 25px rgba(232,168,56,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(232,168,56,0.45);
}
.btn-secondary {
  background: white; color: var(--ink);
  border: 2px solid rgba(44,44,44,0.12);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber-dark);
  transform: translateY(-2px);
}
.hero-stats-mini {
  display: flex; align-items: center; gap: 2rem;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.hsm-item { text-align: center; }
.hsm-item strong {
  display: block; font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 700; color: var(--amber-dark);
}
.hsm-item span { font-size: 0.8rem; color: var(--ink-muted); }
.hsm-divider { width: 1px; height: 40px; background: rgba(44,44,44,0.1); }

.hero-illustration {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: 380px; height: 380px;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: center;
}
.hero-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: 24px; text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  animation: floatCard 6s ease-in-out infinite;
}
.hero-card:hover { transform: translateY(-8px) scale(1.05); box-shadow: var(--shadow-lg); }
.hc-icon { font-size: 2.5rem; margin-bottom: 8px; }
.hc-text { font-size: 0.85rem; font-weight: 600; color: var(--ink-light); }
.hc1 { width: 150px; animation-delay: 0s; }
.hc2 { width: 150px; animation-delay: 1.5s; }
.hc3 { width: 150px; animation-delay: 0.8s; }
.hc4 { width: 150px; animation-delay: 2.2s; }
/* --- Section Common --- */
.section { padding: 100px 0; position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--amber-dark); margin-bottom: 0.75rem;
  padding: 4px 16px; background: var(--amber-light);
  border-radius: 50px;
}
.section-title {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: var(--ink); margin-bottom: 1rem;
  line-height: 1.3;
}
.section-desc {
  font-size: 1.05rem; color: var(--ink-light); max-width: 600px;
  margin: 0 auto; line-height: 1.8;
}
/* --- Services --- */
.services { background: var(--paper); }
.services::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(180deg, var(--amber-light) 0%, transparent 100%);
  opacity: 0.3;
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; position: relative;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(44,44,44,0.06);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
}
.sc-1::before { background: linear-gradient(90deg, var(--amber), var(--coral)); }
.sc-2::before { background: linear-gradient(90deg, var(--indigo), var(--sage)); }
.sc-3::before { background: linear-gradient(90deg, var(--sage), var(--amber)); }
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { height: 6px; }
.sc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.sc-icon-wrap {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.sc-1 .sc-icon-wrap { background: var(--amber-light); color: var(--amber-dark); }
.sc-2 .sc-icon-wrap { background: var(--indigo-light); color: var(--indigo-dark); }
.sc-3 .sc-icon-wrap { background: var(--sage-light); color: var(--sage-dark); }
.sc-icon { width: 32px; height: 32px; }
.sc-badge {
  font-size: 0.75rem; font-weight: 600; padding: 4px 12px;
  border-radius: 50px;
}
.sc-1 .sc-badge { background: var(--coral-light); color: var(--coral); }
.sc-2 .sc-badge { background: var(--indigo-light); color: var(--indigo); }
.sc-3 .sc-badge { background: var(--sage-light); color: var(--sage-dark); }
.sc-title {
  font-family: var(--font-serif); font-size: 1.35rem;
  font-weight: 700; margin-bottom: 0.75rem;
}
.sc-desc {
  font-size: 0.9rem; color: var(--ink-light); line-height: 1.7;
  margin-bottom: 1.5rem;
}
.sc-features { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.sc-features li {
  font-size: 0.85rem; color: var(--ink-light);
  padding-left: 1.5rem; position: relative;
}
.sc-features li::before {
  content: '✦'; position: absolute; left: 0; font-size: 0.7rem;
}
.sc-1 .sc-features li::before { color: var(--amber); }
.sc-2 .sc-features li::before { color: var(--indigo); }
.sc-3 .sc-features li::before { color: var(--sage); }
.sc-footer { padding-top: 1rem; border-top: 1px solid rgba(44,44,44,0.06); }
.sc-trust { font-size: 0.8rem; color: var(--ink-muted); font-style: italic; }
/* --- Features --- */
.features {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 50%, var(--paper) 100%);
}
.feature-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  margin-bottom: 5rem; padding: 3rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(44,44,44,0.05);
  box-shadow: var(--shadow-md);
}
.feature-block:last-child { margin-bottom: 0; }
.fb-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 1rem;
}
.fb-elder .fb-tag { background: var(--coral-light); color: var(--coral); }
.fb-heritage .fb-tag { background: var(--amber-light); color: var(--amber-dark); }
.fb-title {
  font-family: var(--font-serif); font-size: 1.8rem;
  font-weight: 700; margin-bottom: 1rem;
}
.fb-desc {
  font-size: 0.95rem; color: var(--ink-light); line-height: 1.8;
  margin-bottom: 2rem;
}
.fb-items { display: flex; flex-direction: column; gap: 1.25rem; }
.fb-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem; border-radius: var(--radius-md);
  transition: var(--transition);
}
.fb-item:hover { background: var(--cream); }
.fbi-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.fb-item strong { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; }
.fb-item p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.5; margin: 0; }

/* Feature visuals */
.fb-visual { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; }

.fb-visual-card {
  position: absolute; background: white;
  border-radius: var(--radius-lg); padding: 1.5rem;
  text-align: center; box-shadow: var(--shadow-md);
  border: 1px solid rgba(44,44,44,0.05);
  transition: var(--transition);
}
.fb-visual-card:hover { transform: scale(1.08) !important; box-shadow: var(--shadow-lg); }
.fvc-emoji { font-size: 2.5rem; margin-bottom: 0.5rem; }
.fvc-text { font-size: 0.85rem; font-weight: 600; color: var(--ink-light); line-height: 1.4; }
.fvc-1 { top: 10%; left: 5%; transform: rotate(-5deg); }
.fvc-2 { top: 15%; right: 10%; transform: rotate(3deg); }
.fvc-3 { bottom: 10%; left: 25%; transform: rotate(-2deg); }

.heritage-showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  width: 100%;
}
.hs-item {
  background: var(--cream); border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; text-align: center;
  border: 1px solid rgba(232,168,56,0.1);
  transition: var(--transition);
}
.hs-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber);
}
.hs-img { font-size: 2.5rem; margin-bottom: 0.75rem; }
.hs-item span { font-size: 0.9rem; font-weight: 600; color: var(--ink-light); }
/* --- Vocational --- */
.vocational {
  background: linear-gradient(160deg, var(--indigo-light) 0%, var(--paper) 40%, var(--sage-light) 100%);
}
.voc-timeline {
  display: flex; flex-direction: column; gap: 2rem;
  position: relative; margin-bottom: 4rem;
}
.voc-timeline::before {
  content: ''; position: absolute; left: 40px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--indigo), var(--sage), var(--amber));
  border-radius: 2px;
}
.voc-card {
  display: flex; gap: 2rem; align-items: flex-start;
  position: relative; padding-left: 80px;
}
.vc-number {
  position: absolute; left: 16px; top: 1.5rem;
  width: 48px; height: 48px;
  background: var(--white);
  border: 3px solid var(--indigo);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 900;
  font-size: 1.1rem; color: var(--indigo);
  z-index: 2;
}
.voc-card:nth-child(2) .vc-number { border-color: var(--sage); color: var(--sage-dark); }
.voc-card:nth-child(3) .vc-number { border-color: var(--amber); color: var(--amber-dark); }
.vc-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  flex: 1;
  border: 1px solid rgba(44,44,44,0.06);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.vc-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}
.vc-icon-wrap {
  width: 48px; height: 48px; margin-bottom: 1rem;
  color: var(--indigo);
}
.voc-card:nth-child(2) .vc-icon-wrap { color: var(--sage-dark); }
.voc-card:nth-child(3) .vc-icon-wrap { color: var(--amber-dark); }
.vc-icon-wrap svg { width: 100%; height: 100%; }
.vc-content h3 {
  font-family: var(--font-serif); font-size: 1.3rem;
  font-weight: 700; margin-bottom: 0.75rem;
}
.vc-content p { font-size: 0.9rem; color: var(--ink-light); line-height: 1.8; margin-bottom: 1rem; }
.vc-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.vc-tags span {
  font-size: 0.75rem; padding: 4px 14px;
  border-radius: 50px; font-weight: 500;
}
.voc-card:nth-child(1) .vc-tags span { background: var(--indigo-light); color: var(--indigo-dark); }
.voc-card:nth-child(2) .vc-tags span { background: var(--sage-light); color: var(--sage-dark); }
.voc-card:nth-child(3) .vc-tags span { background: var(--amber-light); color: var(--amber-dark); }

.voc-flow {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; flex-wrap: wrap;
  padding: 2rem; background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44,44,44,0.06);
}
.vf-step {
  padding: 10px 24px; border-radius: 50px;
  background: var(--cream); font-size: 0.9rem;
  font-weight: 600; color: var(--ink-light);
  transition: var(--transition);
}
.vf-step:hover { background: var(--amber-light); color: var(--amber-dark); }
.vf-highlight {
  background: linear-gradient(135deg, var(--amber), var(--coral)) !important;
  color: white !important;
}
.vf-arrow { color: var(--ink-muted); font-size: 1.2rem; }
/* --- Welfare --- */
.welfare {
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--cream) 50%, var(--coral-light) 100%);
}
.welfare-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.welfare-desc {
  font-size: 1.05rem; color: var(--ink-light); line-height: 1.9;
  margin-bottom: 2rem;
}
.welfare-items { display: flex; flex-direction: column; gap: 1.25rem; }
.wi-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.5);
  transition: var(--transition);
}
.wi-item:hover { background: white; box-shadow: var(--shadow-sm); transform: translateX(8px); }
.wi-icon { font-size: 1.5rem; flex-shrink: 0; }
.wi-item strong { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; }
.wi-item p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.5; margin: 0; }

.wv-map {
  position: relative; width: 100%; aspect-ratio: 1;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  border: 2px dashed rgba(107,158,122,0.2);
}
.wv-dot {
  position: absolute; width: 16px; height: 16px;
}
.wv-dot span {
  display: block; width: 100%; height: 100%;
  background: var(--sage); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.wv-dot::after {
  content: attr(data-label);
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  font-size: 0.75rem; white-space: nowrap; color: var(--ink-muted);
  font-weight: 500; opacity: 0; transition: var(--transition);
}
.wv-dot:hover::after { opacity: 1; }
.wd-1 { top: 65%; left: 20%; animation-delay: 0s; }
.wd-2 { top: 60%; left: 35%; animation-delay: 0.5s; }
.wd-3 { top: 30%; left: 45%; animation-delay: 1s; }
.wd-4 { top: 55%; left: 55%; animation-delay: 1.5s; }
.wd-5 { top: 50%; left: 30%; animation-delay: 0.8s; }
.wv-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: white; padding: 2rem;
  border-radius: 50%; width: 140px; height: 140px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.wvc-number {
  font-family: var(--font-serif); font-size: 1.8rem;
  font-weight: 900; color: var(--sage-dark);
}
.wvc-text { font-size: 0.8rem; color: var(--ink-muted); }
/* --- AI Demo / Chat --- */
.ai-demo { background: var(--paper); }
.chat-demo {
  max-width: 720px; margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(44,44,44,0.06);
}
.chat-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: white;
}
.chat-avatar {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem;
}
.chat-info strong { display: block; font-size: 1rem; }
.chat-status {
  font-size: 0.8rem; opacity: 0.9;
  display: flex; align-items: center; gap: 6px;
}
.chat-status i {
  width: 8px; height: 8px; background: #4ADE80;
  border-radius: 50%; display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
.chat-messages {
  padding: 1.5rem;
  max-height: 600px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.25rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}
.chat-msg { display: flex; gap: 0.75rem; max-width: 85%; }
.msg-ai { align-self: flex-start; }
.msg-user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  width: 36px; height: 36px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 0.8rem;
}
.msg-bubble {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem; line-height: 1.7;
}
.msg-ai .msg-bubble {
  background: var(--white);
  border: 1px solid rgba(44,44,44,0.06);
  border-radius: 4px var(--radius-md) var(--radius-md) var(--radius-md);
}
.msg-user .msg-bubble {
  background: linear-gradient(135deg, var(--indigo), var(--indigo-dark));
  color: white;
  border-radius: var(--radius-md) 4px var(--radius-md) var(--radius-md);
}
.msg-bubble p { margin-bottom: 0.5rem; }
.msg-bubble p:last-child { margin-bottom: 0; }
.msg-bubble ul { padding-left: 1.25rem; margin: 0.5rem 0; }
.msg-bubble li { margin-bottom: 0.4rem; list-style: disc; font-size: 0.85rem; }

.msg-plan {
  border: 2px solid var(--amber) !important;
  background: var(--amber-light) !important;
}
.plan-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem; font-size: 1rem;
}
.plan-icon { font-size: 1.2rem; }
.plan-meta {
  font-size: 0.8rem; color: var(--ink-muted);
  margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(232,168,56,0.2);
}
.plan-days { display: flex; flex-direction: column; gap: 0.5rem; }
.plan-day {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem; padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.6); border-radius: var(--radius-sm);
}
.plan-day span {
  font-weight: 700; color: var(--amber-dark);
  font-size: 0.75rem; white-space: nowrap;
  padding: 2px 8px; background: rgba(232,168,56,0.15);
  border-radius: 4px;
}

.chat-input {
  display: flex; gap: 0.75rem; padding: 1rem 1.5rem;
  border-top: 1px solid rgba(44,44,44,0.06);
  background: var(--white);
}
.chat-input input {
  flex: 1; padding: 12px 16px;
  border: 1px solid rgba(44,44,44,0.1);
  border-radius: 50px; font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none; transition: var(--transition);
  background: var(--cream);
}
.chat-input input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,168,56,0.1);
}
.chat-send {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: white; border: none; border-radius: 50px;
  font-weight: 600; cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition);
}
.chat-send:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(232,168,56,0.35); }
/* --- Statistics --- */
.stats {
  background: linear-gradient(135deg, var(--ink) 0%, #1a2a4a 50%, #2a3a5a 100%);
  padding: 80px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; text-align: center;
}
.stat-item {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.stat-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.stat-number {
  font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; color: var(--amber);
  display: inline;
}
.stat-unit {
  font-family: var(--font-serif); font-size: 1.5rem;
  font-weight: 700; color: var(--amber);
  display: inline; margin-left: 2px;
}
.stat-label {
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
}
/* --- Footer --- */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-top: 1rem; margin-bottom: 1.5rem; }
.footer .logo-icon {
  background: linear-gradient(135deg, var(--amber), var(--coral));
}
.footer .logo-text {
  background: linear-gradient(135deg, #fff, #ddd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-qr {}
.qr-placeholder {
  width: 100px; height: 100px;
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
}
.qr-placeholder span { font-size: 0.75rem; }
.qr-placeholder small { font-size: 0.65rem; opacity: 0.5; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-serif); font-size: 1rem;
  color: white; margin-bottom: 1.25rem;
}
.footer-links a {
  display: block; font-size: 0.85rem;
  margin-bottom: 0.75rem; transition: var(--transition);
}
.footer-links a:hover { color: var(--amber); transform: translateX(4px); }
.footer-contact p { font-size: 0.85rem; margin-bottom: 0.75rem; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-link {
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 50px; font-size: 0.8rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--amber); color: white; }
.footer-bottom {
  padding: 1.5rem 0; text-align: center;
  font-size: 0.8rem; opacity: 0.5;
}
/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-20px, 20px); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

[data-animate] {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-animate].visible {
  opacity: 1; transform: translateY(0);
}
/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-illustration { display: none; }
  .hero-content { max-width: 100%; }
  .services-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .feature-block { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
  .fb-heritage { direction: ltr; }
  .fb-heritage .fb-visual { order: 2; }
  .fb-heritage .fb-content { order: 1; }
  .fb-visual { min-height: 250px; }
  .welfare-inner { grid-template-columns: 1fr; }
  .welfare-visual { order: -1; }
  .wv-map { max-width: 300px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .voc-timeline::before { left: 24px; }
  .voc-card { padding-left: 60px; }
  .vc-number { left: 0; width: 48px; height: 48px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 2rem;
    gap: 1.5rem; box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(44,44,44,0.06);
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding-top: 100px; min-height: auto; }
  .hero-title-main { font-size: 2.5rem; }
  .hero-stats-mini { flex-direction: column; gap: 1rem; }
  .hsm-divider { width: 40px; height: 1px; }
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 2.5rem; }
  .feature-block { padding: 1.5rem; }
  .heritage-showcase { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-item { padding: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .chat-demo { border-radius: var(--radius-md); }
  .voc-flow { gap: 0.25rem; }
  .vf-step { padding: 8px 16px; font-size: 0.8rem; }
  .vf-arrow { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .heritage-showcase { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .chat-messages { padding: 1rem; }
  .chat-msg { max-width: 95%; }
}
