/* ============================================================
   OK健身房管理 · 响应式落地页样式
   移动优先 · 断点 640 / 900 / 1200
   ============================================================ */
:root {
  --c-primary: #4f46e5;
  --c-primary-d: #4338ca;
  --c-accent: #f97316;
  --c-ink: #0f172a;
  --c-ink-2: #475569;
  --c-ink-3: #94a3b8;
  --c-bg: #ffffff;
  --c-bg-alt: #f8fafc;
  --c-bg-dark: #0f172a;
  --c-line: #e2e8f0;
  --c-ok: #16a34a;
  --c-warn: #d97706;
  --c-bad: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --maxw: 1160px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--c-ink-2); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #eef2ff; color: var(--c-primary-d); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hl { color: var(--c-primary); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 2px; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.3); }
.btn--primary:hover { background: var(--c-primary-d); }
.btn--ghost { background: #fff; color: var(--c-primary-d); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-primary); }
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.nav__inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.brand__mark {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff; font-weight: 900; padding: 4px 8px; border-radius: 8px; font-size: 15px; letter-spacing: .02em;
}
.brand__text { font-size: 17px; color: var(--c-ink); }
.nav__links { display: none; gap: 22px; margin-left: auto; }
.nav__links a { font-weight: 600; color: var(--c-ink-2); font-size: 15px; }
.nav__links a:hover { color: var(--c-primary); }
.nav__actions { display: none; gap: 10px; margin-left: 16px; }
.nav__toggle { display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto; 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); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__actions { display: flex; }
  .nav__toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #eef2ff 0%, transparent 60%), var(--c-bg); padding: 48px 0 64px; }
.hero__inner { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
.badge { display: inline-block; background: #eef2ff; color: var(--c-primary-d); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(30px, 7vw, 52px); }
.hero__lead { font-size: clamp(16px, 2.5vw, 19px); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero__points li { color: var(--c-ink-2); font-weight: 600; font-size: 15px; }

/* Hero 仪表盘 Mock */
.hero__visual { display: flex; justify-content: center; }
.dash { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px; }
.dash__bar { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--r { background: #ef4444; } .dot--y { background: #f59e0b; } .dot--g { background: #22c55e; }
.dash__title { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--c-ink-2); }
.dash__kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 14px 0; }
.kpi { background: var(--c-bg-alt); border-radius: var(--radius-sm); padding: 12px; }
.kpi__num { display: block; font-size: 22px; font-weight: 800; color: var(--c-primary-d); }
.kpi__label { font-size: 12px; color: var(--c-ink-3); }
.dash__chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 6px 4px; }
.bar { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--c-accent), var(--c-primary)); border-radius: 6px 6px 2px 2px; }
.dash__foot { text-align: center; font-size: 12px; color: var(--c-ink-3); margin-top: 8px; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 92px; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
}

/* ---------- 通用 section ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-bg-dark); color: #e2e8f0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section__head h2 { font-size: clamp(24px, 4vw, 36px); }
.section__head--light h2, .section__head--light p { color: #fff; }
.section__head--light p { color: #cbd5e1; }
.eyebrow { display: inline-block; color: var(--c-primary); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }

/* ---------- 网格 / 卡片 ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon { font-size: 30px; margin-bottom: 10px; }
.card h3 { font-size: 18px; }
.card p { margin: 0; font-size: 14.5px; }

/* ---------- 演示 Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.tab { border: 1px solid var(--c-line); background: #fff; color: var(--c-ink-2); font-weight: 700; padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: .2s; }
.tab:hover { border-color: var(--c-primary); color: var(--c-primary); }
.tab.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.tab:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 2px; }
.panel { display: none; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel.is-active { display: block; }

/* 工具栏 */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.input { flex: 1 1 180px; min-width: 0; padding: 11px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; background: #fff; color: var(--c-ink); }
.input:focus-visible { outline: 3px solid #c7d2fe; border-color: var(--c-primary); }

/* 表格 */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--c-line); }
.table th { color: var(--c-ink-3); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.table tbody tr:hover { background: var(--c-bg-alt); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag--active { background: #dcfce7; color: var(--c-ok); }
.tag--expiring { background: #fef3c7; color: var(--c-warn); }
.tag--expired { background: #fee2e2; color: var(--c-bad); }
.empty { text-align: center; color: var(--c-ink-3); padding: 24px; }

/* 预约 */
.booking { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .booking { grid-template-columns: 280px 1fr; } }
.booking__side h4, .booking__grid h4 { margin-bottom: 12px; }
.booking__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bk { background: var(--c-bg-alt); border-radius: var(--radius-sm); padding: 12px; border-left: 4px solid var(--c-primary); }
.bk__t { font-weight: 700; }
.bk__m { font-size: 13px; color: var(--c-ink-3); }
.weekbar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.wd { text-align: center; padding: 8px 4px; border-radius: var(--radius-sm); background: var(--c-bg-alt); font-size: 13px; font-weight: 700; }
.wd.is-today { background: var(--c-primary); color: #fff; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .slots { grid-template-columns: repeat(3, 1fr); } }
.slot { background: #fff; border: 1px dashed var(--c-line); border-radius: var(--radius-sm); padding: 10px; font-size: 13px; min-height: 56px; }
.slot.is-busy { border-style: solid; border-color: var(--c-primary); background: #eef2ff; }
.slot__time { font-weight: 800; color: var(--c-ink-2); }
.slot__coach { color: var(--c-primary-d); font-weight: 600; }

/* 收入报表 */
.report { display: grid; gap: 18px; }
.report__summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rstat { background: var(--c-bg-alt); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.rstat--profit { background: #ecfdf5; }
.rstat__num { display: block; font-size: clamp(18px, 4vw, 26px); font-weight: 800; color: var(--c-primary-d); }
.rstat--profit .rstat__num { color: var(--c-ok); }
.rstat__label { font-size: 12px; color: var(--c-ink-3); }
.report__chart { width: 100%; overflow-x: auto; }
.chart { min-width: 520px; }
.report__legend { display: flex; gap: 18px; justify-content: center; font-size: 13px; color: var(--c-ink-2); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw--in { background: var(--c-primary); }
.sw--out { background: var(--c-accent); }

/* ---------- 架构 ---------- */
.arch { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .arch { grid-template-columns: 1.1fr .9fr; } }
.arch__flow { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--c-bg-alt); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 560px) { .arch__flow { flex-direction: row; flex-wrap: wrap; justify-content: center; } }
.node { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 14px 16px; text-align: center; font-weight: 700; box-shadow: var(--shadow); min-width: 130px; }
.node small { display: block; font-weight: 500; color: var(--c-ink-3); font-size: 12px; margin-top: 4px; }
.node--client { border-top: 4px solid var(--c-accent); }
.node--gw { border-top: 4px solid var(--c-primary); }
.node--db { border-top: 4px solid #0ea5e9; }
.arch__arrow { color: var(--c-ink-3); font-weight: 700; font-size: 13px; }
.arch__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.arch__list li { background: #fff; border: 1px solid var(--c-line); border-left: 4px solid var(--c-primary); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; }
.arch__list strong { color: var(--c-ink); }

/* ---------- 数据看板 ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.stat__num { display: block; font-size: clamp(28px, 6vw, 44px); font-weight: 900; color: #fff; }
.stat__label { color: #cbd5e1; font-size: 14px; }

/* ---------- 方案 ---------- */
.plan { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan--hot { border-color: var(--c-primary); box-shadow: var(--shadow-lg); }
.plan__tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--c-accent); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan__price { font-size: 30px; font-weight: 900; color: var(--c-primary-d); margin: 6px 0 14px; }
.plan__price small { font-size: 14px; color: var(--c-ink-3); font-weight: 600; }
.plan__feat { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan__feat li { color: var(--c-ink-2); font-size: 14.5px; padding-left: 22px; position: relative; }
.plan__feat li::before { content: "✓"; position: absolute; left: 0; color: var(--c-ok); font-weight: 800; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-d)); color: #fff; padding: 64px 0; }
.cta__inner { text-align: center; }
.cta h2 { color: #fff; font-size: clamp(24px, 4vw, 36px); }
.cta p { color: #e0e7ff; }
.cta__form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px auto 12px; max-width: 520px; }
.cta__form .input { flex: 1 1 260px; background: #fff; }
.cta__hint { min-height: 20px; color: #e0e7ff; font-weight: 600; }

/* ---------- 页脚 ---------- */
.footer { background: var(--c-bg-dark); color: #cbd5e1; padding: 48px 0 0; }
.footer__inner { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__inner { grid-template-columns: 1.4fr 2fr; } }
.footer__brand .brand { color: #fff; }
.footer__brand .brand__text { color: #fff; }
.footer__brand p { margin-top: 12px; font-size: 14px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.footer__cols h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer__cols a { display: block; color: #94a3b8; font-size: 14px; padding: 4px 0; }
.footer__cols a:hover { color: #fff; }
.footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding: 18px 20px; font-size: 13px; color: #94a3b8; }
.footer__filing { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filing { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: #94a3b8; font-size: 13px; text-decoration: none; transition: color .15s ease; }
.filing:hover { color: #fff; text-decoration: underline; }
.filing__icon { display: block; flex: none; }
.filing__text { white-space: nowrap; }

/* 移动端展开菜单 */
@media (max-width: 899px) {
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--c-line);
    padding: 8px 20px 16px; margin: 0; box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .nav__actions { display: none; }
}
