/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: #ffffff;
  color: #1d1d1f;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #34a853; }
img { max-width: 100%; }
ul { list-style: none; }

/* ===== Variables ===== */
:root {
  /* ===== BGZH Design System v2.0 欢喜色板（苹果验证版）===== */
  /* 底色层（纯白·洁白·禅意·苹果验证） */
  --bg-primary: #ffffff;
  --bg-section: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-deep: #1d1d1f;

  /* 文字层（苹果验证：近乎纯黑，极少灰色） */
  --color-text: #1d1d1f;
  --color-text-muted: #6e6e73;
  --color-text-dim: #86868b;

  /* 谷金品牌色（王冠上的宝石·黑夜里的光明） */
  --color-gold: #b8922e;
  --color-gold-light: #d4a83e;
  --color-gold-dim: #8a6e20;
  --color-gold-wash: #faf6ea;

  /* 生意绿（生命力·年轻激昂·谷=生长·CTA色） */
  --color-primary: #34a853;
  --color-primary-light: #4caf6a;
  --color-primary-wash: #f0f8f2;

  /* 辅助色 */
  --color-accent: #1d1d1f;
  --color-accent-light: #6e6e73;

  /* 信号色（苹果验证：几乎不出现） */
  --color-success: #34a853;
  --color-warning: #f9ab00;
  --color-error: #ea4335;
  --color-info: #4285f4;

  /* 边框与分割（苹果验证：几乎看不见，靠留白分割） */
  --color-border: #e5e5e5;
  --border-subtle: #f0f0f0;
  --border-gold: #e8dcc0;

  /* 阴影（苹果验证：轻到几乎不存在） */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-gold: 0 0 12px rgba(184,146,46,0.10);

  /* 布局 */
  --max-width: 1200px;
  --nav-height: 48px;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e5e5e5;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.nav-inner {
  width: 100%; max-width: var(--max-width);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 700; letter-spacing: 1px;
}
.nav-brand .logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-light));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #fff;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--color-text-muted);
  padding: 6px 0; position: relative;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: #1d1d1f; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: #34a853; border-radius: 1px;
}
.nav-cta {
  background: #34a853; color: #fff !important;
  padding: 8px 20px !important; border-radius: 6px; font-weight: 600 !important;
  transition: background .2s, transform .1s;
}
.nav-cta:hover { background: #4caf6a; transform: translateY(-1px); }
.mobile-toggle { display: none; background: none; border: none; color: #1d1d1f; cursor: pointer; font-size: 24px; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; padding: calc(var(--nav-height) + 60px) 32px 80px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, rgba(15,52,96,0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(233,69,96,0.08) 0%, transparent 50%),
              var(--bg-primary);
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-content { max-width: var(--max-width); width: 100%; position: relative; z-index: 1; }
.hero-tag {
  display: inline-block; padding: 6px 16px; border-radius: 4px;
  background: rgba(233,69,96,0.12); color: var(--color-primary);
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  margin-bottom: 24px; border: 1px solid rgba(233,69,96,0.2);
}
.hero-title {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800;
  line-height: 1.2; margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--color-primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px); color: var(--color-text-muted);
  max-width: 680px; line-height: 1.8; margin-bottom: 40px;
}
.hero-subtitle .formula {
  color: var(--color-gold); font-weight: 600;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(233,69,96,0.3); }
.btn-outline {
  background: transparent; color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-text-muted); background: rgba(255,255,255,0.03); }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-top: 40px; border-top: 1px solid var(--color-border);
}
.stat-item .stat-num {
  font-size: 32px; font-weight: 800; color: #fff;
  display: block; margin-bottom: 4px;
}
.stat-item .stat-num .unit { font-size: 16px; color: var(--color-primary); font-weight: 600; }
.stat-item .stat-label { font-size: 13px; color: var(--color-text-muted); }

/* ===== Section Common ===== */
.section {
  padding: 100px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-alt { background: var(--bg-section); }
.section-alt .section { margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; padding: 4px 12px; border-radius: 4px;
  background: rgba(15,52,96,0.3); color: var(--color-accent-light);
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px; border: 1px solid rgba(15,52,96,0.4);
}
.section-title {
  font-size: clamp(28px, 3vw, 38px); font-weight: 700;
  color: #fff; margin-bottom: 16px;
}
.section-desc {
  font-size: 16px; color: var(--color-text-muted);
  max-width: 600px; margin: 0 auto;
}

/* ===== Product Cards ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.product-card {
  background: var(--bg-card); border: 1px solid var(--color-border);
  border-radius: 12px; padding: 32px; transition: all .3s;
  position: relative; overflow: hidden;
}
.product-card:hover {
  border-color: rgba(233,69,96,0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.product-card .card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; margin-bottom: 20px;
}
.card-icon-1 { background: linear-gradient(135deg, #e94560, #c23152); color: #fff; }
.card-icon-2 { background: linear-gradient(135deg, #0f3460, #1a4a8a); color: #fff; }
.card-icon-3 { background: linear-gradient(135deg, #d4a853, #b8922f); color: #fff; }
.card-icon-4 { background: linear-gradient(135deg, #2d6a4f, #40916c); color: #fff; }
.product-card h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.product-card .card-desc { font-size: 14px; color: var(--color-text-muted); margin-bottom: 20px; line-height: 1.7; }
.sdk-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sdk-tag {
  padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 500;
  background: rgba(15,52,96,0.2); color: var(--color-accent-light);
  border: 1px solid rgba(15,52,96,0.3);
}
.course-tiers { margin-bottom: 20px; }
.course-tiers .tier-label {
  font-size: 12px; color: var(--color-text-dim); font-weight: 600;
  letter-spacing: 1px; margin-bottom: 8px;
}
.tier-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tier-item {
  padding: 6px 14px; border-radius: 4px; font-size: 13px; font-weight: 600;
  background: rgba(233,69,96,0.08); color: var(--color-primary-light);
  border: 1px solid rgba(233,69,96,0.15);
}
.tier-item .price { font-size: 12px; color: var(--color-text-muted); font-weight: 400; margin-left: 4px; }
.card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-primary); font-size: 14px; font-weight: 600;
  margin-top: 8px; transition: gap .2s;
}
.card-cta:hover { gap: 10px; }
.card-cta::after { content: '→'; }

/* ===== Solution / Swarm Cards ===== */
.solution-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.solution-card {
  background: var(--bg-card); border: 1px solid var(--color-border);
  border-radius: 12px; padding: 28px; transition: all .3s;
  display: flex; flex-direction: column;
}
.solution-card:hover {
  border-color: rgba(233,69,96,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.solution-card .level-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  margin-bottom: 16px; width: fit-content;
}
.level-lv2 { background: rgba(45,106,79,0.2); color: #52b788; border: 1px solid rgba(45,106,79,0.3); }
.level-lv3 { background: rgba(15,52,96,0.2); color: #5a9fd4; border: 1px solid rgba(15,52,96,0.3); }
.level-lv4 { background: rgba(212,168,83,0.15); color: #d4a853; border: 1px solid rgba(212,168,83,0.25); }
.level-lv5 { background: rgba(233,69,96,0.12); color: var(--color-primary-light); border: 1px solid rgba(233,69,96,0.2); }
.level-lv6 { background: rgba(233,69,96,0.2); color: #ff6b81; border: 1px solid rgba(233,69,96,0.3); }
.level-saas { background: rgba(15,52,96,0.2); color: #7eb8da; border: 1px solid rgba(15,52,96,0.3); }
.solution-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.solution-card .target { font-size: 13px; color: var(--color-text-dim); margin-bottom: 12px; }
.solution-card .price-highlight {
  font-size: 28px; font-weight: 800; color: var(--color-primary);
  margin-bottom: 4px;
}
.solution-card .price-unit { font-size: 14px; color: var(--color-text-muted); font-weight: 400; }
.solution-card .features { margin: 16px 0; flex: 1; }
.solution-card .features li {
  font-size: 13px; color: var(--color-text-muted);
  padding: 4px 0; padding-left: 18px; position: relative;
}
.solution-card .features li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-primary); opacity: 0.6;
}

/* ===== Pricing Section ===== */
.pricing-block { margin-bottom: 56px; }
.pricing-block:last-child { margin-bottom: 0; }
.pricing-block h3 {
  font-size: 20px; font-weight: 700; color: #fff;
  margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.pricing-block h3 .badge {
  padding: 2px 10px; border-radius: 4px; font-size: 11px; font-weight: 600;
  background: rgba(233,69,96,0.15); color: var(--color-primary);
}
.pricing-block .block-desc { font-size: 14px; color: var(--color-text-muted); margin-bottom: 20px; }
.pricing-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden;
}
.pricing-table th {
  background: rgba(15,52,96,0.2); padding: 14px 20px;
  text-align: left; font-size: 13px; font-weight: 600;
  color: var(--color-text-muted); border-bottom: 1px solid var(--color-border);
}
.pricing-table td {
  padding: 14px 20px; font-size: 14px;
  border-bottom: 1px solid rgba(42,42,74,0.5);
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: rgba(255,255,255,0.02); }
.pricing-table .col-name { color: #fff; font-weight: 500; }
.pricing-table .col-price { color: var(--color-primary); font-weight: 700; }
.pricing-table .col-desc { color: var(--color-text-dim); font-size: 13px; }
.pricing-table .col-tag {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  font-size: 11px; font-weight: 600;
}
.tag-hot { background: rgba(233,69,96,0.15); color: var(--color-primary); }
.tag-new { background: rgba(45,106,79,0.2); color: #52b788; }
.tag-rec { background: rgba(212,168,83,0.15); color: #d4a853; }

.pricing-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.step-card {
  background: var(--bg-card); border: 1px solid var(--color-border);
  border-radius: 10px; padding: 24px; text-align: center;
  transition: all .3s;
}
.step-card:hover {
  border-color: rgba(233,69,96,0.3); transform: translateY(-3px);
}
.step-card .step-level { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--color-text-dim); margin-bottom: 8px; }
.step-card .step-price { font-size: 28px; font-weight: 800; color: var(--color-primary); margin-bottom: 4px; }
.step-card .step-price.free { color: #52b788; }
.step-card .step-label { font-size: 13px; color: var(--color-text-muted); }
.step-card .step-features { margin-top: 12px; font-size: 12px; color: var(--color-text-dim); line-height: 1.8; }

/* ===== Documentation ===== */
.doc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.doc-category {
  background: var(--bg-card); border: 1px solid var(--color-border);
  border-radius: 12px; padding: 28px;
}
.doc-category h3 {
  font-size: 16px; font-weight: 700; color: #fff;
  margin-bottom: 4px; display: flex; align-items: center; gap: 8px;
}
.doc-category .cat-desc { font-size: 13px; color: var(--color-text-dim); margin-bottom: 16px; }
.doc-list li {
  padding: 8px 0; border-bottom: 1px solid rgba(42,42,74,0.3);
  font-size: 14px; color: var(--color-text-muted);
  display: flex; justify-content: space-between; align-items: center;
}
.doc-list li:last-child { border-bottom: none; }
.doc-list .doc-format {
  padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600;
  background: rgba(15,52,96,0.2); color: var(--color-accent-light);
}

/* ===== About ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start;
}
.about-block { margin-bottom: 40px; }
.about-block:last-child { margin-bottom: 0; }
.about-block h3 {
  font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.about-block h3 .icon-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.about-block p { font-size: 15px; color: var(--color-text-muted); line-height: 1.8; }
.about-block .highlight { color: var(--color-primary); font-weight: 600; }

.founder-card {
  background: var(--bg-card); border: 1px solid var(--color-border);
  border-radius: 12px; padding: 32px;
}
.founder-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 16px;
}
.founder-card h3 { font-size: 20px; color: #fff; font-weight: 700; margin-bottom: 4px; }
.founder-card .founder-title { font-size: 14px; color: var(--color-primary); font-weight: 500; margin-bottom: 16px; }
.founder-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.7; }

.culture-values {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 16px;
}
.value-item {
  padding: 16px; border-radius: 8px;
  background: rgba(15,52,96,0.1); border: 1px solid rgba(15,52,96,0.2);
}
.value-item .val-title { font-size: 14px; font-weight: 700; color: var(--color-gold); margin-bottom: 4px; }
.value-item .val-desc { font-size: 13px; color: var(--color-text-dim); line-height: 1.6; }

.contact-card {
  background: var(--bg-card); border: 1px solid var(--color-border);
  border-radius: 12px; padding: 28px;
}
.contact-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(42,42,74,0.3);
  font-size: 14px; color: var(--color-text-muted);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(15,52,96,0.2); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--color-accent-light);
  flex-shrink: 0;
}
.contact-item .placeholder { font-size: 12px; color: var(--color-text-dim); font-style: italic; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-deep); border-top: 1px solid var(--color-border);
  padding: 40px 32px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-info { font-size: 13px; color: var(--color-text-dim); }
.footer-info .company { color: var(--color-text-muted); font-weight: 500; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--color-text-dim); }
.footer-links a:hover { color: var(--color-text); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-steps { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .culture-values { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: rgba(13,13,26,0.98); padding: 20px 32px; gap: 16px;
    border-bottom: 1px solid var(--color-border);
  }
  .mobile-toggle { display: block; }
  .hero { padding: calc(var(--nav-height) + 40px) 20px 60px; }
  .section { padding: 60px 20px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item .stat-num { font-size: 24px; }
  .solution-grid { grid-template-columns: 1fr; }
  .pricing-steps { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}

/* ===== Scroll animations ===== */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Consult Button ===== */
.consult-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-primary); font-weight: 600; font-size: 14px;
  margin-top: 12px; transition: gap .2s;
}
.consult-link:hover { gap: 10px; }
.consult-link::after { content: '→'; }

/* ===== Pricing summary row ===== */
.pricing-summary {
  display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap;
}
.summary-chip {
  padding: 10px 20px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--color-border);
  font-size: 14px; color: var(--color-text-muted);
}
.summary-chip strong { color: var(--color-primary); font-weight: 700; }
