/* ============================================================
   亿万号 - 号卡门店分销管理系统
   全局样式：设计变量 / 基础 / 组件 / 布局 / 响应式
   ============================================================ */

:root {
  /* 主色：科技蓝 + 青 */
  --c-primary: #2563eb;
  --c-primary-d: #1d4ed8;
  --c-accent: #0ea5e9;
  --c-ink: #0f172a;
  --c-ink-2: #1e293b;
  --c-body: #475569;
  --c-muted: #94a3b8;
  --c-line: #e2e8f0;
  --c-bg: #ffffff;
  --c-bg-soft: #f8fafc;
  --c-bg-soft-2: #f1f5f9;

  /* 状态色 */
  --c-ok: #16a34a;
  --c-ing: #f59e0b;
  --c-wait: #64748b;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(37, 99, 235, .35);
  --maxw: 1140px;
  --gap: clamp(16px, 3vw, 28px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-body);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--c-ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--c-primary); text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; color: var(--c-muted); font-size: .85em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- 容器 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff; box-shadow: var(--shadow-lg);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,.22); }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; gap: 10px; color: var(--c-ink); font-weight: 800; }
.nav__logo-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff; font-size: 1.1rem;
}
.nav__logo-text { font-size: 1.25rem; letter-spacing: .02em; }
.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__link {
  color: var(--c-ink-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px;
}
.nav__link:hover { color: var(--c-primary); background: var(--c-bg-soft-2); }
.nav__link.is-active { color: var(--c-primary); background: var(--c-bg-soft-2); }
.nav__link--cta {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff !important;
}
.nav__link--cta:hover { transform: translateY(-1px); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(14,165,233,.45), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(37,99,235,.55), transparent 55%),
    linear-gradient(135deg, #0b1220, #0f172a 55%, #111c3a);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 38px 38px; mask-image: radial-gradient(700px 400px at 70% 30%, #000, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 20px; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 5vw, 56px); align-items: center;
}
.hero__eyebrow {
  display: inline-block; font-weight: 700; font-size: .9rem; color: #bae6fd;
  border: 1px solid rgba(186,230,253,.4); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero__title { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 18px; }
.hero__sub { color: #cbd5e1; font-size: 1.05rem; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges li {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 10px 16px; display: flex; flex-direction: column;
}
.hero__badges strong { color: #fff; font-size: 1rem; }
.hero__badges span { color: #93c5fd; font-size: .82rem; }

/* Hero 看板预览卡 */
.hero__right { display: flex; justify-content: center; }
.mock {
  width: 100%; max-width: 380px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 16px;
  backdrop-filter: blur(8px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.mock__bar { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); }
.mock__title { margin-left: auto; color: #cbd5e1; font-size: .82rem; }
.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock__stat {
  background: rgba(255,255,255,.06); border-radius: 12px; padding: 12px 10px; text-align: center;
}
.mock__num { display: block; color: #fff; font-weight: 800; font-size: 1.1rem; }
.mock__label { color: #93c5fd; font-size: .72rem; }
.mock__list { display: flex; flex-direction: column; gap: 8px; }
.mock__list li {
  background: rgba(255,255,255,.05); border-radius: 10px; padding: 10px 12px;
  font-size: .82rem; color: #e2e8f0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.mock__list em { margin-left: auto; }
.mock__foot { margin-top: 12px; text-align: center; color: #93c5fd; font-size: .78rem; }

/* ---------- 区块通用 ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--light { background: var(--c-bg-soft); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 52px); }
.section__desc { color: var(--c-body); font-size: 1.05rem; }
.center { text-align: center; margin-top: 36px; }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.35); }
.card--icon { text-align: center; }
.card__icon {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.7rem;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(14,165,233,.12));
}
.card p { margin-bottom: 0; color: var(--c-body); }

/* ---------- 经营看板 ---------- */
.dash { display: grid; grid-template-columns: 280px 1fr; gap: var(--gap); align-items: start; }
.dash__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kpi {
  background: linear-gradient(135deg, var(--c-ink), var(--c-ink-2)); color: #fff;
  border-radius: var(--radius); padding: 20px 18px;
}
.kpi__num { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; }
.kpi__label { color: #93c5fd; font-size: .82rem; }
.dash__panel { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.dash__panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--c-line); font-weight: 700; color: var(--c-ink);
  background: var(--c-bg-soft);
}
.dash__date { color: var(--c-muted); font-weight: 500; font-size: .85rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 13px 18px; text-align: left; font-size: .92rem; }
.table thead th { color: var(--c-muted); font-weight: 600; background: var(--c-bg-soft); border-bottom: 1px solid var(--c-line); }
.table tbody tr { border-bottom: 1px solid var(--c-line); }
.table tbody tr:last-child { border-bottom: 0; }
.table tbody td { color: var(--c-ink-2); }

/* 状态标签 */
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.tag--ok { background: rgba(22,163,74,.12); color: var(--c-ok); }
.tag--ing { background: rgba(245,158,11,.14); color: var(--c-ing); }
.tag--wait { background: rgba(100,116,139,.14); color: var(--c-wait); }

/* ---------- 痛点 ---------- */
.pain {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); position: relative;
}
.pain__no {
  display: inline-block; color: var(--c-accent); font-weight: 800; letter-spacing: .08em;
  font-size: .8rem; margin-bottom: 12px;
}
.pain h3 { font-size: 1.2rem; }
.pain p { margin-bottom: 0; }

/* ---------- 结算中心 账单 ---------- */
.settle__principles { margin-bottom: var(--gap); }
.statement {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.statement__head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px dashed var(--c-line); padding-bottom: 14px; margin-bottom: 14px;
  font-weight: 700; color: var(--c-ink);
}
.statement__date { color: var(--c-muted); font-weight: 500; }
.statement__list li {
  display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--c-bg-soft-2);
  font-size: .95rem; color: var(--c-ink-2);
}
.statement__list li:last-child { border-bottom: 0; }
.statement__list em { margin-left: 4px; }
.statement__list b { margin-left: auto; color: var(--c-ink); }
.statement__foot { margin: 14px 0 0; text-align: center; color: var(--c-muted); font-size: .85rem; }

/* ---------- 时间轴 ---------- */
.timeline { display: grid; gap: 20px; counter-reset: step; }
.timeline__item {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start;
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.timeline__no {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff; font-weight: 800; font-size: 1.2rem;
}
.timeline__body h3 { margin-bottom: 6px; }
.timeline__body p { margin-bottom: 10px; }
.timeline__time {
  display: inline-block; font-size: .82rem; font-weight: 700; color: var(--c-primary);
  background: rgba(37,99,235,.1); padding: 4px 12px; border-radius: 999px;
}

/* ---------- 信任原则 ---------- */
.trust { text-align: center; }
.trust__item {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 24px 18px; box-shadow: var(--shadow);
}
.trust__no { display: block; font-size: 1.6rem; font-weight: 800; color: var(--c-accent); margin-bottom: 6px; }
.trust__item h3 { font-size: 1.1rem; }
.trust__item p { margin-bottom: 0; font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow: hidden;
}
.faq__item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--c-ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: background .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.4rem; color: var(--c-primary); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { background: var(--c-bg-soft); }
.faq__body { padding: 0 22px 20px; color: var(--c-body); }
.faq__body p { margin: 0; }

/* ---------- 联系方式 ---------- */
.section--contact { background: linear-gradient(135deg, #0b1220, #0f172a); color: #fff; }
.section--contact .section__title { color: #fff; }
.section--contact .section__desc { color: #cbd5e1; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.contact__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 28px 26px;
}
.contact__card h3 { color: #fff; margin-bottom: 18px; }
.contact__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.contact__list li { display: flex; align-items: center; gap: 12px; color: #e2e8f0; font-size: .98rem; }
.contact__list b {
  min-width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff; font-size: .85rem;
}
.contact__rule {
  background: rgba(255,255,255,.05); border-left: 3px solid var(--c-accent);
  padding: 14px 16px; border-radius: 0 10px 10px 0; font-size: .92rem; color: #cbd5e1;
}
.contact__card--blank { border-style: dashed; }
.contact__placeholder { color: #93c5fd; font-weight: 700; font-size: 1.05rem; }
.contact__list--muted li { color: #94a3b8; }
.contact__note { font-size: .82rem; color: #64748b; margin: 14px 0 0; }

/* ---------- 页脚 ---------- */
.footer { background: var(--c-ink); color: #cbd5e1; padding: 48px 0 32px; }
.footer__inner { display: flex; flex-direction: column; gap: 22px; align-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer__brand p { margin: 0; color: #93c5fd; font-size: .88rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.footer__nav a { color: #cbd5e1; font-size: .92rem; }
.footer__nav a:hover { color: #fff; }
.footer__copy { color: #64748b; font-size: .82rem; margin: 0; }

/* ---------- 入场动画（仅 JS 可用时生效，避免无脚本闪烁） ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__right { order: -1; }
  .dash { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--c-line); padding: 10px 16px 18px;
    gap: 4px; display: none; box-shadow: var(--shadow);
  }
  .nav__menu.is-open { display: flex; }
  .nav__link { padding: 12px 10px; }
  .nav__toggle { display: flex; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .dash__kpis { grid-template-columns: 1fr 1fr; }
  .timeline__item { grid-template-columns: 48px 1fr; gap: 14px; padding: 18px; }
  .timeline__no { width: 44px; height: 44px; font-size: 1rem; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tbody tr { padding: 8px 0; border-bottom: 1px solid var(--c-line); }
  .table tbody td { padding: 6px 18px; border: 0; }
  .table tbody td::before { content: attr(data-label); color: var(--c-muted); font-size: .8rem; margin-right: 8px; }
}

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