/* ====================================================================
 * 无限支付 · 全局样式（仿照 ulimitx 风格重写）
 * 主色：#2563eb（蓝） / 暗色 CTA：#0f172a
 * ==================================================================== */

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

:root {
    /* 品牌色 */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-bg: #eff6ff;
    --primary-grad: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);

    /* 中性色 */
    --text: #0f172a;
    --text-light: #475569;
    --text-lighter: #94a3b8;
    --text-on-primary: #ffffff;
    --text-on-primary-muted: rgba(255,255,255,0.85);

    /* 状态色 */
    --success: #10b981;
    --success-bg: #d1fae5;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --info: #3b82f6;
    --info-bg: #dbeafe;

    /* 背景 / 边框 */
    --bg: #f6f8fc;
    --bg-soft: #f1f5f9;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --border-light: #eef2f7;

    /* 形状 */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* 阴影 */
    --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow: 0 4px 12px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
    --shadow-lg: 0 10px 30px rgba(15,23,42,0.08), 0 4px 10px rgba(15,23,42,0.04);
    --shadow-primary: 0 8px 24px rgba(37,99,235,0.25);

    /* 动效 */
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { height: 100%; }

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

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

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ====================================================================
 * 顶部导航
 * ==================================================================== */
.topbar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}
.brand:hover { color: var(--text); }
.brand-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--primary-grad);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: 11px; color: var(--text-lighter); font-weight: 400; letter-spacing: 1px; }
.brand-name { font-size: 17px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    color: var(--text-light);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}
.nav a:hover { background: var(--bg-soft); color: var(--text); }
.nav a.active { color: var(--primary); }
.nav-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 13px;
    padding: 6px 12px;
    background: var(--primary-bg);
    border-radius: 20px;
    margin-left: 8px;
    font-weight: 600;
}
.btn-nav-primary {
    background: var(--primary-grad) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: var(--shadow-primary);
}
.btn-nav-primary:hover { transform: translateY(-1px); opacity: 0.95; }
.btn-nav-ghost { color: var(--text-light) !important; }

.menu-toggle {
    display: none;
    background: none; border: none;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text);
    align-items: center; justify-content: center;
}
.menu-toggle:hover { background: var(--bg-soft); }

/* ====================================================================
 * 首页 - Hero
 * ==================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(96,165,250,0.18), transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 30%, rgba(59,130,246,0.14), transparent 60%),
        linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    padding: 80px 0 100px;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(37,99,235,0.08);
    color: var(--primary);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
}
.hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero h1 .grad {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary-grad);
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,99,235,0.35); color: #fff; }
.btn-outline {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
    background: transparent;
    color: var(--text-light);
    padding: 8px 14px;
}
.btn-ghost:hover { color: var(--primary); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-warn { background: var(--warning); color: #fff; }
.btn-warn:hover { background: #d97706; color: #fff; }
.btn-block { width: 100%; }

.hero-meta { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); }
.hero-meta-item .check {
    width: 18px; height: 18px;
    background: var(--success-bg);
    color: var(--success);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Hero 视觉 */
.hero-visual {
    position: relative;
    height: 420px;
    perspective: 1200px;
}
.hero-card {
    position: absolute;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 18px 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-card-1 {
    width: 280px; top: 30px; left: 0;
    transform: rotate(-4deg);
    animation: float 6s ease-in-out infinite;
}
.hero-card-2 {
    width: 230px; top: 200px; right: 20px;
    transform: rotate(3deg);
    animation: float 6s ease-in-out 1.5s infinite;
}
.hero-card-3 {
    width: 200px; top: 90px; right: 80px;
    transform: rotate(-2deg);
    animation: float 6s ease-in-out 0.8s infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}
.hero-card-1 { --r: -4deg; }
.hero-card-2 { --r: 3deg; }
.hero-card-3 { --r: -2deg; }
.hero-card-row { display: flex; align-items: center; gap: 12px; }
.hero-card-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hero-card-icon.blue { background: var(--primary-bg); color: var(--primary); }
.hero-card-icon.green { background: var(--success-bg); color: var(--success); }
.hero-card-icon.purple { background: #f3e8ff; color: #9333ea; }
.hero-card-title { font-size: 13px; color: var(--text-lighter); margin-bottom: 2px; }
.hero-card-value { font-size: 18px; font-weight: 700; color: var(--text); }

/* ====================================================================
 * 通用 Section
 * ==================================================================== */
.section { padding: 80px 0; }
.section-light { background: #fff; }
.section-dark { background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); color: #fff; }
.section-gradient {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0eaff 100%);
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.section-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.section-dark .section-title { color: #fff; }
.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* 特性网格 */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    background: var(--primary-bg);
}
.feature-icon.green { background: var(--success-bg); color: var(--success); }
.feature-icon.purple { background: #f3e8ff; color: #9333ea; }
.feature-icon.orange { background: var(--warning-bg); color: var(--warning); }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.feature-card p { color: var(--text-light); font-size: 14px; line-height: 1.7; }

/* ====================================================================
 * 价格表
 * ==================================================================== */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 880px; margin: 0 auto; }
.price-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}
.price-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, #f0f7ff 0%, #fff 40%);
    box-shadow: var(--shadow-primary);
}
.price-card .tag {
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary-grad);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}
.price-card h3 { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.price-card .price {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin: 16px 0 6px;
}
.price-card .price small { font-size: 16px; color: var(--text-light); font-weight: 400; }
.price-card .desc { color: var(--text-light); font-size: 14px; margin-bottom: 24px; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 28px; }
.price-card li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-card li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

/* ====================================================================
 * 合作伙伴 / 业务场景
 * ==================================================================== */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    color: #fff;
    transition: all var(--transition);
}
.partner-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }
.partner-card .ic {
    width: 48px; height: 48px;
    margin: 0 auto 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light);
}
.partner-card h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.partner-card p { color: rgba(255,255,255,0.6); font-size: 12px; }

.scene-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.scene-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 32px;
    min-height: 180px;
    color: #fff;
    background: var(--primary-grad);
    transition: transform var(--transition);
}
.scene-card:hover { transform: translateY(-4px); }
.scene-card.scene-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.scene-card.scene-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.scene-card.scene-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.scene-card.scene-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.scene-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.scene-card p { color: rgba(255,255,255,0.9); font-size: 14px; }
.scene-card .scene-icon {
    position: absolute;
    right: 20px; bottom: 20px;
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
}

/* ====================================================================
 * API 文档
 * ==================================================================== */
.api-doc {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 28px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
    overflow-x: auto;
    line-height: 1.9;
    box-shadow: var(--shadow-lg);
}
.api-doc .key { color: #93c5fd; }
.api-doc .val { color: #fde68a; }
.api-doc .comment { color: #64748b; }
.api-doc .str { color: #86efac; }

/* ====================================================================
 * 公告滚动条
 * ==================================================================== */
.notice {
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
    color: #fff;
    padding: 14px 0;
    font-size: 14px;
}
.notice-inner { display: flex; align-items: center; gap: 12px; }
.notice-tag {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.notice-content { overflow: hidden; flex: 1; }
.notice-content marquee { width: 100%; }

/* ====================================================================
 * 认证页（登录 / 注册 / 找回密码）
 * ==================================================================== */
.auth-wrap {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 0% 0%, rgba(37,99,235,0.08), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(96,165,250,0.1), transparent 40%),
        linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
    padding: 40px 20px;
}
.auth-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    padding: 44px 40px 36px;
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary-grad);
}
.auth-logo {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 28px;
}
.auth-logo .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
.auth-logo .name { font-size: 17px; font-weight: 700; }
.auth-logo .sub { font-size: 12px; color: var(--text-lighter); display: block; }
.auth-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { color: var(--text-light); font-size: 14px; margin-bottom: 28px; }

.auth-tabs {
    display: flex;
    background: var(--bg-soft);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 7px;
    transition: all var(--transition);
}
.auth-tab.active {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-xs);
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}
.form-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: all var(--transition);
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-input::placeholder { color: var(--text-lighter); }

.input-group { display: flex; gap: 10px; }
.input-group .form-input { flex: 1; }
.btn-code {
    white-space: nowrap;
    padding: 0 18px;
    height: 46px;
    background: var(--primary-bg);
    color: var(--primary);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-code:hover:not(:disabled) { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-code:disabled { opacity: 0.5; cursor: not-allowed; }

.checkbox-group {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-light);
    cursor: pointer; user-select: none;
    margin: 4px 0 20px;
}
.checkbox-group input { width: 16px; height: 16px; accent-color: var(--primary); }
.checkbox-group a { color: var(--primary); }

.btn-submit {
    width: 100%;
    height: 48px;
    background: var(--primary-grad);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-primary);
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,0.32); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-divider {
    display: flex; align-items: center;
    margin: 24px 0 18px;
    color: var(--text-lighter);
    font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-divider span { padding: 0 12px; }

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}
.auth-footer a { color: var(--primary); font-weight: 500; }
.auth-footer .sep { color: var(--text-lighter); margin: 0 10px; }

.auth-alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
    align-items: center;
    gap: 8px;
}
.auth-alert.show { display: flex; }
.auth-alert.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }
.auth-alert.success { background: var(--success-bg); color: var(--success); border: 1px solid #a7f3d0; }
.auth-alert.info { background: var(--info-bg); color: var(--info); border: 1px solid #bfdbfe; }

/* ====================================================================
 * 控制台（仪表盘）
 * ==================================================================== */
.dashboard { padding: 24px 0 60px; }
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.dashboard-greeting h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.dashboard-greeting p { color: var(--text-light); font-size: 14px; }
.dashboard-greeting .name { color: var(--primary); }
.dashboard-actions { display: flex; gap: 10px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.stat-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.stat-icon.blue { background: var(--primary-bg); color: var(--primary); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.orange { background: var(--warning-bg); color: var(--warning); }
.stat-icon.purple { background: #f3e8ff; color: #9333ea; }
.stat-label { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat-trend {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-lighter);
    display: flex; align-items: center; gap: 4px;
}
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* 控制台主体两栏 */
.dashboard-body {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xs);
}
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.card-title { font-size: 16px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.card-title .ic {
    width: 32px; height: 32px;
    background: var(--primary-bg); color: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.card-link { font-size: 13px; color: var(--primary); font-weight: 500; }

.chart-area {
    height: 280px;
    position: relative;
}

/* 公告列表 */
.notice-list { display: flex; flex-direction: column; gap: 14px; }
.notice-item {
    padding: 14px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}
.notice-item .t { font-weight: 600; color: var(--text); margin-bottom: 4px; font-size: 14px; }
.notice-item .d { color: var(--text-light); font-size: 13px; line-height: 1.6; }
.notice-item .m { color: var(--text-lighter); font-size: 12px; margin-top: 6px; }

/* 快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all var(--transition);
    color: var(--text);
    text-align: center;
}
.quick-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--primary);
}
.quick-card .qi {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    transition: all var(--transition);
}
.quick-card:hover .qi { background: var(--primary-grad); color: #fff; }
.quick-card .qt { font-size: 13px; font-weight: 500; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-soft);
    color: var(--text-light);
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}
.data-table tr:hover td { background: var(--bg-soft); }
.data-table .mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-fail { background: var(--danger-bg); color: var(--danger); }
.badge-blue { background: var(--info-bg); color: var(--info); }
.badge-orange { background: var(--warning-bg); color: var(--warning); }
.badge-gray { background: var(--bg-soft); color: var(--text-light); }

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-lighter);
}
.empty-state svg { color: var(--text-lighter); margin-bottom: 12px; opacity: 0.5; }

/* ====================================================================
 * 后台管理（侧边栏布局）
 * ==================================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}
.admin-sidebar {
    width: 240px;
    background: #0f172a;
    color: #cbd5e1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 50;
}
.admin-sidebar-head {
    height: 64px;
    display: flex; align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    gap: 10px;
}
.admin-sidebar-head .brand-mark {
    width: 32px; height: 32px;
    background: var(--primary-grad);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-primary);
}
.admin-menu { flex: 1; overflow-y: auto; padding: 16px 12px; }
.admin-menu-section { margin-bottom: 16px; }
.admin-menu-title {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
    margin-bottom: 4px;
}
.admin-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    color: #cbd5e1;
    border-radius: 8px;
    margin-bottom: 2px;
    font-size: 14px;
    transition: all var(--transition);
}
.admin-menu a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-menu a.active {
    background: var(--primary-grad);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.admin-menu svg { flex-shrink: 0; }

.admin-sidebar-foot {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
}
.admin-sidebar-foot a { color: #cbd5e1; }
.admin-sidebar-foot a:hover { color: #fff; }

.admin-main {
    flex: 1;
    margin-left: 240px;
    min-width: 0;
}
.admin-topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 30;
}
.admin-topbar h1 { font-size: 18px; font-weight: 700; color: var(--text); }
.admin-topbar .user { display: flex; align-items: center; gap: 10px; color: var(--text-light); font-size: 14px; }
.admin-topbar .user .avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary-grad);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.admin-content { padding: 28px; }

/* 配置 Section */
.config-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-xs);
}
.config-card-head {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 10px;
}
.config-card-head .ic {
    width: 32px; height: 32px;
    background: var(--primary-bg); color: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.config-card-head h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.config-card-body { padding: 24px; }

.form-row { margin-bottom: 18px; }
.form-row:last-child { margin-bottom: 0; }
.form-row label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.form-row .hint { font-size: 12px; color: var(--text-lighter); margin-top: 6px; }
.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="url"],
.form-row input[type="email"],
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: all var(--transition);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-row textarea { min-height: 80px; resize: vertical; }
.form-row .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.toggle-group { display: flex; gap: 12px; flex-wrap: wrap; }
.toggle-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: #fff;
    transition: all var(--transition);
}
.toggle-item:hover { border-color: var(--primary-light); }
.toggle-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

.btn-save {
    background: var(--primary-grad);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: all var(--transition);
}
.btn-save:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,0.32); }

/* 后台用户管理 - 工具栏 */
.toolbar {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.toolbar .search-box {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    position: relative;
}
.toolbar .search-box input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.toolbar .search-box svg {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
}
.toolbar select {
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
}

/* 模态框 */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    animation: modalIn 0.2s ease;
}
.modal.modal-lg { max-width: 720px; }
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-head h3 { font-size: 16px; font-weight: 700; }
.modal-close {
    background: none; border: none;
    width: 32px; height: 32px;
    border-radius: 6px;
    color: var(--text-light);
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--bg-soft); color: var(--text); }
.modal-body { padding: 24px; }
.modal-foot {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--bg-soft);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: var(--bg-soft);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
}
.btn-action:hover { background: var(--primary-bg); color: var(--primary); }
.btn-action.danger { color: var(--danger); }
.btn-action.danger:hover { background: var(--danger-bg); }
.btn-action.warn { color: var(--warning); }
.btn-action.warn:hover { background: var(--warning-bg); }
.btn-action.primary { color: #fff; background: var(--primary-grad); }

/* 分页 */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: #fff;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary-grad); color: #fff; border-color: transparent; }

/* ====================================================================
 * 底部
 * ==================================================================== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 56px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #94a3b8; font-size: 13px; line-height: 1.7; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; font-size: 13px; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #94a3b8; }

/* ====================================================================
 * 响应式
 * ==================================================================== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; }
    .feature-grid, .partner-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-body { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .topbar-inner { height: 56px; }
    .nav { display: none; }
    .nav.show {
        display: flex;
        position: absolute;
        top: 56px; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 12px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        gap: 4px;
    }
    .nav.show a { width: 100%; padding: 12px 14px; }
    .menu-toggle { display: inline-flex; }

    .hero { padding: 40px 0 60px; }
    .hero h1 { font-size: 30px; }
    .hero-desc { font-size: 14px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .section { padding: 50px 0; }
    .section-title { font-size: 26px; }

    .feature-grid, .stats-grid, .partner-grid, .quick-grid, .scene-grid { grid-template-columns: 1fr 1fr; }
    .pricing { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    .auth-card { padding: 32px 24px 24px; }
    .auth-title { font-size: 20px; }

    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-content { padding: 16px; }
    .form-row .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .feature-grid, .stats-grid, .partner-grid, .quick-grid, .scene-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 26px; }
    .price-card .price { font-size: 36px; }
}
