/* ============================================================
   会员系统 UI 样式
   风格：欧美科技风、暗色、Indigo + Cyan
   ============================================================ */

/* ---- Auth 页面布局 ---- */
.member-auth-section {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(11,127,155,.15) 0%, transparent 60%);
}

.auth-container {
    width: 100%;
    max-width: 460px;
}

/* 品牌 */
.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}
.auth-logo {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
}
.auth-logo .logo-one { color: var(--oa-brand); }
.auth-logo .logo-cms { color: var(--oa-brand-2); }
.auth-logo .logo-dot { color: rgba(171,178,191,.65); margin: 0 8px; font-weight: 400; }
.auth-tagline {
    color: rgba(171,178,191,.5);
    font-size: .8rem;
    margin: 4px 0 0;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* 卡片 */
.auth-card {
    background: #1a1d2e;
    border: 1px solid rgba(11,127,155,.2);
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 24px 80px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
}

.auth-header { margin-bottom: 28px; }
.auth-title  { color: #e2e8f0; font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; }
.auth-subtitle { color: #64748b; font-size: .875rem; margin: 0; }

/* Auth 图标 */
.auth-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

/* 表单组 */
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
    color: #94a3b8;
    font-size: .8rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.form-label-link { color: var(--oa-brand); font-size: .8rem; text-decoration: none; }
.form-label-link:hover { color: var(--oa-brand-2); }
.form-hint { color: #475569; font-weight: 400; }
.required { color: var(--oa-brand); }

/* 输入框 */
.input-wrap { position: relative; }
.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: #475569;
    pointer-events: none;
}
.form-input {
    width: 100%;
    background: rgba(15,17,23,.6);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: .875rem;
    padding: 11px 34px 11px 40px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
/* 提升权重：覆盖 main.css 里 .form-group input（权重更高）对 padding 等的覆盖 */
.auth-form .form-input,
.modal-box .form-input {
    padding: 11px 34px 11px 40px;
    background: rgba(15,17,23,.6);
    border: 1px solid rgba(255,255,255,.08);
    color: #e2e8f0;
    font-size: .875rem;
}
.form-input:focus,
.auth-form .form-input:focus,
.modal-box .form-input:focus {
    border-color: var(--oa-brand);
    box-shadow: 0 0 0 3px rgba(11,127,155,.18);
    background: rgba(15,17,23,.6);
}
.form-input::placeholder,
.auth-form .form-input::placeholder,
.modal-box .form-input::placeholder { color: #334155; }

/* 无左 icon 的 input */
.code-input {
    padding: 14px 16px;
    letter-spacing: 8px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

/* 密码显隐按钮 */
.input-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #475569;
}
.input-eye svg { width: 16px; height: 16px; }
.input-eye:hover { color: #94a3b8; }

/* 密码强度 */
.pwd-strength { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.strength-bar { display: flex; gap: 4px; flex: 1; }
.bar-seg { height: 4px; flex: 1; border-radius: 2px; background: rgba(255,255,255,.1); transition: background .3s; }
.strength-label { font-size: .72rem; min-width: 40px; text-align: right; }

/* 提交按钮 */
.btn-auth {
    width: 100%;
    background: linear-gradient(135deg, var(--oa-brand), var(--oa-brand));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: .925rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .15s, transform .1s;
    margin-top: 4px;
}
.btn-auth:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.btn-auth:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-loading { display: flex; align-items: center; gap: 6px; }

/* 旋转动画 */
@keyframes spin360 { to { transform: rotate(360deg); } }
.spin { animation: spin360 .8s linear infinite; width: 16px; height: 16px; }

/* 反馈消息 */
.form-feedback {
    font-size: .825rem;
    padding: 10px 14px;
    border-radius: 6px;
    text-align: center;
}
.feedback-success { background: rgba(16,185,129,.1); color: #34d399; border: 1px solid rgba(16,185,129,.2); }
.feedback-error   { background: rgba(239,68,68,.1);  color: #f87171; border: 1px solid rgba(239,68,68,.2); }

/* 切换登录/注册 */
.auth-switch { text-align: center; color: #475569; font-size: .85rem; margin: 20px 0 0; }
.auth-switch-link { color: var(--oa-brand); text-decoration: none; font-weight: 500; }
.auth-switch-link:hover { color: var(--oa-brand-2); }
.auth-terms { font-size: .75rem; color: #334155; text-align: center; }
.auth-terms a { color: var(--oa-brand); text-decoration: none; }

/* 重发行 */
.resend-row { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 16px; }
.resend-tip { color: #475569; font-size: .825rem; }
.resend-btn { background: none; border: none; color: var(--oa-brand); cursor: pointer; font-size: .825rem; font-weight: 500; padding: 0; }
.resend-btn:hover { color: var(--oa-brand-2); }
.resend-countdown { color: #64748b; font-size: .8rem; }

/* 会员等级徽章行 */
.plan-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.plan-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .05em;
}
.plan-badge.free { background: rgba(148,163,184,.1); color: #94a3b8; border: 1px solid rgba(148,163,184,.2); }
.plan-badge.pro  { background: rgba(11,127,155,.12);  color: var(--oa-brand-2); border: 1px solid rgba(11,127,155,.25); }
.plan-badge.biz  { background: rgba(21,168,201,.12);   color: #22d3ee; border: 1px solid rgba(21,168,201,.25); }
.plan-arrow { color: #334155; font-size: .7rem; }

/* 忘记密码弹窗 */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}
.modal-box {
    background: #1a1d2e;
    border: 1px solid rgba(11,127,155,.25);
    border-radius: 14px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-head h3 { color: #e2e8f0; font-size: 1.1rem; margin: 0; }
.modal-close {
    background: none; border: none; color: #64748b; cursor: pointer;
    font-size: 1.4rem; line-height: 1; padding: 4px;
}
.modal-close:hover { color: #e2e8f0; }
.modal-tip { color: #64748b; font-size: .85rem; margin: 0 0 16px; }

/* ============================================================
   Dashboard 样式
   ============================================================ */
.member-dashboard-section {
    padding: 48px 0 80px;
    min-height: calc(100vh - 64px);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 32px;
}

/* 侧边栏 */
.dashboard-sidebar {
    position: sticky;
    top: 80px;
}
.user-card {
    background: #1a1d2e;
    border: 1px solid rgba(11,127,155,.15);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 12px;
    text-align: center;
}
.user-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}
.user-avatar img,
.avatar-placeholder {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-placeholder {
    background: linear-gradient(135deg, var(--oa-brand), var(--oa-brand-2));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem; font-weight: 700;
}
.plan-dot {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid #1a1d2e;
}
.plan-dot.plan-free { background: #64748b; }
.plan-dot.plan-pro  { background: var(--oa-brand); }
.plan-dot.plan-biz  { background: var(--oa-brand-2); }

.user-name  { color: #e2e8f0; font-weight: 600; font-size: .95rem; }
.user-email { color: #475569; font-size: .78rem; margin: 2px 0 8px; word-break: break-all; }
.plan-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
}
.plan-tag.plan-free { background: rgba(148,163,184,.1); color: #94a3b8; }
.plan-tag.plan-pro  { background: rgba(11,127,155,.12); color: var(--oa-brand-2); }
.plan-tag.plan-biz  { background: rgba(21,168,201,.12);  color: #22d3ee; }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: .875rem;
    transition: background .15s, color .15s;
}
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(11,127,155,.1);
    color: #a5b4fc;
}
.sidebar-link-danger:hover { background: rgba(239,68,68,.1); color: #f87171; }

/* 主内容区域 */
.dashboard-main { display: flex; flex-direction: column; gap: 20px; }
.dashboard-card {
    background: #1a1d2e;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 28px;
}
.dashboard-card-title { color: #94a3b8; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px; }

/* 会员状态卡片 */
.plan-status-card { border-color: rgba(11,127,155,.2); }
.plan-status-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.plan-name { font-size: 1.4rem; font-weight: 700; margin: 4px 0 6px; }
.plan-name.plan-free { color: #94a3b8; }
.plan-name.plan-pro  { color: var(--oa-brand-2); }
.plan-name.plan-biz  { color: #22d3ee; }
.plan-expire { font-size: .825rem; color: #64748b; margin: 0; }
.plan-forever { color: #34d399 !important; }
.expire-warning { color: #f59e0b; }

.plan-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); }
.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .825rem;
    color: #334155;
}
.feature-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.feature-item.active { color: #94a3b8; }
.feature-item.active svg { color: #34d399; }

/* 账号信息网格 */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-item { display: flex; flex-direction: column; gap: 3px; }
.info-label { color: #475569; font-size: .75rem; }
.info-value { color: #94a3b8; font-size: .875rem; display: flex; align-items: center; gap: 6px; }
.badge-verified   { background: rgba(16,185,129,.12); color: #34d399; border: 1px solid rgba(16,185,129,.2); border-radius: 4px; padding: 1px 6px; font-size: .7rem; }
.badge-unverified { background: rgba(239,68,68,.1);   color: #f87171; border: 1px solid rgba(239,68,68,.2);  border-radius: 4px; padding: 1px 6px; font-size: .7rem; }

/* 响应式 */
@media (max-width: 768px) {
    .auth-card { padding: 28px 22px; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { position: static; }
    .plan-status-header { flex-direction: column; }
    .plan-features { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
}

/* 弱提示（未绑定邮箱等），两套主题通用 */
.info-value-muted { color: #b9bfcd; font-size: .8rem; }

/* ============================================================
   浅色主题适配（2026-09-24 修复）
   ------------------------------------------------------------
   背景 bug：本文件原有配色是「暗色硬编码」，不带主题判断，因此在站点
   切到「浅色主题」（<html data-theme="light">）时，登录页 / 注册页 /
   会员中心页仍是暗色 —— 用户反馈的显示问题即由此而来。
   修复方式：**只追加**浅色主题覆盖（暗色主题保持原有规则不变），
   底色统一改用 oneagent.css 提供的主题变量（--oa-*）。
   ============================================================ */
html[data-theme="light"] .member-auth-section {
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(11,127,155,.10) 0%, transparent 60%);
}
html[data-theme="light"] .auth-tagline { color: var(--oa-muted); }
html[data-theme="light"] .auth-card {
    background: var(--oa-card);
    border-color: var(--oa-line);
    box-shadow: 0 18px 48px rgba(28,30,60,.08), inset 0 1px 0 rgba(255,255,255,.6);
}
html[data-theme="light"] .auth-title { color: var(--oa-ink); }
html[data-theme="light"] .auth-subtitle { color: var(--oa-muted); }
html[data-theme="light"] .form-label { color: #4b5563; }
html[data-theme="light"] .form-hint { color: #9aa1b5; }
html[data-theme="light"] .input-icon { color: #9aa1b5; }
html[data-theme="light"] .form-input,
html[data-theme="light"] .auth-form .form-input,
html[data-theme="light"] .modal-box .form-input {
    background: #fff;
    border-color: var(--oa-line);
    color: var(--oa-ink);
}
html[data-theme="light"] .form-input:focus,
html[data-theme="light"] .auth-form .form-input:focus,
html[data-theme="light"] .modal-box .form-input:focus {
    background: #fff;
    border-color: var(--oa-brand);
    box-shadow: 0 0 0 3px rgba(11,127,155,.15);
}
html[data-theme="light"] .form-input::placeholder,
html[data-theme="light"] .auth-form .form-input::placeholder,
html[data-theme="light"] .modal-box .form-input::placeholder { color: #9aa1b5; }
html[data-theme="light"] .input-eye { color: #9aa1b5; }
html[data-theme="light"] .input-eye:hover { color: #4b5563; }
html[data-theme="light"] .bar-seg { background: rgba(15,23,42,.08); }
html[data-theme="light"] .feedback-success { background: rgba(16,185,129,.12); color: #0f9d68; border-color: rgba(16,185,129,.25); }
html[data-theme="light"] .feedback-error   { background: rgba(239,68,68,.10);  color: #dc2626; border-color: rgba(239,68,68,.22); }
html[data-theme="light"] .auth-switch,
html[data-theme="light"] .auth-terms { color: var(--oa-muted); }
html[data-theme="light"] .resend-tip,
html[data-theme="light"] .resend-countdown { color: var(--oa-muted); }
html[data-theme="light"] .plan-arrow { color: #9aa1b5; }

/* 忘记密码弹窗 */
html[data-theme="light"] .modal-overlay { background: rgba(15,23,42,.45); }
html[data-theme="light"] .modal-box {
    background: var(--oa-card);
    border-color: var(--oa-line);
    box-shadow: 0 24px 60px rgba(28,30,60,.18);
}
html[data-theme="light"] .modal-head h3 { color: var(--oa-ink); }
html[data-theme="light"] .modal-close { color: var(--oa-muted); }
html[data-theme="light"] .modal-close:hover { color: var(--oa-ink); }
html[data-theme="light"] .modal-tip { color: var(--oa-muted); }

/* 会员中心 */
html[data-theme="light"] .user-card { background: var(--oa-card); border-color: var(--oa-line); }
html[data-theme="light"] .plan-dot { border-color: var(--oa-card); }
html[data-theme="light"] .user-name { color: var(--oa-ink); }
html[data-theme="light"] .user-email { color: var(--oa-muted); }
html[data-theme="light"] .sidebar-link { color: var(--oa-muted); }
html[data-theme="light"] .sidebar-link:hover,
html[data-theme="light"] .sidebar-link.active { background: var(--oa-brand-soft); color: var(--oa-brand); }
html[data-theme="light"] .dashboard-card { background: var(--oa-card); border-color: var(--oa-line); }
html[data-theme="light"] .dashboard-card-title { color: var(--oa-muted); }
html[data-theme="light"] .plan-expire { color: var(--oa-muted); }
html[data-theme="light"] .plan-name.plan-free { color: #64748b; }
html[data-theme="light"] .plan-name.plan-pro  { color: var(--oa-brand); }
html[data-theme="light"] .plan-name.plan-biz  { color: #0891b2; }
html[data-theme="light"] .plan-features { border-top-color: var(--oa-line); }
html[data-theme="light"] .feature-item { color: #b9bfcd; }
html[data-theme="light"] .feature-item.active { color: #4b5563; }
html[data-theme="light"] .info-label { color: var(--oa-muted); }
html[data-theme="light"] .info-value { color: #4b5563; }
html[data-theme="light"] .info-value-muted { color: #b9bfcd; }

/* ============================================================
   积分流水页样式（充值流水 / 消费流水，2026-09-25 新增）
   ------------------------------------------------------------
   仅追加，不改动上方既有规则；配色沿用本文件暗色科技风，
   并追加浅色主题覆盖（写法与上方浅色区块一致）。
   ============================================================ */
.ledger-card { padding: 28px; }
.ledger-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.ledger-head .dashboard-card-title { margin: 0; }

/* Tab 切换 */
.ledger-tabs { display: flex; gap: 6px; }
.ledger-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    transition: background .15s, color .15s;
}
.ledger-tab:hover { color: #a5b4fc; }
.ledger-tab.active {
    background: rgba(11,127,155,.15);
    color: #a5b4fc;
    border-color: rgba(11,127,155,.35);
}

/* 汇总卡片 */
.ledger-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}
.ledger-stat {
    background: rgba(15,17,23,.5);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 16px 18px;
}
.ledger-stat-label { color: #64748b; font-size: .72rem; letter-spacing: .06em; margin-bottom: 6px; }
.ledger-stat-value { color: #e2e8f0; font-size: 1.5rem; font-weight: 700; }
.ledger-stat-value.pos { color: #34d399; }
.ledger-stat-value.neg { color: #f87171; }

/* 流水表格 */
.ledger-table-wrap { overflow-x: auto; }
.ledger-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.ledger-table thead th {
    text-align: left;
    color: #64748b;
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .05em;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    white-space: nowrap;
}
.ledger-table td {
    padding: 12px 14px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.ledger-table tbody tr:nth-child(even) { background: rgba(255,255,255,.02); }
.ledger-table tbody tr:hover { background: rgba(11,127,155,.06); }
.ledger-table .ta-r { text-align: right; }
.ledger-table td.pos { color: #34d399; font-weight: 600; }
.ledger-table td.neg { color: #f87171; font-weight: 600; }
.ledger-time { color: #64748b; font-size: .78rem; white-space: nowrap; }
.ledger-remark { color: #94a3b8; word-break: break-all; }
.ledger-empty { text-align: center; color: #475569; padding: 44px 0; }

/* 分页 */
.ledger-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.ledger-count { color: #64748b; font-size: .8rem; }
.ledger-pager { display: flex; align-items: center; gap: 10px; }
.ledger-page-btn {
    padding: 5px 14px;
    border-radius: 8px;
    font-size: .8rem;
    color: #a5b4fc;
    text-decoration: none;
    background: rgba(11,127,155,.12);
    border: 1px solid rgba(11,127,155,.25);
    transition: background .15s;
}
.ledger-page-btn:hover { background: rgba(11,127,155,.22); }
.ledger-page-info { color: #64748b; font-size: .8rem; }

@media (max-width: 768px) {
    .ledger-summary { grid-template-columns: 1fr; }
}

/* 浅色主题适配 */
html[data-theme="light"] .ledger-tab { color: var(--oa-muted); background: #fff; border-color: var(--oa-line); }
html[data-theme="light"] .ledger-tab.active { background: var(--oa-brand-soft); color: var(--oa-brand); border-color: var(--oa-brand); }
html[data-theme="light"] .ledger-stat { background: #f7f8fc; border-color: var(--oa-line); }
html[data-theme="light"] .ledger-stat-label { color: var(--oa-muted); }
html[data-theme="light"] .ledger-stat-value { color: var(--oa-ink); }
html[data-theme="light"] .ledger-stat-value.pos { color: #0f9d68; }
html[data-theme="light"] .ledger-stat-value.neg { color: #dc2626; }
html[data-theme="light"] .ledger-table thead th { color: var(--oa-muted); border-bottom-color: var(--oa-line); }
html[data-theme="light"] .ledger-table td { color: #4b5563; border-bottom-color: var(--oa-line); }
html[data-theme="light"] .ledger-table tbody tr:nth-child(even) { background: rgba(28,30,60,.02); }
html[data-theme="light"] .ledger-table tbody tr:hover { background: var(--oa-brand-soft); }
html[data-theme="light"] .ledger-table td.pos { color: #0f9d68; }
html[data-theme="light"] .ledger-table td.neg { color: #dc2626; }
html[data-theme="light"] .ledger-time,
html[data-theme="light"] .ledger-count,
html[data-theme="light"] .ledger-page-info { color: var(--oa-muted); }
html[data-theme="light"] .ledger-remark { color: #4b5563; }
html[data-theme="light"] .ledger-empty { color: #9aa1b5; }

/* ============================================================
   积分系统页样式（会员中心 /member/points，2026-09-28）
   ------------------------------------------------------------
   结构：余额卡 + 充值套餐 + 支付区（支付宝整页跳转 / 微信页内二维码 / 支付结果页）。
   【2026-09-28 调整】
     · 移除「近 7 日积分消耗」块（用户要求），对应 .pts-chart 系列样式一并删除；
     · 新增 .pts-result 支付成功结果页：**常驻**，不自动跳转，等用户点按钮；
     · 修复浅色主题下「当前积分余额」卡白底白字（原因见文件末尾 light 覆盖处注释）。
   ------------------------------------------------------------
   配色沿用本文件暗色科技风，并追加浅色主题覆盖（写法与上方浅色区块一致）。
   ============================================================ */

/* 支付结果回跳提示条 */
.pts-return-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(11,127,155,.1);
    border: 1px solid rgba(11,127,155,.28);
    border-radius: 12px;
    padding: 14px 18px;
}
.pts-return-dot {
    flex: none;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #a5b4fc;
    animation: ptsPulse 1.2s ease-in-out infinite;
}
@keyframes ptsPulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.pts-return-title { color: #e2e8f0; font-size: .875rem; font-weight: 600; }
.pts-return-sub { color: #64748b; font-size: .78rem; margin-top: 3px; line-height: 1.6; }

/* 余额卡（品牌渐变 + 白字，两套主题保持一致） */
.pts-balance-card {
    background: linear-gradient(135deg, var(--oa-brand), var(--oa-brand-2));
    border: none;
}
.pts-balance-label { color: rgba(255,255,255,.86); font-size: .78rem; }
.pts-balance-num { color: #fff; font-size: 2.4rem; font-weight: 800; line-height: 1.1; margin-top: 4px; }
.pts-balance-links { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.pts-mini-link { color: rgba(255,255,255,.9); font-size: .78rem; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.45); }
.pts-mini-link:hover { color: #fff; }
.pts-mini-sep { color: rgba(255,255,255,.5); font-size: .78rem; }

.pts-empty { color: #475569; font-size: .8rem; text-align: center; padding: 16px 0; }

/* 支付渠道 */
.pts-channels { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pts-chan {
    padding: 7px 18px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
    color: #64748b;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.pts-chan:hover { color: #a5b4fc; }
.pts-chan.active {
    background: rgba(11,127,155,.15);
    color: #a5b4fc;
    border-color: rgba(11,127,155,.35);
}

/* 充值套餐 */
.pts-packages { display: flex; flex-direction: column; gap: 10px; }
.pts-pkg {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    padding: 13px 16px;
    transition: border-color .15s, background .15s;
}
.pts-pkg:hover { border-color: rgba(11,127,155,.5); background: rgba(11,127,155,.06); }
.pts-pkg-label { flex: 1; color: #e2e8f0; font-size: .875rem; font-weight: 600; }
.pts-pkg-btn {
    border: none;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--oa-brand), var(--oa-brand-2));
    color: #fff;
    transition: opacity .15s, transform .15s;
}
.pts-pkg-btn:hover:not(:disabled) { transform: translateY(-1px); }
.pts-pkg-btn:disabled { opacity: .55; cursor: default; transform: none; }

/* 支付区 */
.pts-pay {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pts-pay-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.pts-pay-title { color: #94a3b8; font-size: .8rem; }
.pts-pay-amount { color: #e2e8f0; font-size: 1.4rem; font-weight: 800; }

/* 微信：页内二维码
   margin-left/right:auto → 定宽容器在弹窗内**水平居中**（块级定宽元素默认靠左）。
   微信 / 支付宝两种模式共用本容器，故居中写在基类上，JS 只改 width/height/className，不会覆盖 margin。 */
.pts-qr-wrap {
    position: relative;
    width: 200px; height: 200px;
    margin-left: auto; margin-right: auto;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 10px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
}
.pts-qr { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pts-qr img, .pts-qr canvas, .pts-qr svg { width: 100% !important; height: 100% !important; display: block; }
.pts-qr-loading { color: #64748b; font-size: .78rem; }
.pts-qr-mask {
    position: absolute; inset: 0;
    border-radius: 14px;
    background: rgba(15,17,23,.92);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.pts-qr-mask-txt { color: #94a3b8; font-size: .78rem; }
.pts-qr-refresh {
    border: none; cursor: pointer;
    font-size: .78rem; font-weight: 700;
    border-radius: 8px; padding: 8px 15px;
    background: linear-gradient(135deg, var(--oa-brand), var(--oa-brand-2));
    color: #fff;
}

/* 支付宝「过渡页保护罩」：扫码后收银台会在 iframe 内跳转（支付宝自己的成功页 / 我们的回跳页），
   在 200×200 的 iframe 里会被截断得很难看。检测到跳转后立刻盖住 iframe → 用户只见本站文案。
   仅视觉遮挡，不改动、不阻断支付宝自身跳转；z-index 高于二维码与其失效遮罩。 */
.pts-qr-cover {
    position: absolute; inset: 0; z-index: 3;
    border-radius: 14px;
    background: #121422;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.pts-qr-cover-txt { color: #94a3b8; font-size: .78rem; }
.pts-qr-cover-spin {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid rgba(34, 199, 232, .25);
    border-top-color: var(--oa-brand-2, #22c7e8);
    animation: ptsQrSpin .8s linear infinite;
}
@keyframes ptsQrSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pts-qr-cover-spin { animation: none; } }

/* 支付宝：即将整页跳转收银台 */
.pts-jump {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center;
    padding: 22px 16px;
    border: 1px dashed rgba(11,127,155,.4);
    border-radius: 12px;
    background: rgba(11,127,155,.06);
    width: 100%;
}
.pts-jump-ico { font-size: 1.6rem; color: #a5b4fc; line-height: 1; }
.pts-jump-title { color: #e2e8f0; font-size: .875rem; font-weight: 600; }
.pts-jump-sub { color: #64748b; font-size: .78rem; line-height: 1.6; }
/* 手机端「整页跳转支付」面板的通栏按钮（拇指点按区更大） */
.pts-jump-btn { margin-top: 6px; width: 100%; padding: 12px 20px; font-size: .9rem; }

/* 支付结果页（成功后常驻，不自动跳转） */
.pts-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    width: 100%;
    padding: 24px 18px;
    border: 1px solid rgba(52,211,153,.32);
    background: rgba(52,211,153,.07);
    border-radius: 14px;
}
.pts-result-ico {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #10b981, var(--oa-brand-2));
}
.pts-result-title { color: #e2e8f0; font-size: 1.05rem; font-weight: 700; }
.pts-result-sub { color: #94a3b8; font-size: .85rem; line-height: 1.6; }
.pts-result-meta { color: #64748b; font-size: .75rem; word-break: break-all; }
.pts-result-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* 通用按钮（结果页用） */
.pts-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 20px;
    border-radius: 9px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .15s, transform .15s, color .15s;
}
.pts-btn-primary { background: linear-gradient(135deg, var(--oa-brand), var(--oa-brand-2)); color: #fff; border: none; }
.pts-btn-primary:hover { transform: translateY(-1px); }
.pts-btn-ghost { background: transparent; color: #a5b4fc; border-color: rgba(11,127,155,.35); }
.pts-btn-ghost:hover { background: rgba(11,127,155,.12); }

.pts-pay-tip { color: #64748b; font-size: .78rem; margin-top: 14px; text-align: center; line-height: 1.6; }
.pts-pay-status { display: flex; align-items: center; justify-content: center; gap: 6px; color: #a5b4fc; font-size: .78rem; font-weight: 600; margin-top: 8px; min-height: 1em; }
.pts-pay-status.err { color: #f87171; }
.pts-pay-status.ok { color: #34d399; }

@media (max-width: 768px) {
    .pts-pay-head { flex-direction: column; align-items: center; gap: 4px; }
}

/* ============================================================
   浅色主题适配
   ⚠️ 余额卡必须用「html[data-theme=light] .dashboard-card.pts-balance-card」这种**双类名**写法：
      上文浅色区块里 `html[data-theme="light"] .dashboard-card{background:var(--oa-card)}` 的
      特异度是 (0,2,1)，而单独的 `.pts-balance-card` 只有 (0,1,0) → 会被改成白底，
      而卡内文字是白色 → 浅色下**白底白字看不见**（2026-09-28 实测修复）。
   ============================================================ */
html[data-theme="light"] .pts-return-banner { background: var(--oa-brand-soft); border-color: rgba(11,127,155,.3); }
html[data-theme="light"] .pts-return-dot { background: var(--oa-brand); }
html[data-theme="light"] .pts-return-title { color: var(--oa-ink); }
html[data-theme="light"] .pts-return-sub { color: var(--oa-muted); }
html[data-theme="light"] .dashboard-card.pts-balance-card {
    background: linear-gradient(135deg, var(--oa-brand), var(--oa-brand-2));
    border: none;
}
html[data-theme="light"] .pts-empty,
html[data-theme="light"] .pts-qr-loading,
html[data-theme="light"] .pts-pay-tip,
html[data-theme="light"] .pts-jump-sub { color: var(--oa-muted); }
html[data-theme="light"] .pts-chan { color: var(--oa-muted); background: #fff; border-color: var(--oa-line); }
html[data-theme="light"] .pts-chan:hover { color: var(--oa-brand); }
html[data-theme="light"] .pts-chan.active { background: var(--oa-brand-soft); color: var(--oa-brand); border-color: var(--oa-brand); }
html[data-theme="light"] .pts-pkg { border-color: var(--oa-line); }
html[data-theme="light"] .pts-pkg:hover { border-color: var(--oa-brand); background: var(--oa-brand-soft); }
html[data-theme="light"] .pts-pkg-label { color: var(--oa-ink); }
html[data-theme="light"] .pts-pay { border-top-color: var(--oa-line); }
html[data-theme="light"] .pts-pay-title { color: var(--oa-muted); }
html[data-theme="light"] .pts-pay-amount { color: var(--oa-ink); }
html[data-theme="light"] .pts-qr-wrap { border-color: var(--oa-line); }
html[data-theme="light"] .pts-qr-mask { background: rgba(255,255,255,.94); }
html[data-theme="light"] .pts-qr-mask-txt { color: var(--oa-muted); }
html[data-theme="light"] .pts-jump { border-color: rgba(11,127,155,.35); background: var(--oa-brand-soft); }
html[data-theme="light"] .pts-jump-ico { color: var(--oa-brand); }
html[data-theme="light"] .pts-jump-title { color: var(--oa-ink); }
html[data-theme="light"] .pts-result { border-color: rgba(16,185,129,.32); background: rgba(16,185,129,.07); }
html[data-theme="light"] .pts-result-title { color: var(--oa-ink); }
html[data-theme="light"] .pts-result-sub { color: #4b5563; }
html[data-theme="light"] .pts-result-meta { color: var(--oa-muted); }
html[data-theme="light"] .pts-btn-ghost { color: var(--oa-brand); border-color: rgba(11,127,155,.35); }
html[data-theme="light"] .pts-btn-ghost:hover { background: var(--oa-brand-soft); }
html[data-theme="light"] .pts-pay-status { color: var(--oa-brand); }
html[data-theme="light"] .pts-pay-status.err { color: #dc2626; }
html[data-theme="light"] .pts-pay-status.ok { color: #0f9d68; }

/* ============================================================
   账号资料表单（会员中心「账号信息」：头像 / 会员名(只读) / 昵称）
   2026-09-28 新增：原「账号信息」为只读列表，改为可编辑表单
   ============================================================ */
.profile-form { display: flex; flex-direction: column; gap: 20px; }

.pf-row { display: flex; align-items: center; gap: 18px; }
.pf-avatar {
    position: relative; flex: none; width: 88px; height: 88px;
    border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--oa-brand-2), var(--oa-brand));
    box-shadow: 0 0 0 1px rgba(34,199,232,.26), 0 14px 30px -16px var(--oa-brand);
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-avatar-ini { color: #fff; font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.pf-avatar-ops { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-avatar-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.pf-field { display: flex; flex-direction: column; gap: 6px; }
.pf-label { font-size: .8rem; font-weight: 600; color: #cbd5e1; }
.pf-note { font-weight: 400; color: #7c8798; }
.pf-input {
    width: 100%; max-width: 420px; height: 42px; padding: 0 14px; border-radius: 11px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10);
    color: #e2e8f0; font-size: .9rem; font-family: inherit; outline: none;
    transition: border-color .22s, background .22s, box-shadow .22s;
}
.pf-input:focus { border-color: var(--oa-brand); box-shadow: 0 0 0 3px rgba(34,199,232,.14); }
.pf-input[readonly] { color: #7c8798; background: rgba(255,255,255,.02); cursor: not-allowed; }
.pf-hint { margin: 0; font-size: .75rem; color: #7c8798; line-height: 1.6; }

.pf-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; padding: 0 18px; border-radius: 10px; cursor: pointer;
    font-size: .875rem; font-weight: 600; font-family: inherit;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #e2e8f0;
    transition: transform .22s, border-color .22s, color .22s, background .22s, box-shadow .22s;
}
.pf-btn:hover:not(:disabled) { border-color: rgba(34,199,232,.45); color: #fff; transform: translateY(-1px); }
.pf-btn:disabled { opacity: .6; cursor: default; }
.pf-btn-primary {
    background: linear-gradient(135deg, var(--oa-brand), var(--oa-brand-2));
    border-color: transparent; color: #fff;
    box-shadow: 0 10px 24px -14px var(--oa-brand);
}
.pf-msg { font-size: .8rem; }
.pf-msg.is-ok { color: #34d399; }
.pf-msg.is-err { color: #f87171; }

html[data-theme="light"] .pf-label { color: #334155; }
html[data-theme="light"] .pf-note,
html[data-theme="light"] .pf-hint { color: #94a3b8; }
html[data-theme="light"] .pf-input { background: #f1f5f9; border-color: #e2e8f0; color: #0f172a; }
html[data-theme="light"] .pf-input[readonly] { color: #94a3b8; background: #f8fafc; }
html[data-theme="light"] .pf-btn { background: #f1f5f9; border-color: #e2e8f0; color: #334155; }
html[data-theme="light"] .pf-btn:hover:not(:disabled) { background: #e2e8f0; color: #0f172a; }
html[data-theme="light"] .pf-msg.is-ok { color: #0f9d68; }
html[data-theme="light"] .pf-msg.is-err { color: #dc2626; }

@media (max-width: 640px) {
    .pf-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   积分充值弹窗（2026-10-03 新增）
   三步流程：① 选择支付方式 ② 显示二维码（微信自绘 / 支付宝 iframe）③ 支付成功
   仅面向 PC 端；沿用站点暗色科技风 + 浅色主题覆盖。
   ============================================================ */
body.pts-modal-lock { overflow: hidden; }

.pts-modal { position: fixed; inset: 0; z-index: 1200; display: none; }
.pts-modal.open { display: block; }

.pts-modal-mask {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
}
.pts-modal-box {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 460px; max-width: calc(100vw - 48px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: #1a1d2e;
    border: 1px solid rgba(34, 199, 232, .25);
    border-radius: 16px;
    padding: 26px 28px 28px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.pts-modal-close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none; color: #64748b;
    font-size: 1.4rem; line-height: 1; padding: 4px 7px; cursor: pointer;
    transition: color .18s;
}
.pts-modal-close:hover { color: #e2e8f0; }

.pts-modal-head { margin-bottom: 20px; }
.pts-modal-title { color: #e2e8f0; font-size: 1.05rem; font-weight: 700; }
.pts-modal-sub { color: #94a3b8; font-size: .8rem; margin-top: 7px; }
.pts-hl { color: var(--oa-brand-2); font-weight: 700; }
.pts-dot { margin: 0 7px; color: #475569; }

/* 步骤 2 头部：标题 / 应付行**居中**；「← 返回」保持原来的左上位置（独立成行、左对齐），
   不随内容一起居中 —— 用户明确要求返回按钮「保持在原位置」。 */
.pts-head-pay { text-align: center; }
.pts-head-pay .pts-back { display: flex; width: 100%; text-align: left; }

/* ---- 步骤 1：渠道选择（微信在左、支付宝在右） ---- */
.pts-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pts-ch-btn {
    display: flex; align-items: center; gap: 11px;
    padding: 15px 13px; border-radius: 14px; cursor: pointer;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #e2e8f0; font-family: inherit; text-align: left;
    transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.pts-ch-btn:hover { transform: translateY(-2px); }
.pts-ch-btn:focus-visible { outline: 2px solid var(--oa-brand-2); outline-offset: 2px; }
.pts-ch-logo {
    flex: none; width: 40px; height: 40px; border-radius: 11px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .07);
}
.pts-ch-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pts-ch-txt b { font-size: .9rem; font-weight: 700; color: #e2e8f0; }
/* nowrap：渠道文案必须单行，否则 460px 弹窗内支付宝按钮会折成两行、两按钮不等高 */
.pts-ch-txt i { font-style: normal; font-size: .69rem; color: #94a3b8; line-height: 1.4; white-space: nowrap; }
.pts-ch-wechat:hover {
    border-color: rgba(7, 193, 96, .65); background: rgba(7, 193, 96, .09);
    box-shadow: 0 16px 32px -22px #07C160;
}
.pts-ch-alipay:hover {
    border-color: rgba(22, 119, 255, .65); background: rgba(22, 119, 255, .09);
    box-shadow: 0 16px 32px -22px #1677FF;
}
.pts-choose-tip { margin-top: 16px; text-align: center; color: #64748b; font-size: .75rem; }

/* ---- 步骤 2：二维码 ---- */
.pts-back {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: none; padding: 0 0 10px; cursor: pointer;
    color: var(--oa-brand-2); font-size: .78rem; font-family: inherit;
    transition: color .18s;
}
.pts-back:hover { color: #fff; }

/* 支付宝 iframe：容器 = **与二维码等大的正方形**。
   尺寸由页面 JS 按服务端下发的 qrcode_width 内联设置（正方形不留白）；
   这里 200×200 仅作无 JS / 取值异常时的兜底。
   ⚠️ 切勿再写死成 300×330 之类的大画布：qr_pay_mode=4 的收银台把二维码渲染在
   页面左上角，容器一大就会在右侧 + 下方留出大片空白（2026-10-04 用户反馈）。 */
.pts-qr-wrap.pts-qr-wrap-alipay {
    width: 200px; height: 200px;
    padding: 0; background: #fff; overflow: hidden;
}
.pts-alipay-frame {
    width: 100%; height: 100%; border: 0; display: block; background: #fff;
}

/* 步骤 3：成功（复用既有 .pts-result；弹窗内去掉重复描边，避免"框中框"） */
.pts-modal .pts-result {
    margin-top: 4px;
    border: 0;
    background: rgba(52, 211, 153, .07);
    padding: 18px 14px;
}
html[data-theme="light"] .pts-modal .pts-result { background: rgba(16, 185, 129, .07); }

/* ---- 浅色主题覆盖 ---- */
html[data-theme="light"] .pts-modal-box { background: var(--oa-card, #fff); border-color: rgba(11, 127, 155, .22); }
html[data-theme="light"] .pts-modal-close { color: var(--oa-muted); }
html[data-theme="light"] .pts-modal-close:hover { color: var(--oa-ink); }
html[data-theme="light"] .pts-modal-title { color: var(--oa-ink); }
html[data-theme="light"] .pts-modal-sub { color: var(--oa-muted); }
html[data-theme="light"] .pts-hl { color: var(--oa-brand); }
html[data-theme="light"] .pts-dot { color: #cbd5e1; }
html[data-theme="light"] .pts-ch-btn { background: #fff; border-color: var(--oa-line); }
html[data-theme="light"] .pts-ch-logo { background: #f1f5f9; }
html[data-theme="light"] .pts-ch-txt b { color: var(--oa-ink); }
html[data-theme="light"] .pts-ch-txt i { color: var(--oa-muted); }
html[data-theme="light"] .pts-choose-tip { color: var(--oa-muted); }
html[data-theme="light"] .pts-back { color: var(--oa-brand); }
html[data-theme="light"] .pts-back:hover { color: var(--oa-ink); }
html[data-theme="light"] .pts-qr-cover { background: #f1f5f9; }
html[data-theme="light"] .pts-qr-cover-txt { color: var(--oa-muted); }
html[data-theme="light"] .pts-qr-cover-spin { border-color: rgba(11, 127, 155, .22); border-top-color: var(--oa-brand); }

/* ============================================================
   移动端适配（2026-10-04 新增）
   服务端按 UA 决定「怎么付」（支付宝 wap / 微信 H5 整页跳转），
   这里只管手机窄屏下「长什么样」：弹窗收敛 + 渠道按钮改单列通栏。
   ============================================================ */
@media (max-width: 560px) {
    .pts-modal-box {
        /* ⚠️ 必须给**确定宽度**：绝对定位元素写 width:auto 会「收缩包裹」内容，
           导致切步骤时弹窗宽度跳变（步骤1 窄、步骤2 恰好 200px＋内边距）。
           max-width 420px 兜住平板/大屏手机，避免在 560px 视口下过宽。 */
        width: calc(100vw - 28px);
        max-width: 420px;
        max-height: calc(100vh - 40px);
        padding: 22px 16px 24px;
        border-radius: 14px;
    }
    .pts-modal-close { top: 8px; right: 10px; }
    .pts-modal-title { font-size: 1rem; }
    /* 两个渠道按钮在手机上并排会挤成窄条 → 改单列通栏，更易点按 */
    .pts-choose { grid-template-columns: 1fr; gap: 10px; }
    .pts-ch-btn { padding: 13px 12px; }
    .pts-result-actions { width: 100%; }
    .pts-result-actions .pts-btn { flex: 1 1 0; }
}
