/* ---------- 交易页通用 ---------- */
body[data-section="flow"] { background: var(--fill-1); }
/* 右侧悬浮工具条在 1200 以下会压住卡片右沿，交易页不出（手机底部联系条本来就不出） */
body[data-section="flow"] .side-tools { display: none; }
.fl-wrap { max-width: 1200px; margin: 0 auto; }
.fl-head { padding: 20px var(--pad-x) 0; border-bottom: 1px solid var(--line); background: var(--white); }
.fl-head .crumb { margin-bottom: 12px; }
.fl-head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 20px; }
.fl-head h1 { font-size: 24px; font-weight: 600; line-height: 34px; color: var(--title); }
.fl-steps { display: flex; align-items: center; gap: 8px; }
.fl-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.fl-steps li + li::before { content: ""; width: 48px; height: 1px; margin-right: 8px; background: var(--line-strong); }
.fl-steps b { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1.5px solid var(--line-strong); border-radius: 50%; font-size: 12px; font-weight: 600; }
.fl-steps .is-on { color: var(--title); font-weight: 500; }
.fl-steps .is-on b { border-color: var(--brand-500); background: var(--brand-500); color: var(--white); }
.fl-steps .is-done { color: var(--brand-500); }
.fl-steps .is-done b { border-color: var(--brand-500); color: var(--brand-500); }
.fl-steps .is-done + li::before, .fl-steps .is-on + li::before { background: var(--line-strong); }
.fl-steps .is-done + .is-done::before, .fl-steps .is-done + .is-on::before { background: var(--brand-500); }
.fl-body { margin: 0 var(--wrap-x); padding: 24px 0 128px; }
.fl-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.fl-card { padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.fl-card-title { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); font-size: 16px; font-weight: 600; line-height: 24px; color: var(--title); }
.fl-card-title--row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.fl-card-title--row small { font-size: 14px; font-weight: 400; color: var(--sub); }
.fl-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 16px; padding: 12px 0; }
.fl-label { padding-top: 6px; font-size: 14px; line-height: 22px; color: var(--sub); }
.fl-val { padding-top: 6px; font-size: 14px; line-height: 22px; color: var(--title); }
.fl-help { margin-top: 8px; font-size: 12px; line-height: 18px; color: var(--muted); }
.fl-help a, .fl-tips a { margin-left: 4px; color: var(--brand-500); }
.fl-empty { padding: 56px 28px; text-align: center; }
.fl-empty h2 { font-size: 20px; font-weight: 600; color: var(--title); }
.fl-empty p { margin: 8px 0 20px; font-size: 14px; color: var(--sub); }
.fl-body .btn { border-radius: var(--r-xs); }

.fl-prod { display: flex; align-items: center; gap: 16px; }
.fl-prod > div { flex: 1; min-width: 0; }
.fl-prod h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; line-height: 28px; color: var(--title); }
.fl-prod p { margin-top: 4px; font-size: 14px; color: var(--sub); }

.fl-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.fl-plan { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); text-align: left; transition: border-color var(--dur-1), box-shadow var(--dur-1), background var(--dur-1); }
.fl-plan:hover { border-color: var(--brand-300); }
.fl-plan.is-on { border-color: var(--brand-500); background: var(--white); box-shadow: inset 0 0 0 1px var(--brand-500), var(--ring); }
.fl-plan:disabled { opacity: .55; cursor: not-allowed; }
.fl-plan:disabled:hover { border-color: var(--line-strong); }
.fl-plan b { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; line-height: 24px; color: var(--title); }
.fl-plan i.tag { height: 18px; padding: 0 5px; font-style: normal; }
.fl-plan small { font-size: 12px; line-height: 18px; color: var(--sub); }
.fl-plan span { margin-top: 4px; font-size: 18px; font-weight: 600; color: var(--price); }
.fl-plan em { margin-left: 2px; font-size: 12px; font-style: normal; color: var(--muted); }
.fl-qty { display: inline-flex; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--r-xs); }
.fl-qty button { width: 36px; font-size: 18px; color: var(--title); transition: background var(--dur-1); }
.fl-qty button:hover:not(:disabled) { background: var(--fill-2); }
.fl-qty button:disabled { color: var(--placeholder); cursor: not-allowed; }
.fl-qty input { width: 64px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-family: var(--font-num); font-size: 14px; -moz-appearance: textfield; }
.fl-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.fl-qty input:disabled { background: var(--fill-1); color: var(--muted); }
.fl-feats { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.fl-feats li { padding: 2px 10px; border-radius: var(--r-xs); background: var(--fill-2); font-size: 14px; line-height: 22px; color: var(--text); }
/* 购买页的使用文档卡片（M54，详情页同一套类名，样式在 product.css，交易页不加载它） */
.fl-docs { margin-top: 20px; }
.asset-list[hidden] + .fl-docs { margin-top: 0; }
.fl-docs h3 { margin-bottom: 12px; font-size: 16px; font-weight: 600; line-height: 24px; color: var(--title); }
.fl-docs .pdp-rels { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fl-docs .pdp-rel { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); transition: border-color var(--dur-1); }
.fl-docs .pdp-rel:hover { border-color: var(--brand-300); }
.fl-docs .pdp-rel-txt { flex: 1; min-width: 0; }
.fl-docs .pdp-rel-txt b { display: block; font-size: 14px; font-weight: 600; line-height: 22px; color: var(--title); }
.fl-docs .pdp-rel-txt small { display: block; margin-top: 2px; font-size: 12px; line-height: 18px; color: var(--sub); }
.fl-tips li { position: relative; margin-top: 8px; padding-left: 16px; font-size: 14px; line-height: 22px; color: var(--text); }
.fl-tips li:first-child { margin-top: 0; }
.fl-tips li::before { content: ""; position: absolute; top: 9px; left: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-400); }
.fl-tips li.is-warn { color: var(--accent-600); }
.fl-tips li.is-warn::before { background: var(--accent); }

/* 底部费用栏 */
.fl-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: 0 var(--pad-x); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -8px 24px rgba(15, 35, 80, .06); }
.fl-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.fl-bar-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; color: var(--sub); }
.fl-bar-sum b { font-size: 28px; font-weight: 700; line-height: 36px; color: var(--price); }
.fl-bar-sum small { font-size: 12px; color: var(--muted); }
.fl-bar-acts { display: flex; gap: 12px; }
.fl-bar-acts .btn { min-width: 140px; border-radius: var(--r-xs); }

/* 确认订单 */
.fl-buyer { display: flex; align-items: center; gap: 16px; }
.fl-buyer-ico { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--fill-2); }
.fl-buyer > div { flex: 1; }
.fl-buyer b { font-size: 16px; font-weight: 600; color: var(--title); }
.fl-buyer p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.fl-tag-ok { background: var(--green-50); color: var(--green-600); }
.fl-buyer-acc { font-size: 12px; color: var(--muted); }
.fl-buyer > small { font-size: 12px; color: var(--muted); }
.fl-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-xs); }
.fl-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fl-table th { padding: 10px 16px; background: var(--fill-1); font-weight: 500; color: var(--sub); text-align: left; white-space: nowrap; }
.fl-table td { padding: 14px 16px; border-top: 1px solid var(--line-soft); color: var(--title); vertical-align: middle; }
.fl-table td small { font-size: 12px; color: var(--muted); }
.fl-line-prod { display: flex; align-items: center; gap: 10px; }
.fl-line-prod b { display: block; font-weight: 600; }
.fl-line-prod small { display: block; }
.fl-coupons { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.fl-coupon { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 168px; padding: 10px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--white); text-align: left; transition: border-color var(--dur-1), background var(--dur-1); }
.fl-coupon b { font-size: 16px; font-weight: 600; color: var(--price); }
.fl-coupon:first-child b { color: var(--title); }
.fl-coupon span { font-size: 14px; color: var(--title); }
.fl-coupon small { font-size: 12px; color: var(--muted); }
.fl-coupon.is-on { border-style: solid; border-color: var(--brand-500); background: var(--white); box-shadow: var(--ring); }
.fl-coupon:disabled { opacity: .55; cursor: not-allowed; }
.fl-agree { display: flex; align-items: flex-start; gap: 8px; padding: 4px 4px 0; font-size: 14px; line-height: 22px; color: var(--sub); }
.fl-agree input { margin-top: 4px; accent-color: var(--brand-500); }
.fl-agree a { color: var(--brand-500); }

/* 支付 */
.fl-order-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fl-order-row small { display: block; font-size: 12px; color: var(--muted); }
.fl-order-row b { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--title); overflow-wrap: anywhere; }
.fl-order-row .fl-price { font-size: 24px; color: var(--price); }
.fl-order .fl-help + .fl-help { margin-top: 4px; }
.fl-timer { font-weight: 600; color: var(--accent-600); }
.fl-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fl-method { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; transition: border-color var(--dur-1), background var(--dur-1); }
.fl-method input { position: absolute; opacity: 0; pointer-events: none; }
.fl-method.is-on { border-color: var(--brand-500); background: var(--white); box-shadow: inset 0 0 0 1px var(--brand-500), var(--ring); }
.fl-method.is-disabled { opacity: .55; cursor: not-allowed; }
.fl-method-ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--white); }
.fl-method-txt b { display: block; font-size: 16px; font-weight: 600; color: var(--title); }
.fl-method-txt small { display: block; margin-top: 2px; font-size: 12px; color: var(--sub); }
.fl-pay-panel { margin-top: 16px; }
.fl-account { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--fill-1); }
.fl-account p { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 22px; }
.fl-account span { color: var(--sub); }
.fl-account b { font-weight: 500; color: var(--title); overflow-wrap: anywhere; }
.fl-account a, .fl-copy { color: var(--brand-500); }
.fl-copy { margin-left: 12px; font-size: 12px; font-weight: 400; }
.fl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 16px; }
.fl-field { display: flex; flex-direction: column; gap: 6px; }
.fl-field.is-wide { grid-column: 1 / -1; }
.fl-field > span { font-size: 14px; color: var(--text); }
.fl-field i { margin-left: 2px; color: var(--accent); font-style: normal; }
.fl-field input { height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-xs); font-size: 14px; }
.fl-field input[type="file"] { height: auto; padding: 8px 12px; }
.fl-field input:focus { border-color: var(--brand-400); box-shadow: var(--ring); outline: none; }
.fl-field small { font-size: 12px; color: var(--muted); }
.fl-error { margin-top: 16px; padding: 10px 14px; border-radius: var(--r-xs); background: var(--accent-50); font-size: 14px; color: var(--accent-600); }

/* 订单结果 */
.fl-result { display: flex; align-items: flex-start; gap: 24px; padding: 36px 32px; }
.fl-result-ico { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; }
.fl-result-ico.is-ok { background: var(--green-600); }
.fl-result-ico.is-ok::after { content: ""; position: absolute; top: 15px; left: 21px; width: 11px; height: 20px; border-right: 3px solid var(--white); border-bottom: 3px solid var(--white); transform: rotate(45deg); }
.fl-result-ico.is-wait { background: var(--brand-500); }
.fl-result-ico.is-wait::before { content: ""; position: absolute; inset: 14px; border: 3px solid var(--white); border-radius: 50%; }
.fl-result-ico.is-wait::after { content: ""; position: absolute; top: 20px; left: 26px; width: 7px; height: 9px; border-left: 3px solid var(--white); border-bottom: 3px solid var(--white); }
.fl-result-ico.is-off { background: var(--placeholder); }
.fl-result-ico.is-off::after { content: ""; position: absolute; top: 26px; left: 17px; width: 22px; height: 3px; background: var(--white); }
.fl-result .fl-result-tag { margin: 0 0 8px; }
.fl-result h2 { font-size: 24px; font-weight: 600; line-height: 32px; color: var(--title); }
.fl-result p { max-width: 720px; margin-top: 8px; font-size: 14px; line-height: 24px; color: var(--sub); }
.fl-result-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.fl-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.fl-info div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 22px; }
.fl-info dt { color: var(--sub); }
.fl-info dd { min-width: 0; color: var(--title); overflow-wrap: anywhere; }
.fl-timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.fl-timeline li { position: relative; padding-top: 30px; }
.fl-timeline li::before { content: ""; position: absolute; top: 4px; left: 0; z-index: 1; width: 14px; height: 14px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--white); }
.fl-timeline li::after { content: ""; position: absolute; top: 11px; left: 20px; right: -12px; height: 2px; background: var(--line); }
.fl-timeline li:last-child::after { display: none; }
.fl-timeline li.is-done::before { border-color: var(--green-600); background: var(--green-600); }
.fl-timeline li.is-done::after { background: var(--green-600); }
.fl-timeline li.is-now::before { border-color: var(--brand-500); background: var(--white); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
.fl-timeline b { display: block; font-size: 16px; font-weight: 600; line-height: 24px; color: var(--title); }
.fl-timeline .is-now b { color: var(--brand-600); }
.fl-timeline li:not(.is-done):not(.is-now) b { color: var(--muted); }
.fl-timeline small { display: block; margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--sub); overflow-wrap: anywhere; }
.fl-note { display: flex; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--fill-1); font-size: 14px; line-height: 24px; }
.fl-note b { flex: none; color: var(--brand-600); }
.fl-notes { display: grid; gap: 8px; }
.fl-notes .fl-note { background: var(--white); color: var(--title); }
.fl-notes .fl-note.is-warn { border-color: var(--accent-50); background: var(--accent-50); color: var(--accent-600); }

/* ---------- 登录 ---------- */
.lg-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); background: var(--white); }
@media (min-width: 901px) {
  .lg-page { min-height: calc(100vh - var(--header-h) - var(--topbar-h)); }
}
.lg-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 64px 0 0 clamp(48px, 8vw, 140px); background: linear-gradient(180deg, var(--white) 0%, var(--fill-1) 100%); }
.lg-brand-copy { position: relative; z-index: 1; max-width: 480px; }
.lg-brand-title { font-size: 32px; font-weight: 600; line-height: 44px; color: var(--title); }
.lg-brand ul { margin-top: 28px; }
.lg-brand li { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 16px; line-height: 24px; color: var(--text); }
.lg-brand img { align-self: flex-end; width: min(420px, 80%); margin-top: 24px; -webkit-mask-image: radial-gradient(closest-side, var(--black) 70%, transparent 100%); mask-image: radial-gradient(closest-side, var(--black) 70%, transparent 100%); }
.lg-panel { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 48px 24px; }
.lg-card { width: 400px; max-width: 100%; }
.lg-card h1 { font-size: 24px; font-weight: 600; line-height: 34px; color: var(--title); }
.lg-sub { margin-top: 6px; font-size: 14px; color: var(--sub); }
.lg-tabs { display: flex; gap: 28px; margin: 28px 0 20px; border-bottom: 1px solid var(--line); }
.lg-tab { height: 44px; font-size: 16px; color: var(--sub); transition: color var(--dur-1); }
.lg-tab:hover { color: var(--brand-500); }
.lg-tab.is-active { color: var(--title); font-weight: 600; }
.lg-form { display: grid; gap: 14px; }
.lg-input { display: flex; align-items: center; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-xs); background: var(--white); transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.lg-input:focus-within { border-color: var(--brand-400); box-shadow: var(--ring); }
.lg-input input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; background: none; font-size: 16px; }
.lg-prefix { padding: 0 12px; border-right: 1px solid var(--line); font-size: 14px; color: var(--sub); }
.lg-code { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }
.lg-send { height: 44px; border: 1px solid rgba(var(--brand-rgb), .32); border-radius: var(--r-xs); background: var(--white); font-size: 14px; color: var(--brand-500); transition: background var(--dur-1), border-color var(--dur-1); }
.lg-send:hover:not(:disabled) { border-color: var(--brand-500); background: var(--fill-1); }
.lg-send:disabled { border-color: var(--line); background: var(--fill-1); color: var(--muted); cursor: not-allowed; }
.lg-submit { width: 100%; margin-top: 6px; border-radius: var(--r-xs); }
.lg-wechat { justify-items: center; padding: 8px 0; text-align: center; }
.lg-qr { width: 176px; height: 176px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.lg-qr svg { display: block; width: 100%; height: 100%; fill: var(--title); }
.lg-wechat p { font-size: 16px; color: var(--title); }
.lg-wechat small { font-size: 12px; color: var(--muted); }
.lg-wechat small button { color: var(--brand-500); font-size: 12px; }
.lg-hint { font-size: 14px; line-height: 22px; color: var(--sub); }
.lg-agree { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: 14px; line-height: 22px; color: var(--sub); }
.lg-agree + .lg-agree { margin-top: 8px; }
.lg-agree input { margin-top: 4px; accent-color: var(--brand-500); }
.lg-agree a { color: var(--brand-500); }
.lg-error { margin-top: 12px; padding: 8px 12px; border-radius: var(--r-xs); background: var(--accent-50); font-size: 14px; color: var(--accent-600); }
.lg-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 14px; line-height: 22px; color: var(--muted); }
.lg-foot a { color: var(--brand-500); }

@media (max-width: 900px) {
  .fl-wrap { margin: 0; }
  .fl-head { padding: 16px var(--pad-x) 0; }
  .fl-head-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fl-steps li + li::before { width: 16px; margin-right: 4px; }
  .fl-steps span { display: none; }
  .fl-steps .is-on span { display: inline; }
  .fl-body { padding: 16px var(--pad-x) 160px; }
  .fl-card { padding: 16px; }
  .fl-row { grid-template-columns: 1fr; gap: 8px; }
  .fl-label { padding-top: 0; }
  .fl-prod { flex-wrap: wrap; }
  .fl-bar-in { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
  .fl-bar-sum b { font-size: 24px; line-height: 32px; }
  .fl-bar-acts .btn { flex: 1; min-width: 0; height: 44px; padding: 0 12px; }
  .fl-buyer { flex-wrap: wrap; }
  .fl-order-row, .fl-methods, .fl-grid, .fl-info { grid-template-columns: 1fr; gap: 12px; }
  .fl-account p { grid-template-columns: 1fr; gap: 2px; }
  .fl-result { flex-direction: column; gap: 16px; padding: 24px 16px; }
  .fl-timeline { grid-template-columns: 1fr; gap: 12px; }
  .fl-timeline li { padding: 0 0 0 28px; }
  .fl-timeline li::after { top: 20px; left: 6px; right: auto; bottom: -14px; width: 2px; height: auto; }
  .lg-page { grid-template-columns: minmax(0, 1fr); }
  .lg-brand { display: none; }
  .lg-panel { align-items: flex-start; padding: 32px var(--pad-x) 48px; }
}
