/* ============================================================
   YKL 智慧门店 官网（纯静态，无构建）
   ============================================================ */
:root {
  --brand: #3b82f6;
  --brand-deep: #2563eb;
  --brand-light: #eff6ff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --accent: #f59e0b;
  --green: #10b981;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.nav__logo-badge {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.nav__links { display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav__links a:hover { color: var(--brand-deep); }
.nav__links a.active { color: var(--brand-deep); font-weight: 600; }
.nav__cta { margin-left: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-size: 15px; font-weight: 600;
  padding: 12px 24px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: 0 6px 20px rgba(37, 99, 235, .35); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.2); }
.btn--outline { background: #fff; color: var(--brand-deep); border: 1px solid var(--brand); }
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--lg { padding: 15px 34px; font-size: 16px; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(140deg, #0b1e3f 0%, #123a7d 55%, #1d4ed8 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(59,130,246,.45), transparent 60%),
    radial-gradient(500px 260px at 10% 90%, rgba(16,185,129,.25), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 88px 0 96px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #dbeafe; margin-bottom: 22px;
}
.hero__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: 46px; line-height: 1.25; font-weight: 800; letter-spacing: .5px; }
.hero h1 em { font-style: normal; color: #7cb3ff; }
.hero__sub { margin: 20px 0 34px; font-size: 17px; color: #c7d6ee; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 46px; }
.hero__stat b { display: block; font-size: 26px; font-weight: 800; }
.hero__stat span { font-size: 13px; color: #9fb6dc; }

/* Hero 右侧仪表盘 mock */
.mock { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; padding: 18px; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); }
.mock__bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mock__bar i:first-child { background: #f87171; } .mock__bar i:nth-child(2) { background: #fbbf24; } .mock__bar i:nth-child(3) { background: #34d399; }
.mock__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mock__kpi { background: rgba(255,255,255,.09); border-radius: 12px; padding: 14px 16px; }
.mock__kpi span { font-size: 12px; color: #9fb6dc; }
.mock__kpi b { display: block; font-size: 22px; margin-top: 2px; }
.mock__kpi u { text-decoration: none; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.mock__kpi--up u { background: rgba(16,185,129,.2); color: #6ee7b7; }
.mock__kpi--warn u { background: rgba(245,158,11,.2); color: #fcd34d; }
.mock__chart { margin-top: 12px; background: rgba(255,255,255,.09); border-radius: 12px; padding: 16px; }
.mock__chart span { font-size: 12px; color: #9fb6dc; }
.mock__bars { display: flex; align-items: flex-end; gap: 8px; height: 84px; margin-top: 10px; }
.mock__bars i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #7cb3ff, #2563eb); opacity: .9; }

/* ---------- 通用 section ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__eyebrow { color: var(--brand-deep); font-weight: 700; font-size: 14px; letter-spacing: 2px; }
.section__head h2 { font-size: 34px; font-weight: 800; margin: 10px 0 14px; }
.section__head p { color: var(--ink-2); font-size: 16px; }

/* ---------- 产品矩阵 ---------- */
.matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.matrix__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.matrix__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bfdbfe; }
.matrix__icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.matrix__icon svg { width: 24px; height: 24px; }
.tint-blue { background: var(--brand-light); color: var(--brand-deep); }
.tint-green { background: rgba(16,185,129,.1); color: #059669; }
.tint-amber { background: rgba(245,158,11,.12); color: #d97706; }
.tint-purple { background: rgba(139,92,246,.12); color: #7c3aed; }
.matrix__card h3 { font-size: 17px; margin-bottom: 4px; }
.matrix__card .tag { font-size: 12px; color: var(--ink-3); }
.matrix__card p { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

/* ---------- 能力网格 ---------- */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feat svg { width: 26px; height: 26px; color: var(--brand-deep); }
.feat h3 { font-size: 16px; margin: 12px 0 6px; }
.feat p { font-size: 13.5px; color: var(--ink-2); }

/* ---------- 场景 ---------- */
.scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scene { border-radius: 20px; padding: 36px; color: #fff; position: relative; overflow: hidden; }
.scene--retail { background: linear-gradient(135deg, #1d4ed8, #3b82f6 70%, #60a5fa); }
.scene--food { background: linear-gradient(135deg, #b45309, #f59e0b 70%, #fbbf24); }
.scene h3 { font-size: 24px; font-weight: 800; }
.scene > p { margin: 8px 0 20px; opacity: .9; font-size: 15px; }
.scene ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.scene li { display: flex; gap: 10px; align-items: flex-start; }
.scene li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }

/* ---------- SaaS 架构 ---------- */
.saas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.saas__card { border-radius: var(--radius); padding: 26px 22px; background: linear-gradient(180deg, #fff, #f8fafc); border: 1px solid var(--line); }
.saas__card b { font-size: 30px; font-weight: 800; color: var(--brand-deep); }
.saas__card h3 { font-size: 16px; margin: 8px 0 6px; }
.saas__card p { font-size: 13.5px; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, #12306b, #1d4ed8); border-radius: 24px; color: #fff; padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; box-shadow: var(--shadow-lg); }
.cta h2 { font-size: 28px; font-weight: 800; }
.cta p { color: #c7d6ee; margin-top: 8px; }

/* ---------- 页脚 ---------- */
.footer { background: #0b1e3f; color: #9fb6dc; padding: 56px 0 32px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a { display: block; font-size: 14px; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; }
.footer__copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 下载页 ---------- */
.page-hero { background: linear-gradient(140deg, #0b1e3f, #1d4ed8); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 280px at 80% 20%, rgba(59,130,246,.5), transparent 60%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 38px; font-weight: 800; }
.page-hero p { color: #c7d6ee; margin-top: 10px; }

.dl-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 36px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; margin-top: -46px; position: relative; z-index: 2; }
.dl-card__icon { width: 76px; height: 76px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); display: flex; align-items: center; justify-content: center; color: #fff; }
.dl-card__icon svg { width: 40px; height: 40px; }
.dl-card h2 { font-size: 22px; }
.dl-meta { display: flex; gap: 10px; margin: 10px 0 0; flex-wrap: wrap; }
.chip { font-size: 12.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; color: var(--ink-2); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 18px; right: 20px; font-size: 26px; font-weight: 800; color: #dbeafe; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--ink-2); }

.clients { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.clients th, .clients td { padding: 14px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.clients th { background: var(--bg); font-weight: 700; }
.clients tr:last-child td { border-bottom: none; }
.clients td:first-child { font-weight: 600; }

.changelog { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.changelog h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.changelog .ver { background: var(--brand-light); color: var(--brand-deep); font-size: 12.5px; border-radius: 999px; padding: 2px 12px; }
.changelog ul { margin: 14px 0 0 18px; font-size: 14px; color: var(--ink-2); }

details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0; margin-bottom: 12px; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 16px 20px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::after { content: "＋"; color: var(--ink-3); font-size: 16px; }
details.faq[open] summary::after { content: "－"; }
details.faq .faq__body { padding: 0 20px 18px; font-size: 14px; color: var(--ink-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding: 64px 0; }
  .matrix, .feats, .saas, .steps { grid-template-columns: repeat(2, 1fr); }
  .scenes { grid-template-columns: 1fr; }
  .dl-card { grid-template-columns: 1fr; text-align: center; }
  .dl-card__icon { margin: 0 auto; }
  .dl-meta { justify-content: center; }
  .cta { flex-direction: column; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav__links { display: none; }
  .hero h1 { font-size: 32px; }
  .matrix, .feats, .saas, .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
}
