/* ===== 设计变量 ===== */
:root {
  --brand: #2f6bff;
  --brand-dark: #1f4fd6;
  --brand-2: #6a3bff;
  --ink: #16203a;
  --ink-soft: #4a5571;
  --bg: #ffffff;
  --bg-alt: #f5f8ff;
  --line: #e3e8f5;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 52, 120, .08);
  --maxw: 1140px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 1.5px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(47,107,255,.28); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--bg-alt); }

:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }

/* ===== 头部/导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.brand__logo { width: 36px; height: auto; object-fit: contain; }
.brand__name { font-size: 18px; letter-spacing: .5px; }
.nav__menu { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav__menu a { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.nav__menu a:hover { color: var(--brand); }
.nav__cta { color: #fff !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { padding: 64px 0 72px; background: radial-gradient(1200px 500px at 80% -10%, #eaf0ff 0%, transparent 60%), var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero__eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; }
.hero__title { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.18; font-weight: 800; letter-spacing: -.5px; }
.hero__sub { margin: 20px 0 28px; color: var(--ink-soft); font-size: 17px; max-width: 30em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 34px; margin-top: 38px; list-style: none; flex-wrap: wrap; }
.hero__stats strong { display: block; font-size: 26px; color: var(--brand); }
.hero__stats span { font-size: 14px; color: var(--ink-soft); }
.hero__art { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }

/* ===== 信任背书 ===== */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.trust__row { display: flex; align-items: center; gap: 24px; padding: 20px 0; flex-wrap: wrap; }
.trust__row > span { color: var(--ink-soft); font-size: 14px; }
.trust__logos { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.trust__logos li { font-weight: 800; color: #97a2bd; letter-spacing: .5px; }

/* ===== 通用区块 ===== */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 38em; margin: 0 auto 46px; }
.section__eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.section__title { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.3px; }
.section__sub { color: var(--ink-soft); margin-top: 14px; font-size: 16px; max-width: 34em; margin-inline: auto; }

/* ===== 卡片网格 ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); }
.card__icon { width: 42px; height: 42px; margin-bottom: 12px; color: var(--brand); }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* ===== 产品 ===== */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; border-top: 4px solid var(--brand); }
.product h3 { font-size: 19px; margin-bottom: 10px; }
.product p { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.product ul { list-style: none; display: grid; gap: 8px; }
.product li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 14px; }
.product li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

/* AI 驱动门店数据经营 —— 产品方案特色卡 */
.product-feature {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: linear-gradient(135deg, #eef3ff 0%, #f7faff 100%);
  border: 1px solid var(--brand);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 26px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .10);
}
.product-feature__icon {
  flex: 0 0 58px;
  width: 58px; height: 58px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
}
.product-feature__icon svg { width: 32px; height: 32px; }
.product-feature__body { flex: 1; min-width: 0; }
.product__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 9px;
  letter-spacing: .5px;
}
.product-feature h3 { font-size: 22px; margin: 0 0 8px; }
.product-feature p { color: var(--ink-soft); font-size: 15px; margin: 0 0 14px; max-width: 760px; }
.product-feature__points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.product-feature__points li {
  font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px;
}

/* ===== 案例 ===== */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.case { background: linear-gradient(160deg, #fff, #f3f6ff); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.case h3 { font-size: 19px; margin-bottom: 8px; color: var(--brand-dark); }
.case p { color: var(--ink-soft); font-size: 15px; }

/* ===== 数据 ===== */
.metrics { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; padding: 60px 0; }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.metric strong { display: block; font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.metric span { font-size: 15px; opacity: .92; }

/* ===== 关于 ===== */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.about__copy p { color: var(--ink-soft); margin-top: 14px; }
.values { list-style: none; display: grid; gap: 16px; }
.values li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--ink-soft); box-shadow: var(--shadow); }
.values strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* ===== 联系 ===== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact__intro p { color: var(--ink-soft); margin-top: 14px; }
.contact__info { list-style: none; margin-top: 22px; display: grid; gap: 12px; color: var(--ink-soft); }
.contact__info li { display: flex; gap: 10px; align-items: center; }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(47,107,255,.15); }
.error { color: #d6314b; font-size: 13px; min-height: 1em; }
.form__ok { color: #1c9d4e; font-weight: 700; text-align: center; }

/* ===== 页脚 ===== */
.site-footer { background: #0f1830; color: #c5cde0; padding: 48px 0 24px; }
.footer__grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: start; }
.footer__grid .brand__name { color: #fff; }
.footer__note { margin-top: 12px; font-size: 14px; max-width: 22em; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: #c5cde0; font-size: 15px; }
.footer__links a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid #243153; font-size: 13px; color: #8b96b4; }

/* ===== 滚动揭示动画 ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .cards, .products, .cases, .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
}

@media (max-width: 680px) {
  .product-feature { flex-direction: column; gap: 14px; padding: 22px; }
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 66px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 20px 22px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu li { padding: 6px 0; }
  .nav__cta { text-align: center; margin-top: 6px; }
  .cards, .products, .cases, .metrics__grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
