:root {
  font-family: Inter, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: #18181b;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.6;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: #fff7ed;
  --alipay: #1677ff;
  --alipay-hover: #0958d9;
  --line: #e4e4e7;
  --muted: #64748b;
  --surface: #ffffff;
  --green-soft: #ecfdf5;
  --green-text: #047857;
  --amber-soft: #fffbeb;
  --amber-text: #b45309;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.04);
}
* { box-sizing: border-box; }
body { margin: 0; background: #f8fafc; color: #18181b; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, p { margin: 0; }
a { color: #0958d9; text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; line-height: 1.5; }
.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.container.narrow { width: min(920px, calc(100% - 32px)); }
.site-main { flex: 1; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #18181b; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 32px; height: 32px; border-radius: 9px; background: #18181b; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; letter-spacing: 0.02em;
}
.brand-name { font-size: 16px; }
.brand-tag {
  font-size: 11px; font-weight: 600; color: #c2410c; background: var(--accent-soft);
  border: 1px solid #fed7aa; padding: 2px 8px; border-radius: 999px;
}
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: #475569; font-weight: 500; padding: 6px 12px; border-radius: 8px;
}
.main-nav a:hover { background: #f1f5f9; color: #0f172a; text-decoration: none; }
.main-nav a[aria-current="page"] { background: #fff7ed; color: #c2410c; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 9px; font-weight: 600; border: 1px solid var(--line);
  background: #fff; color: #18181b; padding: 9px 18px; cursor: pointer;
  transition: all 0.14s ease; font-size: 14px; line-height: 20px; text-decoration: none;
}
.btn:hover { background: #f1f5f9; text-decoration: none; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 12px 22px; font-size: 15px; }
.btn.full { width: 100%; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.alipay-btn { background: var(--alipay); border-color: var(--alipay); color: #fff; }
.btn.alipay-btn:hover { background: var(--alipay-hover); border-color: var(--alipay-hover); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Hero */
.hero {
  padding: 56px 0 48px;
  background: radial-gradient(circle at 18% 0%, #fff7ed 0%, #f8fafc 58%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; color: #c2410c;
  background: var(--accent-soft); border: 1px solid #fed7aa; padding: 4px 12px;
  border-radius: 999px; margin-bottom: 14px;
}
.hero h1 { font-size: 34px; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 14px; }
.hero-desc { font-size: 15px; color: #475569; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.trust-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #475569; }

.mock-window {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: #f4f4f6; border-bottom: 1px solid var(--line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #fb7185; }
.dot.amber { background: #fbbf24; }
.dot.green { background: #34d399; }
.mock-title { font-size: 12px; color: #52525b; margin-left: 6px; font-weight: 500; }
.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mock-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stat {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.mock-stat span { font-size: 11px; color: var(--muted); }
.mock-stat strong { font-size: 15px; }
.mock-list { display: flex; flex-direction: column; gap: 8px; }
.mock-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px;
}
.mock-foot { font-size: 11.5px; color: var(--muted); text-align: center; padding-top: 4px; }
.pill {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; background: #f1f5f9; color: #475569;
}
.pill.ok { background: var(--green-soft); color: var(--green-text); }
.pill.warn { background: var(--amber-soft); color: var(--amber-text); }

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 30px; }
.section-header h1 { font-size: 28px; margin-bottom: 8px; }
.section-header h2 { font-size: 24px; margin-bottom: 8px; }
.page-block { padding: 36px 0 56px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card, .step-card, .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; box-shadow: var(--shadow);
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 8px; background: var(--accent-soft); color: #c2410c; font-weight: 700; font-size: 13px; margin-bottom: 12px;
}
.feature-card h3, .step-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p, .step-card p { color: #475569; font-size: 13.5px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-num { display: inline-block; font-size: 11px; font-weight: 700; color: #c2410c; margin-bottom: 8px; }
.center-cta { text-align: center; margin-top: 28px; }

/* Plans */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.plan-box {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); position: relative;
}
.plan-box.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan-badge {
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: #f1f5f9; color: #475569;
}
.plan-box.featured .plan-badge { background: var(--accent); color: #fff; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price strong { font-size: 34px; line-height: 1; font-weight: 800; color: #0f172a; }
.plan-price span { color: var(--muted); font-size: 13px; }
.plan-features { list-style: none; padding: 0; margin: 4px 0 auto; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #334155; }
.plan-features li::before { content: "✓ "; color: var(--green-text); font-weight: 700; }

.compare-card { margin-bottom: 24px; }
.compare-card h2 { font-size: 18px; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th, .compare-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.compare-table th { background: #f8fafc; color: #475569; font-weight: 600; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.faq-grid h3 { font-size: 15px; margin-bottom: 6px; }

/* Checkout */
.breadcrumb { margin-bottom: 16px; font-size: 13px; }
.checkout-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 18px; }
.checkout-main h1 { font-size: 22px; }
.checkout-block { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 13px; font-weight: 600; color: #334155; }
input[type="text"] {
  width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 9px; font: inherit; background: #fff;
}
input[type="text"]:focus { outline: none; border-color: var(--alipay); box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.14); }

.mini-plan-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-plan {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; font: inherit;
}
.mini-plan strong { font-size: 14px; }
.mini-plan .mp-price { font-size: 16px; font-weight: 700; color: #0f172a; }
.mini-plan .mp-days { font-size: 12px; color: var(--muted); }
.mini-plan[aria-pressed="true"] { border-color: var(--alipay); background: #eff6ff; box-shadow: 0 0 0 1px var(--alipay); }

.pay-method {
  display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--alipay);
  border-radius: 11px; background: #f0f7ff;
}
.alipay-badge {
  width: 38px; height: 38px; border-radius: 10px; background: var(--alipay); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0;
}
.pay-method-info { display: flex; flex-direction: column; flex: 1; }
.pay-check { font-size: 12px; font-weight: 700; color: var(--alipay); }

.agree-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #475569; cursor: pointer; }
.agree-row input { margin-top: 3px; }
.alert-box {
  padding: 12px 14px; border-radius: 10px; font-size: 13px;
  background: var(--amber-soft); color: var(--amber-text); border: 1px solid #fde68a;
}
.alert-box.info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

.checkout-summary h2 { font-size: 16px; margin-bottom: 14px; }
.summary-dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.summary-dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.summary-dl dt { color: var(--muted); flex-shrink: 0; }
.summary-dl dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.total-row { padding-top: 12px; border-top: 1px solid var(--line); align-items: baseline; }
.price-big { font-size: 22px; font-weight: 800; color: #dc2626; }
.summary-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }

/* Order delivery */
.order-card { display: flex; flex-direction: column; gap: 18px; }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-head h1 { font-size: 22px; margin-top: 6px; }
.card-reveal {
  padding: 16px; border-radius: 12px; background: var(--green-soft); border: 1px solid #a7f3d0;
  display: flex; flex-direction: column; gap: 10px;
}
.code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.code-row code {
  flex: 1; padding: 10px 12px; background: #fff; border: 1px solid #6ee7b7; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: #065f46; word-break: break-all; user-select: all;
}
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Terms prose */
.prose { display: flex; flex-direction: column; gap: 12px; }
.prose h1 { font-size: 24px; }
.prose h2 { font-size: 16px; margin-top: 8px; }
.prose p, .prose li { color: #334155; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Footer */
.site-footer {
  background: #fff; border-top: 1px solid var(--line); padding: 22px 0; margin-top: auto;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; font-size: 13px; }
.footer-links a { color: var(--muted); }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .hero-grid, .plans-grid, .checkout-layout, .feature-grid, .steps-grid, .faq-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .hero { padding: 32px 0; }
  .hero h1 { font-size: 26px; }
  .mini-plan-picker { grid-template-columns: 1fr; }
}
