/* 能猫智匠云 · 官网账户模块样式（套餐价格 / 支付 / 我的订阅与订单 / 邀请码提示） */

/* ---------- 套餐价格（复用 .dl 卡片） ---------- */
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.price-card { padding: 22px 8px 22px; }
.price-head { margin-bottom: 14px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; color: var(--tx-l); }
.price-amount strong { font-size: 34px; font-weight: 700; letter-spacing: -.02em; color: var(--blue-700); font-variant-numeric: tabular-nums; }
.price-amount span { font-size: 13px; color: var(--mu-l); }
.price-checks { margin: 16px 0 22px; }
.price-checks li { border-top-color: var(--line-l); font-size: 13.5px; padding: 10px 0; color: var(--tx-l); }
.price-card .dl-act { margin-top: auto; }
.chan-sub-btn { margin-top: 10px; }

/* ---------- 注册：邀请码预览 ---------- */
.invite-hint { margin: -4px 0 10px; font-size: 13px; line-height: 1.5; padding: 8px 12px; border-radius: 6px; background: #eef2fa; color: var(--mu-l); }
.invite-hint.is-ok { background: rgba(34, 196, 143, .12); color: #11795a; }
.invite-hint.is-bad { background: rgba(255, 106, 43, .1); color: #b4471a; }
.invite-hint.is-hidden { display: none; }

/* ---------- 登录：忘记密码 & 安全恢复码 ---------- */
.auth-forgot-row { display: flex; justify-content: flex-end; margin: -4px 0 6px; font-size: 12.5px; }
.recovery-card { text-align: center; padding: 6px 0 4px; }
.recovery-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(34, 196, 143, .14); color: #11795a; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.recovery-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--tx-l); }
.recovery-desc { font-size: 13px; line-height: 1.65; margin: 0 0 16px; }
.recovery-code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 18px; border-radius: 8px; background: #f4f7fd; border: 1px dashed var(--blue); }
.recovery-code-box code { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 16px; font-weight: 700; letter-spacing: .06em; color: var(--blue-700); word-break: break-all; }

/* ---------- 协议正文与重签弹窗 ---------- */
.policy-box .h4 { margin: 0 48px 4px 0; }
.policy-meta { font-size: 12.5px; margin-bottom: 12px; }
.policy-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.policy-tabs.is-hidden { display: none; }
.policy-tab { padding: 6px 12px; border-radius: 6px; font-size: 13px; border: 1px solid var(--line-l); color: var(--mu-l); background: transparent; cursor: pointer; }
.policy-tab.is-active { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.policy-content { max-height: min(52vh, 420px); overflow: auto; padding: 14px 16px; border-radius: 8px; background: #f7f9fe; border: 1px solid var(--line-l); font-size: 13.5px; line-height: 1.75; color: var(--tx-l); }
.policy-content h2, .policy-content h3, .policy-content h4 { margin: 14px 0 6px; font-size: 15px; font-weight: 700; color: var(--tx-l); }
.policy-content h2:first-child, .policy-content h3:first-child, .policy-content p:first-child { margin-top: 0; }
.policy-content p { margin: 8px 0; }
.policy-content ul { margin: 8px 0; padding-left: 20px; }
.policy-content li { margin: 4px 0; }
.policy-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.policy-actions .btn-text-muted { background: none; border: none; color: var(--mu-l); font-size: 13px; padding: 6px; cursor: pointer; }
.policy-actions .btn-text-muted:hover { color: var(--tx-l); }

/* ---------- 支付弹窗 ---------- */
.pay-box .h4, .account-box .h4 { margin: 0 48px 6px 0; }
.pay-summary { margin: 18px 0; padding: 14px 16px; border-radius: 8px; background: #f4f7fd; border: 1px solid var(--line-l); }
.pay-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pay-line + .pay-line { margin-top: 6px; font-size: 12.5px; }
.pay-line strong { font-size: 20px; color: var(--blue-700); font-variant-numeric: tabular-nums; }
.pay-years, .pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 12px; }
.pay-method { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 6px; border: 1px solid var(--line-l); cursor: pointer; font-size: 14px; transition: border-color .2s, background .2s; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method:has(input:checked) { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.pay-method:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.pay-qr { display: block; width: 220px; height: 220px; margin: 8px auto 12px; image-rendering: pixelated; border-radius: 8px; border: 1px solid var(--line-l); }
.pay-tip { font-size: 13px; line-height: 1.6; margin-top: 10px; text-align: center; }
.pay-ok { font-size: 18px; font-weight: 600; color: #11795a; text-align: center; margin: 18px 0 6px; }
.pay-step .btn + .btn { margin-top: 10px; }
.pay-step.is-hidden, .pay-qr.is-hidden, #payLink.is-hidden { display: none; }

.pay-coupon { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pay-coupon input, .account-redeem input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-l); font: inherit; font-size: 14px; text-transform: uppercase; }
.pay-coupon input:focus-visible, .account-redeem input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.pay-coupon-hint { flex: none; font-size: 12.5px; color: var(--mu-l); max-width: 48%; }
.pay-coupon-hint.is-ok { color: #11795a; }
.pay-coupon-hint.is-bad { color: #b4471a; }
.account-redeem { display: flex; gap: 8px; margin-top: 14px; }

/* ---------- 帮助中心（反馈弹窗内） ---------- */
.help-box { margin: 0 0 16px; padding: 12px; border-radius: 8px; background: #f4f7fd; border: 1px solid var(--line-l); }
.help-box input { width: 100%; height: 40px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-l); font: inherit; font-size: 14px; background: #fff; }
.help-box input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.help-list { margin: 8px 0 0; padding: 0; list-style: none; max-height: 220px; overflow: auto; }
.help-list:empty { display: none; }
.help-list li { border-top: 1px dashed var(--line-l); }
.help-list summary { cursor: pointer; padding: 8px 2px; font-size: 13.5px; color: var(--tx-l); }
.help-body { padding: 0 2px 10px; font-size: 13px; line-height: 1.7; color: var(--mu-l); }
.help-empty { padding: 8px 2px; font-size: 13px; color: var(--mu-l); }

/* ---------- 我的订阅与订单 ---------- */
.account-sub { margin-bottom: 14px; font-size: 13px; }
.account-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-l); margin-bottom: 12px; }
.account-tab { padding: 10px 14px; font-size: 14px; color: var(--mu-l); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-tab.is-active { color: var(--blue-700); border-bottom-color: var(--blue); font-weight: 600; }
.account-panel.is-hidden { display: none; }
.account-list { display: grid; gap: 2px; max-height: min(52vh, 440px); overflow: auto; }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; border-bottom: 1px dashed var(--line-l); }
.account-row p { margin-top: 4px; font-size: 12.5px; }
.account-row .pill { height: 20px; font-size: 11px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.account-hint { color: #b4471a; }
.account-amount { display: grid; justify-items: end; gap: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-amount .muted { font-size: 12px; }
.account-empty { padding: 18px 2px; font-size: 13.5px; }
.account-note { margin-top: 14px; font-size: 12.5px; line-height: 1.6; }

/* ---------- 运营横幅（底部浮条） ---------- */
.site-banner { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: min(720px, calc(100vw - 32px)); padding: 10px 10px 10px 16px; border-radius: 10px; background: var(--navy); color: var(--tx-d); box-shadow: 0 20px 50px -20px rgba(2,8,26,.6); font-size: 14px; }
.site-banner-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-banner-link { flex: none; padding: 6px 12px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 13px; text-decoration: none; }
.site-banner-x { flex: none; width: 28px; height: 28px; border-radius: 6px; color: var(--tx-d); font-size: 18px; line-height: 1; }
.site-banner-x:hover { background: rgba(255,255,255,.1); }

@media (max-width: 900px) {
  .site-banner { left: 16px; right: 16px; bottom: 12px; max-width: none; font-size: 13px; }
  .price-amount strong { font-size: 28px; }
  .account-row { align-items: flex-start; }
}
