/* ============================================================
   ref.css —— 与参考站 64.90.20.139 完全对齐的设计规范
   （从参考站 index-CpTiB-ql.css + 各视图分包 CSS 原样提取合并）
   ============================================================ */
:root { --page-bg: #f0f2f5; --brand: #409eff; }
html, body, #app { height: 100%; margin: 0; padding: 0; }
body { background: var(--page-bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: #303133; }
* { box-sizing: border-box; }

/* ===== 登录 / 注册 ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-brand { text-align: center; margin-bottom: 20px; }
.auth-brand h1 { font-size: 20px; margin: 8px 0 4px; font-weight: 600; }
.auth-brand p { margin: 0; color: #909399; font-size: 13px; }
.auth-footer { margin-top: 12px; text-align: center; font-size: 13px; color: #909399; }

/* ===== 通用 ===== */
.view-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.view-title { font-size: 20px; font-weight: 600; margin: 0 0 4px; color: #303133; }
.view-subtitle { margin: 0; color: #909399; font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.muted { color: #909399; }
.text-success { color: #67c23a; }
.text-danger { color: #f56c6c; }
.ok { color: #67c23a; }
.bad { color: #f56c6c; }
.gap-sm { display: flex; gap: 12px; align-items: center; }
.pager { display: flex; justify-content: flex-end; margin-top: 16px; }
.link { cursor: pointer; }
.link:hover { color: var(--brand); }
.card-title { font-weight: 600; }
.card-head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.card-sub { font-size: 12px; }
.notice { margin-bottom: 16px; }
.form-card { margin-bottom: 16px; }
.points { font-weight: 600; }

/* ===== 布局（白色侧边栏，与参考站一致） ===== */
.layout { min-height: 100vh; }
.layout-aside { background: #fff; border-right: 1px solid #ebeef5; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; color: var(--brand); border-bottom: 1px solid #f0f2f5; }
.brand-title { font-size: 15px; font-weight: 700; color: #303133; line-height: 1.2; }
.brand-sub { font-size: 12px; color: #909399; }
.layout-menu { border-right: none; flex: 1; }
.layout-header { background: #fff; border-bottom: 1px solid #ebeef5; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.page-title { font-size: 16px; font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 18px; }
.balance-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #ecf5ff; color: var(--brand); border-radius: 16px; text-decoration: none; font-size: 13px; }
.balance-value { font-weight: 700; font-size: 15px; }
.balance-label { color: #79bbff; }
.balance-held { color: #e6a23c; font-size: 12px; }
.user-trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #303133; outline: none; }
.user-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layout-main { padding: 20px; background: var(--page-bg); }
.announcement-content { white-space: pre-wrap; word-break: break-word; line-height: 1.7; color: #303133; max-height: 60vh; overflow-y: auto; }

/* ===== 控制台 ===== */
.stat-card { margin-bottom: 16px; }
.stat-card .el-card__body { display: flex; align-items: center; gap: 14px; min-height: 84px; }
.stat-card.actions .el-card__body { justify-content: center; gap: 12px; flex-wrap: wrap; }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.stat-icon.available { background: linear-gradient(135deg, #409eff, #66b1ff); }
.stat-icon.held { background: linear-gradient(135deg, #e6a23c, #f0c78a); }
.stat-label { color: #909399; font-size: 13px; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.2; }
.guide-card, .recent-card { margin-top: 4px; margin-bottom: 16px; }
.card-header { display: flex; align-items: center; justify-content: space-between; }
.guide-tip { margin-top: 18px; }

/* ===== 第一步：登录 PSN 账号 ===== */
.submit-wrap { max-width: 640px; margin: 0 auto; }
.mode-switch { margin-bottom: 16px; }
.fmt-tip { margin-bottom: 12px; }
.fmt-tip code { background: #0000000f; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.fmt-example { margin-top: 6px; line-height: 1.9; }
.paste-box { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.upload-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.upload-hint { color: #909399; font-size: 12px; line-height: 1.5; }
.parse-note { margin-top: 12px; }
.preview { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.invalid-list { margin-top: 8px; }
.invalid-ul { margin: 0; padding-left: 18px; color: #f56c6c; font-size: 13px; line-height: 1.8; }
.batch-submit { width: 100%; margin-top: 16px; }
.result-header { display: flex; align-items: center; justify-content: space-between; }
.result-summary { display: flex; gap: 20px; margin-bottom: 12px; font-size: 14px; }
.result-actions { margin-top: 12px; }

/* ===== 第二步：登录 PS5 主机 ===== */
.authorize-wrap { max-width: 900px; margin: 0 auto; }
.expire { margin-left: 8px; color: #909399; font-size: 12px; }
.used { color: var(--brand); font-weight: 600; }
.field-hint { color: #909399; font-size: 12px; margin-top: 12px; line-height: 1.5; }
.hint-link { color: var(--brand); text-decoration: none; }

/* ===== 登录记录 ===== */
.new-alert { margin-bottom: 16px; }
.bindings-card { margin-top: 16px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 4px; vertical-align: middle; animation: blink 1s infinite; }
.poll-hint { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .3; } }
.row-highlight { background: #f0f9eb; }

/* ===== 卡密充值 ===== */
.recharge-wrap { max-width: 520px; margin: 0 auto; }
.balance-card { margin-bottom: 16px; }
.balance-inner { display: flex; align-items: center; gap: 14px; }
.balance-num { font-size: 26px; font-weight: 700; }
.held { margin-left: auto; font-size: 13px; }
.tip { margin-top: 8px; }

/* ===== 消费流水 ===== */
.ledger-points { font-weight: 600; }

/* ===== 账户设置 ===== */
.account-wrap { max-width: 640px; margin: 0 auto; }
.info-card { margin-bottom: 16px; }
.logout-row { margin-top: 16px; }
.danger-card { border: 1px solid #fde2e2; }
.danger-lead { color: #f56c6c; margin: 0 0 12px; }
.scope { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.scope-col { flex: 1; min-width: 220px; }
.scope-title { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.scope ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.9; }
.ack { margin-top: 14px; }
