/* HX超能站 —— 前台样式 */
/* 中文最多用到 PingFang 中黑（Medium）：中文字形笔画密，半粗体（Semibold）看起来比同字重的英文黑很多。
   英文和数字仍走 SF 原有字重，与 gptibo 一致。Windows 上中文统一用微软雅黑常规体，避免雅黑粗体发黑。 */
@font-face { font-family: "HX CJK"; src: local("PingFangSC-Regular"), local("PingFang SC Regular"), local("Microsoft YaHei UI"), local("Microsoft YaHei"); font-weight: 100 450; unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF; }
@font-face { font-family: "HX CJK"; src: local("PingFangSC-Medium"), local("PingFang SC Medium"), local("Microsoft YaHei UI"), local("Microsoft YaHei"); font-weight: 451 1000; unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF; }
:root {
  --bg: #F7F8FA;
  --text: #1D1D1F;
  --text-2: #303542;
  --muted: #747883;
  --muted-2: #858D9D;
  --hint: #6E7582;
  --faint: #9A9FAA;
  --line: #ECEEF2;
  --line-2: #E5E7ED;
  --accent: #386DE8;
  --accent-bg: #F6F8FF;
  --accent-border: #7398EC;
  --purple: #7353D6;
  --button: #292C33;
  --danger: #C2412F;
  --ok: #1F9D6B;
  --warn: #B7791F;
  --font: "HX CJK", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 14px/1.5 var(--font); color: var(--text); -webkit-font-smoothing: antialiased; font-synthesis: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- 顶栏 ---------- */
.site-header { position: relative; display: flex; align-items: center; height: 100px; width: min(1200px, calc(100% - 112px)); margin: 0 auto; gap: 20px; }
.wordmark { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 650; letter-spacing: -.8px; flex: none; }
.wordmark-icon { width: 32px; height: 32px; display: block; }
.product-switch { position: absolute; left: 50%; top: 25.5px; transform: translateX(-50%); display: flex; padding: 5px; border-radius: 100px;
  background: rgba(233, 235, 239, .7); border: 1px solid rgba(228, 230, 234, .46); max-width: calc(100% - 380px); overflow-x: auto; scrollbar-width: none; }
.product-switch::-webkit-scrollbar { display: none; }
.switch-indicator { position: absolute; top: 5px; left: 5px; height: 37px; width: 0; border-radius: 100px; background: #fff;
  box-shadow: 0 2px 8px rgba(39, 54, 76, .04), 0 1px 2px rgba(0, 0, 0, .024); transition: transform .38s cubic-bezier(.3, .7, .2, 1), width .38s cubic-bezier(.3, .7, .2, 1); }
.product-switch button { position: relative; z-index: 1; flex: none; display: flex; align-items: center; justify-content: center; gap: 7px; height: 37px; min-width: 112px; padding: 1px 16px;
  border: 0; border-radius: 100px; background: none; font-size: 12px; font-weight: 550; color: #737780; white-space: nowrap; transition: color .25s; }
.product-switch button:hover { color: #24262B; }
.product-switch button[aria-selected="true"] { color: #24262B; }
.tab-logo { width: 20px; height: 20px; flex: none; display: block; object-fit: contain; }
/* 品牌标志是实心图形：覆盖上面全站 svg 的描边样式 */
.brand-svg { fill: currentColor; stroke: none; }
.tab-svg { color: #24262B; }
.tab-svg svg { width: 100%; height: 100%; display: block; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; flex: none; }
.header-link { display: flex; align-items: center; gap: 8px; padding: 9px 0; font-size: 12px; color: #656971; transition: color .2s; }
.header-link:hover, .header-link[aria-current] { color: var(--text); }
.header-link svg { width: 16px; height: 16px; stroke-width: 1.8; }

.notice-bar { width: min(1120px, calc(100% - 112px)); margin: -12px auto 8px; padding: 9px 14px; border-radius: 11px; background: #FFF8EC; border: 1px solid #F3E2C2; color: #8A6116; font-size: 12px; text-align: center; }

main { flex: 1; width: 100%; }

/* ---------- 主体布局 ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 90px; align-items: center; width: min(1120px, calc(100% - 112px)); margin: 0 auto; padding: 28px 0 42px; }
.single-layout { display: flex; justify-content: center; padding: 28px 20px 56px; }

/* 左侧展台 */
/* 结算卡比较长时，展台停在视口上方，不随卡片中线下沉 */
.product-stage { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: min(560px, calc(100vh - 150px)); padding-bottom: 32px; }
.stage-halo { position: absolute; left: 50%; top: 36px; width: 560px; max-width: 135%; height: 480px; transform: translateX(-50%);
  background: radial-gradient(at 36% 58%, rgba(219, 235, 253, .47), transparent 55%), radial-gradient(at 69% 46%, rgba(238, 226, 255, .48), transparent 55%);
  filter: blur(22px); opacity: .85; pointer-events: none; animation: halo-breathe 9s ease-in-out infinite; }
.logo-composition { position: relative; width: 340px; max-width: 100%; height: 340px; margin: 6px 0 21px; display: grid; place-items: center; }
.floating-mark { width: 100%; height: 100%; display: grid; place-items: center; animation: float 7s ease-in-out infinite; }
.floating-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(56, 109, 232, .14)); }
.brand-mark { width: 64%; height: 64%; color: #1D1D1F; }
.brand-mark svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 20px 35px rgba(67, 107, 165, .094)); }
.floating-mark.swap { animation: swapIn .5s cubic-bezier(.2, .8, .3, 1.1), float 7s ease-in-out .5s infinite; }
.mono-mark { width: 200px; height: 200px; border-radius: 52px; display: grid; place-items: center; background: linear-gradient(145deg, #fff, #EEF2FB);
  box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(39, 54, 76, .05), 0 24px 50px -24px rgba(56, 109, 232, .35); }
.mono-mark span { font-size: 92px; font-weight: 700; letter-spacing: -3px; background: linear-gradient(135deg, var(--purple), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* 与 gptibo 相同的漂浮幅度：上下 14px、左右摆 8°、轻微缩放；光晕同步呼吸 */
@keyframes float { 0%, 100% { transform: translateY(4px) rotate(-4deg) scale(.97); } 50% { transform: translateY(-10px) rotate(4deg) scale(1.035); } }
@keyframes halo-breathe { 0%, 100% { opacity: .55; scale: .94; } 50% { opacity: .9; scale: 1.06; } }
@keyframes swapIn { from { opacity: 0; transform: translateY(16px) rotate(-7deg) scale(.88); } }
.stage-caption { position: relative; }
@media (min-width: 1440px) {
  .product-layout { gap: 110px; }
  .logo-composition { width: 370px; height: 370px; }
  .product-stage { padding-bottom: 15px; }
}
@media (max-width: 1100px) {
  .site-header, .site-footer, .notice-bar { width: calc(100% - 72px); }
  .product-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 35px; width: calc(100% - 72px); }
  .logo-composition { width: 285px; height: 285px; }
  .product-stage { min-height: min(500px, calc(100vh - 150px)); }
}
.stage-product-name { font-size: 22px; font-weight: 600; letter-spacing: -.65px; }
.stage-pagination { position: relative; display: flex; gap: 6px; margin-top: 23px; height: 28px; align-items: center; }
.stage-pagination button { width: 5px; height: 5px; padding: 0; border: 0; border-radius: 5px; background: #D9DDE4; transition: width .3s, background .3s; }
.stage-pagination button[aria-selected="true"] { width: 18px; background: #9CA5B6; }

/* 右侧结算卡 */
.checkout-card { position: relative; background: #fff; border-radius: 28px; border: 1px solid var(--line); padding: 28px;
  box-shadow: 0 18px 60px -24px rgba(39, 54, 76, .1), 0 3px 8px rgba(39, 54, 76, .008); }
.narrow-card { width: 100%; max-width: 420px; }
.product-heading h1 { margin: 0 0 8px; font-size: 38px; font-weight: 600; line-height: 1.15; letter-spacing: -1.6px; word-break: break-word; }
.product-subtitle { margin: 0; font-size: 16px; color: var(--muted); letter-spacing: .6px; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .quantity-label label, .email-field > label { display: block; padding: 0; font-size: 12px; font-weight: 550; color: var(--text); }
.variant-options { margin: 25px 0 23px; }
.variant-options legend { margin-bottom: 10px; }
.variant-list { display: grid; gap: 9px; }
.variant-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px; border-radius: 13px; border: 1px solid var(--line-2); background: #fff; text-align: left;
  transition: border-color .2s, background .2s, box-shadow .2s; }
.variant-option:hover:not([disabled]) { border-color: #C9D3EE; }
.variant-option[aria-checked="true"] { background: var(--accent-bg); border-color: var(--accent-border); box-shadow: inset 0 0 0 .5px var(--accent-border); }
.variant-indicator { width: 17px; height: 17px; flex: none; border-radius: 50%; border: 1.5px solid #CCD1DC; display: grid; place-items: center; color: transparent; transition: all .2s; }
.variant-indicator svg { width: 11px; height: 11px; stroke-width: 3; }
.variant-option[aria-checked="true"] .variant-indicator { background: var(--accent); border-color: var(--accent); color: #fff; }
.variant-description { flex: 1; min-width: 0; }
.variant-sub { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; line-height: 16px; color: #5E6573; }
.variant-description strong { display: block; font-size: 13px; font-weight: 550; line-height: 19.5px; }
.variant-description small { display: block; margin-top: 4px; font-size: 11px; line-height: 15.4px; color: var(--muted-2); }
.variant-description small .low { color: var(--warn); }
.variant-price { flex: none; font-size: 20px; font-weight: 550; letter-spacing: -.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.variant-price > span { font-size: 12px; margin-right: 2px; }
.variant-price small { font-size: 10px; font-weight: 400; color: var(--muted-2); margin-left: 4px; letter-spacing: 0; }
.variant-option[disabled] { cursor: not-allowed; background: #FBFBFC; }
.variant-option[disabled] strong, .variant-option[disabled] .variant-price { color: #A9AFBA; }

.chip-field { margin: 0 0 23px; }
.chip-field legend { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 12px; font-weight: 550; color: #444F61; transition: all .2s; }
.chip[aria-pressed="true"] { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent); }

.product-notes { margin: -8px 0 20px; border-radius: 12px; background: #FAFBFC; border: 1px solid var(--line); }
.product-notes summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; font-size: 12px; font-weight: 550; color: #444F61; cursor: pointer; }
.product-notes summary::-webkit-details-marker { display: none; }
.product-notes summary svg { width: 14px; height: 14px; color: var(--muted-2); transition: transform .2s; }
.product-notes[open] summary svg { transform: rotate(180deg); }
.product-notes-body { padding: 0 14px 12px; font-size: 12px; line-height: 1.7; color: var(--hint); max-height: 240px; overflow: auto; }
.product-notes-body :first-child { margin-top: 0; } .product-notes-body :last-child { margin-bottom: 0; }
.product-notes-body img { max-width: 100%; height: auto; border-radius: 8px; }
.product-notes-body ul, .product-notes-body ol { padding-left: 1.3em; }

.quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 23px; }
.quantity-label small { display: block; margin-top: 5px; font-size: 11px; color: var(--muted-2); }
.quantity-control { display: flex; align-items: center; padding: 4px; border-radius: 12px; background: #F7F8FA; border: 1px solid var(--line); }
.quantity-control button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid #E6E8ED; background: #fff; color: #555D6B; box-shadow: 0 1px 2px rgba(29, 29, 31, .024); transition: all .15s; }
.quantity-control button svg { width: 16px; height: 16px; }
.quantity-control button[disabled] { background: transparent; border-color: transparent; box-shadow: none; color: #C5C9D1; cursor: default; }
.quantity-control input { width: 40px; height: 34px; border: 0; background: transparent; text-align: center; font-size: 14px; font-weight: 600; color: var(--text-2); outline: none; font-variant-numeric: tabular-nums; }

.email-field { margin-bottom: 22px; }
.email-field > label { margin-bottom: 9px; }
.input-wrap { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 13px; border-radius: 11px; border: 1px solid #E1E3E9; background: #FCFCFD; transition: border-color .2s, box-shadow .2s, background .2s; }
.input-wrap:focus-within { border-color: var(--accent-border); background: #fff; box-shadow: 0 0 0 3px rgba(56, 109, 232, .1); }
.input-wrap svg { width: 16px; height: 16px; color: #B1B6C2; flex: none; stroke-width: 1.8; }
.input-wrap input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; outline: none; padding: 1px 2px; font-size: 13px; color: var(--text-2); }
.input-wrap input::placeholder { color: #B1B6C2; }
.field-hint { margin: 8px 0 0; font-size: 11px; line-height: 17.6px; color: var(--hint); }

.payment-method-picker { margin: 22px 0; }
.payment-method-picker legend { margin-bottom: 11px; color: var(--muted); }
.payment-method-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 9px; }
.payment-method-option { position: relative; display: flex; align-items: center; gap: 10px; padding: 13px 12px; border-radius: 12px; border: 1px solid #E4E7ED; background: #FAFBFC; text-align: left; transition: all .2s; }
.payment-method-option[aria-checked="true"] { background: #F3F7FF; border-color: #8CA9E9; box-shadow: 0 0 0 1px rgba(140, 169, 233, .1); }
.payment-method-icon { width: 27px; height: 27px; flex: none; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 650; line-height: 1; }
.payment-method-icon svg { width: 17px; height: 17px; stroke-width: 2.2; }
.payment-method-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 550; line-height: 17.55px; color: #444F61; }
.payment-method-name small { display: block; margin-top: 4px; font-size: 10px; font-weight: 400; line-height: 13.5px; color: #8C96A6; }
.payment-method-check { width: 15px; height: 15px; flex: none; border-radius: 50%; border: 1px solid #D9DFE9; display: grid; place-items: center; color: transparent; }
.payment-method-check svg { width: 10px; height: 10px; stroke-width: 3.2; }
.payment-method-option[aria-checked="true"] .payment-method-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.pay-empty { grid-column: 1 / -1; padding: 13px 14px; border-radius: 12px; background: #FAFBFC; border: 1px dashed #DDE1E8; font-size: 12px; color: var(--hint); }

.details-agreement { padding-bottom: 18px; }
.details-agreement-line { display: flex; align-items: center; gap: 4px; }
.agreement { position: relative; display: flex; align-items: center; gap: 7px; min-height: 24px; font-size: 11px; color: var(--hint); cursor: pointer; }
.agreement input { position: absolute; width: 14px; height: 14px; margin: 0; opacity: 0; }
.checkbox-art { width: 16px; height: 16px; border-radius: 4px; border: 1px solid #D9DCE3; background: #fff; display: grid; place-items: center; color: transparent; transition: all .15s; }
.checkbox-art svg { width: 11px; height: 11px; stroke-width: 3; }
.agreement input:checked + .checkbox-art { background: var(--accent); border-color: var(--accent); color: #fff; }
.agreement input:focus-visible + .checkbox-art { outline: 2px solid var(--accent); outline-offset: 2px; }
.terms-link { min-height: 24px; padding: 2px 0; border: 0; background: none; font-size: 11px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(56, 109, 232, .4); }

.order-total { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 17px; border-top: 1px solid #EDF0F3; }
.order-total > span { font-size: 12px; color: #727986; }
.order-total small { display: block; margin-top: 4px; font-size: 10px; color: #969DA9; }
.order-total strong { font-size: 26px; font-weight: 550; letter-spacing: -.9px; font-variant-numeric: tabular-nums; transition: opacity .2s; }
.order-total strong > span { font-size: 15px; font-weight: 450; margin-right: 3px; }
.order-total strong.loading { opacity: .35; }
.form-err { min-height: 0; font-size: 12px; color: var(--danger); }
.form-err:not(:empty) { margin: -6px 0 12px; }

.primary-button { width: 100%; height: 47px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 11px; background: var(--button); color: #fff;
  font-size: 13px; font-weight: 500; box-shadow: 0 2px 3px rgba(32, 36, 49, .04); transition: background .2s, transform .1s, opacity .2s; }
.primary-button:hover { background: #1F2228; }
.primary-button:active { transform: translateY(1px); }
.primary-button svg { width: 17px; height: 17px; }
.primary-button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.secondary-button { width: 100%; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; border: 1px solid #E1E3E9; background: #fff; font-size: 13px; font-weight: 500; color: #444F61; transition: all .2s; }
.secondary-button:hover { border-color: #C9CFDA; color: var(--text); }
.secondary-button svg { width: 15px; height: 15px; }

/* ---------- 订单页 ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 100px; font-size: 11px; font-weight: 550; background: #F1F3F6; color: #444F61; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #A9AFBA; }
.status-pill.pending::before, .status-pill.paid::before, .status-pill.delivering::before, .status-pill.processing::before { background: var(--warn); }
.status-pill.delivered { background: #EAF7F1; color: var(--ok); }
.status-pill.delivered::before { background: var(--ok); }
.status-pill.failed { background: #FDF1EF; color: var(--danger); }
.status-pill.failed::before { background: var(--danger); }
.order-steps { list-style: none; padding: 0; margin: 24px 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.order-steps li { position: relative; padding-top: 11px; font-size: 11px; color: #A9AFBA; }
.order-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: #EDF0F3; }
.order-steps li.on { color: #444F61; font-weight: 550; }
.order-steps li.on::before { background: var(--accent); }
.order-steps li.wait::before { background: linear-gradient(90deg, var(--accent) 0 40%, #EDF0F3 40%); }
.order-meta { margin: 0 0 20px; padding: 4px 14px; border-radius: 13px; border: 1px solid var(--line-2); }
.order-meta div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 12px; }
.order-meta div + div { border-top: 1px solid #F1F3F6; }
.order-meta dt { color: var(--muted-2); flex: none; }
.order-meta dd { margin: 0; text-align: right; color: var(--text-2); word-break: break-all; }
.order-meta .mono { font-family: var(--mono); font-size: 11.5px; }
.secret-box { margin: 0 0 20px; border-radius: 13px; background: var(--accent-bg); border: 1px solid var(--accent-border); box-shadow: inset 0 0 0 .5px var(--accent-border); padding: 14px 15px; }
.secret-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; font-weight: 550; color: var(--accent); }
.secret-head button { height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid #D5DEF5; background: #fff; font-size: 11px; color: var(--accent); }
.secret-box pre { margin: 0; font: 500 13px/1.75 var(--mono); white-space: pre-wrap; word-break: break-all; color: var(--text); max-height: 320px; overflow: auto; }
.callout { margin: 0 0 20px; padding: 12px 14px; border-radius: 12px; background: #FAFBFC; border: 1px solid var(--line); font-size: 12px; line-height: 1.7; color: var(--hint); }
.callout b { color: var(--text-2); font-variant-numeric: tabular-nums; }
.callout a { color: var(--accent); }
.btn-row { display: grid; gap: 9px; }
.btn-row.two { grid-template-columns: 1fr 1fr; }

.recent { margin-top: 24px; padding-top: 20px; border-top: 1px solid #EDF0F3; }
.recent h2 { margin: 0 0 10px; font-size: 12px; font-weight: 550; color: var(--muted); }
.recent a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line-2); font-size: 12px; transition: border-color .2s; }
.recent a + a { margin-top: 8px; }
.recent a:hover { border-color: var(--accent-border); }
.recent a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-weight: 550; }
.recent a span:last-child { flex: none; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.stack-form { margin-top: 25px; }

.empty-state { text-align: center; padding: 40px 10px; color: var(--hint); font-size: 13px; }
.empty-state strong { display: block; margin-bottom: 6px; font-size: 16px; color: var(--text); }
.skeleton { height: 76px; border-radius: 13px; background: linear-gradient(90deg, #F2F4F7, #FAFBFC, #F2F4F7) 0 0 / 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton + .skeleton { margin-top: 9px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 弹窗 / 提示 / 页脚 ---------- */
.modal { width: min(440px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 26px; background: #fff; color: var(--text); box-shadow: 0 40px 100px -30px rgba(39, 54, 76, .45); }
.modal::backdrop { background: rgba(29, 31, 36, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-in { position: relative; padding: 30px 28px 26px; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #F2F3F5; color: #6E7582; display: grid; place-items: center; }
.modal-close svg { width: 15px; height: 15px; }
.modal h2 { margin: 0 40px 6px 0; font-size: 22px; font-weight: 600; letter-spacing: -.6px; }
.modal-sub { margin: 0 0 18px; font-size: 12px; color: var(--muted); }
.modal-sub:empty { display: none; }
.modal-body { margin-bottom: 20px; max-height: 55vh; overflow: auto; }
.modal-note { padding: 14px 15px; border-radius: 13px; background: #FDF3F1; border: 1px solid #F4D2CB; color: #A2392A; font-size: 12px; line-height: 1.75; }
.modal-note strong { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; }
.modal-note strong svg { width: 15px; height: 15px; }
.modal-note ul { margin: 0; padding-left: 1.1em; }
.modal-section { margin-top: 16px; }
.modal-section h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.modal-section p { margin: 0; font-size: 12px; line-height: 1.75; color: var(--hint); white-space: pre-line; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 11px;
  background: var(--button); color: #fff; font-size: 12px; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 65px; width: min(1200px, calc(100% - 112px)); margin: 0 auto; border-top: 1px solid #E8EBF0; font-size: 10px; letter-spacing: .1px; color: var(--faint); }
.site-footer a { display: flex; align-items: center; gap: 3px; transition: color .2s; }
.site-footer a:hover { color: var(--text); }
.site-footer svg { width: 12px; height: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  .site-header { flex-wrap: wrap; height: auto; width: calc(100% - 40px); padding: 24px 0 0; row-gap: 16px; }
  .wordmark { font-size: 19px; }
  .header-actions { gap: 14px; }
  .header-link span { display: none; }
  .header-link svg { width: 20px; height: 20px; }
  .product-switch { position: relative; left: auto; top: auto; transform: none; order: 3; width: 100%; max-width: none; }
  .product-switch button { flex: 1 0 auto; }
  .notice-bar { width: calc(100% - 40px); margin: 14px auto 0; }
  .product-layout { grid-template-columns: 1fr; gap: 0; width: 100%; padding: 0 20px 32px; }
  .product-stage { position: relative; top: auto; min-height: 0; padding: 26px 0 20px; }
  .stage-halo { top: -20px; width: 420px; max-width: 100%; height: 300px; }
  .logo-composition { width: 150px; height: 150px; margin: 0; }
  .mono-mark { width: 120px; height: 120px; border-radius: 32px; }
  .mono-mark span { font-size: 56px; }
  .stage-caption, .stage-pagination { display: none; }
  .checkout-card { padding: 26px 22px; }
  .product-heading h1 { font-size: 31px; letter-spacing: -1.2px; }
  .product-subtitle { font-size: 15px; }
  .site-footer { width: calc(100% - 40px); }
  .single-layout { padding: 20px 20px 40px; }
}
@media (max-width: 380px) {
  .checkout-card { padding: 22px 16px; }
  .variant-option { padding: 13px; gap: 10px; }
  .variant-price { font-size: 18px; }
  .payment-method-options { grid-template-columns: 1fr 1fr; }
  .payment-method-check { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
.tab-letter { display: grid; place-items: center; border-radius: 6px; background: linear-gradient(145deg, #fff, #EEF2FB); box-shadow: inset 0 0 0 1px rgba(39, 54, 76, .08); font-size: 11px; font-weight: 700; color: var(--accent); }
.payment-method-icon b { font-weight: 650; font-size: 17px; }

/* ---------- 会员中心 ---------- */
.auth-switch { margin-top: 25px; }
.seg-switch { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 100px; background: rgba(233, 235, 239, .7); border: 1px solid rgba(228, 230, 234, .46); }
.seg-indicator { position: absolute; top: 4px; left: 4px; height: calc(100% - 8px); border-radius: 100px; background: #fff; box-shadow: 0 2px 8px rgba(39, 54, 76, .04), 0 1px 2px rgba(0, 0, 0, .024); transition: transform .35s cubic-bezier(.3, .7, .2, 1), width .35s cubic-bezier(.3, .7, .2, 1); }
.seg-switch button { position: relative; z-index: 1; height: 34px; border: 0; background: none; border-radius: 100px; font-size: 12px; font-weight: 550; color: #737780; transition: color .2s; }
.seg-switch button[aria-selected="true"] { color: #24262B; }
.stack-form .email-field:last-of-type { margin-bottom: 22px; }
.input-action { flex: none; height: 30px; margin-right: -6px; padding: 0 11px; border-radius: 8px; border: 1px solid #E6E8ED; background: #fff; font-size: 11px; font-weight: 550; color: var(--accent); white-space: nowrap; box-shadow: 0 1px 2px rgba(29, 29, 31, .024); }
.input-action[disabled] { color: #A9AFBA; cursor: default; }
.input-action.icon-only { width: 30px; padding: 0; display: grid; place-items: center; color: #9AA1AE; border-color: transparent; background: transparent; box-shadow: none; }
.input-action.icon-only svg { width: 16px; height: 16px; color: inherit; }
.aux-line { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.aux-line .terms-link { min-height: 0; }
.auth-foot { margin: 18px 0 0; text-align: center; font-size: 11px; color: var(--hint); }
.auth-foot a { color: var(--accent); }
.stage-sub { position: relative; margin-top: 6px; font-size: 12px; color: var(--muted-2); }
.avatar-mark { border-radius: 50%; }
.member-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
.member-stats > div { padding: 13px 15px; border-radius: 13px; border: 1px solid var(--line-2); background: #FAFBFC; }
.member-stats small { display: block; font-size: 11px; color: var(--muted-2); }
.member-stats strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 550; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.member-stats strong span { font-size: 13px; margin-right: 2px; }
.member-orders { display: grid; gap: 9px; margin-top: 20px; max-height: 520px; overflow: auto; padding: 1px; }
.member-order { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: #fff; transition: border-color .2s, background .2s; }
.member-order:hover { border-color: var(--accent-border); background: var(--accent-bg); }
.mo-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #fff, #EEF2FB); box-shadow: inset 0 0 0 1px rgba(39, 54, 76, .07); }
.mo-icon img { width: 74%; height: 74%; object-fit: contain; }
.mo-icon .mo-svg { width: 62%; height: 62%; color: #1D1D1F; display: block; }
.mo-icon .mo-svg svg { width: 100%; height: 100%; display: block; }
.mo-icon span { font-size: 15px; font-weight: 700; background: linear-gradient(135deg, var(--purple), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.member-order .variant-description strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.mo-right b { font-size: 15px; font-weight: 550; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.mo-right b span { font-size: 11px; margin-right: 1px; }
.mo-right .status-pill { height: 20px; padding: 0 8px; font-size: 10px; }
.security-form .callout { margin-bottom: 20px; }
.logout { margin-top: 18px; color: var(--hint); }
.empty-state.small { padding: 34px 10px 10px; }

/* ---------- 收款面板（微信 / USDT） ---------- */
.pay-box { margin: 0 0 20px; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: #FAFBFC; }
.pay-box-head { display: flex; align-items: center; gap: 10px; }
.pay-box-head b { display: block; font-size: 14px; font-weight: 600; }
.pay-box-head small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted-2); }
.pay-qr { margin: 16px auto 4px; width: 216px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px -12px rgba(39, 54, 76, .25); }
.pay-qr img { display: block; width: 200px; height: 200px; }
.pay-qr.small { width: 176px; } .pay-qr.small img { width: 160px; height: 160px; }
.pay-field { position: relative; margin-top: 14px; padding: 11px 13px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.pay-field small { display: block; font-size: 10.5px; color: var(--muted-2); }
.pay-amount { margin-top: 4px; padding-right: 72px; font-size: 24px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; word-break: break-all; }
.pay-amount span { margin-left: 5px; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pay-address { margin-top: 4px; padding-right: 72px; font: 12px/1.6 var(--mono); color: var(--text-2); overflow-wrap: anywhere; user-select: all; }
.pay-copy { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid #D5DEF5; background: #fff; font-size: 11px; font-weight: 550; color: var(--accent); }
.pay-tip { margin: 10px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--hint); }
.pay-warn { margin: 12px 0 0; padding: 9px 11px; border-radius: 10px; background: #FFF8EC; border: 1px solid #F3E2C2; font-size: 11.5px; line-height: 1.7; color: #8A6116; }
