/* ==========================================================
   账号相关页面样式（登录 / 注册 / 账号 / 兑换）
   与工作台保持同一套视觉语言
   ========================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    color: #1e293b;
    background: radial-gradient(1200px 600px at 10% 0%, #e4efff 0%, rgba(228, 239, 255, 0) 60%),
                radial-gradient(900px 500px at 100% 100%, #e8f7ff 0%, rgba(232, 247, 255, 0) 55%),
                #f2f6fc;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
}
button, input, select, textarea { font-family: inherit; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; cursor: pointer; border-radius: 10px;
    padding: 11px 22px; font-size: 14px; font-weight: 600;
    text-decoration: none; letter-spacing: .5px;
    transition: .18s;
}
.btn-primary {
    background: linear-gradient(140deg, #4f95f5, #2563eb);
    color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .26);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: #eef4fd; color: #4b6b8e; }
.btn-ghost:hover { background: #e4eefb; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 8px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: #6b809b; margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; height: 46px;
    border: 1px solid #e1eaf7; border-radius: 11px;
    background: #fafcff; padding: 0 14px;
    font-size: 14px; color: #1e293b; outline: none; transition: .18s;
}
.field input:focus, .field select:focus {
    border-color: #7ab8ff; background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}
.field .hint { font-size: 12px; color: #a3b3c8; margin-top: 6px; }

.msg { padding: 11px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; line-height: 1.6; }
.msg.err { background: #fef2f2; color: #dc2626; border: 1px solid #fde2e2; }
.msg.ok  { background: #ecfdf3; color: #16a34a; border: 1px solid #d5f5e3; }
.msg.tip { background: #f2f7ff; color: #4b6b8e; border: 1px solid #e3eefc; }

/* ---------- 居中卡片（登录 / 注册） ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 26px; }
.auth-card {
    width: min(430px, 100%);
    background: #fff; border-radius: 22px;
    padding: 36px 34px 30px;
    box-shadow: 0 18px 55px rgba(37, 99, 235, .14);
}
.auth-card .logo {
    width: 52px; height: 52px; border-radius: 15px;
    background: linear-gradient(140deg, #60a5fa, #2563eb);
    display: grid; place-items: center;
    color: #fff; font-size: 21px; margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}
.auth-card h1 { margin: 0 0 6px; font-size: 20px; letter-spacing: .5px; }
.auth-card .sub { margin: 0 0 24px; font-size: 12.5px; color: #93a5c0; }
.auth-card .foot { margin-top: 20px; font-size: 12.5px; color: #8ea1bd; text-align: center; line-height: 1.9; }
.auth-card .foot a { color: #3b82f6; text-decoration: none; font-weight: 600; }

/* ---------- 页面容器（账号 / 管理） ---------- */
.page { width: min(880px, 100%); margin: 0 auto; padding: 26px 20px 60px; }
.page-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 18px;
}
.page-head h1 { margin: 0; font-size: 21px; letter-spacing: .5px; }
.page-head .right { margin-left: auto; display: flex; gap: 10px; }
.crumb { font-size: 12.5px; color: #93a5c0; }

.card {
    background: #fff; border-radius: 18px;
    padding: 20px 22px; margin-bottom: 16px;
    box-shadow: 0 4px 18px rgba(37, 99, 235, .07);
}
.card h2 {
    margin: 0 0 4px; font-size: 15.5px; display: flex; align-items: center; gap: 8px;
}
.card h2::before {
    content: ''; width: 4px; height: 15px; border-radius: 3px;
    background: linear-gradient(180deg, #7ab8ff, #3b82f6);
}
.card .desc { font-size: 12.5px; color: #93a5c0; margin: 0 0 16px 12px; }

/* 套餐卡 */
.plan-box {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: linear-gradient(120deg, #eef6ff, #f7fbff);
    border: 1px solid #e2edfd;
    border-radius: 14px; padding: 16px 18px;
}
.plan-name { font-size: 18px; font-weight: 800; color: #1b3a5c; }
.plan-meta { font-size: 12.5px; color: #7b8fab; margin-top: 4px; }
.plan-box .right { margin-left: auto; display: flex; gap: 10px; }

/* 额度 */
.quota-item { margin-bottom: 16px; }
.quota-item .top {
    display: flex; font-size: 13px; color: #4b6b8e; margin-bottom: 7px;
}
.quota-item .top b { margin-left: auto; font-variant-numeric: tabular-nums; }
.quota-item .bar { height: 9px; border-radius: 6px; background: #eef3fa; overflow: hidden; }
.quota-item .bar i {
    display: block; height: 100%; border-radius: 6px;
    background: linear-gradient(90deg, #7ab8ff, #3b82f6);
    transition: width .3s;
}
.quota-item.full .bar i { background: linear-gradient(90deg, #fca5a5, #ef4444); }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
    text-align: left; font-weight: 600; color: #7b8fab;
    padding: 10px 8px; border-bottom: 1px solid #eef3fa; white-space: nowrap;
}
.table td { padding: 11px 8px; border-bottom: 1px solid #f4f8fd; color: #3c5372; }
.table tr:last-child td { border-bottom: 0; }
.table .muted { color: #a3b3c8; }
.pill {
    display: inline-block; padding: 2px 9px; border-radius: 7px;
    font-size: 11.5px; background: #eef4ff; color: #3b82f6;
}
.pill.gray { background: #f1f5fa; color: #8497ae; }
.pill.green { background: #e9fbf0; color: #16a34a; }
.pill.red { background: #fdeeee; color: #e2564f; }
.pill.gold { background: #fff6e0; color: #d98a06; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin-bottom: 0; flex: 1 1 140px; }

@media (max-width: 640px) {
    .auth-card { padding: 28px 22px 24px; }
    .page { padding: 18px 14px 50px; }
    .inline-form .field { flex: 1 1 100%; }
    .table { font-size: 12px; }
}
