/* 注册开通：一列表单，顶部一条进度。公共样式在 /site.css。 */
[hidden]{display:none!important}
.flow{width:min(560px,calc(100% - 32px));margin:0 auto;padding:20px 0 40px}
.foot{margin-top:40px}

/* 阶段标题由脚本写入，这里只留给读屏软件；可见标题用每一步自己的 h2 */
.mast{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* 进度条 */
.progress{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin:8px 0 28px;font-size:12px;font-weight:400;color:var(--faint);text-align:center}
.progress li::before{content:"";display:block;height:4px;margin-bottom:8px;border-radius:99px;background:var(--surface-2);transition:background-color .2s}
.flow:has(#loading:not([hidden])) .progress,.flow:has(#offline:not([hidden])) .progress,
.flow:has(#dashboard:not([hidden])) .progress,.flow:has(#owner-self-section:not([hidden])) .progress,.flow:has(#wallet-section:not([hidden])) .progress,.flow:has(#wallet-back:not([hidden])) .progress{display:none}
.flow:has(#auth:not([hidden])) .progress li:nth-child(1),
.flow:has(#qq:not([hidden])) .progress li:nth-child(2),
.flow:has(#plans-section:not([hidden])) .progress li:nth-child(3),
.flow:has(#order-section:not([hidden])) .progress li:nth-child(4),
.flow:has(#qq-setup:not([hidden])) .progress li:nth-child(5){color:var(--ink);font-weight:500}
.flow:has(#auth:not([hidden])) .progress li:nth-child(1)::before,
.flow:has(#qq:not([hidden])) .progress li:nth-child(2)::before,
.flow:has(#plans-section:not([hidden])) .progress li:nth-child(3)::before,
.flow:has(#order-section:not([hidden])) .progress li:nth-child(4)::before,
.flow:has(#qq-setup:not([hidden])) .progress li:nth-child(5)::before{background:var(--ink)}
.flow:has(#qq:not([hidden])) .progress li:nth-child(-n+1)::before,
.flow:has(#plans-section:not([hidden])) .progress li:nth-child(-n+2)::before,
.flow:has(#order-section:not([hidden])) .progress li:nth-child(-n+3)::before,
.flow:has(#qq-setup:not([hidden])) .progress li:nth-child(-n+4)::before{background:#3a86dd}

/* 当前账号 */
.userbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:6px 6px 6px 16px;border-radius:999px;background:var(--surface);font-size:14px;color:var(--muted)}
.userbar b{color:var(--ink);margin-left:4px}

/* 提示条 */
#feedback:empty{display:none}
#feedback{margin-bottom:16px;padding:12px 16px;border-radius:14px;background:var(--ok-soft);color:var(--ok);font-weight:500;font-size:15px}
#feedback[data-error=true]{background:var(--bad-soft);color:var(--bad)}

/* 每一步 */
.sheet{animation:arrive .3s ease-out both;scroll-margin-top:76px}
.sheet.center{text-align:center;padding:48px 0}
.sheet h2,.panel h2{font-size:clamp(26px,5.500vw,34px);letter-spacing:-.03em;margin-bottom:10px;overflow-wrap:anywhere}
.sheet h3{font-size:17px;letter-spacing:0;overflow-wrap:anywhere}
.sheet p{color:var(--ink-2)}
.sheet p b{color:var(--ink)}
.sheet p+p{margin-top:8px}
.sheet small{display:block;margin-top:6px;font-size:13px;line-height:1.5;color:var(--muted)}
.sheet form{margin-top:18px}
.sheet label{display:block;margin:18px 0 8px;font-size:14px;font-weight:500}
.sheet form>label:first-child{margin-top:0}
.sheet input:not([type=radio]):not([type=checkbox]),#restriction-dialog input{display:block;width:100%;min-width:0;min-height:52px;padding:12px 16px;border:1.500px solid transparent;border-radius:14px;background:var(--surface);color:var(--ink);font:500 16px/1.4 var(--font);transition:border-color .15s,background-color .15s}
.sheet input::placeholder{color:var(--faint)}
.sheet input:not([type=radio]):not([type=checkbox]):hover{border-color:#d3d9e3}
.sheet input:not([type=radio]):not([type=checkbox]):focus{outline:0;border-color:var(--ink);background:#fff}
.sheet input[readonly]{font-family:var(--mono);font-size:14px}

/* 按钮 */
.sheet button,.userbar button,#restriction-dialog button,#pay-dialog button{min-height:44px;padding:9px 18px;border:0;border-radius:999px;background:var(--surface-2);color:var(--ink);font:500 14px/1.4 var(--font);cursor:pointer;transition:background-color .15s,transform .15s}
.sheet button:hover:not(:disabled),.userbar button:hover{background:#dfe5ee}
.sheet button:active:not(:disabled){transform:scale(.98)}
.sheet button:disabled{opacity:.45;cursor:not-allowed}
.sheet button.action,#restriction-dialog button.action{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;margin-top:24px;background:var(--ink);color:#fff;font-size:16px}
.sheet button.action:hover:not(:disabled){background:#1b2c52}
.userbar button{min-height:36px;padding:6px 14px;background:#fff;font-size:13px}
.btnrow{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.ghost-link{display:inline-flex;align-items:center;min-height:44px;padding:9px 18px;border-radius:999px;background:var(--ink);color:#fff;font-size:14px;font-weight:500}
.ghost-link:hover{background:#1b2c52}

/* 注册 / 登录切换 */
.switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:18px 0 22px;border-radius:999px;background:var(--surface)}
.sheet .switch button{min-height:40px;background:transparent;color:var(--muted)}
.sheet .switch button:hover:not(:disabled){background:transparent;color:var(--ink)}
.sheet .switch [aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 1px 4px #0b173022}

/* 套餐 */
fieldset{border:0;padding:0;margin:20px 0 0;min-width:0}
legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.plans{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sheet .plan{position:relative;display:block;margin:0;padding:20px;border:2px solid transparent;border-radius:22px;background:var(--surface);cursor:pointer;transition:border-color .15s,background-color .15s}
.plan input{position:absolute;right:16px;top:18px;width:22px;height:22px;margin:0;accent-color:var(--ink)}
.plan:has(input:checked){border-color:var(--ink);background:#fff}
.plan:has(input:focus-visible){outline:3px solid var(--blue);outline-offset:3px}
.plan span{display:block}
.plan strong{display:block;font-size:20px;font-weight:500;padding-right:30px}
.plan span>small{margin-top:2px}
.plan b{display:block;margin-top:18px;font-size:32px;line-height:1.1;font-weight:500;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.plan b small{display:inline;font-size:13px;font-weight:500;letter-spacing:0}
.lookup{margin-top:16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.lookup summary{cursor:pointer;padding:14px 0;font-size:15px;font-weight:500;color:var(--blue)}
.lookup p{font-size:14px;padding-bottom:12px}
.risk{margin-top:16px;padding:18px;border-radius:18px;background:var(--bad-soft);color:var(--bad)}
.risk>b{font-size:17px}
.sheet .risk p{color:var(--bad);font-size:14px;margin-top:4px}
.sheet .risk label{display:flex;align-items:center;gap:10px;margin:12px 0 0;font-size:15px;cursor:pointer}
.risk input{width:22px;height:22px;flex:none;accent-color:var(--bad)}
.permit{margin-top:16px;font-size:13px;color:var(--muted)!important}

/* 订单 */
.row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.row .ghost{flex:none;margin-top:4px}
#club-note{font-size:14px;color:var(--muted)}
.manual-pay{display:grid;gap:16px;margin-top:18px;padding:20px;border-radius:22px;background:var(--warn-soft)}
.manual-pay strong{display:block;font-size:17px;line-height:1.5;color:var(--warn)}
.manual-pay b{color:var(--ink)}
.sheet .manual-pay input:not([type=radio]):not([type=checkbox]){background:#fff}
.manual-pay img{display:block;width:min(200px,100%);margin:auto}
.sheet .manual-pay .pay-zoom{display:block;margin:10px auto 0;padding:8px;border-radius:16px;background:#fff}
.pay-zoom span{display:block;margin-top:4px;font-size:13px}
.selected{margin-top:18px;padding:20px;border-radius:22px;background:var(--surface)}
.sheet .selected input:not([type=radio]):not([type=checkbox]){background:#fff}
.selected>label{margin-top:12px}
.copyrow{display:flex;align-items:center;gap:8px}
.copyrow input{flex:1}
.copyrow .ghost{flex:none;min-height:52px;border-radius:14px}
.selected .ghost,.manual-pay .ghost{background:#fff}
#order-help{margin-top:12px;font-size:14px}
#redeem-form{margin-top:16px;padding-top:4px;border-top:1px solid var(--line)}
#redeem-form label{margin-top:16px}

/* 扫码 */
.scan-sheet{text-align:center}
.qr-frame{width:min(248px,100%);aspect-ratio:1;margin:22px auto;padding:16px;border-radius:24px;background:#fff;box-shadow:0 0 0 1px var(--line),0 12px 30px -16px #0b173040}
.qr-frame img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
#scan-deadline:empty{display:none}
#scan-deadline,.scan-sheet .quiet{font-size:13px;color:var(--muted)}
.scan-sheet .ghost{margin-top:16px}
.scan-sheet .quiet{margin-top:14px}

/* 仪表盘 */
.panel{margin-top:14px;padding:22px;border-radius:22px;background:var(--surface)}
.panel h2{font-size:22px;margin-bottom:6px}
.panel .ghost{background:#fff}
.summary{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.online-badge{flex:none;display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;background:var(--ok-soft);color:var(--ok);font-size:13px;font-weight:500;white-space:nowrap}
.online-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.sheet .wallet-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:18px 22px;border-radius:22px;background:var(--warn-soft);color:var(--warn);text-align:left;font-weight:500}
.sheet .wallet-banner:hover:not(:disabled){background:#ffecc2}
.wallet-banner>span>*{display:block}
.wallet-banner small{margin:0;font-weight:500;color:inherit}
.wallet-banner strong{font-size:17px;font-weight:500}
.wallet-banner b{white-space:nowrap}
.back-link{display:block;margin:20px auto 0;padding:10px 0;border:0;background:none;color:var(--blue);font:500 15px var(--font);cursor:pointer}
.history-order{padding:20px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.history-order:first-child{margin-top:18px}
.history-order h3{font-size:16px;line-height:1.6}
.history-order label{margin-top:12px}
.history-order input{font-family:var(--mono);font-size:13px;min-width:0;width:100%}
.history-order .quiet,#setup-manager-link small{display:block;margin-top:10px;font-size:13px;color:var(--muted)}
.history-order .ghost{margin-top:12px}

/* 弹窗 */
dialog{border:0;color:var(--ink)}
dialog::backdrop{background:#0b1730b3}
#restriction-dialog,#renew-dialog{width:min(420px,calc(100% - 32px));padding:24px;border-radius:24px;box-shadow:0 20px 70px #0b173059}
#restriction-dialog h2,#renew-dialog h2{font-size:22px;margin-bottom:8px}
#restriction-dialog p,#renew-dialog p{color:var(--ink-2);overflow-wrap:anywhere}
.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
.sheet .dialog-actions button{width:100%;min-height:48px;margin:0;font-size:15px}
.panel .renew{margin-top:14px}
#restriction-dialog label{display:block;margin:16px 0 8px;font-size:14px;font-weight:500}
#restriction-dialog small{display:block;margin-top:8px;font-size:13px;color:var(--muted)}
#restriction-copy-status:empty{display:none}
#pay-dialog{max-width:min(94vw,740px);max-height:94dvh;overflow:auto;padding:14px;border-radius:20px}
#pay-dialog img{display:block;max-width:100%;max-height:76dvh;margin:12px auto 0;object-fit:contain}

@media(max-width:480px){
  .flow{padding-top:12px}
  .progress{margin-bottom:22px;font-size:11px}
  .plans{grid-template-columns:1fr}
  .plan b{margin-top:10px}
  .copyrow{flex-wrap:wrap}
  .copyrow .ghost{width:100%;min-height:44px;border-radius:999px}
  .row{flex-wrap:wrap}
  .summary{flex-direction:column-reverse;gap:10px}
}
@media(prefers-reduced-motion:reduce){.sheet{animation:none}}
