/* 启炎智能 AI 服务 —— 一页: 抬头 + 3 张服务卡 + 留电话。暗色 + 启炎 logo 红橙, 只有一套暗色。
   字阶 13 / 16 / 20 / 25 / 31   间距 4px 栅格   圆角 8 / 16   暗色不用阴影, 用边框分层 */
:root {
  --bg: #0C0C0E;
  --s1: #141417;
  --s2: #1C1C20;
  --line: rgba(255, 245, 240, .08);
  --line-2: rgba(255, 245, 240, .14);
  --ink: #F3F1EF;
  --ink-2: #B9B4AF;
  --ink-3: #8D8883;
  --pri: #E2231A;         /* 按钮底: 白字约 4.6:1 */
  --pri-d: #C21C14;
  --pri-hi: #FF7148;      /* 暗底上的强调文字/价格 */
  --ok: #57C78E;
  --r1: 8px;
  --r2: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
input, textarea { font-size: 16px; }   /* 小于 16px iOS 点进去会整页放大 */
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--pri-hi); }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 600; }
p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--pri-hi); outline-offset: 2px; }
.i { width: var(--s, 20px); height: var(--s, 20px); stroke-width: 1.5; flex: none; vertical-align: middle; }
[hidden] { display: none !important; }

.view { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(96px + var(--safe-b)); }

.topbar { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px; }
.topbar img { width: 26px; height: 26px; }
.topbar b { font-size: 16px; letter-spacing: .02em; }

/* 抬头: 全页唯一一处光晕 */
.hero { position: relative; padding: 24px 16px 32px; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -200px; right: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 90, 44, .26), rgba(255, 90, 44, 0)); pointer-events: none; }
.hero > * { position: relative; }
.hero h1 { font-size: 31px; line-height: 1.2; }
.hero h1 em { font-style: normal; color: var(--pri-hi); }
.hero p { color: var(--ink-2); margin-top: 12px; }

/* 服务卡 */
.cards { display: grid; gap: 12px; padding: 0 16px; }
.card { padding: 20px 16px 16px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); }
.card .top { display: flex; align-items: baseline; gap: 12px; }
.card h2 { flex: 1; min-width: 0; font-size: 20px; }
.card .price { color: var(--pri-hi); font-weight: 600; font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card .price small { color: var(--ink-3); font-size: 13px; font-weight: 400; }
.card > p { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.card ul { display: grid; gap: 4px; margin: 16px 0; }
.card li { display: flex; gap: 8px; color: var(--ink-2); font-size: 16px; }
.card li .i { --s: 18px; color: var(--ok); margin-top: 4px; }
.note { padding: 12px 16px 0; color: var(--ink-3); font-size: 13px; }
.foot { padding: 32px 16px 0; text-align: center; color: var(--ink-3); font-size: 13px; }
.foot a { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--r1); border: 1px solid var(--pri); background: var(--pri); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s ease-out; }
.btn:active { background: var(--pri-d); }
.btn:disabled { opacity: .5; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:active { background: var(--s2); }
.btn.block { width: 100%; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 12px 16px calc(12px + var(--safe-b)); background: rgba(20, 20, 23, .92); border-top: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bottom-bar > div { max-width: 528px; margin: 0 auto; display: flex; gap: 12px; }
.bottom-bar .btn { flex: 1; }
.bottom-bar .btn.ghost { flex: none; width: 48px; padding: 0; }

/* 留电话弹层 */
.toast { position: fixed; left: 50%; top: 40%; transform: translateX(-50%); z-index: 50; max-width: 80vw; padding: 12px 16px; border-radius: var(--r1); background: rgba(243, 241, 239, .94); color: #141417; text-align: center; }
.mask { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .6); display: grid; place-items: end center; animation: fade .15s ease-out backwards; }
.sheet { width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; background: var(--s1); border: 1px solid var(--line-2); border-bottom: 0; border-radius: var(--r2) var(--r2) 0 0; padding: 8px 16px calc(16px + var(--safe-b)); animation: up .2s ease-out backwards; }
.sheet-h { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.sheet-h h3 { flex: 1; font-size: 16px; }
.x { width: 44px; height: 44px; margin-right: -12px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); }
.fields { margin-top: 8px; border-radius: var(--r2); background: var(--s2); border: 1px solid var(--line); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.row label { width: 64px; flex: none; color: var(--ink-2); }
.row input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; outline: none; }
.row.area { display: block; padding: 12px 16px; border-bottom: 0; }
.row.area label { display: block; width: auto; margin-bottom: 4px; }
.row textarea { width: 100%; min-height: 72px; resize: none; border: 0; background: none; outline: none; padding: 0; line-height: 1.6; }
.row.err { background: rgba(226, 35, 26, .14); }
.row.err label { color: var(--pri-hi); }
.req::after { content: " *"; color: var(--pri-hi); }
input::placeholder, textarea::placeholder { color: #6E6A66; }
.sheet .btn.block { margin-top: 16px; }
.done { padding: 24px 0 8px; text-align: center; }
.done > .i { --s: 48px; color: var(--ok); stroke-width: 1.25; }
.done h3 { font-size: 20px; margin-top: 12px; }
.done p { color: var(--ink-2); margin: 8px 0 24px; }
.done .btn + .btn { margin-top: 8px; }

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
