/* ============================================================
   AmzFitment 官网原型样式（纯静态，无框架依赖）
   颜色变量集中在这里，正式开发时迁移为 Tailwind theme
   ============================================================ */

:root {
  --navy: #0f172a;
  --navy-2: #0b1220;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --line: #e2e8f0;
  --bg-alt: #f8fafc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --green: #16a34a;
  --green-soft: #f0fdf4;
  --red: #ef4444;
  --red-soft: #fef2f2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .22);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--navy);
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.mono { font-family: var(--mono); font-size: .9em; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .62rem 1.2rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .35); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: #cbd5e1; color: var(--navy); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e2e8f0; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: .42rem .9rem; font-size: .86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff; display: grid; place-items: center;
  font-size: .82rem; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 3px 10px rgba(37, 99, 235, .4);
}
.brand-light { color: #fff; }
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; }
.nav-burger span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  margin: 5px 0; border-radius: 2px; transition: all .2s;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav > a { color: var(--slate-600); font-weight: 500; font-size: .95rem; }
.site-nav > a:hover, .site-nav > a.active { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(59, 130, 246, .35), transparent 60%),
    radial-gradient(600px 380px at -10% 110%, rgba(37, 99, 235, .22), transparent 60%),
    linear-gradient(180deg, #0b1220, #0e1830);
  padding: 84px 0 92px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, .14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .45);
  color: #fbbf24; font-size: .82rem; font-weight: 600;
  padding: .3rem .85rem; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); line-height: 1.18; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: #60a5fa; }
.hero .sub { color: #cbd5e1; font-size: 1.05rem; margin: 20px 0 30px; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; font-size: .84rem; color: #8fa3bf; }

/* ---------- 信任条 ---------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); }
.trustbar-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 56px;
  padding: 18px 0; color: var(--slate-500); font-size: .88rem; font-weight: 500;
}

/* ---------- 区块通用 ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  color: var(--blue); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; }
.section-sub { color: var(--slate-500); margin-top: 14px; }

/* ---------- 卡片与网格 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.icon-chip {
  width: 46px; height: 46px; border-radius: 12px; font-size: 1.35rem;
  display: grid; place-items: center; background: var(--blue-soft); margin-bottom: 16px;
}
.icon-chip.red { background: var(--red-soft); }
.icon-chip.amber { background: var(--amber-soft); }
.icon-chip.green { background: var(--green-soft); }
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { color: var(--slate-500); font-size: .93rem; }

/* ---------- 步骤 ---------- */
.step { position: relative; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--slate-500); font-size: .93rem; }

/* ---------- 功能行（图文左右） ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; padding: 44px 0;
}
.feature-row + .feature-row { border-top: 1px dashed var(--line); }
.feature-row.flip .feature-copy { order: 2; }
.feature-row .checklist { margin-top: 18px; list-style: none; }
.feature-row .checklist li { padding-left: 26px; position: relative; color: var(--slate-600); font-size: .93rem; margin-bottom: 9px; }
.feature-row .checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}

/* ---------- 应用窗口 mockup ---------- */
.mockup {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-lg); font-size: .9rem;
  color: var(--navy);
}
.mockup-bar {
  display: flex; align-items: center; gap: 7px;
  background: #f1f5f9; border-bottom: 1px solid var(--line); padding: 11px 16px;
}
.mockup-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #f87171; } .dot.y { background: #fbbf24; } .dot.g { background: #34d399; }
.mockup-title { margin-left: 8px; color: var(--slate-500); font-size: .78rem; }
.mockup-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; }
.mockup-panel { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: .82rem; margin-bottom: 12px; color: var(--navy);
}
.id-row {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 11px; margin-bottom: 8px; font-size: .84rem;
}
.id-row.fake { background: rgba(226, 232, 240, .5); border-style: dashed; height: 32px; }
.pill {
  background: var(--blue-soft); color: var(--blue); font-size: .72rem;
  font-weight: 700; padding: .14rem .6rem; border-radius: 999px;
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; font-weight: 700; padding: .16rem .6rem; border-radius: 999px;
}
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.warn { background: var(--amber-soft); color: #b45309; }
.badge.bad { background: var(--red-soft); color: var(--red); }
.badge.info { background: var(--blue-soft); color: var(--blue); }
.fit-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.fit-table th { text-align: left; color: var(--slate-500); font-weight: 600; padding: 6px 8px; background: #fff; border-bottom: 1px solid var(--line); }
.fit-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); background: #fff; color: var(--slate-600); }
.mockup-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; flex-wrap: wrap; }
.donut {
  width: 84px; height: 84px; border-radius: 50%;
  background: conic-gradient(var(--blue) 0 98%, #e2e8f0 0);
  position: relative; display: grid; place-items: center; margin: 0 auto 12px;
}
.donut::before { content: ""; position: absolute; inset: 10px; background: #fff; border-radius: 50%; }
.donut-label { position: relative; font-weight: 800; color: var(--navy); font-size: .95rem; }

/* ---------- 匹配率条形图 mockup ---------- */
.bar-row { display: grid; grid-template-columns: 132px 1fr 52px; gap: 10px; align-items: center; margin-bottom: 12px; font-size: .84rem; color: var(--slate-600); }
.bar-track { height: 10px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #60a5fa, #2563eb); }
.bar-fill.low { background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.bar-fill.bad { background: linear-gradient(90deg, #f87171, #ef4444); }
.bar-pct { text-align: right; font-weight: 700; font-family: var(--mono); font-size: .8rem; }

/* ---------- 横幅 CTA ---------- */
.band {
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(59, 130, 246, .4), transparent 60%),
    linear-gradient(135deg, #0e1830, #0b1220);
  color: #fff; border-radius: 20px; padding: 52px 40px; text-align: center;
}
.band h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 12px; }
.band p { color: #b7c5da; max-width: 40em; margin: 0 auto 26px; }
.final-cta { padding: 76px 0; }

/* ---------- 定价 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; margin-top: 8px; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-md); }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: .74rem; font-weight: 700;
  padding: .2rem .9rem; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.05rem; }
.plan .plan-for { color: var(--slate-500); font-size: .84rem; margin: 6px 0 18px; }
.price { font-size: 2.35rem; font-weight: 800; letter-spacing: -.01em; }
.price small { font-size: .9rem; font-weight: 500; color: var(--slate-500); }
.price-unit { color: var(--slate-500); font-size: .88rem; margin-bottom: 20px; }
.plan ul { list-style: none; margin: 0 0 24px; flex: 1; }
.plan ul li { padding-left: 26px; position: relative; font-size: .9rem; color: var(--slate-600); margin-bottom: 9px; }
.plan ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }
.plan ul li.dim { color: var(--slate-400); }
.plan ul li.dim::before { content: "·"; font-weight: 800; color: var(--slate-400); }
.offer-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--amber-soft); border: 1px solid #fde68a; color: #92400e;
  border-radius: var(--radius); padding: 14px 20px; font-size: .92rem; font-weight: 600;
  margin: 34px 0 8px; text-align: center; flex-wrap: wrap;
}
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
.compare th, .compare td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--slate-600); }
.compare thead th { color: var(--navy); font-size: .92rem; }
.compare td { color: var(--slate-600); }
.compare .yes { color: var(--green); font-weight: 800; }
.compare .no { color: #cbd5e1; }

/* ---------- FAQ ---------- */
.faq-group { max-width: 760px; margin: 0 auto; }
.faq-group h2 { font-size: 1.15rem; margin: 36px 0 16px; }
.faq-group h2:first-child { margin-top: 0; }
.faq-group details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.faq-group summary {
  cursor: pointer; list-style: none; padding: 16px 44px 16px 18px;
  font-weight: 600; font-size: .96rem; position: relative; user-select: none;
}
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--blue); font-size: 1.25rem; font-weight: 600;
}
.faq-group details[open] summary::after { content: "–"; }
.faq-group details p { padding: 0 18px 18px; color: var(--slate-500); font-size: .92rem; }

/* ---------- 表单 ---------- */
.auth-wrap {
  min-height: calc(100vh - 64px); display: grid; place-items: center;
  background: var(--bg-alt); padding: 56px 0;
}
.auth-card { width: min(430px, 92%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: var(--shadow-md); }
.auth-card .brand { justify-content: center; margin-bottom: 8px; }
.auth-card .auth-title { text-align: center; font-size: 1.3rem; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--slate-500); font-size: .88rem; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px;
  font-size: .95rem; font-family: var(--font); outline: none; transition: border .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.field .hint { font-size: .78rem; color: var(--slate-400); margin-top: 5px; }
.form-note { text-align: center; font-size: .86rem; color: var(--slate-500); margin-top: 18px; }
.form-note a { color: var(--blue); font-weight: 600; }
.auth-foot { text-align: center; font-size: .8rem; color: var(--slate-400); margin-top: 16px; }
.alert-info {
  background: var(--blue-soft); border: 1px solid #bfdbfe; color: #1e40af;
  border-radius: 10px; padding: 11px 14px; font-size: .84rem; margin-bottom: 20px;
}

/* ---------- 占位提示 ---------- */
.notice {
  background: var(--amber-soft); border: 1px solid #fde68a; color: #92400e;
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: .84rem; margin-bottom: 28px;
}
.qr-box {
  width: 96px; height: 96px; border: 2px dashed #334155; border-radius: 12px;
  background: #111a2e; color: #64748b; font-size: .68rem;
  display: grid; place-items: center; text-align: center; line-height: 1.5;
}

/* ---------- 文档页（条款/隐私） ---------- */
.doc-wrap { max-width: 760px; margin: 0 auto; padding: 56px 0 76px; }
.doc-wrap h1 { font-size: 1.8rem; margin-bottom: 8px; }
.doc-wrap .doc-date { color: var(--slate-400); font-size: .84rem; margin-bottom: 32px; }
.doc-wrap h2 { font-size: 1.15rem; margin: 32px 0 12px; }
.doc-wrap p, .doc-wrap li { color: var(--slate-600); font-size: .93rem; margin-bottom: 10px; }
.doc-wrap ul { padding-left: 22px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-2); color: var(--slate-400); font-size: .9rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 44px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer a { display: block; color: var(--slate-400); margin-bottom: 11px; font-size: .88rem; }
.site-footer a:hover { color: #fff; }
.footer-tag { font-size: .84rem; margin: 14px 0 0; line-height: 1.7; }
.badge-soon {
  display: inline-block; background: #1e293b; color: #94a3b8; font-size: .68rem;
  padding: .1rem .5rem; border-radius: 999px; margin-left: 6px; vertical-align: 1px;
}
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 18px 0; font-size: .8rem; color: #64748b;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .feature-row.flip .feature-copy { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-burger { display: block; margin-left: auto; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 4%;
    box-shadow: var(--shadow-md);
  }
  .site-nav > a { padding: 13px 4px; border-bottom: 1px solid var(--bg-alt); }
  .nav-cta { display: flex; padding: 14px 4px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .plans { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .mockup-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 56px 0; }
  .hero { padding: 60px 0 68px; }
  .band { padding: 40px 22px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}


/* ===== 语言切换 ===== */
.lang-switch {
  display: inline-block; padding: .32rem .7rem; border: 1px solid var(--line);
  border-radius: 8px; font-size: .8rem; font-weight: 600; color: var(--slate-600);
  text-decoration: none; white-space: nowrap;
}
.lang-switch:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-soft, #eff6ff); }
