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

:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #14181f;
  --text-dim: #5c6573;
  --text-light: #8b95a5;
  --line: #e6e9ef;
  --accent: #1f6feb;
  --accent-dark: #1558c0;
  --accent-soft: #eef4ff;
  --ok: #16a34a;
  --warn: #d97706;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 24, 31, .04), 0 4px 16px rgba(20, 24, 31, .06);
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand-mark { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.brand-sub { font-size: 12px; color: var(--text-light); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 14px; color: var(--text-dim); transition: color .2s; }
.nav-links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 64px 20px 56px; }
.hero h1 {
  font-size: 38px; line-height: 1.25; letter-spacing: -.5px;
  font-weight: 700; margin-bottom: 16px;
}
.hero-desc {
  font-size: 16px; color: var(--text-dim); max-width: 560px; margin-bottom: 24px;
}
.hero-points { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-points span { font-size: 14px; color: var(--ok); font-weight: 500; }

/* ---------- 区块 ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 56px 20px; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 6px; }
.section-head p { color: var(--text-dim); font-size: 14px; }

/* ---------- 商品卡 ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: #cfd8e6; box-shadow: 0 2px 4px rgba(20,24,31,.05), 0 8px 24px rgba(20,24,31,.08); }
.card-head h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.card-head p { font-size: 13px; color: var(--text-light); margin-bottom: 18px; }

.tiers { display: flex; flex-direction: column; gap: 8px; }
.tier {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fcfcfd; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 14px; color: var(--text);
  transition: all .16s;
}
.tier:hover {
  border-color: var(--accent); background: var(--accent-soft);
  transform: translateX(2px);
}
.tier:active { transform: scale(.995); }
.tier-price {
  flex: 0 0 auto; min-width: 62px;
  font-size: 16px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.tier-desc { font-size: 13px; color: var(--text-dim); line-height: 1.4; }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; }
.steps li {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.steps li b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.steps li strong { display: block; font-size: 14px; margin-bottom: 4px; }
.steps li p { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 0; margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  padding: 16px 18px; cursor: pointer; font-weight: 500; font-size: 14px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 18px; color: var(--text-light);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq p { padding: 14px 18px 16px; font-size: 14px; color: var(--text-dim); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 28px 20px;
  text-align: center; font-size: 13px; color: var(--text-light);
}
.footer-meta { margin-top: 8px; display: flex; gap: 8px; justify-content: center; }
.footer-meta a:hover { color: var(--accent); }

/* ---------- 弹层 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(20,24,31,.45); animation: fade .2s; }
.modal-box {
  position: relative; background: #fff; border-radius: 16px;
  width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
  padding: 28px; box-shadow: 0 20px 60px rgba(20,24,31,.22);
  animation: pop .22s cubic-bezier(.2,.9,.3,1);
}
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98) } }
.modal-close {
  position: absolute; right: 14px; top: 12px;
  width: 32px; height: 32px; border: 0; background: transparent;
  font-size: 24px; line-height: 1; color: var(--text-light);
  cursor: pointer; border-radius: 8px;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }

.summary {
  background: var(--bg); border-radius: 10px; padding: 14px 16px; margin-bottom: 20px;
}
.sum-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.sum-row b { color: var(--accent); font-size: 16px; }
.sum-desc { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field em { color: #dc2626; font-style: normal; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; font-family: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--text); transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,111,235,.12);
}
.field textarea { resize: vertical; min-height: 72px; }
.field small { display: block; font-size: 12px; color: var(--text-light); margin-top: 5px; }

.total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--line); margin-bottom: 16px;
  font-size: 14px;
}
.total strong { font-size: 24px; color: var(--accent); font-variant-numeric: tabular-nums; }

.btn-primary {
  display: block; width: 100%; padding: 13px;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .16s;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary.inline { display: inline-block; width: auto; padding: 10px 22px; }

.tip { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 12px; line-height: 1.5; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%);
  background: rgba(20,24,31,.92); color: #fff;
  padding: 11px 20px; border-radius: 8px; font-size: 14px;
  z-index: 200; animation: pop .2s; max-width: 80vw; text-align: center;
}
.toast[hidden] { display: none; }

/* ---------- 订单页 ---------- */
.order-wrap { max-width: 620px; margin: 0 auto; padding: 32px 20px 60px; }
.order-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.order-head { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.order-head h2 { font-size: 20px; font-weight: 700; margin: 12px 0 6px; }
.order-no { font-size: 13px; color: var(--text-light); font-variant-numeric: tabular-nums; }
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge-pending { background: #fef3c7; color: var(--warn); }
.badge-paid { background: #dcfce7; color: var(--ok); }
.badge-done { background: #e0e7ff; color: #4338ca; }
.badge-cancel { background: #f1f5f9; color: var(--text-light); }

.order-list { padding: 20px 0; }
.order-list > div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 9px 0; font-size: 14px;
}
.order-list dt { color: var(--text-light); flex: 0 0 auto; }
.order-list dd { text-align: right; word-break: break-word; }

.amount-box {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--accent-soft); border-radius: 10px; padding: 16px 20px;
  margin-bottom: 20px;
}
.amount-box span { font-size: 14px; color: var(--text-dim); }
.amount-box strong { font-size: 28px; color: var(--accent); font-variant-numeric: tabular-nums; }

.pay-box { border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.pay-box h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; text-align: center; }
.qr-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.qr-row figure { text-align: center; }
.qr-row img {
  width: 150px; height: 150px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff;
}
.qr-row figcaption { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.qr-placeholder {
  text-align: center; padding: 28px 16px; background: var(--bg);
  border-radius: 8px; width: 100%;
}
.qr-placeholder p { font-size: 14px; color: var(--text-dim); }
.qr-placeholder .small { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.pay-note {
  font-size: 13px; color: var(--text-dim); text-align: center;
  margin-top: 18px; line-height: 1.7;
}
.pay-note b { color: var(--text); font-variant-numeric: tabular-nums; }
.contact-line {
  text-align: center; font-size: 14px; margin-top: 14px;
  padding-top: 14px; border-top: 1px dashed var(--line);
}
.contact-line b { color: var(--accent); font-size: 15px; }

.paid-box { background: #f0fdf4; border-radius: 10px; padding: 20px; text-align: center; }
.paid-box p { font-size: 14px; color: #15803d; }
.paid-box .small { font-size: 12px; color: var(--text-light); margin-top: 6px; }

.order-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-ghost {
  flex: 1; text-align: center; padding: 11px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; color: var(--text-dim); transition: all .16s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.empty { text-align: center; padding: 32px 0; }
.empty h2 { font-size: 18px; margin-bottom: 8px; }
.empty p { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }

.query-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.query-form { display: flex; gap: 10px; }
.query-form input {
  flex: 1; padding: 11px 13px; font-family: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 8px;
}
.query-form input:focus { outline: none; border-color: var(--accent); }
.query-form button { width: auto; padding: 11px 24px; }

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero-inner { padding: 40px 20px 36px; }
  .hero h1 { font-size: 26px; }
  .hero-desc { font-size: 15px; }
  .section { padding: 36px 16px; }
  .section-head h2 { font-size: 20px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 18px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps li { padding: 16px; }
  .modal-box { padding: 22px; border-radius: 14px; max-height: 92vh; }
  .order-card { padding: 20px; }
  .order-wrap { padding: 20px 16px 40px; }
  .qr-row img { width: 132px; height: 132px; }
  .amount-box strong { font-size: 24px; }
  .tier { padding: 11px 12px; }
  .tier-price { min-width: 54px; font-size: 15px; }
}
