:root {
  --ink: #151c29;
  --ink-2: #35404f;
  --muted: #6b7684;
  --line: #e7e8eb;
  --line-soft: #f0f2f5;
  --surface: #ffffff;
  --surface-alt: #f5f6f8;
  --brand: #165dff;
  --brand-dark: #0b3fa7;
  --brand-soft: #eef4ff;
  --success: #119b70;
  --warn: #b07a00;
  --danger: #d93025;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(21, 28, 41, .05), 0 8px 24px rgba(21, 28, 41, .05);
  --shadow-md: 0 18px 46px rgba(21, 28, 41, .10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-alt);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(22, 93, 255, .35); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  max-width: 1120px; margin: auto; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.brand-logo { width: 26px; height: 26px; }
nav { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
nav .link {
  padding: 8px 12px; border-radius: 8px; color: #44505e;
  border: 1px solid transparent; background: transparent;
}
nav .link:hover { background: var(--surface-alt); color: var(--ink); }
nav .login-link { border-color: var(--line); }
.lang-select {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px;
  background: #fff; color: #44505e; font-size: 13px;
}

/* ---------- hero ---------- */
main { max-width: 1120px; margin: auto; padding: 0 20px 40px; }
.hero { text-align: center; padding: 54px 0 26px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -.03em; line-height: 1.2; }
.hero > p { color: var(--muted); margin-top: 10px; font-size: 15px; }

.fulfillment-switch {
  position: relative; display: inline-flex; margin-top: 26px;
  padding: 4px; border-radius: 999px; background: #eceff3;
}
.fulfillment-switch .fulfillment-slider {
  position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px);
  border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(21,28,41,.16);
  transition: transform .26s cubic-bezier(.4, .1, .2, 1);
}
.fulfillment-switch[data-mode="manual"] .fulfillment-slider { transform: translateX(100%); }
.fulfillment-switch button {
  position: relative; z-index: 1; min-width: 116px; padding: 9px 18px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font-weight: 700; font-size: 13.5px;
}
.fulfillment-switch button[aria-pressed="true"] { color: var(--ink); }
.fulfillment-hint { margin-top: 12px; color: var(--muted); font-size: 12.5px; }

/* ---------- assurance ---------- */
.service-assurance {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin: 30px 0 26px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.service-assurance > * {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 16px; border-left: 1px solid var(--line-soft);
}
.service-assurance > :first-child { border-left: 0; }
.service-assurance strong { display: block; font-size: 12.5px; }
.service-assurance small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.45; margin-top: 2px; }
.assurance-icon {
  flex: none; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 7px; background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 800;
}

/* ---------- workspace ---------- */
.pricing-workspace {
  display: grid; grid-template-columns: minmax(0, 1fr) 384px;
  gap: 22px; align-items: start;
}
.plan-group { margin-bottom: 22px; }
.group-heading {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 12px; padding: 0 4px;
}
.group-heading h2 { font-size: 16px; letter-spacing: -.01em; }
.variant-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: #e9edf2; gap: 2px; }
.variant-button {
  border: 0; background: transparent; color: var(--muted);
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.variant-button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(21,28,41,.12); }

.plan {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.plan[hidden] { display: none; }
.plan:hover { border-color: #cfd6e2; box-shadow: var(--shadow-sm); }
.plan-summary { display: block; padding: 24px 24px 20px; cursor: pointer; }
.plan input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) {
  border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-md);
}
.plan:has(input:checked) .plan-action .choose-text { display: none; }
.plan:has(input:checked) .plan-action .chosen-text { display: inline-flex; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .02em; }
.selection-mark {
  width: 22px; height: 22px; display: none; place-items: center;
  border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px;
}
.plan:has(input:checked) .selection-mark { display: grid; }
.plan h2 { font-size: 24px; letter-spacing: -.02em; margin-top: 12px; }
.plan-description { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.plan-action {
  display: inline-flex; margin-top: 14px; padding: 7px 12px; border-radius: 8px;
  background: var(--surface-alt); color: #44505e; font-size: 12px; font-weight: 700;
}
.plan-action .chosen-text { display: none; color: var(--success); background: #eaf7f2; }
.plan:has(input:checked) .plan-action { background: #eaf7f2; }
.price {
  margin-top: 16px; font-size: 34px; font-weight: 800; letter-spacing: -.03em;
  display: flex; align-items: baseline; gap: 2px;
}
.price > span { font-size: 17px; font-weight: 700; margin-right: 1px; }
.price em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.price-caption { color: #8d97a6; font-size: 11.5px; margin-top: -2px; }
.plan-feature-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft);
}
.plan-feature-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #3c4756; }
.feature-icon { flex: none; width: 17px; height: 17px; margin-top: 1px; color: #5b6675; }
.plan-footnote {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  color: var(--muted); font-size: 11.5px;
}
.mobile-buy { display: none; }

/* ---------- checkout ---------- */
.checkout { position: sticky; top: 82px; display: grid; gap: 14px; }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 15px; display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.step {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 800;
}
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.account-badge {
  padding: 4px 8px; border-radius: 6px; background: #eaf7f2; color: var(--success);
  font-size: 11px; font-weight: 800;
}
.account-intro { color: var(--muted); font-size: 12px; margin-top: 12px; line-height: 1.6; }
.account-field { margin-top: 16px; }
.account-field label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; margin-bottom: 7px; }
.account-field label span { color: var(--danger); font-size: 11px; font-weight: 600; }
.input-shell {
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  border: 1px solid #d9dee7; border-radius: 9px; background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.input-shell:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,93,255,.14); }
.input-shell.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(217,48,37,.12); }
.field-icon { color: #98a2b3; font-size: 13px; width: 16px; display: grid; place-items: center; flex: none; }
.field-icon svg { width: 16px; height: 16px; }
.input-shell input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 11px 0; background: transparent; font-size: 13.5px; }
.input-shell input::placeholder { color: #a9b2c0; }
.input-check { color: var(--success); font-size: 13px; font-weight: 800; }
.field-help { color: #8d97a6; font-size: 11.5px; margin-top: 6px; }
.field-help.error { color: var(--danger); font-weight: 600; }

.checkout-mode-label {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding: 10px 12px; border-radius: 9px; background: var(--surface-alt);
  font-size: 12.5px; color: var(--muted);
}
.checkout-mode-label strong { color: var(--ink); }
dl { margin-top: 14px; }
dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
dl > div:last-child { border-bottom: 0; }
dt { color: var(--muted); font-size: 12.5px; }
dd { font-weight: 700; font-size: 13px; text-align: right; }
#mode-policy-note { color: var(--warn); background: #fff8e6; border: 1px solid #ffe6a8; border-radius: 8px; padding: 9px 11px; font-size: 11.5px; margin-top: 12px; }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.payment-option {
  position: relative; display: flex; align-items: center; gap: 9px;
  padding: 11px 12px; border: 1px solid #d9dee7; border-radius: 10px;
  cursor: pointer; transition: border-color .18s, background .18s;
}
.payment-option input { position: absolute; opacity: 0; }
.payment-option:has(input:checked) { border-color: var(--brand); background: #f6f9ff; }
.payment-option strong { font-size: 12.5px; font-weight: 700; }
.pay-logo { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 800; }
.pay-logo.alipay { background: #1677ff; }
.pay-logo.wechat { background: #07c160; }

.target {
  display: flex; align-items: center; gap: 6px; margin-top: 14px;
  padding: 10px 12px; border-radius: 9px; background: var(--surface-alt);
  font-size: 12.5px; color: var(--muted); overflow: hidden;
}
.target strong { color: var(--ink); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.target.is-empty strong { color: #a9b2c0; font-weight: 500; }
.total { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 14px; }
.total > span { color: var(--muted); font-size: 12.5px; }
.total strong { font-size: 26px; letter-spacing: -.03em; display: flex; align-items: baseline; gap: 4px; }
.total strong small { font-size: 10.5px; color: var(--muted); font-weight: 700; }

.primary {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 14px;
  transition: transform .18s, background .18s, opacity .18s;
}
.primary:hover:not(:disabled) { background: #000; transform: translateY(-1px); }
.primary:disabled { opacity: .4; cursor: not-allowed; }
.pay-state { text-align: center; color: #8d97a6; font-size: 11.5px; margin-top: 10px; }
.pay-state.ok { color: var(--success); }
.privacy { color: #8d97a6; font-size: 11px; line-height: 1.6; }

#payment-message:empty { display: none; }
#payment-message { margin-top: 12px; padding: 10px 12px; border-radius: 9px; font-size: 12px; }
#payment-message.error { color: var(--danger); background: #fdeceb; border: 1px solid #f7cdc9; }
#payment-message.success { color: var(--success); background: #eaf7f2; border: 1px solid #c9ebdd; }

.announcement {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 20px;
  padding: 14px 16px; border-radius: 12px; background: #fffdf5;
  border: 1px solid #f4e6bc; color: #6b5a2a; font-size: 12.5px;
}
.announcement b { flex: none; padding: 1px 7px; border-radius: 5px; background: #f6e6b4; color: #6b5a2a; font-size: 11px; }
footer.site-footer { text-align: center; padding: 30px 20px 60px; color: #98a2b3; font-size: 12px; }

/* ---------- dialogs ---------- */
dialog {
  border: 0; padding: 0; border-radius: 18px; background: #fff;
  box-shadow: 0 30px 80px rgba(21, 28, 41, .28);
  width: min(520px, calc(100vw - 36px)); max-height: calc(100vh - 60px); overflow: auto;
}
dialog::backdrop { background: rgba(16, 24, 40, .48); backdrop-filter: blur(2px); }
.orders-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
.orders-head h2 { font-size: 16px; }
.orders-head button, .sheet-heading button {
  border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1;
  width: 30px; height: 30px; border-radius: 8px;
}
.orders-head button:hover, .sheet-heading button:hover { background: var(--surface-alt); color: var(--ink); }
.orders-dialog form { padding: 0 22px; }
.orders-dialog > p.muted { padding: 6px 22px 14px; color: var(--muted); font-size: 12.5px; }
.orders-dialog label { display: block; font-size: 12.5px; font-weight: 700; margin: 14px 0 6px; }
.orders-dialog input {
  width: 100%; padding: 11px 12px; border: 1px solid #d9dee7; border-radius: 9px; outline: 0;
}
.orders-dialog input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,93,255,.14); }
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-row img { height: 44px; border-radius: 8px; border: 1px solid var(--line); }
.captcha-row button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 9px 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
#lookup-submit { margin-top: 16px; }
#lookup-status { padding: 10px 22px 0; font-size: 12.5px; color: var(--muted); }
#lookup-status.error { color: var(--danger); }
#lookup-orders { padding: 4px 22px 0; }
.order-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px;
}
.order-row:last-child { border-bottom: 0; }
.order-row small { color: var(--muted); display: block; font-size: 11.5px; }
.order-row a { color: var(--brand); font-weight: 700; font-size: 12px; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.pill.pending { background: #fff4d6; color: var(--warn); }
.pill.reviewing { background: #fff1e6; color: #b45309; }
.pill.paid, .pill.processing { background: var(--brand-soft); color: var(--brand); }
.pill.done { background: #eaf7f2; color: var(--success); }
.pill.closed { background: #f1f3f7; color: #6b7688; }
.orders-dialog .privacy { padding: 14px 22px 22px; }
#lookup-more { margin: 8px 22px 0; width: calc(100% - 44px); padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 12.5px; color: var(--muted); }

/* mobile sheet */
.mobile-checkout { width: 100%; max-width: 560px; margin: auto auto 0; border-radius: 20px 20px 0 0; }
.mobile-checkout[open] { animation: sheet-up .28s cubic-bezier(.2,.8,.3,1); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet-header { position: sticky; top: 0; background: #fff; z-index: 2; padding: 10px 0 6px; }
.sheet-grip { width: 42px; height: 4px; border-radius: 2px; background: #dfe3e9; margin: 0 auto 10px; }
.sheet-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 0 20px; }
.sheet-heading h2 { font-size: 16px; }
.sheet-heading p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.sheet-content { padding: 6px 16px 22px; background: var(--surface-alt); }
.sheet-content .checkout { position: static; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  z-index: 60; padding: 11px 18px; border-radius: 10px;
  background: #17233c; color: #fff; font-size: 12.5px;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .24s, transform .24s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* sticky mobile bar */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  backdrop-filter: blur(12px); gap: 12px; align-items: center;
}
.mobile-bar .mb-plan { flex: 1; min-width: 0; }
.mobile-bar .mb-plan strong { display: block; font-size: 13px; }
.mobile-bar .mb-plan small { color: var(--muted); font-size: 11.5px; }
.mobile-bar .primary { width: auto; min-height: 42px; padding: 0 18px; font-size: 13px; flex: none; }

@media (max-width: 980px) {
  .pricing-workspace { grid-template-columns: 1fr; }
  .checkout { position: static; }
  .service-assurance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-assurance > *:nth-child(3) { border-left: 0; }
  .service-assurance > * { padding: 8px 10px; }
  /* 移动端：结算区改为底部弹层 */
  .mobile-checkout .checkout { display: grid; }
  .pricing-workspace > .checkout { display: none; }
  .mobile-buy {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: calc(100% - 32px); margin: 0 16px 18px; padding: 12px 16px;
    border: 1px solid var(--line); border-radius: 10px; background: #fff;
    font-weight: 800; font-size: 13px;
  }
  .mobile-buy:hover { background: var(--surface-alt); }
  .mobile-bar { display: flex; }
  body { padding-bottom: 68px; }
  .plan-summary { padding: 20px 18px 16px; }
  .plan h2 { font-size: 21px; }
  .price { font-size: 30px; }
}
@media (max-width: 620px) {
  .nav-wrap { height: 58px; padding: 0 12px; gap: 8px; }
  .brand { font-size: 14px; gap: 7px; }
  .brand span { white-space: nowrap; }
  .brand-logo { width: 23px; height: 23px; }
  nav { gap: 0; }
  nav .link { padding: 7px 7px; font-size: 12.5px; white-space: nowrap; }
  nav a.link[href="index.html"] { display: none; }
  .lang-select { padding: 5px 2px; font-size: 12px; max-width: 62px; }
  main { padding: 0 14px 24px; }
  .hero { padding: 38px 0 18px; }
  .plan-feature-list { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .service-assurance { grid-template-columns: 1fr; }
  .service-assurance > * { border-left: 0; border-top: 1px solid var(--line-soft); padding: 10px 4px; }
  .service-assurance > :first-child { border-top: 0; }
}
