/* =========================================================
   星辰资源站 - 全局样式（原生 CSS，无外部依赖）
   ========================================================= */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f5f7fb;
    --card: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

img, svg { max-width: 100%; }

h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.35; font-weight: 700; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.muted { color: var(--muted); }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12px; }
.center { text-align: center; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .5px;
    box-shadow: 0 6px 16px rgba(79, 70, 229, .35);
    flex: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.brand-text small {
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.nav-links > a {
    color: #334155;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color .15s;
}

.nav-links > a:hover { color: var(--primary); }
.nav-links > a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.balance-chip {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 999px;
}

.link-muted { color: var(--muted) !important; font-size: 13px; }
.link-primary { color: var(--primary); font-weight: 600; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6d28d9);
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .28);
}

.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(79, 70, 229, .34); }

.btn-outline {
    border-color: var(--border);
    color: #334155;
    background: #fff;
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--primary); }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------------- 提示条 ---------------- */
.alert {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    margin: 18px 0 0;
    border: 1px solid transparent;
}

.alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* ---------------- 首页 Hero ---------------- */
.hero {
    background:
        radial-gradient(900px 380px at 85% -20%, rgba(255, 255, 255, .22), transparent 60%),
        radial-gradient(700px 420px at 5% 120%, rgba(255, 255, 255, .14), transparent 60%),
        linear-gradient(135deg, #4338ca 0%, #6d28d9 48%, #2563eb 100%);
    color: #fff;
    padding: 64px 0 56px;
}

.hero-inner { text-align: center; }

.hero-badge {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 38px;
    letter-spacing: -.5px;
    margin-bottom: 12px;
}

.hero-sub {
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    margin-bottom: 28px;
}

.search {
    display: flex;
    gap: 8px;
    max-width: 620px;
    margin: 0 auto 30px;
    background: #fff;
    padding: 7px;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}

.search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text);
    background: transparent;
    font-family: inherit;
}

.search button {
    border: 0;
    border-radius: 10px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.search button:hover { filter: brightness(1.06); }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
}

.hero-stats > div { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong { font-size: 22px; font-weight: 700; }
.hero-stats span { font-size: 12px; color: rgba(255, 255, 255, .72); margin-top: 2px; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 40px 24px 56px; }
.section.narrow { max-width: 980px; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.section-head h2 { margin: 0; font-size: 21px; }
.related-head { margin-top: 48px; }

.page-head { margin-bottom: 24px; }
.page-head h1 { margin-bottom: 6px; }

/* ---------------- 分类筛选 ---------------- */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.chip {
    padding: 7px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    transition: all .15s;
}

.chip:hover { border-color: var(--primary); color: var(--primary); }

.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(79, 70, 229, .28);
}

/* ---------------- 资源卡片 ---------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 22px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #c7d2fe;
}

.cover {
    position: relative;
    display: block;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background: #e2e8f0;
}

.cover-svg { width: 100%; height: 100%; display: block; }

.cover-price {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.cover-price.free { background: rgba(16, 185, 129, .92); }

.card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tag {
    align-self: flex-start;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 9px;
}

.card-title {
    font-size: 15px;
    margin: 0 0 6px;
    line-height: 1.45;
}

.card-title a:hover { color: var(--primary); }

.card-desc {
    color: var(--muted);
    font-size: 12.5px;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #94a3b8;
    font-size: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    margin-bottom: 14px;
    margin-top: auto;
}

/* ---------------- 分页 ---------------- */
.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pager a, .pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 13px;
    color: #475569;
}

.pager a:hover { border-color: var(--primary); color: var(--primary); }

.pager .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.pager .disabled { color: #cbd5e1; background: #f8fafc; }

/* ---------------- 空状态 ---------------- */
.empty {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius);
    padding: 60px 24px;
    text-align: center;
    color: var(--muted);
}

.empty.small { padding: 40px 20px; }
.empty.large { padding: 80px 24px; }
.empty p { margin-bottom: 16px; }
.error-code { font-size: 64px; font-weight: 800; color: #e2e8f0; line-height: 1; }

/* ---------------- 面包屑 ---------------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.breadcrumb .current { color: #334155; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------------- 资源详情 ---------------- */
.detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.detail-main {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.detail-cover {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 5 / 3;
    margin-bottom: 22px;
    background: #e2e8f0;
}

.detail-cover .cover-svg { width: 100%; height: 100%; }

.detail-title { font-size: 24px; margin-bottom: 12px; }

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--muted);
    font-size: 13px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.detail-tags .tag { margin-bottom: 0; }

.detail-block { margin-bottom: 24px; }
.detail-block h2 { font-size: 17px; margin-bottom: 10px; }
.detail-block p { color: #475569; }

.detail-list { margin: 0; padding-left: 20px; color: #475569; }
.detail-list li { margin-bottom: 8px; }

.detail-side { position: sticky; top: 88px; }

.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.side-card { text-align: center; }

.side-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.side-price .free-text { color: var(--success); }

.side-hint { font-size: 12px; color: #94a3b8; margin: 12px 0 18px; }

.side-list {
    list-style: none;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--border);
    text-align: left;
}

.side-list li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    color: var(--muted);
}

.side-list strong { color: #334155; font-weight: 600; }

/* ---------------- 登录 / 注册 ---------------- */
.auth-wrap {
    min-height: calc(100vh - 260px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 22px;
}

.auth-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }

.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-sub { font-size: 13px; margin-bottom: 22px; }

.field {
    display: block;
    margin-bottom: 16px;
}

.field span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}

.field input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #f8fafc;
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.field input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

.auth-card .btn { margin-top: 6px; }

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin: 18px 0 0;
}

.auth-switch a { color: var(--primary); font-weight: 600; }

.auth-demo {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 8px;
    margin: 14px 0 0;
}

/* ---------------- 充值 ---------------- */
.recharge-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.panel-step { font-size: 15px; margin: 24px 0 14px; }
.panel-step:first-of-type { margin-top: 0; }

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.amount {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: all .15s;
    padding: 8px;
}

.amount:hover { border-color: #a5b4fc; }

.amount input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.amount-value { font-size: 18px; font-weight: 700; color: #334155; }

.amount.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .10);
}

.amount.active .amount-value { color: var(--primary); }

.amount-custom {
    grid-column: span 3;
    flex-direction: row;
    gap: 12px;
    justify-content: flex-start;
    padding: 8px 14px;
}

.amount-label { font-size: 13px; color: #475569; font-weight: 600; white-space: nowrap; }

.custom-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #f8fafc;
}

.custom-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .10);
}

.channel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 26px;
}

.channel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    background: #fff;
    transition: all .15s;
}

.channel input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.channel-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex: none;
}

.channel.wechat .channel-logo { background: linear-gradient(135deg, #22c55e, #16a34a); }
.channel.alipay .channel-logo { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.channel-name { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; }
.channel-name small { font-size: 11px; font-weight: 400; color: var(--muted); }

.channel:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .10);
}

.form-hint { font-size: 12px; color: #94a3b8; margin: 14px 0 0; }

.balance-panel { text-align: center; }
.balance-panel .btn { margin: 14px 0 6px; }

.balance-big {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    margin: 8px 0 12px;
    letter-spacing: -.5px;
}

.tips {
    list-style: none;
    padding: 16px 0 0;
    margin: 14px 0 0;
    border-top: 1px solid var(--border);
    text-align: left;
}

.tips li {
    position: relative;
    padding-left: 16px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 8px;
}

.tips li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a5b4fc;
}

/* ---------------- 扫码支付 ---------------- */
.pay-panel {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
    padding: 34px 36px 30px;
}

.pay-panel h1 { font-size: 22px; margin-bottom: 4px; }

.pay-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    margin: 14px 0 20px;
    letter-spacing: -.5px;
}

.qr-box {
    position: relative;
    width: 252px;
    height: 252px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

#qrcode { width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; }
#qrcode img, #qrcode canvas { width: 220px !important; height: 220px !important; }

.qr-loading { position: absolute; color: #94a3b8; font-size: 13px; }

.pay-status {
    margin-top: 16px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.pay-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
    color: var(--muted);
    margin: 16px 0 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.pay-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------------- 模拟收银台 ---------------- */
.cashier-panel { max-width: 520px; margin: 0 auto; padding: 30px 34px; }

.cashier-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cashier-head h1 { font-size: 20px; margin: 0; }
.cashier-head p { margin: 0; font-size: 12px; }

.cashier-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    flex: none;
}

.cashier-logo.wechat { background: linear-gradient(135deg, #22c55e, #16a34a); }
.cashier-logo.alipay { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.cashier-amount {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    margin: 8px 0 22px;
    letter-spacing: -.5px;
}

.cashier-info {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    margin-bottom: 22px;
}

.cashier-info > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 2px;
    font-size: 13px;
}

.cashier-info span { color: var(--muted); }
.cashier-info strong { font-weight: 600; word-break: break-all; text-align: right; }
.cashier-info .waiting { color: #f59e0b; }

/* ---------------- 支付成功 ---------------- */
.success-panel {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 36px 34px;
}

.success-icon { margin-bottom: 12px; }
.success-panel h1 { font-size: 24px; margin-bottom: 4px; }

.success-amount {
    font-size: 42px;
    font-weight: 800;
    color: var(--success);
    margin: 16px 0 22px;
    letter-spacing: -.5px;
}

.success-info {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    margin-bottom: 24px;
    text-align: left;
}

.success-info > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 2px;
    font-size: 13px;
}

.success-info span { color: var(--muted); }
.success-info strong { font-weight: 600; text-align: right; word-break: break-all; }
.balance-strong { color: var(--primary); }

.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------- 个人中心 ---------------- */
.profile-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.account-card { text-align: center; }

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(79, 70, 229, .3);
}

.account-card h2 { font-size: 18px; margin-bottom: 2px; }
.account-card > p { font-size: 12px; margin-bottom: 0; }

.account-balance {
    margin: 20px 0 16px;
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
}

.account-balance .balance-big { margin: 4px 0 0; font-size: 30px; }

.account-meta {
    list-style: none;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--border);
    text-align: left;
}

.account-meta li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    color: var(--muted);
}

.account-meta strong { color: #334155; font-weight: 600; }
.account-meta .ok { color: var(--success); }

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.panel-head h2 { margin: 0; font-size: 18px; }

.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 620px;
}

.table th {
    text-align: left;
    font-weight: 600;
    color: var(--muted);
    font-size: 12.5px;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.table tbody tr:hover { background: #fafbff; }
.amount-cell { font-weight: 700; color: var(--primary) !important; }

.badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-success { background: #ecfdf5; color: #047857; }
.badge-wait { background: #fffbeb; color: #b45309; }

/* ---------------- 页脚 ---------------- */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 36px 0 22px;
    margin-top: 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-inner strong { font-size: 15px; }
.footer-inner p { font-size: 12.5px; margin: 6px 0 0; max-width: 460px; }

.footer-links { display: flex; gap: 20px; font-size: 13px; color: #475569; }

.copyright {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
    .detail,
    .recharge-grid,
    .profile-grid { grid-template-columns: 1fr; }

    .detail-side { position: static; }
    .hero h1 { font-size: 30px; }
}

@media (max-width: 720px) {
    .wrap { padding: 0 16px; }
    .section { padding: 28px 16px 40px; }

    .brand-text small { display: none; }

    .nav-links { gap: 12px; font-size: 13px; }
    .nav-links .balance-chip { display: none; }

    .hero { padding: 46px 0 40px; }
    .hero h1 { font-size: 25px; }
    .hero-sub { font-size: 13.5px; }
    .hero-stats { gap: 28px; }
    .hero-stats strong { font-size: 18px; }

    .search { flex-direction: column; padding: 8px; }
    .search button { width: 100%; }

    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .card-body { padding: 12px 13px 14px; }
    .card-title { font-size: 14px; }
    .card-desc { display: none; }
    .card-meta { flex-direction: column; gap: 2px; }

    .amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .amount-custom { grid-column: span 2; }
    .channel-grid { grid-template-columns: 1fr; }

    .detail-main { padding: 18px; }
    .detail-title { font-size: 20px; }

    .pay-panel, .cashier-panel, .success-panel { padding: 24px 20px; }
    .qr-box { width: 232px; height: 232px; }

    .auth-card { padding: 26px 22px; }
    .auth-wrap { padding: 32px 16px; }

    .footer-inner { flex-direction: column; }
}
