/* ============================================
   Apple 纯白蓝调风格 UI v1.0
   灵感来自 cz.qbqq.cn 苹果风界面
   纯白背景 + 品牌蓝 #1677ff + 大圆角 + 卡片式
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
    color-scheme: light;
    --primary: #1677ff;
    --primary-deep: #0967e8;
    --primary-soft: #eaf3ff;
    --primary-grad: linear-gradient(135deg, #1677ff, #4a99ff);
    --secondary: #667085;
    --accent: #0f9f6e;
    --success: #0f9f6e;
    --success-soft: #e9faf3;
    --warning: #e98a00;
    --warning-soft: #fff6df;
    --danger: #dc3545;
    --danger-soft: #fff0f1;
    --info: #1677ff;
    --text: #172033;
    --text-light: #344054;
    --text-lighter: #667085;
    --text-faint: #98a2b3;
    --bg: #ffffff;
    --soft: #f7f9fc;
    --soft-blue: #f2f7ff;
    --card-bg: #ffffff;
    --border: #e7ecf3;
    --border-strong: #d8e1ed;
    --shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 4px 14px rgba(31,50,81,.04);
    --shadow: 0 16px 45px rgba(31,50,81,.09);
    --shadow-hover: 0 20px 50px rgba(22,119,255,.12), 0 4px 14px rgba(31,50,81,.05);
    --gradient: linear-gradient(135deg, #1677ff 0%, #4a99ff 100%);
    --gradient-soft: linear-gradient(135deg, #f2f7ff 0%, #ffffff 100%);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 26px;
}
html { min-height: 100%; background: #fff; scroll-behavior: smooth; }
body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary-deep); }
button { border: 0; cursor: pointer; font: inherit; }
input, select, textarea { font: inherit; }
::selection { color: #0759c7; background: #dcecff; }
:focus-visible { outline: 3px solid rgba(22,119,255,.2); outline-offset: 2px; }

/* ========== 按钮 ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 10px 17px;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    background: #fff; color: var(--text); cursor: pointer; font-size: 14px; font-weight: 700;
    white-space: nowrap;
    transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn:disabled { cursor: not-allowed; opacity: .54; }
.btn-primary { color: #fff; background: var(--gradient); box-shadow: 0 8px 20px rgba(22,119,255,.2); }
.btn-primary:hover:not(:disabled) { color: #fff; background: linear-gradient(135deg, var(--primary-deep), #368df5); box-shadow: 0 12px 26px rgba(22,119,255,.25); }
.btn-success { color: #fff; background: linear-gradient(135deg, #13a978, #2fbf8f); box-shadow: 0 8px 20px rgba(15,159,110,.18); }
.btn-success:hover:not(:disabled) { color: #fff; background: linear-gradient(135deg, #0d8f62, #20ab7c); }
.btn-warning { color: #fff; background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 8px 20px rgba(233,138,0,.16); }
.btn-warning:hover:not(:disabled) { color: #fff; background: linear-gradient(135deg, #dd8a00, #f0aa1a); }
.btn-danger { color: #fff; background: linear-gradient(135deg, #dc3545, #f05260); box-shadow: 0 8px 20px rgba(220,53,69,.16); }
.btn-danger:hover:not(:disabled) { color: #fff; background: linear-gradient(135deg, #c92a3a, #e04452); }
.btn-default { color: var(--text-light); background: #fff; border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-default:hover:not(:disabled) { border-color: #8ebcf4; background: #f8fbff; color: #175cd3; }
.btn-outline { color: #175cd3; background: #fff; border-color: #cfe0f6; box-shadow: var(--shadow-sm); }
.btn-outline:hover:not(:disabled) { border-color: #8ebcf4; background: #f8fbff; }
.btn-sm { min-height: 34px; padding: 7px 12px; font-size: 12px; border-radius: 10px; }
.btn-lg { min-height: 50px; padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-outline-primary { color: var(--primary); background: #fff; border: 1px solid #cfe0f6; }
.btn-outline-primary:hover { background: var(--primary-soft); border-color: #a9cdfd; }

/* ========== 卡片 ========== */
.card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); margin-bottom: 20px; overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card-header {
    padding: 18px 21px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    background: #fff;
}
.card-header h3 { font-size: 16px; font-weight: 750; color: var(--text); }
.card-body { padding: 28px; }
.card-title { padding: 18px 21px; border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 750; color: var(--text); }

/* ========== 表单 ========== */
.form-group { margin-bottom: 24px; }
.form-group label { display: grid; gap: 7px; color: var(--text-light); font-size: 12px; font-weight: 750; }
.form-control {
    width: 100%; min-height: 44px; padding: 10px 12px;
    color: var(--text); background: #fff;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    outline: none; font-size: 14px;
    box-shadow: 0 1px 2px rgba(16,24,40,.02);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.form-control::placeholder { color: #a4adba; }
.form-control:hover { border-color: #b9c7d8; }
.form-control:focus { border-color: #72aef5; box-shadow: 0 0 0 4px rgba(22,119,255,.09); }
textarea.form-control { min-height: 128px; resize: vertical; line-height: 1.7; }
select.form-control { cursor: pointer; }
.form-control-lg { min-height: 50px; font-size: 15px; padding: 12px 14px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ========== 表格 ========== */
.table-wrapper { overflow: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 18px; border-bottom: 1px solid #edf1f6; text-align: left; vertical-align: middle; }
.table th { color: #8490a2; background: #fbfcfe; font-size: 10px; font-weight: 850; letter-spacing: .04em; white-space: nowrap; }
.table td { color: #455166; font-size: 13px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcff; }
.table td strong, .table td small { display: block; }
.table td strong { color: #243147; }
.table td small { margin-top: 3px; color: var(--text-faint); font-size: 11px; }

/* ========== 徽章 ========== */
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px;
    border-radius: 999px; color: #475467; background: #f2f4f7;
    font-size: 11px; font-weight: 750; white-space: nowrap;
}
.badge-success { color: #087955; background: #e7f8f1; }
.badge-danger { color: #b42318; background: #fff0f1; }
.badge-warning { color: #9b5c00; background: #fff4dc; }
.badge-info { color: #175cd3; background: #eaf3ff; }
.badge-default { color: #475467; background: #f2f4f7; }
.badge-agent { color: #7a2e0e; background: #fef0c7; }

/* ========== 提示信息 ========== */
.alert {
    padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px;
    font-size: 13px; line-height: 1.7; border: 1px solid transparent;
}
.alert-success { color: #087955; background: #e9faf3; border-color: #c8efdf; }
.alert-danger { color: #b42318; background: #fff0f1; border-color: #ffd5d9; }
.alert-warning { color: #9b5c00; background: #fff8e8; border-color: #f5e2b4; }
.alert-info { color: #175cd3; background: #eaf3ff; border-color: #d2e7ff; }

/* ========== 后台布局 ========== */
.admin-layout { min-height: 100vh; background: #fff; display: flex; }
.admin-sidebar {
    position: fixed; z-index: 40; inset: 0 auto 0 0;
    width: 250px; padding: 20px 14px 14px;
    display: flex; flex-direction: column;
    background: #fff; border-right: 1px solid var(--border);
    transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.admin-sidebar-header {
    display: flex; align-items: center; gap: 11px; padding: 0 8px 20px;
}
.admin-logo-text { color: #19243a; font-size: 14px; font-weight: 850; }
.admin-sidebar-header .sidebar-close { display: none; }
.admin-nav { display: grid; gap: 2px; overflow: auto; padding: 0 2px 12px; }
.admin-nav-group { margin-bottom: 4px; }
.admin-nav-title {
    padding: 10px 10px 5px; color: #a0a9b7;
    font-size: 10px; font-weight: 850; letter-spacing: .12em;
}
.admin-nav-item {
    position: relative; display: flex; align-items: center; gap: 11px;
    min-height: 43px; padding: 9px 12px; border-radius: var(--radius-sm);
    color: #5d697b; font-size: 13px; font-weight: 600;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}
.admin-nav-item:hover { color: #175cd3; background: #f7faff; transform: translateX(2px); }
.admin-nav-item.active { color: #0f64d7; background: #eaf3ff; font-weight: 700; }
.admin-nav-item.active::after {
    content: ""; position: absolute; right: 10px;
    width: 5px; height: 5px; border-radius: 50%; background: #1677ff;
}
.admin-nav-logout { margin-top: auto; color: #b42318; }
.admin-main { flex: 1; min-width: 0; margin-left: 250px; }
.admin-topbar {
    position: sticky; z-index: 30; top: 0;
    display: flex; min-height: 72px; padding: 15px clamp(22px, 3vw, 42px);
    align-items: center; justify-content: space-between; gap: 18px;
    background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(180%) blur(15px);
}
.admin-topbar-title { display: flex; align-items: center; gap: 12px; }
.admin-topbar-title h1 { margin: 0; color: #19243a; font-size: 20px; letter-spacing: -.025em; }
.admin-topbar-user { display: flex; align-items: center; gap: 10px; color: var(--text-lighter); font-size: 13px; }
.admin-topbar-user .admin-menu-btn { display: none; }
.admin-content { padding: 28px clamp(22px, 3.2vw, 48px) 60px; width: 100%; max-width: 1480px; margin: 0 auto; }
.admin-page-header {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    margin-bottom: 24px;
}
.admin-page-header h1 { margin: 0; color: #121d31; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.18; letter-spacing: -.045em; }
.admin-page-header span { margin: 7px 0 0; color: var(--text-lighter); }

/* ========== 统计卡片 ========== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card {
    position: relative; min-height: 130px; padding: 22px; overflow: hidden;
    border: 1px solid var(--border); border-radius: 21px; background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-icon {
    display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 13px; background: var(--primary-soft); color: #1677ff;
    font-size: 18px; font-weight: 700; margin-bottom: 12px;
}
.stat-value { display: block; font-size: 34px; font-weight: 850; line-height: 1; letter-spacing: -.04em; color: var(--text); }
.stat-label { display: block; margin-top: 8px; color: var(--text-lighter); font-size: 12px; font-weight: 700; }
.stat-blue { background: linear-gradient(145deg, #eaf4ff, #f5f9ff); border-color: #d2e7ff; }
.stat-blue .stat-icon { background: rgba(22,119,255,.14); color: #0e5ebf; }
.stat-green { background: linear-gradient(145deg, #e4f9f0, #f4fcf8); border-color: #c8efdf; }
.stat-green .stat-icon { background: rgba(15,159,110,.12); color: #087955; }
.stat-orange { background: linear-gradient(145deg, #fff1d2, #fffaf0); border-color: #f7dfac; }
.stat-orange .stat-icon { background: rgba(233,138,0,.12); color: #a46100; }
.stat-purple { background: linear-gradient(145deg, #f0eaff, #f9f6ff); border-color: #e0d5f8; }
.stat-purple .stat-icon { background: rgba(124,58,237,.1); color: #6d28d9; }

/* ========== 用户端布局 ========== */
.user-layout { min-height: 100vh; background: #fff; }
.user-sidebar {
    position: fixed; z-index: 40; inset: 0 auto 0 0;
    width: 250px; padding: 20px 14px 14px;
    display: flex; flex-direction: column;
    background: #fff; border-right: 1px solid var(--border);
    transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.user-avatar {
    display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px;
    border-radius: 13px; color: #fff; background: var(--gradient);
    font-size: 15px; font-weight: 850;
}
.user-name { font-size: 13px; font-weight: 750; color: var(--text); }
.user-topbar {
    position: sticky; z-index: 30; top: 0;
    display: flex; min-height: 72px; padding: 15px clamp(22px, 3vw, 42px);
    align-items: center; justify-content: space-between; gap: 18px;
    background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(180%) blur(15px);
}
.user-content { padding: 28px clamp(22px, 3.2vw, 48px) 60px; width: 100%; max-width: 1280px; margin: 0 auto; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; }
.sidebar-logo .logo-img { width: 36px; height: 36px; border-radius: 11px; }
.sidebar-logo .logo-name { font-size: 14px; font-weight: 850; color: #19243a; }
.sidebar-nav { display: grid; gap: 2px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 35; background: rgba(16,24,40,.4); backdrop-filter: blur(2px); }
.sidebar-close { display: none; background: none; color: var(--text-lighter); font-size: 22px; }
.sidebar-toggle { display: none; background: none; font-size: 20px; color: var(--text); }
.sidebar-footer { margin-top: auto; padding: 12px 3px 0; border-top: 1px solid var(--border); }

/* ========== 前台导航 ========== */
.public-body { background: #fff; min-height: 100vh; }
.public-nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px clamp(22px, 4vw, 60px);
    background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(180%) blur(15px);
}
.public-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 850; color: #19243a; }
.public-brand .site-logo { width: 34px; height: 34px; border-radius: 10px; }
.public-links { display: flex; align-items: center; gap: 14px; }
.public-links a { color: var(--text-lighter); font-size: 14px; font-weight: 600; padding: 7px 10px; border-radius: 9px; }
.public-links a:hover { color: var(--primary); background: var(--soft); }
.public-section { padding: 60px clamp(22px, 4vw, 60px); }

/* ========== 首页 Hero ========== */
.hero {
    position: relative; padding: 70px clamp(22px, 5vw, 80px) 50px;
    background: linear-gradient(180deg, #f5f9ff 0%, #fff 100%);
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; width: 420px; height: 420px;
    right: -180px; top: -200px; border: 72px solid #eff6ff; border-radius: 50%;
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px;
    color: #1766ca; font-size: 12px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3b91fa; box-shadow: 0 0 0 5px #edf5ff; }
.hero h1 { margin: 0 0 18px; color: #111b2e; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.1; letter-spacing: -.05em; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-inner p { max-width: 600px; margin: 0 auto 26px; color: var(--text-lighter); font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-panel {
    margin-top: 40px; padding: 24px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: rgba(255,255,255,.92); box-shadow: var(--shadow);
}
.hero-panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 15px; font-weight: 750; color: var(--text); }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-metric { padding: 14px; border-radius: 14px; background: var(--soft); text-align: center; }
.hero-metric strong { display: block; font-size: 24px; font-weight: 850; color: var(--text); }
.hero-metric span { display: block; margin-top: 4px; font-size: 12px; color: var(--text-lighter); }

/* ========== 套餐 ========== */
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 30px; }
.package-card {
    position: relative; padding: 26px; border: 1px solid var(--border); border-radius: 22px;
    background: #fff; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.package-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.package-card.featured { border-color: #b6d4ff; box-shadow: 0 0 0 3px rgba(22,119,255,.08), var(--shadow); }
.package-tag {
    position: absolute; top: -10px; left: 24px;
    padding: 4px 12px; border-radius: 999px;
    background: var(--gradient); color: #fff; font-size: 11px; font-weight: 800;
    box-shadow: 0 6px 14px rgba(22,119,255,.3);
}
.package-price { font-size: 38px; font-weight: 900; color: var(--text); letter-spacing: -.04em; }
.package-price small { font-size: 15px; font-weight: 600; color: var(--text-lighter); }
.package-desc { margin: 12px 0 18px; color: var(--text-lighter); font-size: 13px; line-height: 1.7; min-height: 44px; }
.package-features { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.package-features li { display: flex; align-items: center; gap: 9px; color: var(--text-light); font-size: 13px; }
.package-features li::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 11px; font-weight: 800; flex: 0 0 18px; }

/* ========== 功能特性 ========== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 30px; }
.service-card {
    padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: #fff;
    box-shadow: var(--shadow-sm); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-2px); border-color: #cadcf2; box-shadow: var(--shadow); }
.service-card .eyebrow { margin-bottom: 10px; }
.service-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--text); }
.service-card p { margin: 0; color: var(--text-lighter); font-size: 13px; line-height: 1.7; }

/* ========== 页脚 ========== */
.public-footer-compact { border-top: 1px solid var(--border); background: #fbfcfe; padding: 24px clamp(22px, 4vw, 60px); }
.public-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--text-lighter); font-size: 13px; }
.public-footer-icp { color: var(--text-faint); font-size: 12px; }
.public-compliance-footer { padding: 10px 0 0; font-size: 12px; color: var(--text-faint); text-align: center; }

/* ========== 登录/注册 ========== */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: #fff; }
.auth-container { width: min(100%, 450px); }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 11px; margin-bottom: 28px; }
.auth-logo .logo-img { width: 42px; height: 42px; border-radius: 14px; }
.auth-logo-text { font-size: 18px; font-weight: 850; color: #19243a; }
.auth-card {
    padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: #fff; box-shadow: var(--shadow);
}
.auth-header { margin-bottom: 24px; }
.auth-header h2 { margin: 0 0 6px; font-size: 25px; letter-spacing: -.03em; color: var(--text); }
.auth-header p { margin: 0; color: var(--text-lighter); font-size: 14px; }
.auth-footer { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; color: var(--text-lighter); font-size: 13px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-faint); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ========== 容器 ========== */
.container { width: min(1200px, 100%); margin: 0 auto; padding: 0 clamp(18px, 3vw, 40px); }
.container-sm { width: min(480px, 100%); margin: 0 auto; }

/* ========== 同步页面 ========== */
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-header h1 { margin: 0; font-size: 24px; color: var(--text); letter-spacing: -.03em; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.info-item {
    padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: #fbfdff;
}
.info-label { color: #8491a5; font-size: 11px; font-weight: 750; display: block; }
.info-value { margin-top: 5px; color: #26364d; font-size: 14px; font-weight: 700; word-break: break-all; }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.quick-action {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
    color: var(--text-light); font-size: 13px; font-weight: 700;
    transition: all .16s ease;
}
.quick-action:hover { border-color: #a9cdfd; background: var(--soft-blue); color: var(--primary); }

/* ========== 空状态 ========== */
.empty-state { display: grid; min-height: 250px; padding: 42px 20px; place-items: center; text-align: center; }
.empty-state h3 { margin: 10px 0 4px; color: var(--text); font-size: 16px; }
.empty-state p { margin: 0 0 18px; color: var(--text-lighter); font-size: 13px; }
.empty-icon {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px;
    color: #1677ff; background: #edf5ff; font-size: 24px;
}

/* ========== 支付 ========== */
.pay-card { padding: 24px; }
.pay-amount { font-size: 40px; font-weight: 900; color: var(--text); letter-spacing: -.04em; text-align: center; margin-bottom: 24px; }
.pay-type-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 24px; padding: 4px; border: 1px solid var(--border); border-radius: 14px; background: var(--soft); }
.pay-tab {
    min-height: 38px; color: var(--text-lighter); background: transparent; border-radius: 10px;
    font-weight: 800; transition: all .18s ease;
}
.pay-tab.active { color: #175cd3; background: #fff; box-shadow: 0 2px 8px rgba(31,50,81,.1); }
.pay-options { display: grid; gap: 12px; margin-bottom: 24px; }
.pay-option {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    border: 1px solid var(--border); border-radius: 14px; background: #fff; cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.pay-option:hover { border-color: #bad2ef; }
.pay-option.selected { border-color: #1677ff; box-shadow: 0 0 0 3px rgba(22,119,255,.1); }
.payment-method { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; }
.pm-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 20px; background: var(--soft); }
.pm-name { font-weight: 750; color: var(--text); font-size: 14px; }
.pm-desc { color: var(--text-lighter); font-size: 12px; margin-top: 2px; }
.qrcode-box { display: grid; place-items: center; padding: 24px; }
.qrcode-loading { color: var(--text-lighter); font-size: 13px; }
.pay-info { padding: 16px; border-radius: 14px; background: var(--soft); margin-top: 20px; }
.pay-info-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--text-light); border-bottom: 1px solid rgba(231,236,243,.6); }
.pay-info-row:last-child { border-bottom: 0; }
.pay-label { color: var(--text-lighter); }
.pay-money { font-weight: 800; color: var(--text); }
.pay-actions { display: flex; gap: 10px; margin-top: 20px; }
.pay-tip { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--warning-soft); color: #9b5c00; font-size: 12px; line-height: 1.7; }
.pay-icon { font-size: 28px; }

/* ========== 金额选择 ========== */
.amount-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-bottom: 20px; }
.amount-option {
    padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
    text-align: center; font-size: 15px; font-weight: 800; color: var(--text);
    cursor: pointer; transition: all .16s ease;
}
.amount-option:hover { border-color: #a9cdfd; }
.amount-option.selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-deep); box-shadow: 0 0 0 3px rgba(22,119,255,.08); }

/* ========== 状态 ========== */
.status-row { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #98a2b3; }
.status-dot.green { background: #16a875; }
.status-dot.red { background: #dc3545; }
.status-item { padding: 10px 14px; border-radius: 10px; background: var(--soft); font-size: 12px; color: var(--text-light); }
.status-label { font-weight: 750; color: var(--text); }

/* ========== 分页 ========== */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 20px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid var(--border); border-radius: 10px;
    color: var(--text-light); font-size: 13px; background: #fff;
    transition: all .16s ease;
}
.pagination a:hover { border-color: #a9cdfd; color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== 订单 ========== */
.order-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 18px; border: 1px solid var(--border); border-radius: 14px;
    margin-bottom: 10px; background: #fff; transition: border-color .16s ease;
}
.order-row:hover { border-color: #c7daf3; }
.order-summary { flex: 1; min-width: 0; }
.order-total { font-weight: 850; color: var(--text); font-size: 15px; }
.price-red { color: var(--danger); font-weight: 800; }

/* ========== 引导 ========== */
.guide-card { border: 1px solid var(--border); border-radius: 20px; padding: 24px; background: #fff; margin-bottom: 20px; }
.guide-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.guide-progress { display: flex; align-items: center; gap: 6px; }
.guide-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.guide-step { padding: 16px; border-radius: 14px; background: var(--soft); }
.guide-step .step-num {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
    background: var(--primary-soft); color: #175cd3; font-weight: 900; margin-bottom: 10px;
}
.guide-step .step-name { font-weight: 750; color: var(--text); font-size: 13px; }

/* ========== 顶部用户信息 ========== */
.topbar-user { display: flex; align-items: center; gap: 14px; }
.topbar-info { display: flex; align-items: center; gap: 14px; }
.topbar-balance {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
    background: var(--soft); font-size: 13px; font-weight: 750; color: var(--text);
}
.balance-amount { color: var(--primary); font-weight: 850; }
.balance-label { color: var(--text-lighter); font-size: 12px; }

/* ========== 移动端适配 ========== */
@media (max-width: 860px) {
    .admin-sidebar, .user-sidebar { transform: translateX(-105%); box-shadow: var(--shadow); }
    .admin-sidebar.open, .user-sidebar.open { transform: translateX(0); }
    .admin-main, .user-main { margin-left: 0; }
    .sidebar-overlay.show { display: block; }
    .sidebar-close { display: block; }
    .admin-topbar-user .admin-menu-btn, .sidebar-toggle { display: inline-flex; }
    .admin-content, .user-content { padding: 22px 16px 60px; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-metrics { grid-template-columns: 1fr; }
    .public-links a { font-size: 12px; padding: 6px 8px; }
    .hero { padding: 50px 20px 40px; }
    .public-section { padding: 40px 20px; }
    .container, .container-sm { padding: 0 16px; }
}
@media (max-width: 620px) {
    .public-nav { padding: 12px 16px; }
    .public-brand { font-size: 14px; }
    .package-grid { grid-template-columns: 1fr; }
    .auth-body { padding: 12px; }
    .auth-card { padding: 24px; border-radius: 21px; box-shadow: var(--shadow-sm); }
    .hero h1 { font-size: 30px; }
    .hero-inner p { font-size: 14px; }
    .form-row { flex-direction: column; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .quick-actions { width: 100%; }
    .quick-actions .btn { flex: 1; }
}
