/* ========================================
   布局 — 导航 / Hero / Sections / Footer
   ======================================== */

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253,252,248,0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(45,106,79,0.06);
  transition: all var(--dur-norm) var(--ease-out);
}
.navbar.scrolled {
  background: rgba(253,252,248,0.88);
  box-shadow: var(--sh-sm);
  border-bottom-color: rgba(45,106,79,0.1);
}

.navbar-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.navbar-logo-img {
  height: 36px;
  width: auto;
  border-radius: var(--r-sm);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.navbar-nav a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-600);
  transition: color var(--dur-fast);
  position: relative;
}
.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--forest-500);
  border-radius: 1px;
  transition: width var(--dur-norm) var(--ease-out);
}
.navbar-nav a:hover { color: var(--forest-700); }
.navbar-nav a:hover::after { width: 100%; }
.navbar-nav a.btn { color: var(--white); }
.navbar-nav a.btn::after { display: none; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--grad-hero);
  overflow: hidden;
}

/* Hero 装饰光晕 */
.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(82,183,136,0.18), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,168,21,0.12), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px var(--sp-5) 80px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.hero-eyebrow-line {
  width: 48px;
  height: 1px;
  background: var(--amber-400);
}
.hero-eyebrow-text {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber-300);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, var(--fs-5xl));
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: var(--sp-5);
  max-width: 800px;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-6);
  max-width: 500px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.hero-scroll-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--amber-400), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: var(--amber-300);
  animation: scrollDown 2s var(--ease-out) infinite;
}

/* ===== PHILOSOPHY ===== */
.philosophy {
  padding: var(--sp-9) 0;
  background: var(--cream);
}
.philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.philosophy-left { position: sticky; top: 100px; }
.section-number {
  font-family: var(--font-serif);
  font-size: 80px;
  font-weight: 700;
  color: var(--forest-200);
  line-height: 1;
  margin-bottom: var(--sp-3);
}
.section-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: var(--sp-3);
}
.section-title-sm {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
}

.philosophy-right p {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-5);
  color: var(--ink-700);
}
.philosophy-right em {
  font-style: normal;
  color: var(--forest-600);
  font-weight: 600;
}
.philosophy-right .body {
  font-size: var(--fs-base);
  color: var(--ink-600);
  line-height: 1.8;
}

/* ===== FEATURES ===== */
.features {
  padding: var(--sp-9) 0;
  background: var(--white);
}
.features-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.features-header {
  margin-bottom: var(--sp-8);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--sp-5);
}
.features-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, var(--fs-3xl));
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -1px;
}
.features-title em {
  font-style: normal;
  background: var(--grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.features-header p {
  font-size: var(--fs-md);
  color: var(--ink-600);
  max-width: 420px;
}

/* Bento Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: var(--sp-4);
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-norm) var(--ease-out);
}

/* 鼠标光晕跟随 */
.feature-card::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(82,183,136,0.08), transparent 70%);
  left: var(--mx, 50%);
  top: var(--my, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--dur-norm);
  pointer-events: none;
}
.feature-card:hover {
  border-color: var(--forest-200);
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
}
.feature-card:hover::after { opacity: 1; }

.feature-card.bento-lg { grid-column: span 2; grid-row: span 2; }
.feature-card.bento-md { grid-column: span 1; grid-row: span 1; }
.feature-card.bento-wide { grid-column: span 3; grid-row: span 1; }

.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--forest-50);
  color: var(--forest-600);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  align-self: flex-start;
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.feature-title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--sp-2);
}

.feature-desc {
  font-size: var(--fs-sm);
  color: var(--ink-600);
  line-height: 1.65;
}

.feature-stats {
  display: flex;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-100);
}
.feature-stat-num {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--forest-600);
}
.feature-stat-label {
  font-size: var(--fs-xs);
  color: var(--ink-500);
}

.feature-card-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--ink-100);
  position: absolute;
  bottom: 16px;
  right: 24px;
  line-height: 1;
}

/* ===== MARQUEE ===== */
.marquee {
  background: var(--forest-700);
  overflow: hidden;
  padding: var(--sp-4) 0;
}
.marquee-track {
  display: flex;
  gap: var(--sp-6);
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.marquee-dot {
  width: 8px; height: 8px;
  background: var(--amber-400);
  border-radius: 50%;
  flex-shrink: 0;
}
.marquee-item span { color: var(--amber-300); }

/* ===== STATS ===== */
.stats {
  padding: var(--sp-9) 0;
  background: var(--forest-900);
}
.stats-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.stats-header {
  margin-bottom: var(--sp-8);
}
.stats-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, var(--fs-3xl));
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-3);
  line-height: 1.15;
}
.stats-header h2 em {
  font-style: normal;
  color: var(--amber-300);
}
.stats-header p {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.55);
  max-width: 480px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.stat-item {
  text-align: left;
  padding: var(--sp-5) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: all var(--dur-norm);
}
.stat-item:hover { border-top-color: var(--amber-400); }

.stat-number {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
}

/* ===== PROCESS TIMELINE ===== */
.process {
  padding: var(--sp-9) 0;
  background: var(--cream);
}
.process-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.process-header {
  text-align: center;
  margin-bottom: var(--sp-8);
}
.process-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, var(--fs-3xl));
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--sp-3);
  line-height: 1.15;
}
.process-header h2 em {
  font-style: normal;
  color: var(--forest-600);
}
.process-header p {
  font-size: var(--fs-md);
  color: var(--ink-600);
  max-width: 500px;
  margin: 0 auto;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.process-step {
  position: relative;
  padding: var(--sp-5);
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-100);
  transition: all var(--dur-norm);
}
.process-step:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
  border-color: var(--forest-200);
}
.process-step-dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--forest-50);
  border: 2px solid var(--forest-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  transition: all var(--dur-norm);
}
.process-step:hover .process-step-dot {
  background: var(--forest-600);
  border-color: var(--forest-600);
}
.process-step-dot span {
  font-family: var(--font-serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--forest-600);
  transition: color var(--dur-norm);
}
.process-step:hover .process-step-dot span { color: var(--white); }

.process-step h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--sp-2);
}
.process-step p {
  font-size: var(--fs-sm);
  color: var(--ink-600);
  line-height: 1.65;
}

/* ===== SCAN PORTAL ===== */
.scan-portal {
  padding: var(--sp-9) 0;
  background: var(--mist);
}
.scan-portal-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-8);
  align-items: center;
}
.scan-portal-text h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--sp-3);
  line-height: 1.2;
}
.scan-portal-desc {
  font-size: var(--fs-md);
  color: var(--ink-600);
  margin-bottom: var(--sp-5);
}
.scan-portal-points {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.scan-portal-points li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-700);
  font-weight: 500;
}
.scan-portal-points li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--forest-400);
  flex-shrink: 0;
}

/* 扫码卡片 */
.scan-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  text-align: center;
  box-shadow: var(--sh-lg);
  position: relative;
  overflow: hidden;
}
.scan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-gold);
}

.scan-header {
  margin-bottom: var(--sp-5);
}
.scan-logo {
  margin-bottom: var(--sp-3);
  display: flex;
  justify-content: center;
}
.scan-logo-img {
  height: 40px;
  width: auto;
  border-radius: var(--r-sm);
}
.scan-header h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--sp-1);
}
.scan-header p {
  font-size: var(--fs-sm);
  color: var(--ink-500);
}

.scan-qr-wrap {
  width: 240px;
  height: 240px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--r-md);
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--ink-100);
}

.scan-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink-500);
  font-size: var(--fs-sm);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--ink-200);
  border-top-color: var(--forest-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.scan-scanned {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.scan-scanned-text {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--forest-600);
}

.scan-tip {
  font-size: var(--fs-xs);
  color: var(--ink-500);
}
.countdown {
  font-weight: 700;
  color: var(--amber-500);
}

.scan-refresh {
  margin-top: var(--sp-2);
  padding: 8px 20px;
  border: 1px solid var(--forest-300);
  background: var(--white);
  color: var(--forest-600);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.scan-refresh:hover { background: var(--forest-50); }

.scan-error {
  font-size: var(--fs-sm);
  color: #E5484D;
  margin-top: var(--sp-2);
}

/* ===== CTA ===== */
.cta {
  padding: var(--sp-9) 0;
  background: var(--grad-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(232,168,21,0.12), transparent 70%);
  filter: blur(60px);
}

.cta-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--amber-300);
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, var(--fs-4xl));
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-3);
  line-height: 1.15;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}
.cta-title em {
  font-style: normal;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-desc {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-6);
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--forest-900);
  color: rgba(255,255,255,0.5);
  padding: var(--sp-7) 0 var(--sp-5);
}
.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-6);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.footer-logo-img {
  height: 36px;
  width: auto;
  border-radius: var(--r-sm);
}
.footer-brand-text {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--white);
}
.footer-desc {
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 400px;
}
.footer-section-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--sp-3);
}
.footer-links li { margin-bottom: var(--sp-2); }
.footer-links a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--amber-300); }

.footer-contact p { font-size: var(--fs-sm); margin-bottom: var(--sp-1); }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-5) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.footer-bottom p { font-size: var(--fs-xs); color: rgba(255,255,255,0.35); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .feature-card.bento-lg { grid-column: span 2; grid-row: span 1; }
  .feature-card.bento-wide { grid-column: span 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .philosophy-inner { grid-template-columns: 1fr; }
  .philosophy-left { position: static; }
  .scan-portal-inner { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: var(--sp-5); }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.bento-lg, .feature-card.bento-md, .feature-card.bento-wide { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .navbar-nav a:not(.btn) { display: none; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: var(--fs-base); }
  .form-row { flex-direction: column; }
}
