/* =====================================================================
   GO 云面板 · UI v3
   风格：科技感商务蓝白（腾讯云调性），卡片式布局，移动端优先
   主色 #0052D9 / #0A63EC，科技青 #00A6FF / #12C2E9；不使用紫色
   深色主题：<html data-theme="dark">
   ===================================================================== */

:root {
    --brand: #0052d9;
    --brand-hover: #0046b8;
    --brand-2: #0a63ec;
    --brand-3: #00a6ff;
    --brand-4: #12c2e9;
    --tint: #eaf1ff;
    --tint-2: #f4f8ff;
    --bg: #f4f6fb;
    --bg-line: rgba(0, 82, 217, .04);
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --surface-3: #eef2f9;
    --text: #16191d;
    --text-2: #4a5568;
    --muted: #8a94a6;
    --border: #e6eaf2;
    --border-2: #d8dfeb;
    --ok: #00a870;
    --ok-bg: #e4f8f0;
    --warn: #ed7b2f;
    --warn-bg: #fff4e9;
    --danger: #d54941;
    --danger-bg: #fdecEB;
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 16px;
    --sh-1: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .04);
    --sh-2: 0 4px 14px rgba(16, 24, 40, .07);
    --sh-3: 0 14px 38px rgba(9, 30, 66, .16);
    --ring: 0 0 0 3px rgba(0, 82, 217, .13);
    --head-h: 56px;
    --tab-h: 62px;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
    --brand: #4a93ff;
    --brand-hover: #6ba6ff;
    --brand-2: #3d86ff;
    --brand-3: #38b6ff;
    --brand-4: #3ee0d6;
    --tint: #13233c;
    --tint-2: #101a2c;
    --bg: #0a1120;
    --bg-line: rgba(74, 147, 255, .05);
    --surface: #111b2d;
    --surface-2: #16233a;
    --surface-3: #1b2a44;
    --text: #e8eefb;
    --text-2: #becbdf;
    --muted: #7f8da3;
    --border: #1e2e49;
    --border-2: #2b3f61;
    --ok: #2fd39a;
    --ok-bg: #10312a;
    --warn: #f2a35c;
    --warn-bg: #322517;
    --danger: #ff6b63;
    --danger-bg: #341a1c;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .35);
    --sh-2: 0 6px 18px rgba(0, 0, 0, .42);
    --sh-3: 0 18px 44px rgba(0, 0, 0, .55);
    --ring: 0 0 0 3px rgba(74, 147, 255, .2);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 8% -8%, rgba(0, 166, 255, .10), transparent 40%),
        radial-gradient(circle at 96% 2%, rgba(0, 82, 217, .08), transparent 36%),
        linear-gradient(var(--bg-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-line) 1px, transparent 1px);
    background-size: auto, auto, 34px 34px, 34px 34px;
    font: 14px/1.62 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; }

h1, h2, h3, h4 { margin: 0 0 10px; font-weight: 650; line-height: 1.32; letter-spacing: -.2px; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }
code, pre { word-break: break-word; }

.muted { color: var(--muted); font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mb-0 { margin-bottom: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* 页面标题区（现有视图无需改结构） */
.container > h1, .admin-content > h1 { margin-bottom: 4px; }
.row-between > h1 { margin-bottom: 0; }
.row-between:has(> h1) {
    padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border);
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.page { padding: 18px 0 40px; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- 顶栏 */
.app-header {
    position: sticky; top: 0; z-index: 40; height: var(--head-h);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.app-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, rgba(0, 82, 217, 0), rgba(0, 166, 255, .6), rgba(0, 82, 217, 0));
}
.app-header .container { display: flex; align-items: center; gap: 12px; height: 100%; min-width: 0; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: var(--text); min-width: 0; }
.brand img { height: 26px; width: auto; }
.brand-mark {
    width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px;
    background: linear-gradient(135deg, #0052d9 0%, #0a63ec 45%, #12c2e9 100%);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 82, 217, .32);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text small { font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .7px; text-transform: uppercase; }
.header-nav { display: none; gap: 2px; margin-left: 14px; }
.header-nav a {
    padding: 0 14px; height: 36px; border-radius: 999px; color: var(--text-2); font-size: 14px;
    display: inline-flex; align-items: center; gap: 6px; position: relative; transition: .16s;
}
.header-nav a:hover { background: var(--tint-2); color: var(--brand); }
.header-nav a.active { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 4px 12px rgba(0, 82, 217, .28); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
@media (min-width: 900px) {
    .header-nav { display: flex; }
    .menu-toggle { display: none !important; }
}

/* 余额胶囊 */
.wallet {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 12px;
    border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface);
    color: var(--text); font-size: 13px; box-shadow: var(--sh-1); white-space: nowrap;
}
.wallet:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--sh-2); }
.wallet .wallet-label { color: var(--muted); font-size: 11.5px; }
.wallet .wallet-amount { font-family: var(--mono); font-weight: 700; color: var(--brand); }
.wallet .wallet-add {
    width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff; font-size: 15px; line-height: 1;
}
@media (max-width: 430px) {
    .wallet { padding: 0 5px 0 10px; gap: 6px; }
    .wallet .wallet-label { display: none; }
    .wallet .wallet-amount { font-size: 12.5px; }
}

/* ---------------------------------------------------------------- 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
    font-size: 14px; font-weight: 550; cursor: pointer; text-decoration: none; transition: .16s;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: #fff; box-shadow: 0 8px 18px rgba(0, 82, 217, .26); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: var(--surface); color: var(--brand); border-color: var(--border-2); box-shadow: var(--sh-1); }
.btn-ghost:hover { background: var(--tint-2); color: var(--brand); border-color: var(--brand); box-shadow: var(--sh-2); }
.btn-plain { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.btn-plain:hover { background: var(--surface-3); color: var(--text); box-shadow: none; }
.btn-danger { background: linear-gradient(135deg, #e05a51, var(--danger)); }
.btn-danger:hover { box-shadow: 0 8px 18px rgba(213, 73, 65, .26); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--brand); padding: 0; min-height: 0; cursor: pointer; font-size: 13px; }
.icon-btn {
    width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 17px; line-height: 1; transition: .16s; box-shadow: var(--sh-1);
}
.icon-btn:hover { background: var(--tint-2); color: var(--brand); border-color: var(--brand); }

/* ---------------------------------------------------------------- 卡片 */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    box-shadow: var(--sh-1); overflow: hidden;
}
.card + .card, .card.mt-16 { margin-top: 16px; }
.card-head {
    padding: 14px 18px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.card-head h2, .card-head h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 9px; }
.card-head h2::before, .card-head h3::before {
    content: ""; width: 3px; height: 15px; border-radius: 2px;
    background: linear-gradient(180deg, var(--brand), var(--brand-4));
}
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }
.card-foot { padding: 13px 18px; border-top: 1px solid var(--border); background: var(--surface-2); }

.stat {
    position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh-1);
}
.stat::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--brand), var(--brand-4));
}
.stat::after {
    content: ""; position: absolute; right: -34px; top: -34px; width: 96px; height: 96px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 166, 255, .16), transparent 70%);
}
.stat .label { color: var(--muted); font-size: 12.5px; }
.stat .value { font-size: 26px; font-weight: 800; letter-spacing: -1px; margin-top: 4px; font-family: var(--mono); word-break: break-all; }
.stat .value small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; font-family: inherit; }

/* ---------------------------------------------------------------- 表单 */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.input, .select, .textarea {
    width: 100%; min-height: 44px; padding: 10px 13px;
    border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface);
    color: var(--text); font-size: 14px; font-family: inherit; transition: .16s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.textarea { min-height: 104px; resize: vertical; line-height: 1.65; }
.textarea.code { font-family: var(--mono); font-size: 12.5px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 400; margin: 10px 0; color: var(--text-2); }
.checkbox input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--brand); }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
@media (min-width: 900px) { .checkbox-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.checkbox-grid .checkbox { margin: 6px 0; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-hint { color: var(--muted); font-size: 12px; margin-top: 5px; line-height: 1.6; word-break: break-word; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.inline-form { display: inline; }
input[type="file"] { font-size: 13px; }

/* ---------------------------------------------------------------- 表格 */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.table th, table.table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.table th {
    background: var(--surface-2); color: var(--text-2); font-weight: 600; white-space: nowrap; font-size: 12.5px;
    letter-spacing: .2px; position: sticky; top: 0; z-index: 1;
}
table.table tbody tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover { background: var(--tint-2); }
table.table td { word-break: break-word; }
table.table td .row { gap: 6px; }

@media (max-width: 719px) {
    table.table.responsive thead { display: none; }
    table.table.responsive, table.table.responsive tbody, table.table.responsive tr, table.table.responsive td { display: block; width: 100%; }
    table.table.responsive tr {
        border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 12px; padding: 10px 14px;
        background: var(--surface); box-shadow: var(--sh-1);
    }
    table.table.responsive td {
        border: 0; padding: 8px 0; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start;
        text-align: right; font-size: 13px;
    }
    table.table.responsive td::before {
        content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; flex: 0 0 82px; font-weight: 500;
    }
    table.table.responsive td[data-label=""]::before { display: none; }
    table.table.responsive td .row, table.table.responsive td form { justify-content: flex-end; }
}

/* ---------------------------------------------------------------- 徽标 */
.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
    font-size: 12px; line-height: 17px; background: var(--surface-3); color: var(--text-2); white-space: nowrap;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-brand { background: var(--tint); color: var(--brand); }
.badge-tech { background: linear-gradient(120deg, rgba(0, 82, 217, .12), rgba(18, 194, 233, .18)); color: var(--brand); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------------------------------------------------------------- 提示 */
.alert { border-radius: 10px; padding: 11px 15px; font-size: 13px; margin-bottom: 14px; border: 1px solid transparent; word-break: break-word; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: rgba(0, 168, 112, .22); }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: rgba(213, 73, 65, .22); }
.alert-warning { background: var(--warn-bg); color: var(--warn); border-color: rgba(237, 123, 47, .22); }
.alert-info { background: var(--tint); color: var(--brand); border-color: rgba(0, 82, 217, .18); }

.notice-bar {
    background: linear-gradient(90deg, var(--tint), var(--tint-2)); color: var(--brand);
    border: 1px solid rgba(0, 82, 217, .15); padding: 11px 15px; border-radius: var(--r);
    font-size: 13px; display: flex; gap: 8px; align-items: flex-start;
}
.empty { text-align: center; padding: 44px 18px; color: var(--muted); }
.empty .big { font-size: 36px; margin-bottom: 10px; opacity: .4; }

/* ---------------------------------------------------------------- Hero */
.hero {
    position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid rgba(0, 82, 217, .18);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(0, 166, 255, .38), transparent 55%),
        linear-gradient(125deg, #013a9e 0%, #0052d9 45%, #0a7ff0 100%);
    color: #fff; padding: 26px 20px; box-shadow: var(--sh-2);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(120% 100% at 100% 0%, #000 25%, transparent 76%);
}
.hero h1 { color: #fff; font-size: 24px; letter-spacing: -.5px; }
.hero p { color: rgba(255, 255, 255, .9); max-width: 620px; }
.hero .row { position: relative; z-index: 1; }
.hero .btn { background: #fff; color: var(--brand); }
.hero .btn:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .26); }
.hero .btn.btn-glass { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.hero-stats .item { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; padding: 9px 12px; }
.hero-stats .item b { display: block; font-size: 19px; font-family: var(--mono); }
.hero-stats .item span { font-size: 11.5px; opacity: .88; }
@media (max-width: 430px) {
    .hero { padding: 20px 16px; border-radius: var(--r); }
    .hero h1 { font-size: 20px; }
    .hero-stats { gap: 8px; }
    .hero-stats .item b { font-size: 16px; }
    .hero-stats .item span { font-size: 10.5px; }
}

/* ---------------------------------------------------------------- 套餐卡 */
.plan-card {
    position: relative; display: flex; flex-direction: column; gap: 12px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    padding: 20px; box-shadow: var(--sh-1); transition: .18s;
}
.plan-card:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-2px); }
.plan-card .plan-name { font-size: 16px; font-weight: 700; }
.plan-card .plan-price {
    font-size: 30px; font-weight: 800; letter-spacing: -1.2px; font-family: var(--mono); line-height: 1.1;
    background: linear-gradient(120deg, var(--brand), var(--brand-4)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan-card .plan-price small { font-size: 12px; color: var(--muted); font-weight: 400; font-family: inherit; -webkit-text-fill-color: var(--muted); }
.plan-card .plan-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-card .plan-desc { color: var(--muted); font-size: 12.5px; }
.plan-card .btn { margin-top: auto; }
.plan-card.featured { border-color: rgba(0, 166, 255, .55); }
.plan-card.featured::before {
    content: "推荐"; position: absolute; top: 0; right: 16px; font-size: 11px; color: #fff; padding: 3px 10px;
    border-radius: 0 0 8px 8px; background: linear-gradient(120deg, var(--brand), var(--brand-4));
}

/* ---------------------------------------------------------------- 抽屉 + 底部标签栏 */
.drawer-mask { position: fixed; inset: 0; background: rgba(8, 15, 30, .5); z-index: 60; opacity: 0; visibility: hidden; transition: opacity .2s; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 84%; max-width: 320px; z-index: 61;
    background: var(--surface); transform: translateX(100%); transition: transform .22s ease;
    display: flex; flex-direction: column; box-shadow: var(--sh-3);
}
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open .drawer-mask { opacity: 1; visibility: visible; }
.drawer-head { padding: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 10px; }
.drawer-nav a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-size: 14.5px; }
.drawer-nav a.active { background: var(--tint); color: var(--brand); font-weight: 600; }
.drawer-nav a:hover { background: var(--surface-2); }
.drawer-nav .nav-icon { width: 20px; text-align: center; opacity: .85; }
.drawer-foot { padding: 14px 16px; border-top: 1px solid var(--border); }

/* 移动端底部导航 */
.tabbar { display: none; }
@media (max-width: 899px) {
    .tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: var(--tab-h);
        padding-bottom: env(safe-area-inset-bottom);
        background: color-mix(in srgb, var(--surface) 92%, transparent);
        backdrop-filter: saturate(180%) blur(14px);
        border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(16, 24, 40, .06);
    }
    .tabbar a {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        color: var(--muted); font-size: 11px; position: relative; min-height: 44px;
    }
    .tabbar a .tab-icon { font-size: 19px; line-height: 1; }
    .tabbar a.active { color: var(--brand); font-weight: 600; }
    .tabbar a.active::before {
        content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px;
        background: linear-gradient(90deg, var(--brand), var(--brand-4));
    }
    body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- 管理端 */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
    display: none; width: 232px; flex: 0 0 232px; padding: 16px 12px;
    background: var(--surface); border-right: 1px solid var(--border);
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { padding: 4px 10px 16px; }
.admin-nav a {
    display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 12px;
    border-radius: 10px; color: var(--text-2); font-size: 14px; margin-bottom: 2px; transition: .15s;
}
.admin-nav a .nav-icon { width: 18px; text-align: center; opacity: .8; }
.admin-nav a.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(0, 82, 217, .24); }
.admin-nav a.active .nav-icon { opacity: 1; }
.admin-nav a:hover:not(.active) { background: var(--surface-2); color: var(--brand); }
.admin-nav .group-title { padding: 16px 12px 6px; color: var(--muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar {
    height: var(--head-h); padding: 0 16px; display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 30;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.admin-topbar .title { font-weight: 650; font-size: 15px; }
.admin-topbar .crumb { color: var(--muted); font-size: 12px; }
.admin-content { padding: 18px 16px 44px; max-width: 1340px; }
@media (min-width: 900px) {
    .admin-side { display: block; }
    .admin-topbar .menu-toggle { display: none; }
}
@media (max-width: 430px) { .admin-topbar .crumb { display: none; } }

/* ---------------------------------------------------------------- 分页 */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 16px 0; }
.pagination a, .pagination span {
    min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); font-size: 13px; background: var(--surface);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.pagination .disabled { opacity: .45; }

/* ---------------------------------------------------------------- 进度 / 复制 / 图表 */
.progress { height: 8px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-4)); transition: width .3s; }
.progress.warn > i { background: linear-gradient(90deg, #f0a04b, var(--warn)); }
.progress.danger > i { background: linear-gradient(90deg, #e0554c, var(--danger)); }

.copy-box {
    display: flex; gap: 8px; align-items: center; background: var(--surface-2);
    border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-family: var(--mono); font-size: 12px;
}
.copy-box code { flex: 1; min-width: 0; word-break: break-all; }

.chart-box { position: relative; width: 100%; height: 230px; }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }

/* ---------------------------------------------------------------- 登录页 */
.auth-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px 16px;
    background:
        radial-gradient(58% 48% at 12% 0%, rgba(0, 166, 255, .20), transparent 60%),
        radial-gradient(48% 44% at 88% 6%, rgba(0, 82, 217, .16), transparent 62%),
        linear-gradient(160deg, #edf3fd 0%, #f7f9fc 58%, #eaf1ff 100%);
}
html[data-theme="dark"] .auth-wrap {
    background:
        radial-gradient(58% 48% at 12% 0%, rgba(0, 166, 255, .16), transparent 62%),
        linear-gradient(160deg, #08101f 0%, #0d1830 60%, #081020 100%);
}
.auth-card {
    width: 100%; max-width: 404px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--sh-3); position: relative; overflow: hidden;
}
.auth-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-3), var(--brand-4));
}
.auth-card .auth-title { font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.auth-card .auth-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ---------------------------------------------------------------- 底栏 */
.app-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 22px 0; margin-top: 24px; }
.app-footer .container { color: var(--muted); font-size: 12.5px; text-align: center; line-height: 1.9; }
.app-footer a { color: var(--muted); }

/* ---------------------------------------------------------------- 其它组件 */
.code-block {
    background: #0b1526; color: #bfe0ff; border-radius: 10px; padding: 13px;
    font-family: var(--mono); font-size: 12px; line-height: 1.75; overflow-x: auto; white-space: pre; margin: 0;
    border: 1px solid rgba(0, 166, 255, .18);
}
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs a, .tabs button {
    padding: 10px 15px; border: 0; background: none; color: var(--text-2); font-size: 14px; cursor: pointer;
    border-bottom: 2px solid transparent; white-space: nowrap; min-height: 44px;
}
.tabs a.active, .tabs button.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.kv-list { display: grid; gap: 4px; }
.kv-list .item { display: flex; gap: 14px; justify-content: space-between; font-size: 13.5px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.kv-list .item:last-child { border-bottom: 0; }
.kv-list .item .k { color: var(--muted); flex: 0 0 auto; }
.kv-list .item .v { text-align: right; word-break: break-all; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.captcha-box { margin: 12px 0; }
.captcha-simple { display: flex; gap: 10px; align-items: center; }
.captcha-question {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: 10px;
    padding: 10px; font-family: var(--mono); font-size: 16px; letter-spacing: 2px; user-select: none; min-height: 44px;
}
.captcha-simple .input { flex: 0 0 110px; text-align: center; }
.geetest-slot { min-height: 44px; }

/* 密码强度指示条 */
.pwd-meter { height: 6px; background: var(--border); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.pwd-meter i { display: block; height: 100%; border-radius: 3px; transition: width .25s; width: 0; }
.pwd-meter.lv1 i { width: 25%; background: var(--danger); }
.pwd-meter.lv2 i { width: 50%; background: var(--warn); }
.pwd-meter.lv3 i { width: 75%; background: var(--ok); }
.pwd-meter.lv4 i { width: 100%; background: var(--ok); }
.pwd-hint { font-size: 11.5px; margin-top: 3px; }
.pwd-hint.danger { color: var(--danger); }
.pwd-hint.warn { color: var(--warn); }
.pwd-hint.ok { color: var(--ok); }

/* 文档页 */
.doc-layout { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .doc-layout { grid-template-columns: 230px minmax(0, 1fr); } }
.doc-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; height: fit-content; box-shadow: var(--sh-1); }
.doc-side a { display: block; padding: 9px 11px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; }
.doc-side a:hover { background: var(--tint-2); color: var(--brand); }
.doc-side .group-title { padding: 12px 11px 4px; font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.doc-body h2 { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 18px; }
.doc-body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.doc-body h3 { margin-top: 20px; font-size: 15px; }
.doc-body .table-wrap { overflow-x: auto; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0; }
.doc-body th, .doc-body td { border: 1px solid var(--border); padding: 9px 11px; text-align: left; }
.doc-body th { background: var(--surface-2); }
.doc-body code { background: var(--surface-3); border-radius: 5px; padding: 1px 6px; font-family: var(--mono); font-size: 12.5px; }
.doc-body ul, .doc-body ol { padding-left: 20px; }

@media (max-width: 380px) {
    .stat .value { font-size: 21px; }
    .plan-card .plan-price { font-size: 24px; }
    h1 { font-size: 19px; }
}

/* =====================================================================
   v3.1 修订：滚动条、移动端卡片换行、展开面板、工具栏图标、底栏衔接
   ===================================================================== */

/* 1. 导航卷标不再显示灰色滚动条 */
.tabs { scrollbar-width: none; -ms-overflow-style: none; }
.tabs::-webkit-scrollbar { height: 0; width: 0; display: none; }
.table-wrap { scrollbar-width: thin; }
.table-wrap::-webkit-scrollbar { height: 6px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 6px; }

/* 2. 移动端卡片模式下内容换行，不再把卡片撑宽 */
@media (max-width: 719px) {
    table.table.responsive td { flex-wrap: wrap; align-items: center; }
    table.table.responsive td > * { min-width: 0; }
    table.table.responsive td::before { flex: 0 0 78px; }
    table.table.responsive td .row, table.table.responsive td .plan-meta {
        justify-content: flex-end; flex-wrap: wrap; gap: 6px; max-width: 100%;
    }
}

/* 3. 列表内的可展开面板（如用户管理） */
details { margin-top: 8px; }
details > summary {
    cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--brand); user-select: none;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "⌄"; font-size: 12px; transition: .16s; }
details[open] > summary::after { transform: rotate(180deg); }
details[open] > summary { margin-bottom: 10px; }
.manage-panel {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r);
    padding: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.manage-panel .sub-block + .sub-block { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.manage-panel .sub-title { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; letter-spacing: .3px; }
.manage-panel .field { margin-bottom: 10px; }

/* 4. 用户列表更清晰的头部 */
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar {
    width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-4));
}
.user-cell .user-name { font-weight: 600; line-height: 1.3; }
.user-cell .user-mail { color: var(--muted); font-size: 12px; word-break: break-all; }

/* 5. 移动端工具栏图标放大，不再显得拥挤缩小 */
@media (max-width: 899px) {
    .admin-topbar { padding: 0 12px; gap: 8px; }
    .admin-topbar .header-actions { gap: 6px; }
    .admin-topbar .icon-btn { width: 42px; height: 42px; font-size: 19px; border-radius: 12px; }
    .app-header .icon-btn { width: 42px; height: 42px; font-size: 19px; }
    .app-header .header-actions .btn-sm { min-height: 40px; padding: 0 14px; }
}

/* 6. 底栏与底部标签栏衔接（不再露出背景缝） */
@media (max-width: 899px) {
    body { padding-bottom: 0; }
    .page { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px); }
    .app-footer { margin-top: 18px; margin-bottom: 0; padding-bottom: 18px; }
    .tabbar + * { margin-bottom: 0; }
}

/* 7. 未启用插件：紧凑展示 */
.plugin-card.disabled .card-head { background: var(--surface-2); }
.plugin-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.plugin-hint { color: var(--muted); font-size: 12.5px; }

/* 8. 订单配置表单（内页选择协议 / 流量） */
.option-row { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .option-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.traffic-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.traffic-option .opt-price { font-family: var(--mono); color: var(--brand); font-weight: 700; }

/* 9. 侧边栏无文字版品牌 */
.admin-side .brand.only-mark { padding: 6px 10px 18px; justify-content: center; }
.admin-side .brand.only-mark .brand-mark { width: 34px; height: 34px; font-size: 17px; }

/* 10. 套餐卡协议摘要 */
.plan-proto-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 22px; }

/* 11. 协议选择折叠面板（新增/编辑套餐） */
.proto-picker { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.proto-picker > summary { font-size: 13px; color: var(--text-2); font-weight: 600; }
.proto-picker > summary b { color: var(--brand); }
.proto-picker[open] > summary { margin-bottom: 6px; }

/* 12. 后台套餐卡片 */
.admin-plan-card { display: flex; flex-direction: column; gap: 12px; }
.admin-plan-card .plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.admin-plan-card .plan-title { font-size: 16px; font-weight: 700; }
.admin-plan-card .plan-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.admin-plan-card .plan-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.admin-plan-card .plan-actions form { display: inline-flex; }
.admin-plan-card.featured { border-color: rgba(0, 166, 255, .55); }
.admin-plan-card.featured::before {
    content: "推荐"; position: absolute; top: 0; right: 16px; font-size: 11px; color: #fff; padding: 3px 10px;
    border-radius: 0 0 8px 8px; background: linear-gradient(120deg, var(--brand), var(--brand-4));
}
.plan-card, .admin-plan-card { position: relative; }
.plan-tiers { display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.plan-tiers .tier { display: flex; justify-content: space-between; gap: 10px; }
.plan-tiers .tier span:last-child { font-family: var(--mono); color: var(--brand); }

/* 14. 登录/注册页：小屏可滚动（弹出键盘时不再被裁切） */
.auth-wrap { align-items: center; }
@media (max-height: 720px), (max-width: 520px) {
    .auth-wrap { align-items: flex-start; padding-top: 20px; padding-bottom: 32px; min-height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

/* 15. 弹窗 */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(8, 15, 30, .52); backdrop-filter: blur(2px); }
.modal-box {
    position: relative; width: 100%; max-width: 520px; max-height: 86vh; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--sh-3); overflow: hidden; animation: modal-in .16s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-foot { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; background: var(--surface-2); }
.modal-foot form { display: inline-flex; }
.modal-section { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--surface); }
.modal-section > summary { font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.modal-section[open] > summary { margin-bottom: 10px; }
@media (max-width: 520px) {
    .modal { padding: 0; align-items: flex-end; }
    .modal-box { max-width: none; max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}

/* 16. 下拉多选（协议选择） */
.multiselect { position: relative; }
.multiselect-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    text-align: left; cursor: pointer; padding-right: 34px;
}
.multiselect-trigger span[data-ms-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multiselect-caret { position: absolute; right: 12px; color: var(--muted); font-size: 12px; }
.multiselect-panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
    background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px;
    box-shadow: var(--sh-2); padding: 8px; max-height: 240px; overflow-y: auto;
}
.multiselect-option { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.multiselect-option:hover { background: var(--tint-2); }
.multiselect-option input { width: 18px; height: 18px; accent-color: var(--brand); }

/* 17. 前台套餐卡（紧凑，与首页一致；天数在价格后，推荐角标不遮挡） */
.plan-card-compact { padding: 16px; gap: 10px; }
.plan-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price-row .plan-price { font-size: 24px; }
.plan-days { color: var(--muted); font-size: 12.5px; }
.plan-card-compact .plan-meta { gap: 5px; }
.plan-card-compact .badge { font-size: 11.5px; padding: 2px 7px; }
.plan-card-compact .btn-sm { min-height: 38px; }
.plan-card.featured::before { top: 0; right: 14px; padding: 2px 9px; font-size: 10.5px; }

/* 18. 我的订单列表（移动端紧凑） */
.order-list { display: grid; gap: 10px; }
.order-item {
    display: flex; align-items: center; gap: 12px; padding: 13px 15px; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-1);
}
.order-item:hover { border-color: var(--brand); color: var(--text); box-shadow: var(--sh-2); }
.order-main { flex: 1; min-width: 0; }
.order-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-name { font-weight: 600; font-size: 14.5px; }
.order-sub { font-size: 12.5px; margin-top: 3px; }
.order-no { color: var(--muted); font-size: 11.5px; margin-top: 2px; word-break: break-all; }
.order-side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.order-amount { font-family: var(--mono); font-weight: 700; color: var(--brand); font-size: 15px; }
.order-arrow { color: var(--muted); font-size: 20px; line-height: 1; }
@media (max-width: 719px) {
    .order-item { padding: 12px 13px; gap: 10px; }
    .order-name { font-size: 14px; }
    .order-no { display: none; }
    .order-arrow { display: none; }
}

/* 19. 订单详情：配置区折叠 */
.config-panel > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 18px; cursor: pointer; background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.config-panel > summary::-webkit-details-marker { display: none; }
.config-panel > summary::after { content: ""; }
.config-summary { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.config-summary b { font-size: 15px; }
.config-toggle { color: var(--brand); font-size: 12.5px; white-space: nowrap; }
.config-panel[open] > summary { border-bottom: 1px solid var(--border); }
.config-tip { margin-top: 10px; }

/* 20. 下拉框统一美化（自定义箭头，移动端尺寸一致） */
.select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px 16px;
    padding-right: 34px; cursor: pointer;
}
.select:disabled { opacity: .6; cursor: not-allowed; }
.multiselect-trigger.select { background-image: none; }

/* 20b. 复选框 / 单选统一美化 */
.checkbox input[type=checkbox],
.checkbox input[type=radio],
.multiselect-option input[type=checkbox] {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    width: 19px; height: 19px; flex: 0 0 auto; margin: 2px 0 0;
    border: 1.5px solid var(--border-2); background: var(--surface); cursor: pointer;
    transition: .14s; position: relative;
}
.checkbox input[type=checkbox], .multiselect-option input[type=checkbox] { border-radius: 6px; }
.checkbox input[type=radio] { border-radius: 50%; }
.checkbox input[type=checkbox]:checked, .multiselect-option input[type=checkbox]:checked {
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent;
}
.checkbox input[type=radio]:checked { border: 5.5px solid var(--brand); }
.checkbox input[type=checkbox]:checked::after, .multiselect-option input[type=checkbox]:checked::after {
    content: ""; position: absolute; left: 50%; top: 46%; width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg);
}
.multiselect-option input[type=checkbox] { margin: 0; width: 18px; height: 18px; }

/* 20c. 时长三列 */
.duration-grid { grid-template-columns: 1fr; }
@media (min-width: 760px) { .duration-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 22. 移动端整体瘦身：卡片更紧凑、双侧留白收窄、内容不超出屏幕 */
@media (max-width: 719px) {
    .container { padding: 0 12px; }
    .page { padding: 12px 0 32px; }
    .grid { gap: 10px; }

    .card { border-radius: 10px; }
    .card-head { padding: 11px 13px; }
    .card-head h2, .card-head h3 { font-size: 14px; }
    .card-body { padding: 13px; }
    .card-foot { padding: 11px 13px; }

    h1 { font-size: 19px; }
    h2 { font-size: 16px; }
    .row-between:has(> h1) { padding-bottom: 10px; margin-bottom: 12px; }

    .stat { padding: 12px 13px; }
    .stat .label { font-size: 12px; }
    .stat .value { font-size: 20px; }
    .stat .value small { font-size: 11px; }

    .plan-card, .plan-card-compact { padding: 14px; gap: 8px; border-radius: 10px; }
    .plan-card .plan-name, .plan-card-compact .plan-name { font-size: 15px; }
    .plan-price-row .plan-price, .plan-card-compact .plan-price { font-size: 21px; }
    .plan-days { font-size: 12px; }
    .plan-meta .badge, .plan-card-compact .badge { font-size: 11px; padding: 2px 7px; }
    .plan-card .btn, .plan-card-compact .btn { min-height: 38px; font-size: 13.5px; }

    .order-item { padding: 11px 12px; border-radius: 10px; gap: 8px; }
    .order-name { font-size: 13.5px; }
    .order-sub { font-size: 12px; }
    .order-amount { font-size: 14px; }

    .kv-list .item { font-size: 13px; padding: 7px 0; }
    .badge { font-size: 11.5px; padding: 2px 7px; }
    .btn { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
    .input, .select, .textarea { min-height: 42px; font-size: 13.5px; }
    .tabs a, .tabs button { padding: 9px 12px; font-size: 13.5px; }
    .modal-box { border-radius: 14px 14px 0 0; }
}

/* 窄屏（≤400px）再收一档 */
@media (max-width: 400px) {
    .container { padding: 0 10px; }
    .card-body { padding: 12px; }
    .stat .value { font-size: 18px; }
    .plan-price-row .plan-price, .plan-card-compact .plan-price { font-size: 19px; }
    .hero-stats { gap: 6px; }
    .hero-stats .item { padding: 7px 8px; }
}

/* 23. 验证码区域提示 */
.captcha-hint { font-size: 12px; margin-top: 6px; }
.geetest-wrap { display: flex; flex-direction: column; gap: 4px; }

/* 21. 顶栏图标按钮（SVG 图标更精致） */
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .ico-sun { display: none; }
html[data-theme="dark"] .icon-btn .ico-moon { display: none; }
html[data-theme="dark"] .icon-btn .ico-sun { display: block; }
@media (max-width: 899px) { .icon-btn svg { width: 20px; height: 20px; } }
