.header { position: fixed; inset: 0 0 auto 0; z-index: 20; padding: 12px 0; transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease; }
.header.solid, .header.scrolled { background: rgba(255, 255, 255, 0.92); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); backdrop-filter: blur(10px); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-size: 21px; font-weight: 700; color: var(--neutral-900); letter-spacing: 0.3px; }
.header.solid .logo, .header.scrolled .logo { color: var(--neutral-900); }
.nav { display: flex; align-items: center; gap: 16px; }
.nav > a { color: var(--neutral-700); position: relative; padding: 8px 0; font-weight: 500; font-size: 15px; letter-spacing: 0.1px; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand-primary); transform: scaleX(0); transform-origin: center; transition: transform 0.25s ease; }
.nav > a:not(.btn):hover::after, .nav > a:not(.btn).active::after { transform: scaleX(1); }
.header.solid .nav > a, .header.scrolled .nav > a { color: var(--neutral-700); }
.nav > a.active { color: var(--brand-primary-dark); font-weight: 600; }
.nav > a.btn-accent {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: var(--white) !important;
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: 0 6px 14px rgba(14, 165, 233, 0.2);
  font-weight: 600;
}
.nav > a.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.24);
}
.nav > a.btn-accent.active {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22), 0 8px 18px rgba(14, 165, 233, 0.25);
}
.hamburger { display: none; width: 42px; height: 42px; border: 1px solid var(--neutral-200); background: var(--white); border-radius: 8px; }
.hamburger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--neutral-900); }
.hero { position: relative; overflow: hidden; background: var(--gradient-hero); color: var(--neutral-900); padding: 168px 0 94px; border-bottom: 1px solid rgba(14, 165, 233, 0.12); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); }
.hero::before { width: 320px; height: 320px; right: -120px; top: 20px; background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 70%); }
.hero::after { width: 280px; height: 280px; left: -120px; bottom: 0; background: radial-gradient(circle, rgba(125, 211, 252, 0.36), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.15; margin-bottom: 20px; color: var(--neutral-900); }
.hero p { font-size: clamp(15px, 2.2vw, 18px); color: var(--neutral-700); }
.hero-card { border: 1px solid rgba(14, 165, 233, 0.2); border-radius: 14px; padding: 24px; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(6px); box-shadow: 0 18px 38px rgba(14, 116, 144, 0.14); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.stats { background: linear-gradient(100deg, #e0f2fe 0%, #bae6fd 100%); color: var(--neutral-900); padding: 26px 0; border-top: 1px solid rgba(14, 165, 233, 0.15); border-bottom: 1px solid rgba(14, 165, 233, 0.15); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat-grid article { padding: 14px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(14, 165, 233, 0.16); }
.stat-grid strong { font-size: 36px; display: block; margin-bottom: 4px; }
.cta { position: relative; padding: 72px 0; background: var(--gradient-primary); color: var(--white); text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 40%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15), transparent 45%); pointer-events: none; }
.cta .cta-inner { position: relative; z-index: 1; max-width: 860px; }
.cta .cta-inner p { margin: 0 auto; max-width: 680px; }
.footer { background: #f0f9ff; color: var(--neutral-700); padding: 40px 0 20px; border-top: 1px solid rgba(14, 165, 233, 0.16); }
.footer-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.footer a { display: block; margin: 6px 0; color: var(--neutral-700); }
.footer a:hover { color: var(--brand-primary-dark); }
.copyright { border-top: 1px solid rgba(14, 165, 233, 0.18); padding-top: 12px; font-size: 13px; color: var(--neutral-500); }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--brand-primary-dark); width: 0; z-index: 30; }
.to-top { position: fixed; right: 20px; bottom: 20px; border: 0; border-radius: 50%; width: 44px; height: 44px; background: var(--brand-primary-dark); color: var(--white); cursor: pointer; display: none; box-shadow: 0 10px 24px rgba(14, 165, 233, 0.35); }
.to-top:hover { transform: translateY(-2px); }
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 18;
}
.menu-backdrop.show { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; touch-action: none; }
.mobile-quick-actions {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: none;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(125, 211, 252, 0.4);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(8px);
  z-index: 21;
}
.mobile-quick-actions.show { display: grid; grid-template-columns: 1fr 1fr; }
.mobile-quick-actions .quick-btn {
  min-height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}
.mobile-quick-actions .quick-btn.call {
  background: rgba(56, 189, 248, 0.14);
  color: var(--brand-primary-dark);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.mobile-quick-actions .quick-btn.wechat {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.mobile-quick-actions .quick-btn.consult {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #fff;
  border: 1px solid rgba(14, 165, 233, 0.2);
}
body.has-mobile-quick-actions { padding-bottom: 92px; }
.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.38);
  padding: 20px;
}
.wechat-modal.show { display: flex; }
.wechat-modal-card {
  position: relative;
  width: min(360px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  padding: 18px;
  text-align: center;
}
.wechat-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  cursor: pointer;
}
.wechat-qr-placeholder {
  margin: 10px auto 8px;
  width: 160px;
  height: 160px;
  border-radius: 10px;
  border: 1px dashed rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, #ecfdf5, #f0fdf4);
  display: grid;
  place-items: center;
  color: #047857;
  font-size: 13px;
  padding: 10px;
}
@media (hover: none) and (pointer: coarse) {
  .nav > a:active { background: rgba(56, 189, 248, 0.12); }
  .nav > a.btn-accent:active { filter: brightness(0.98); transform: scale(0.995); }
  .mobile-quick-actions .quick-btn:active { transform: scale(0.99); }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 16px; right: 16px; background: rgba(255, 255, 255, 0.99); border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 12px; padding: 14px; flex-direction: column; align-items: stretch; box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14); z-index: 19; }
  .nav.open { display: flex; }
  .nav > a { color: var(--neutral-700) !important; width: 100%; padding: 10px 8px; border-radius: 8px; font-size: 15px; }
  .nav > a:hover { background: rgba(56, 189, 248, 0.09); }
  .nav > a.btn { justify-content: center; margin-top: 4px; }
  .nav > a.btn-accent {
    min-height: 42px;
    margin-top: 8px;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(14, 165, 233, 0.18);
  }
  .nav > a:not(.btn)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 136px 0 68px; }
  .hero-card { padding: 20px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 220px; }
  .cta { padding: 60px 0; }
}
@media (max-width: 640px) {
  .nav-wrap { gap: 12px; }
  .logo { font-size: 18px; }
  .hero { padding: 122px 0 56px; }
  .stat-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-grid strong { font-size: 30px; }
  .hero-actions .btn { width: 100%; flex-basis: 100%; }
  .page-hero { padding: 116px 0 52px; }
  .footer-grid { grid-template-columns: 1fr; }
  .to-top { right: 14px; width: 42px; height: 42px; bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@media (max-width: 430px) {
  .hero { padding: 116px 0 52px; }
  .hero-card { padding: 16px; }
  .hero-card ul { padding-left: 18px; margin: 8px 0 0; }
  .hero-actions { margin-top: 14px; }
  .cta { padding: 52px 0; }
}
@media (max-width: 390px) {
  .logo { font-size: 17px; }
  .hamburger { width: 40px; height: 40px; }
  .hero { padding: 112px 0 48px; }
  .hero h1 { line-height: 1.2; }
  .nav { left: 12px; right: 12px; top: 68px; padding: 12px; }
  .mobile-quick-actions { left: 10px; right: 10px; padding: 8px; gap: 8px; }
  .mobile-quick-actions .quick-btn { font-size: 13px; min-height: 40px; }
  .mobile-quick-actions.show { grid-template-columns: 1fr 1fr 1fr; }
}
