:root {
  --primary: #00B578;
  --primary-dark: #009A66;
  --primary-light: #E6F9F1;
  --bg: #F9FAFB;
  --card: #FFFFFF;
  --text-main: #111827;
  --text-sub: #6B7280;
  --border: #E5E7EB;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ========== 导航栏 ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #008F5D);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links { display: flex; align-items: center; gap: 6px; }

.nav-link {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-sub);
  transition: all 0.2s;
}

.nav-link:hover { color: var(--primary); background: var(--primary-light); }

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.nav-external { display: flex; align-items: center; gap: 4px; }

.nav-external svg { width: 13px; height: 13px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  padding: 10px 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--text-main);
  transition: all 0.2s;
}

/* ========== 首页 Hero ========== */
/* .hero {
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.52), rgba(17, 24, 39, 0.52)),
    url("/assets/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  padding: 64px 0;
  text-align: center;
} */

.hero {
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.52), rgba(17, 24, 39, 0.52)),
    image-set(
      "/assets/hero-750.webp" 1x,
      "/assets/hero-1920.webp" 2x
    ),
    url("/assets/hero-fallback.jpg"); /* 兜底 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  padding: 64px 0;
  text-align: center;
}


.hero .container { width: 100%; }

.hero-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(17, 24, 39, 0.4);
}

.hero h1 em { font-style: normal; color: #3DDC97; }

.hero-desc {
  max-width: 620px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  text-shadow: 0 1px 8px rgba(17, 24, 39, 0.4);
}

.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary { background: var(--primary); color: #fff; }

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-ghost { background: var(--card); color: var(--text-main); border-color: var(--border); }

.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 9px 22px; font-size: 14px; border-radius: 8px; }

/* ========== 通用区块 ========== */
.section { padding: 72px 0; scroll-margin-top: 72px; }

.section-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }

.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-head p { color: var(--text-sub); font-size: 15px; }

/* ========== 产品卡片 ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(0, 181, 120, 0.12);
}

.product-visual {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.product-type {
  display: inline-block;
  align-self: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }

.product-card > p {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 20px;
  flex: 1;
}

/* ========== 手机模型 ========== */
.phone {
  width: 128px;
  height: 244px;
  background: var(--card);
  border: 3px solid var(--text-main);
  border-radius: 20px;
  padding: 12px 10px;
  box-shadow: 10px 10px 0 var(--primary-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.phone-notch {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--text-main);
  margin: 0 auto;
  flex-shrink: 0;
}

.phone-lg {
  width: 210px;
  height: 420px;
  border-radius: 30px;
  border-width: 4px;
  padding: 20px 16px;
  gap: 10px;
  box-shadow: 14px 14px 0 var(--primary-light);
}

.phone-lg .phone-notch { width: 58px; height: 5px; }

.mini-title { font-size: 10px; font-weight: 700; color: var(--text-main); text-align: center; }

.phone-lg .mini-title { font-size: 13px; }

.mini-search {
  height: 14px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 7px;
}

.mini-icon { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }

.mini-text { flex: 1; min-width: 0; }

.mini-line { height: 3px; border-radius: 2px; background: var(--border); margin: 3px 0; }

.mini-line.w70 { width: 70%; }
.mini-line.w45 { width: 45%; }

.mini-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.mini-tab { width: 11px; height: 11px; border-radius: 4px; background: var(--border); }

.mini-tab.active { background: var(--primary); }

.mini-photos {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 5px;
}

.mini-photo { border-radius: 5px; }

.g-green  { background: linear-gradient(135deg, #00B578, #7CE0B5); }
.g-teal   { background: linear-gradient(135deg, #0EA5E9, #7DD3FC); }
.g-amber  { background: linear-gradient(135deg, #F59E0B, #FCD34D); }
.g-violet { background: linear-gradient(135deg, #8B5CF6, #C4B5FD); }
.g-rose   { background: linear-gradient(135deg, #F43F5E, #FDA4AF); }
.g-slate  { background: linear-gradient(135deg, #6B7280, #D1D5DB); }
.g-mint   { background: linear-gradient(135deg, #10B981, #A7F3D0); }
.g-sky    { background: linear-gradient(135deg, #6366F1, #C7D2FE); }
.g-orange { background: linear-gradient(135deg, #EA580C, #FDBA74); }

/* ========== 3D 立方体 ========== */
.cube-stage { width: 120px; height: 180px; perspective: 420px; display: flex; align-items: center; justify-content: center; }

.cube {
  width: 62px;
  height: 62px;
  position: relative;
  transform-style: preserve-3d;
  animation: cube-spin 9s linear infinite;
}

.cube-face {
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  background: rgba(0, 181, 120, 0.14);
  border-radius: 8px;
}

.cube-front  { transform: translateZ(31px); }
.cube-back   { transform: rotateY(180deg) translateZ(31px); }
.cube-right  { transform: rotateY(90deg) translateZ(31px); }
.cube-left   { transform: rotateY(-90deg) translateZ(31px); }
.cube-top    { transform: rotateX(90deg) translateZ(31px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(31px); }

@keyframes cube-spin {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg); }
}

/* ========== 优势 / 特性 ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  transition: all 0.2s;
}

.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); }

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.feature-card p { color: var(--text-sub); font-size: 14px; }

/* ========== 详情页 Hero ========== */
.page-hero {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.page-hero .container { width: 100%; }

.page-hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}

.page-hero-visual { display: flex; justify-content: center; }

.product-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.page-hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 16px; }

.page-hero h1 em { font-style: normal; color: var(--primary); }

.page-hero-desc { color: var(--text-sub); font-size: 16px; margin-bottom: 30px; max-width: 480px; }

.page-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========== 场景卡片 ========== */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.scene-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
}

.scene-num {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.scene-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.scene-card p { color: var(--text-sub); font-size: 14px; }

/* ========== CTA / 小程序码 ========== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #008F5D 100%);
  border-radius: 22px;
  padding: 48px 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-text h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }

.cta-text p { font-size: 15px; opacity: 0.9; }

.qr-box {
  width: 150px;
  height: 150px;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.qr-box svg { width: 36px; height: 36px; }

/* ========== 下载按钮 ========== */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 22px;
  transition: all 0.2s;
}

.store-badge:hover { border-color: var(--primary); transform: translateY(-2px); }

.store-badge svg { width: 26px; height: 26px; color: var(--text-main); }

.store-badge small { display: block; font-size: 11px; color: var(--text-sub); font-weight: 400; }

.store-badge strong { font-size: 15px; font-weight: 700; }

.soon-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
}

/* ========== 关于页 ========== */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
}

.about-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-card h3::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--primary);
}

.about-card p { color: var(--text-sub); font-size: 14px; margin-bottom: 10px; }

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.info-row:last-child { border-bottom: none; }

.info-row .info-label { color: var(--text-sub); flex-shrink: 0; }

.info-row .info-value { text-align: right; font-weight: 500; }

/* ========== 页脚 / 备案信息 ========== */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 26px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copy { font-size: 13px; color: var(--text-sub); }

.footer-icp { font-size: 13px; }

.footer-icp a {
  color: var(--text-sub);
  transition: color 0.2s;
}

.footer-icp a:hover { color: var(--primary); }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .page-hero-desc { margin-left: auto; margin-right: auto; }
  .page-hero-actions { justify-content: center; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 16px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-link { text-align: center; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 32px; }
  .page-hero { padding: 48px 0; }
  .page-hero h1 { font-size: 29px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .scene-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .cta { justify-content: center; text-align: center; padding: 36px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
