* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0e1a;
    --bg2: #0f1629;
    --card: rgba(20, 28, 48, .72);
    --card-solid: #141c30;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);
    --text: #e8edf7;
    --muted: #8a93ad;
    --primary: #3b82f6;
    --primary-2: #06b6d4;
    --primary-dark: #2563eb;
    --green: #10b981;
    --red: #ef4444;
    --yellow: #f59e0b;
    --purple: #a06ff5;
    --blue: #3aa1ff;
    --radius: 16px;
    --radius-sm: 10px;
    --blur: 18px;
}

html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}
body::before {
    content: '';
    position: fixed;
    top: -20%; left: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(59,130,246,.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -20%; right: -10%;
    width: 50%; height: 50%;
    background: radial-gradient(circle, rgba(6,182,212,.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }

/* ============ 顶部导航 ============ */
.topnav {
    background: rgba(15, 22, 41, .85);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.topnav .container { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.brand { font-size: 19px; font-weight: 800; color: var(--text); background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-right a { color: var(--muted); font-size: 14px; padding: 4px 2px; }
.nav-right a:hover, .nav-right a.active { color: var(--text); }
.nav-user { color: var(--text); font-size: 13px; padding: 4px 12px; background: var(--card-solid); border: 1px solid var(--border); border-radius: 20px; }

/* ============ 首页（auth.cccyun.cc 风格） ============ */
.home-wrap { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 0 16px; min-height: 100vh; display: flex; flex-direction: column; }
.home-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.home-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.home-hero { text-align: center; padding: 48px 0 30px; flex: 1; }
.kicker { color: var(--primary-2); font-weight: 800; letter-spacing: .12em; font-size: 11px; text-transform: uppercase; margin-bottom: 10px; }
.home-hero h1 { font-size: clamp(26px, 6vw, 38px); font-weight: 900; margin-bottom: 10px; }
.home-sub { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.check-form { display: flex; gap: 10px; }
.check-form input {
    flex: 1; min-width: 0;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--card-solid);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: border .2s;
}
.check-form input:focus { border-color: var(--primary); }
.check-result {
    margin-top: 22px; padding: 16px 18px;
    border-radius: var(--radius);
    display: flex; align-items: center; gap: 14px;
    text-align: left;
    animation: fadeIn .3s ease;
}
.result-ok { background: rgba(16,185,129,.10); border: 1px solid rgba(16,185,129,.4); }
.result-fail { background: rgba(239,68,68,.10); border: 1px solid rgba(239,68,68,.4); }
.result-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.result-ok .result-icon { background: rgba(16,185,129,.2); color: var(--green); }
.result-fail .result-icon { background: rgba(239,68,68,.2); color: var(--red); }
.result-text strong { font-size: 15px; word-break: break-all; }
.result-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.home-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.home-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 10px 0 30px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 14px; backdrop-filter: blur(var(--blur)); }
.feature-ico { font-size: 22px; margin-bottom: 8px; }
.feature-card h3 { font-size: 14px; margin-bottom: 4px; }
.feature-card p { color: var(--muted); font-size: 12px; line-height: 1.5; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============ 通用卡片/表单/按钮 ============ */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 18px;
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { font-size: 17px; }
.card h3 { margin-bottom: 12px; font-size: 17px; }
.sub-title { margin: 20px 0 12px; font-size: 15px; padding-top: 14px; border-top: 1px dashed var(--border); }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg2);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border .2s;
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group input[type="checkbox"] { width: auto; }
.form-group input[type="file"] { padding: 7px; font-size: 13px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.form-row .form-group { margin-bottom: 10px; }
.flex-1 { flex: 1; min-width: 170px; }
.flex-2 { flex: 2; min-width: 210px; }
.w-100 { width: 100%; }

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: opacity .2s, transform .1s;
    text-align: center;
    font-family: inherit;
    line-height: 1.4;
}
.btn:hover { opacity: .88; color: #fff; }
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.btn-success { background: var(--green); }
.btn-danger { background: var(--red); }
.btn-warning { background: var(--yellow); color: #1a1a1a; }
.btn-info { background: var(--blue); }
.btn-default { background: var(--card-solid); border-color: var(--border-strong); color: var(--text); }
.btn-default:hover { color: var(--text); border-color: var(--primary); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }

/* ============ 徽章/提示 ============ */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    background: var(--bg2); border: 1px solid var(--border);
}
.badge-green { background: rgba(16,185,129,.12); color: var(--green); border-color: rgba(16,185,129,.4); }
.badge-red { background: rgba(239,68,68,.12); color: var(--red); border-color: rgba(239,68,68,.4); }
.badge-warning { background: rgba(245,158,11,.12); color: var(--yellow); border-color: rgba(245,158,11,.4); }
.badge-blue { background: rgba(58,161,255,.12); color: var(--blue); border-color: rgba(58,161,255,.4); }
.badge-purple { background: rgba(160,111,245,.12); color: var(--purple); border-color: rgba(160,111,245,.4); }

.alert { padding: 12px 15px; border-radius: var(--radius-sm); margin-bottom: 15px; font-size: 14px; }
.alert-success { background: rgba(16,185,129,.10); border: 1px solid rgba(16,185,129,.4); color: var(--green); }
.alert-error { background: rgba(239,68,68,.10); border: 1px solid rgba(239,68,68,.4); color: var(--red); }
.alert-info { background: rgba(58,161,255,.10); border: 1px solid rgba(58,161,255,.4); color: var(--blue); }

/* ============ 统计卡片 ============ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; backdrop-filter: blur(var(--blur)); }
.stat-num { font-size: 26px; font-weight: 800; color: var(--primary); }
.stat-card.stat-warn .stat-num { color: var(--yellow); }
.stat-label { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ============ 表格（移动端横向滚动） ============ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th, .table td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table thead th { color: var(--muted); font-weight: 500; font-size: 12px; white-space: nowrap; }
.table tbody tr:hover { background: rgba(59,130,246,.05); }
.table form { display: inline; }
.td-domain { font-weight: 600; word-break: break-all; }
.td-actions { white-space: nowrap; }
.user-cell { display: inline-flex; align-items: center; gap: 8px; }
.mini-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-strong); }

/* ============ 登录页 ============ */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px 0; }
.auth-box {
    width: 100%; max-width: 400px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 20px; padding: 34px 28px;
    margin: 20px 16px;
    backdrop-filter: blur(var(--blur));
    position: relative; z-index: 1;
}
.auth-logo { text-align: center; font-size: 38px; margin-bottom: 6px; }
.auth-box h2 { text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.auth-link { text-align: center; margin-top: 18px; color: var(--muted); font-size: 13px; }
.auth-tip { text-align: center; color: var(--muted); font-size: 12px; margin-top: 16px; }

.oauth-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.oauth-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--card-solid);
    color: var(--text);
    font-size: 14px; font-weight: 600;
    transition: all .2s;
}
.oauth-btn:hover { border-color: var(--primary); color: var(--text); transform: translateY(-1px); }
.oauth-ico {
    width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: #fff; flex-shrink: 0;
    background: var(--primary);
}
.oauth-qq .oauth-ico { background: #12b7f5; }
.oauth-wx .oauth-ico { background: #07c160; }
.oauth-alipay .oauth-ico { background: #1677ff; }
.oauth-sina .oauth-ico { background: #e6162d; }
.oauth-baidu .oauth-ico { background: #2932e1; }
.oauth-github .oauth-ico, .oauth-gitee .oauth-ico { background: #333; }
.oauth-douyin .oauth-ico { background: #161823; }
.oauth-bilibili .oauth-ico { background: #fb7299; }
.oauth-dingtalk .oauth-ico { background: #0089ff; }
.oauth-static { cursor: default; padding: 6px 12px; font-size: 13px; }
.oauth-static:hover { transform: none; }

/* ============ 用户中心布局 ============ */
.uc-layout { display: flex; gap: 18px; padding-top: 20px; padding-bottom: 40px; align-items: flex-start; }
.uc-side {
    width: 220px; flex-shrink: 0;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 14px;
    backdrop-filter: blur(var(--blur));
    position: sticky; top: 74px;
}
.uc-user { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.uc-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.uc-avatar-txt { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-size: 18px; font-weight: 800; }
.uc-user-info { display: flex; flex-direction: column; min-width: 0; }
.uc-user-info strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-user-info span { font-size: 11px; color: var(--muted); }
.uc-nav { display: flex; flex-direction: column; gap: 4px; }
.uc-nav a {
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--muted); font-size: 14px; font-weight: 500;
    transition: all .15s;
}
.uc-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.uc-nav a.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.uc-logout { color: var(--red) !important; margin-top: 8px; }
.uc-main { flex: 1; min-width: 0; }

/* ============ 商品 ============ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.product-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    display: flex; flex-direction: column; gap: 12px;
    backdrop-filter: blur(var(--blur));
    transition: transform .2s, border-color .2s;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.pc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pc-head h3 { font-size: 16px; margin: 0; }
.pc-price { font-size: 20px; font-weight: 900; color: var(--yellow); white-space: nowrap; }
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-desc { color: var(--muted); font-size: 13px; flex: 1; }
.product-summary { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ps-price { font-size: 34px; font-weight: 900; color: var(--yellow); }
.ps-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.product-desc { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pay-steps { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 18px; }
.pay-step { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.pay-step b { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }

/* ============ 延迟支付页 ============ */
.pay-card { max-width: 720px; margin: 0 auto; }
.pay-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 18px; border-radius: var(--radius-sm);
    margin-bottom: 16px; border: 1px solid var(--border);
}
.pay-banner.pending { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.35); }
.pay-banner.done { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.35); }
.pay-banner.reject { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.35); }
.pay-banner.expired { background: rgba(138,147,173,.08); border-color: var(--border-strong); }
.pb-icon { font-size: 22px; }
.pb-text { font-weight: 700; font-size: 15px; }
.pay-banner.pending .pb-text { color: var(--yellow); }
.pay-banner.done .pb-text { color: var(--green); }
.pay-banner.reject .pb-text { color: var(--red); }
.pay-banner.expired .pb-text { color: var(--muted); }
.pb-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-right: 6px; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
.amount-hero {
    text-align: center; padding: 24px; border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(6,182,212,.05)), var(--card-solid);
    margin-bottom: 16px; position: relative; overflow: hidden;
}
.amount-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.amount-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.amount-value { font-size: clamp(36px, 8vw, 54px); font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.amount-value .currency { font-size: .5em; vertical-align: super; }
.amount-hint { margin-top: 10px; font-size: 13px; color: var(--yellow); font-weight: 600; }
.order-summary { display: flex; flex-direction: column; gap: 8px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; }
.os-item { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.os-item span { color: var(--muted); }
.os-item strong { word-break: break-all; text-align: right; }
.pay-notice { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.3); border-radius: var(--radius-sm); padding: 12px 15px; font-size: 13px; margin-bottom: 16px; }
.pay-notice b { color: var(--yellow); }
.qrcode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.qrcode-card { background: #fff; border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.qrcode-card h4 { color: #1a1a1a; font-size: 14px; margin-bottom: 10px; }
.qrcode-card img { width: 100%; max-width: 200px; aspect-ratio: 1; object-fit: contain; }
.qrcode-tip { color: #888; font-size: 11px; margin-top: 8px; }
.polling-indicator { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; padding: 10px; }
.polling-indicator .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.5s infinite; }

/* ============ 绑定列表 ============ */
.bind-list { display: flex; flex-direction: column; gap: 10px; }
.bind-item {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 14px;
}
.bind-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 140px; }
.bind-info img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.bind-info strong { display: block; font-size: 14px; }
.bind-info span { display: block; font-size: 11px; color: var(--muted); }
.bind-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.check-item { font-size: 13px; display: flex; align-items: center; gap: 6px; color: var(--text); }

/* ============ 收款码管理 ============ */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.qr-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.qr-item h4 { font-size: 13px; margin-bottom: 10px; }
.qr-item img { width: 100%; max-width: 160px; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; margin-bottom: 8px; }
.qr-empty { height: 120px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; background: var(--bg); border-radius: 8px; margin-bottom: 8px; }
.qr-upload { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.qr-upload input[type="file"] { font-size: 12px; padding: 6px; }

/* ============ 代码块/弹窗 ============ */
.code-block {
    background: #0b0f19; border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 12.5px; line-height: 1.6;
    overflow: auto; max-height: 480px;
    white-space: pre; color: #c8d3ea;
    margin-bottom: 12px;
}
.code-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 200; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-box { background: var(--card-solid); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 420px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

.text-muted { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.text-center { text-align: center; }
.text-small { font-size: 12px; color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back-link { display: inline-block; margin-bottom: 14px; font-size: 14px; }
.op-form { margin-bottom: 4px; }
.filter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-form input, .filter-form select {
    padding: 7px 10px; border-radius: 7px; border: 1px solid var(--border-strong);
    background: var(--bg2); color: var(--text); font-size: 13px; outline: none; font-family: inherit;
}
.mode-select { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg2); color: var(--text); font-size: 12px; }

.main-content { padding: 20px 16px 40px; position: relative; z-index: 1; }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--border); padding: 18px 0; text-align: center; color: var(--muted); font-size: 12px; position: relative; z-index: 1; }

/* ============ 移动端适配 ============ */
@media (max-width: 860px) {
    .uc-layout { flex-direction: column; gap: 14px; }
    .uc-side { width: 100%; position: static; padding: 12px; }
    .uc-user { border-bottom: none; padding-bottom: 8px; margin-bottom: 8px; }
    .uc-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .uc-nav a { white-space: nowrap; padding: 8px 14px; font-size: 13px; }
    .uc-logout { margin-top: 0; }
    .card { padding: 16px; }
    .check-form { flex-direction: column; }
    .check-form .btn { width: 100%; }
    .check-result { flex-direction: row; }
    .home-hero { padding: 34px 0 24px; }
    .table { min-width: 560px; }
    .oauth-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: 1fr; }
    .amount-value { font-size: 40px; }
    .form-row { flex-direction: column; align-items: stretch; gap: 0; }
    .form-row .form-group { min-width: 0 !important; flex: none !important; width: 100%; }
    .form-row .form-group label:has(+ input[type="hidden"]), .form-row .form-group:last-child { margin-top: 4px; }
    .bind-item { align-items: flex-start; }
    .bind-actions { width: 100%; justify-content: flex-start; }
    .home-header { justify-content: center; text-align: center; flex-direction: column; }
}

@media (max-width: 400px) {
    .oauth-grid { grid-template-columns: 1fr 1fr; }
    .oauth-btn span:last-child { font-size: 13px; }
}
