/* ============================================================
   鸿晓牛管事官网 · 设计令牌与组件
   规范来源：DESIGN.md（getdesign.md MongoDB 设计系统）
   ============================================================ */

:root {
  /* colors */
  --brand-green: #00ed64;
  --primary-pressed: #008c34;
  --on-primary: #001e2b;
  --green-dark: #00684a;
  --green-mid: #00a35c;
  --green-soft: #c3f0d2;
  --teal-deep: #001e2b;
  --teal: #003d4f;
  --teal-mid: #00684a;
  --canvas: #ffffff;
  --canvas-dark: #001e2b;
  --surface: #f9fbfa;
  --surface-soft: #f4f7f6;
  --surface-feature: #e3fcef;
  --hairline: #e1e5e8;
  --hairline-soft: #eceff1;
  --hairline-strong: #c1ccd6;
  --hairline-dark: #1c2d38;
  --ink: #001e2b;
  --slate: #3d4f5b;
  --steel: #5c6c7a;
  --stone: #7c8c9a;
  --muted: #a8b3bc;
  --on-dark: #ffffff;
  --on-dark-muted: #a8b3bc;
  --accent-purple: #7b3ff2;
  --accent-orange: #fa6e39;
  --accent-pink: #f06bb8;
  --accent-blue: #3d4f9f;

  /* semantic（DESIGN.md semantic-warning） */
  --warning-bg: #fff8e0;
  --warning-text: #946f3f;

  /* 品牌渐变与薄荷底（2026-09-15 效果图新增，登记于 DESIGN.md lead-* 组件） */
  --mint-wash: #f3fdf8;
  --brand-grad-from: #02d080;
  --brand-grad-to: #03a964;

  /* rounded */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-xxl: 24px;
  --r-full: 9999px;

  /* spacing */
  --sp-xl: 24px;
  --sp-xxl: 32px;
  --sp-xxxl: 40px;
  --section-sm: 48px;
  --section: 64px;
  --section-lg: 96px;

  /* elevation */
  --shadow-1: 0 1px 2px 0 rgba(0, 30, 43, 0.04);
  --shadow-2: 0 4px 12px 0 rgba(0, 30, 43, 0.08);
  --shadow-3: 0 12px 24px -4px rgba(0, 30, 43, 0.12);
  /* 品牌调绿阴影：lead-form-card 专用（DESIGN.md「品牌调阴影」） */
  --shadow-lead: 0 24px 48px -16px rgba(3, 122, 74, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Euclid Circular A", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ---------- 顶部导航（Sticky white bar） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 18px; color: var(--ink);
}
.brand img { height: 32px; width: auto; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 8px; align-items: center; }
.nav a {
  color: var(--slate); padding: 8px 12px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav a.cta {
  background: var(--brand-green); color: var(--on-primary);
  padding: 10px 22px; border-radius: var(--r-full);
  font-weight: 600; font-size: 14px;
}
.nav a.cta:hover { background: var(--primary-pressed); text-decoration: none; }

/* ---------- Hero 深青色横带 ---------- */
.hero-band {
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(0, 106, 130, 0.55), transparent 70%),
    var(--teal-deep);
  color: var(--on-dark);
  padding: 120px 0 96px;
  text-align: center;
}
.hero-band.compact { padding: 72px 0 64px; }
.eyebrow {
  display: inline-block;
  background: var(--green-soft); color: var(--green-dark);
  font-size: 13px; font-weight: 600;
  border-radius: var(--r-full); padding: 4px 10px;
  margin-bottom: 24px;
}
.hero-band h1 {
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 500; line-height: 1.10; letter-spacing: -1.5px;
  margin: 0 0 20px;
}
.hero-band .sub {
  font-size: 18px; line-height: 1.5; color: var(--on-dark-muted);
  max-width: 640px; margin: 0 auto 32px;
}
.hero-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-band .note {
  margin-top: 20px; font-size: 13px; color: var(--on-dark-muted);
}

/* ---------- 全幅氛围图 hero（智慧牛背景，文字压左） ---------- */
.hero-light {
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.82) 38%,
      rgba(255, 255, 255, 0.30) 62%,
      rgba(255, 255, 255, 0) 78%),
    url("assets/hero-smartbull.jpg") right center / cover no-repeat,
    var(--surface);
  color: var(--ink);
  padding: 140px 0 110px;
}
.hero-light .eyebrow { margin-bottom: 24px; }
.hero-light h1 {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 500; line-height: 1.10; letter-spacing: -1.5px;
  margin: 0 0 20px;
}
.hero-light .sub {
  font-size: 18px; line-height: 1.55; color: var(--slate);
  max-width: 600px; margin: 0 0 32px;
}
.hero-copy { max-width: 620px; }
.hero-copy .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-copy .note { margin: 16px 0 0; font-size: 13px; color: var(--steel); }
.hero-light .code-mockup { margin-top: 72px; }

/* ---------- 按钮（药丸为主） ---------- */
.btn {
  display: inline-block; padding: 10px 22px;
  border-radius: var(--r-full);
  font-size: 14px; font-weight: 600; line-height: 1.3;
  cursor: pointer; border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-green); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-pressed); }
.btn-secondary {
  background: transparent; color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
.btn-secondary:hover { border-color: var(--green-dark); color: var(--green-dark); }
.btn-secondary-on-dark {
  background: transparent; color: var(--on-dark);
  border: 1px solid var(--hairline-dark);
}
.btn-secondary-on-dark:hover { border-color: var(--on-dark-muted); }
.btn-lg { padding: 14px 30px; font-size: 15px; }

.link-more { font-size: 14px; font-weight: 500; }

/* ---------- 区块节奏 ---------- */
.section { padding: var(--section-lg) 0; }
.section.surface { background: var(--surface); }
.section-title {
  text-align: center;
  font-size: clamp(28px, 3.4vw, 36px); font-weight: 500;
  line-height: 1.25; letter-spacing: -0.5px;
  margin: 0 0 12px;
}
.section-sub {
  text-align: center; color: var(--steel);
  font-size: 16px; line-height: 1.55;
  margin: 0 auto 48px; max-width: 640px;
}

/* ---------- 网格与卡片 ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
}
.card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.card p { margin: 0; color: var(--slate); font-size: 14px; line-height: 1.5; }

.badge {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  border-radius: 4px; padding: 2px 8px;
  margin-bottom: 14px;
}
.badge.b-green { background: var(--green-soft); color: var(--green-dark); border-radius: var(--r-full); }
.badge.b-purple { background: var(--accent-purple); color: var(--on-dark); }
.badge.b-orange { background: var(--accent-orange); color: var(--on-dark); }
.badge.b-pink { background: var(--accent-pink); color: var(--on-dark); }
.badge.b-blue { background: var(--accent-blue); color: var(--on-dark); }

/* 「老板最关心的四件事」编号卡 */
.feature-item { display: flex; gap: 20px; align-items: flex-start; padding: var(--sp-xxl); }
.feature-item .no {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-lg);
  background: var(--green-soft); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 17px;
}
.feature-item h3 { margin: 2px 0 8px; }
.feature-item p { margin: 0; }

/* ---------- Hero 终端样式模拟卡 ---------- */
.code-mockup {
  background: var(--canvas-dark);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: var(--sp-xl);
  max-width: 680px; margin: 64px auto 0;
  text-align: left;
  font-family: "Source Code Pro", "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px; line-height: 1.55;
}
.code-mockup .chrome {
  display: flex; gap: 6px; margin-bottom: 16px;
}
.code-mockup .chrome i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #31485a;
}
.code-mockup pre {
  margin: 0; white-space: pre-wrap; word-break: break-all;
  color: var(--on-dark-muted);
}
.code-mockup .cmd { color: var(--on-dark); font-weight: 600; }
.code-mockup .ok { color: var(--brand-green); }
.code-mockup .warn { color: var(--accent-orange); }
.code-mockup .dim { color: var(--muted); }

/* ---------- 定价 ---------- */
.pricing-card { display: flex; flex-direction: column; }
.pricing-card .badge,
.pricing-card .name,
.pricing-card .billing { align-self: flex-start; text-align: left; }
.pricing-card .name { font-size: 22px; font-weight: 500; }
.pricing-card .billing { color: var(--steel); font-size: 14px; margin: 4px 0 0; }
.pricing-card ul {
  margin: 20px 0 0; padding: 0; list-style: none;
  color: var(--slate); font-size: 14px;
}
.pricing-card ul li { margin-bottom: 10px; padding-left: 22px; position: relative; }
.pricing-card ul li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--green-dark); font-weight: 600;
}
.pricing-card.featured {
  background: var(--surface-feature);
  border: 2px solid var(--brand-green);
}
.badge-popular {
  align-self: flex-start;
  background: var(--teal-deep); color: var(--brand-green);
  font-size: 13px; font-weight: 600;
  border-radius: var(--r-full); padding: 4px 10px;
  margin-bottom: 14px;
}

/* ---------- 深色 CTA 横幅 ---------- */
.cta-banner {
  background:
    radial-gradient(720px 320px at 50% -60px, rgba(0, 106, 130, 0.5), transparent 70%),
    var(--teal-deep);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: var(--section) var(--sp-xxl);
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(26px, 3.2vw, 36px); font-weight: 500;
  letter-spacing: -0.5px; line-height: 1.25;
  margin: 0 0 12px;
}
.cta-banner p { color: var(--on-dark-muted); margin: 0 0 28px; font-size: 16px; }

/* ---------- 联系页 ---------- */
/* 左微信卡（含二维码）+ 右电话/邮箱堆叠卡，左对齐提升信息密度 */
.contact-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.way-stack { display: grid; gap: 24px; grid-template-rows: repeat(3, 1fr); }
.contact-way {
  display: flex; gap: 16px; align-items: flex-start;
  padding: var(--sp-xl); text-align: left;
}
.contact-way .ico {
  flex: none; width: 48px; height: 48px; border-radius: var(--r-full);
  background: var(--green-soft); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.contact-way h3 { margin: 0 0 4px; }
.contact-way .way-desc { margin: 0; }
.contact-way .way-hint {
  margin: 6px 0 0;
  font-size: 13px; line-height: 1.4; color: var(--stone);
}
.wechat-card { flex-direction: column; }
.wechat-card .way-head { display: flex; gap: 16px; align-items: flex-start; }
.qr {
  width: 160px; height: auto;
  margin: 16px 0 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
}

/* ---------- 留资表单（DESIGN.md lead-form-card / lead-submit-gradient / lead-perk-item） ---------- */
.bg-mint { background: var(--mint-wash); }
.lead-section { background: var(--mint-wash); }
.lead-card {
  position: relative;
  max-width: 780px; margin: 0 auto;
  background: var(--canvas);
  border-radius: var(--r-xxl);
  padding: var(--sp-xxxl);
  box-shadow: var(--shadow-lead);
}
.lead-mascot {
  position: absolute; top: -108px; right: -16px;
  width: 224px; height: auto;
  pointer-events: none;
  filter: drop-shadow(0 16px 24px rgba(3, 122, 74, 0.18));
}
.lead-head { margin-bottom: 30px; }
/* 标题按 heading-3：28px / 500 / lh 1.3 / -0.5px */
.lead-head h2 {
  position: relative;
  margin: 0 0 8px; padding-left: 18px;
  font-size: 28px; font-weight: 500; line-height: 1.3; letter-spacing: -0.5px;
  color: var(--ink);
}
.lead-head h2::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px;
  width: 6px; border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--brand-grad-from), var(--brand-grad-to));
}
.lead-head p { margin: 0; color: var(--steel); font-size: 16px; }
.lead-form .hp { display: none; }
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.form-grid .field.full { grid-column: 1 / -1; }.field label {
  display: block; margin-bottom: 8px;
  font-size: 14px; font-weight: 500; line-height: 1.5;
  color: var(--stone);
}
.field label em { color: var(--green-dark); font-style: normal; }
.field input,
.field textarea {
  width: 100%; height: 44px; padding: 12px 16px;
  border: 1px solid var(--hairline-strong); border-radius: var(--r-md);
  background: var(--canvas); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.55;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { height: auto; min-height: 120px; resize: vertical; }
/* 聚焦态：2px brand-green-dark 描边（inset 阴影实现，避免布局抖动） */
.field input:focus,
.field textarea:focus {
  outline: none; border-color: var(--green-dark);
  box-shadow: inset 0 0 0 1px var(--green-dark);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
/* 全宽渐变提交按钮（lead-submit-gradient：button-md 字号 + btn-lg 内边距） */
.lead-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 26px; padding: 14px 30px;
  border: none; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--brand-grad-from), var(--brand-grad-to));
  color: var(--on-dark); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.lead-submit:hover { filter: brightness(1.05); }
.lead-submit .arrow { transition: transform 0.15s ease; }
.lead-submit:hover .arrow { transform: translateX(4px); }
/* 禁用态按 button-primary-disabled：hairline 底 + muted 字 */
.lead-submit[disabled] {
  background: var(--hairline); color: var(--muted); cursor: not-allowed;
}
.form-msg { display: block; margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--steel); }
/* 错误文案用语义警示色（DESIGN.md semantic-warning-text） */
.form-msg.err { color: var(--warning-text); }
.lead-form .form-note {
  margin: 12px 0 0;  /* spacing.md */
  font-size: 13px; line-height: 1.4; color: var(--stone);
}
.lead-form .form-ok { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); }
/* 绿勾卖点行（lead-perk-item：body-sm-medium + 品牌渐变起点做勾底） */
.lead-perks {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin: 24px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--hairline-soft);
  list-style: none;
}
.lead-perks li {
  position: relative; padding-left: 30px;
  font-size: 14px; font-weight: 500; line-height: 20px; color: var(--ink);
}
.lead-perks li::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: var(--r-full);
  background: var(--brand-grad-from)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* ---------- 页脚（深青 region） ---------- */
.site-footer {
  background: var(--teal-deep); color: var(--on-dark-muted);
  padding: var(--section) 0 48px;
  font-size: 14px;
}
.site-footer .cols {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 32px; margin-bottom: 40px;
}
.site-footer .brandline {
  display: flex; align-items: center; gap: 10px;
  color: var(--on-dark); font-weight: 600; font-size: 16px;
  margin-bottom: 10px;
}
.site-footer .brandline img { height: 28px; width: auto; }
.site-footer .desc { max-width: 360px; line-height: 1.5; }
.site-footer h4 {
  color: var(--on-dark); font-size: 14px; font-weight: 500;
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .legal {
  border-top: 1px solid var(--hairline-dark);
  padding-top: 24px;
}
.site-footer .company-record { max-width: 900px; }
.site-footer .company-record strong { color: var(--on-dark); font-weight: 600; }
.site-footer .company-record p { margin: 8px 0 0; line-height: 1.7; }
.site-footer .record-links {
  margin-top: 20px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .section { padding: var(--section) 0; }
  .hero-band { padding: 96px 0 72px; }
  .hero-light { padding: 96px 0 80px; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .way-stack { grid-template-rows: none; }
  .form-grid { grid-template-columns: 1fr; }
  .lead-card { padding: 84px var(--sp-xl) var(--sp-xl); border-radius: var(--r-xl); }
  .lead-mascot { display: block; width: 120px; top: -64px; right: 10px; }
  .lead-head { margin-bottom: 22px; }
  .lead-head h2 { font-size: 22px; }  /* heading-4 */
  .lead-perks { gap: 14px 22px; }
  .hero-band { padding: 72px 0 56px; }
  .hero-band.compact { padding: 56px 0 48px; }
  .hero-band h1 { letter-spacing: -1px; }
  .hero-light {
    padding: 80px 0 64px;
    background: var(--surface);
  }
  .hero-copy .note {
    display: inline-block; max-width: 92%; padding: 8px 10px;
    border-radius: var(--r-md); background: rgba(255, 255, 255, 0.88);
  }
  .code-mockup { padding: var(--sp-xl); font-size: 12.5px; }
  .nav a:not(.cta) { display: none; }
  .cta-banner { padding: var(--section-sm) var(--sp-xl); }
}
