:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --line: #E6E8EB;
  --text: #14171C;
  --text-2: #4A5260;
  --text-3: #6B7280;
  --brand: #1F4E79;
  --brand-soft: #EEF3F8;
  --alipay: #1677FF;
  --r1: 8px;
  --r2: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--brand); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* 顶栏 */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.top .wrap { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: .02em; }
.top-link { font-size: 13px; color: var(--text-3); }

/* 首屏 */
.hero { padding: 48px 0 32px; }
.eyebrow { font-size: 13px; color: var(--brand); letter-spacing: .08em; margin-bottom: 12px; }
h1 { font-size: 31px; line-height: 1.25; font-weight: 600; }
.hero p { margin-top: 16px; color: var(--text-2); max-width: 34em; }

h2 { font-size: 20px; line-height: 1.25; font-weight: 600; }
.section { padding: 32px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 16px; }
.section-head p { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* 服务列表 */
.svc { display: block; padding: 24px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.svc:last-child { border-bottom: 0; }
.svc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.svc-name { font-size: 16px; font-weight: 600; }
.svc-price { font-size: 16px; font-weight: 600; color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-price small { font-size: 13px; color: var(--text-3); font-weight: 400; }
.svc-brief { font-size: 15px; color: var(--text-2); margin-top: 4px; }
.svc-more { font-size: 13px; color: var(--brand); margin-top: 8px; display: inline-block; }

.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--text-2); font-size: 15px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  font-size: 13px; line-height: 20px; text-align: center; font-weight: 600;
}
.about p { color: var(--text-2); font-size: 15px; }
.about p + p { margin-top: 8px; }

/* 页脚 */
footer { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); line-height: 1.8; }
footer a { color: var(--text-3); }

/* 详情页 */
.back { font-size: 13px; color: var(--text-3); display: inline-block; padding: 16px 0 0; }
.detail-head { padding: 24px 0 32px; }
.detail-head h1 { font-size: 25px; }
.detail-head .lead { color: var(--text-2); margin-top: 8px; }
.price-big { font-size: 31px; font-weight: 600; color: var(--brand); margin-top: 16px; font-variant-numeric: tabular-nums; }
.price-big small { font-size: 15px; color: var(--text-3); font-weight: 400; }
.kv { display: flex; gap: 16px; font-size: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--text-3); width: 72px; flex-shrink: 0; }
.kv dd { color: var(--text); min-width: 0; }
.list { list-style: none; }
.list li { position: relative; padding-left: 16px; font-size: 15px; color: var(--text-2); margin-bottom: 8px; }
.list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.note { font-size: 15px; color: var(--text-2); }
.note + .note { margin-top: 8px; }

/* 底部购买条 */
.buybar-space { height: 96px; }
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
}
.buybar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.buybar-price { font-size: 20px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.buybar-price small { display: block; font-size: 13px; color: var(--text-3); font-weight: 400; line-height: 1.3; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 32px; border-radius: var(--r1); border: 0;
  background: var(--brand); color: #FFFFFF; font-size: 16px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: opacity .15s ease-out;
}
.btn:active { opacity: .85; }
.btn-pay { background: var(--alipay); width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }

/* 支付页 */
.pay-title { padding: 24px 0 16px; font-size: 20px; font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: 16px; margin-bottom: 16px; }
.card-label { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.order-name { font-size: 16px; font-weight: 600; }
.order-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-2); padding: 4px 0; }
.order-row b { color: var(--text); font-weight: 400; font-variant-numeric: tabular-nums; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.order-total span { font-size: 15px; color: var(--text-2); }
.order-total strong { font-size: 25px; color: var(--text); font-variant-numeric: tabular-nums; }
.field label { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.field input {
  width: 100%; height: 48px; border: 1px solid var(--line); border-radius: var(--r1);
  padding: 0 12px; font-size: 16px; font-family: inherit; color: var(--text); background: var(--bg);
}
.field input:focus { border-color: var(--brand); outline: none; }
.field .err { font-size: 13px; color: #B42318; margin-top: 4px; min-height: 20px; }
.paymethod { display: flex; align-items: center; gap: 12px; padding: 4px 0; cursor: pointer; }
.paymethod input { position: absolute; opacity: 0; pointer-events: none; }
.ali-mark {
  width: 32px; height: 32px; border-radius: var(--r1); background: var(--alipay); color: #FFFFFF;
  font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.paymethod-text { flex: 1; min-width: 0; }
.paymethod-text b { display: block; font-size: 16px; font-weight: 600; }
.paymethod-text span { font-size: 13px; color: var(--text-3); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; position: relative; }
.paymethod input:checked + .ali-mark + .paymethod-text + .radio { border-color: var(--alipay); }
.paymethod input:checked + .ali-mark + .paymethod-text + .radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--alipay);
}
.paymethod input:focus-visible ~ .radio { outline: 2px solid var(--alipay); outline-offset: 2px; }
.agree { font-size: 13px; color: var(--text-3); margin: 16px 0; }
.pay-msg { font-size: 15px; color: var(--text-2); text-align: center; margin-top: 12px; min-height: 24px; }

.empty { padding: 96px 0; text-align: center; color: var(--text-2); }
.empty a { display: inline-block; margin-top: 16px; }
.detail-head + .section { border-top: 0; padding-top: 0; }
.field .err:empty { display: none; }
.back + .pay-title { padding-top: 16px; }
