/* ===== Variables ===== */
:root {
  --color-primary: #2d6a4f;
  --color-primary-light: #40916c;
  --color-primary-dark: #1b4332;
  --color-accent: #d4a373;
  --color-accent-light: #e9c46a;
  --color-bg: #faf9f7;
  --color-bg-alt: #f0ede8;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-white: #ffffff;
  --color-border: rgba(0, 0, 0, 0.08);
  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
  --header-h: 64px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}
.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.nav a:hover { color: var(--color-primary); }
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  content-visibility: visible;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(64, 145, 108, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(212, 163, 115, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 120px;
}
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(45, 106, 79, 0.1);
  color: var(--color-primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--color-primary-dark);
}
.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll { animation: bounce 2s infinite; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
.section-header {
  margin-bottom: 56px;
}
.section-header.center { text-align: center; }
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 560px;
}

/* ===== About ===== */
.about { background: var(--color-white); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.about-card {
  padding: 32px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.about-icon { font-size: 2rem; margin-bottom: 16px; }
.about-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}
.about-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 48px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-lg);
  color: var(--color-white);
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.875rem; opacity: 0.85; }

/* ===== Product ===== */
.product {
  background: var(--color-bg-alt);
  position: relative;
}
.product-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.product-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.product-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}
.product-qrcode img {
  width: 180px;
  height: 180px;
  display: block;
  border-radius: 50%;
}
.product-qrcode-hint {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.product-qrcode-sub {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.phone-mockup {
  width: 280px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.phone-screen {
  background: #f5f5f5;
  border-radius: 28px;
  padding: 20px 16px;
  min-height: 420px;
}
.chat-demo { display: flex; flex-direction: column; gap: 12px; }
.chat-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.chat-user {
  align-self: flex-end;
  background: #95ec69;
  color: #1a1a1a;
  border-bottom-right-radius: 4px;
}
.chat-ai {
  align-self: flex-start;
  background: var(--color-white);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ai-badge {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: 0.625rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}
.product-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(64, 145, 108, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.product-label { color: var(--color-accent); }
.product-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}
.product-title .highlight {
  color: var(--color-primary);
}
.product-tagline {
  font-size: 1.0625rem;
  color: var(--color-primary-light);
  font-weight: 600;
  margin-bottom: 20px;
}
.product-desc {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.feature-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.feature-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon { font-size: 1.5rem; flex-shrink: 0; }
.feature-list strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 4px;
  color: var(--color-primary-dark);
}
.feature-list p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 2px dashed var(--color-primary-light);
}
.wechat-hint { font-size: 0.875rem; color: var(--color-text-muted); }
.wechat-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ===== Values ===== */
.values { background: var(--color-white); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.value-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow);
}
.value-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(45, 106, 79, 0.15);
  margin-bottom: 16px;
  line-height: 1;
}
.value-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}
.value-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact { padding-bottom: 80px; }
.contact-box {
  text-align: center;
  padding: 64px 48px;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-lg);
  color: var(--color-white);
}
.contact-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}
.contact-box > p {
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.contact-info {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-item-address {
  max-width: 520px;
  text-align: left;
  margin: 0 auto;
}
.contact-item-address > span:not(.contact-label) {
  line-height: 1.6;
}
.contact-address-en {
  margin-top: 8px;
  font-size: 0.8125rem;
  opacity: 0.85;
  line-height: 1.5;
}
.contact-label {
  font-size: 0.8125rem;
  opacity: 0.7;
}
.contact-link {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}
.contact-link:hover {
  opacity: 0.85;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
.footer-inner p { font-size: 0.875rem; }
.footer-sub { margin-top: 8px; font-size: 0.8125rem; opacity: 0.6; }
.footer-beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 16px;
  font-size: 0.8125rem;
}
.footer-beian a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}
.footer-beian a:hover { color: var(--color-white); }
.footer-beian-divider {
  opacity: 0.4;
  user-select: none;
}
@media (max-width: 768px) {
  .footer-beian-divider { display: none; }
  .footer-beian { flex-direction: column; gap: 8px; }
}

/* ===== Mobile Nav Overlay ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}
.nav-overlay.active { display: block; }

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
  .about-grid,
  .values-grid { grid-template-columns: 1fr; }
  .product-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .product-visual { order: -1; }
  .stats { gap: 40px; flex-wrap: wrap; }
}

/* ===== Responsive: Mobile (H5) ===== */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .container { padding: 0 20px; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }
  .nav a:last-child { border-bottom: none; }
  .menu-btn { display: flex; }

  .hero-content { padding: 48px 0 100px; }
  .hero-scroll { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  .about-card { padding: 24px; }
  .stats {
    flex-direction: column;
    gap: 32px;
    padding: 32px 24px;
  }

  .phone-mockup { width: 240px; }
  .phone-screen { min-height: 360px; }
  .product-qrcode img { width: 160px; height: 160px; }
  .product-qrcode { padding: 16px 20px; }

  .contact-box { padding: 40px 24px; }
  .contact-info { flex-direction: column; gap: 24px; }
}

@media (max-width: 380px) {
  .phone-mockup { width: 220px; }
  .hero-title { font-size: 2rem; }
}
