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

        /* ─── Seekname 同款登录/注册页 ─── */
        :root {
            --sk-navy: #1C2B3D;
            --sk-navy2: #16213e;
            --sk-gold: #C4A040;
            --sk-gold-dark: #D4941A;
            --sk-text: #2C1810;
            --sk-text2: #5C4A42;
            --sk-muted: #B0AAA0;
            --sk-muted2: #4A6188;
            --sk-border: #DDD0C0;
            --sk-bg1: #FFFCF7;
            --sk-bg2: #FFF8F0;
            --sk-bg3: #F5EDE0;
            --sk-err: #E85A3A;
            --sk-ok: #2EAD5A;
            --sk-wx: #07C160;
            --rp-red: #B91C1C;
        }

        .auth-page {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: 80px 16px 40px;
            position: relative;
            background: linear-gradient(180deg, var(--sk-bg1) 0%, var(--sk-bg2) 50%, var(--sk-bg3) 100%);
        }
        .auth-bg {
            position: fixed;
            inset: 0;
            pointer-events: none;
            opacity: .3;
            background-image:
                radial-gradient(circle at 20% 50%, rgba(201,168,76,0.06) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(13,27,62,0.05) 0%, transparent 55%);
        }
        .auth-container {
            position: relative;
            width: 100%;
            max-width: 420px;
            z-index: 1;
        }
        .auth-brand {
            text-align: center;
            margin-bottom: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            width: 100%;
        }
        .auth-brand-link {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            transition: transform .2s;
        }
        .auth-brand-link:hover { transform: scale(1.02); }
        .auth-logo {
            width: 64px;
            height: 64px;
            border-radius: 14px;
            object-fit: contain;
        }
        .auth-brand-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--sk-navy);
            font-family: "Noto Serif SC", "Songti SC", serif;
            text-align: left;
        }
        .auth-brand-sub {
            font-size: 12px;
            color: var(--sk-muted2);
            text-align: left;
        }

        .auth-card {
            background: rgba(255,255,255,0.85);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(201,168,76,0.25);
            border-radius: 18px;
            padding: 28px;
            position: relative;
            box-shadow: 0 4px 24px rgba(13,27,62,0.08), 0 1px 3px rgba(13,27,62,0.04);
        }
        .auth-card-topline {
            position: absolute;
            top: 0;
            left: 24px;
            right: 24px;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--sk-gold), transparent);
            border-radius: 2px 2px 0 0;
        }
        .auth-card-bottomline {
            position: absolute;
            bottom: 0;
            left: 32px;
            right: 32px;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(212,148,26,0.3), transparent);
        }
        .auth-title {
            font-size: 24px;
            font-weight: 700;
            text-align: center;
            margin: 8px 0 4px;
            color: var(--sk-text);
            font-family: "Noto Serif SC", "Songti SC", serif;
        }
        .auth-subtitle {
            font-size: 13px;
            text-align: center;
            color: var(--sk-text2);
            margin-bottom: 22px;
        }

        .auth-tabs {
            display: flex;
            border-radius: 12px;
            padding: 4px;
            background: rgba(13,27,62,0.04);
            margin-bottom: 18px;
            gap: 2px;
        }
        .auth-tab {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            padding: 8px 2px;
            font-size: 11px;
            font-weight: 500;
            border-radius: 10px;
            border: none;
            background: transparent;
            color: var(--sk-muted2);
            cursor: pointer;
            transition: all .2s;
            line-height: 1.2;
        }
        .auth-tab svg { width: 16px; height: 16px; flex-shrink: 0; }
        .auth-tab.active {
            background: var(--sk-navy);
            color: var(--sk-gold);
            box-shadow: 0 2px 8px rgba(13,27,62,0.3);
        }

        .auth-error {
            border-radius: 8px;
            padding: 10px 14px;
            font-size: 13px;
            margin-bottom: 14px;
            background: rgba(232,90,58,0.08);
            border: 1px solid rgba(232,90,58,0.25);
            color: var(--sk-err);
        }
        .auth-error.info {
            background: rgba(7,193,96,0.08);
            border-color: rgba(7,193,96,0.25);
            color: var(--sk-wx);
        }

        .form-field { margin-bottom: 14px; }
        .form-field label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: var(--sk-gold);
            margin-bottom: 6px;
        }
        .form-field label .opt { color: var(--sk-muted); font-weight: 400; }
        .input-wrap {
            position: relative;
            display: flex;
            align-items: center;
        }
        .field-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 18px;
            height: 18px;
            color: #999;
            pointer-events: none;
        }
        .form-field input {
            width: 100%;
            padding: 11px 14px;
            font-size: 14px;
            background: #fff;
            border: 1px solid var(--sk-border);
            border-radius: 12px;
            color: #2D1B0E;
            outline: none;
            transition: all .2s;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
        }
        .form-field input::placeholder { color: var(--sk-muted); }
        .form-field input:focus { border-color: var(--sk-navy); box-shadow: 0 0 0 3px rgba(28,43,61,0.08); }
        .form-field input.with-icon { padding-left: 40px; }
        .form-field input.captcha-input {
            letter-spacing: 6px;
            text-align: center;
            font-weight: 600;
        }

        .eye-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--sk-muted);
            cursor: pointer;
            padding: 6px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .eye-btn:hover { color: var(--sk-navy); }
        .eye-btn svg { width: 18px; height: 18px; }

        .captcha-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .captcha-img {
            width: 110px;
            height: 46px;
            border: 1px solid var(--sk-border);
            border-radius: 10px;
            background: var(--sk-bg1);
            cursor: pointer;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .captcha-img img { width: 100%; height: 100%; object-fit: contain; }
        .captcha-hint {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 4px;
            font-size: 11px;
            color: #AAA;
        }
        .captcha-hint a { color: #999; text-decoration: none; }
        .captcha-hint a:hover { color: var(--sk-navy); text-decoration: underline; }

        .code-row { display: flex; align-items: center; gap: 10px; }
        .code-row input { flex: 1; letter-spacing: 4px; text-align: center; font-weight: 600; }
        .code-btn {
            flex-shrink: 0;
            padding: 11px 14px;
            border-radius: 10px;
            border: none;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            white-space: nowrap;
            background: var(--sk-gold);
            color: #fff;
            transition: opacity .2s;
        }
        .code-btn:disabled { opacity: .55; cursor: not-allowed; background: #F5EDE0; color: #8C7A72; }
        .code-btn:hover:not(:disabled) { opacity: .9; }

        .auth-submit {
            width: 100%;
            padding: 13px;
            border-radius: 12px;
            border: none;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            background: var(--sk-navy);
            color: var(--sk-gold);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: transform .1s, opacity .2s;
        }
        .auth-submit:hover { transform: translateY(-1px); }
        .auth-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
        .auth-submit svg { width: 18px; height: 18px; }

        .auth-footer {
            margin-top: 18px;
            padding-top: 16px;
            text-align: center;
            font-size: 13px;
            color: var(--sk-text2);
            border-top: 1px solid rgba(221,208,192,0.6);
        }
        .auth-footer a {
            color: var(--sk-navy);
            font-weight: 500;
            text-decoration: none;
        }
        .auth-footer a:hover { text-decoration: underline; }

        .auth-back {
            text-align: center;
            margin-top: 20px;
        }
        .auth-back a {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 13px;
            color: var(--sk-muted);
            text-decoration: none;
            transition: color .2s;
        }
        .auth-back a:hover { color: var(--sk-navy); }

        .wechat-box {
            border-radius: 12px;
            background: rgba(7,193,96,0.04);
            border: 1px dashed rgba(7,193,96,0.3);
            min-height: 320px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }
        .wechat-box iframe {
            width: 100%;
            height: 320px;
            border: none;
            border-radius: 8px;
        }
        .wechat-tip {
            font-size: 12px;
            color: #999;
            margin-top: 8px;
            text-align: center;
        }
        .wechat-fallback {
            margin-top: 12px;
            width: 100%;
            padding: 12px;
            border-radius: 10px;
            border: none;
            background: var(--sk-wx);
            color: #fff;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .wechat-fallback:hover { opacity: .9; }

        .auth-note {
            font-size: 12px;
            color: var(--sk-muted);
            text-align: center;
            margin-top: 10px;
        }

        @media (max-width: 420px) {
            .auth-page { padding-top: 40px; }
            .auth-card { padding: 20px; border-radius: 14px; }
            .auth-tab { font-size: 10px; padding: 6px 2px; }
            .captcha-row { flex-direction: column; align-items: stretch; }
            .captcha-img { width: 100%; height: 48px; }
            .code-row { flex-direction: column; align-items: stretch; }
            .code-row input { width: 100%; }
        }

        /* ─── 管理后台 Dashboard（保留原样式） ─── */
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
        .header { background: linear-gradient(135deg, var(--sk-navy) 0%, var(--sk-navy2) 100%); color: #fff;
            padding: 18px 28px; display: flex; align-items: center; justify-content: space-between;
            box-shadow: 0 2px 12px rgba(15,27,61,.18); }
        .header h1 { font-size: 20px; display: flex; align-items: center; gap: 12px; font-weight: 600; }
        .header .mark { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
        .header .who { font-size: 13px; color: #f5e6c8; display: flex; align-items: center; gap: 14px; }
        .btn-outline { background: transparent; border: 1px solid var(--sk-gold); color: var(--sk-gold);
            padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; }
        .btn-outline:hover { background: rgba(212,175,55,.12); }
        .container { max-width: 1180px; margin: 22px auto; padding: 0 22px; }
        .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-bottom: 22px; }
        .stat { background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(15,27,61,.06);
            border-left: 4px solid var(--sk-gold); }
        .stat .label { color: #8a94ad; font-size: 13px; margin-bottom: 8px; }
        .stat .value { font-size: 26px; font-weight: 700; color: var(--sk-navy); }
        .stat .v2 { font-size: 13px; color: var(--sk-ok); margin-top: 6px; }
        .panel { background: #fff; border-radius: 12px; padding: 20px 22px; margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(15,27,61,.06); }
        /* 面板显隐机制：只作用于 .content 的直接子面板（均有 id="panel-*"），
           不影响面板内部装饰性的 .panel 卡片（如控制台里的「概览分布」） */
        .content > .panel { display: none; }
        .content > .panel.active { display: block; }
        .panel h3 { color: var(--sk-navy); font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
        .panel h3::before { content: ''; width: 4px; height: 16px; background: var(--sk-gold); border-radius: 2px; }
        .tabs { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid #e3e8f2; padding-bottom: 10px; flex-wrap: wrap; }
        .tab { padding: 7px 16px; border-radius: 7px; cursor: pointer; font-size: 14px; color: #8a94ad; }
        .tab:hover { background: #f4f6fb; }
        .tab.active { background: var(--sk-navy); color: var(--sk-gold); }
        table { width: 100%; border-collapse: collapse; }
        th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid #e3e8f2; font-size: 13px; vertical-align: top; }
        th { color: #8a94ad; font-weight: 600; font-size: 12px; white-space: nowrap; }
        tbody tr:hover { background: #fafbff; }
        .badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 500; }
        .b-mail { background: #e8eefc; color: #2c5cc5; }
        .b-sms { background: #e6f6ee; color: #2e9e6b; }
        .b-wx { background: #fdeede; color: #c5781a; }
        .b-pw { background: #eeeef2; color: #5a6480; }
        .b-active { background: #e6f6ee; color: #2e9e6b; }
        .b-banned { background: #fbe3e3; color: #d24b4b; }
        .b-adm { background: #fbeecb; color: #b8860b; }
        .muted { color: #8a94ad; }
        .loading, .empty { text-align: center; padding: 30px; color: #8a94ad; }
        .pill { display:inline-block; background: #f4f6fb; border:1px solid #e3e8f2; border-radius:20px; padding:3px 10px; margin:3px 4px 3px 0; font-size:12px; }
        .pill b { color: var(--sk-navy); }
        .titlecell { max-width: 320px; color: var(--sk-navy); font-weight: 500; }
        .bodycell { max-width: 360px; color: #243049; cursor: pointer; vertical-align: top; }
        .bodycell .bodycell-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
        .bodycell:hover .bodycell-clamp { color: var(--rp-red); }
        .toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
        .toolbar input, .toolbar select { padding: 8px 12px; border: 1px solid #e3e8f2; border-radius: 7px; font-size: 13px; }
        .toolbar .btn-sm { width: auto; padding: 8px 16px; font-size: 13px; }
        .pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 13px; color: #8a94ad; }

        /* ─── 通用按钮（供 各管理页 / 配置块 复用） ─── */
        .btn { background: var(--sk-navy); color: var(--sk-gold); border: 1px solid var(--sk-navy);
            padding: 9px 18px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; transition: opacity .2s; }
        .btn:hover { opacity: .88; }
        .btn:disabled { opacity: .5; cursor: not-allowed; }
        .btn.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
        .btn.btn-danger { background: #d24b4b; color: #fff; border-color: #d24b4b; }
        .btn.btn-danger:hover { background: #c03f3f; }
        .btn.btn-ghost { background: #fff; color: var(--sk-navy); border-color: #e3e8f2; }
        .btn.btn-ghost:hover { background: #f4f6fb; }

        /* ─── 会员级别徽章 ─── */
        .b-free { background: #eeeef2; color: #5a6480; }
        .b-basic { background: #e8eefc; color: #2c5cc5; }
        .b-pro { background: #fdeede; color: #c5781a; }
        .b-ultimate { background: #fbeecb; color: #b8860b; }

        /* ─── 用户管理行内输入（配额修改） ─── */
        .row-input { width: 78px; padding: 4px 6px; border: 1px solid #e3e8f2; border-radius: 5px; font-size: 12px; }

        /* ─── 设置页 / 卡片 ─── */
        .card { background: #fff; border-radius: 12px; padding: 20px 22px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(15,27,61,.06); }
        .card h3 { color: var(--sk-navy); font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
        .card h3::before { content: ''; width: 4px; height: 16px; background: var(--sk-gold); border-radius: 2px; }
        .info-table { width: 100%; border-collapse: collapse; }
        .info-table td { padding: 10px 12px; border-bottom: 1px solid #eef1f7; font-size: 13px; color: #243049; }
        .info-table td:first-child { color: #8a94ad; width: 130px; white-space: nowrap; }

        /* ─── AI 模型配置块（三组，每组 3 槽位） ─── */
        .ai-group { border: 1px solid #e3e8f2; border-radius: 10px; padding: 16px 18px; margin-top: 14px; background: #fffdf8; }
        .ai-group-head { font-size: 14px; font-weight: 600; color: var(--sk-navy); margin-bottom: 4px; }
        .ai-group-sub { font-size: 12px; color: #8a94ad; margin-bottom: 12px; }
        .ai-slot { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
        .ai-slot:last-child { margin-bottom: 0; }
        .ai-slot .ai-pri { width: 54px; flex-shrink: 0; font-size: 12px; color: var(--sk-gold-dark); font-weight: 600; }
        .ai-slot input { flex: 1; padding: 9px 12px; border: 1px solid #e3e8f2; border-radius: 7px; font-size: 13px; }
        .ai-slot input:focus { border-color: var(--sk-navy); box-shadow: 0 0 0 3px rgba(28,43,61,.08); outline: none; }
        .ai-hint { font-size: 11px; color: #8a94ad; margin-top: 4px; }
        .ai-save-row { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
        .ai-source-badge { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
        .ai-source-badge.b-db { background: rgba(28,43,61,.08); color: var(--sk-navy); }
        .ai-source-badge.b-env { background: rgba(212,175,55,.15); color: #8a6d1a; }
        .ai-save-msg { font-size: 12px; color: var(--sk-ok); }
        .ai-save-msg.err { color: var(--sk-err); }


        @keyframes spin { 100% { transform: rotate(360deg); } }
        .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }

        /* ─── 侧边栏样式（Seekname 同款深色风格）─── */
        #dashboard { display: none; min-height: 100vh; }
        .sidebar {
            width: 220px;
            min-width: 220px;
            background: linear-gradient(180deg, #0a1628 0%, #132238 100%);
            color: #fff;
            display: none;
            flex-direction: column;
            position: fixed;
            top: 0; left: 0; bottom: 0;
            z-index: 100;
            box-shadow: 2px 0 12px rgba(0,0,0,.25);
        }
        #dashboard.active .sidebar { display: flex; }
        .sidebar-logo {
            height: 60px;
            display: flex;
            align-items: center;
            padding: 0 20px;
            gap: 10px;
            border-bottom: 1px solid rgba(255,255,255,.08);
            font-size: 16px;
            font-weight: 700;
            letter-spacing: .5px;
        }
        .logo-icon {
            width: 32px; height: 32px;
            border-radius: 8px;
            object-fit: contain;
            flex-shrink: 0;
        }
        .sidebar-menu { flex: 1; padding: 12px 0; overflow-y: auto; }
        .menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 11px 20px;
            font-size: 14px;
            color: rgba(255,255,255,.65);
            cursor: pointer;
            transition: all .2s;
            border-left: 3px solid transparent;
            white-space: nowrap;
        }
        .menu-item:hover {
            background: rgba(255,255,255,.06);
            color: rgba(255,255,255,.9);
        }
        .menu-item.active {
            background: rgba(196,160,64,.12);
            color: var(--sk-gold);
            border-left-color: var(--sk-gold);
        }
        .menu-item .icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

        .main { margin-left: 220px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; background: #f0f2f5; }
        .content { flex: 1; padding: 24px; }

        @media (max-width: 768px) {
            .sidebar { width: 0; min-width: 0; overflow: hidden; }
            .main { margin-left: 0; }
        }

        /* ─── 数据分析台 / 数据查询 ─── */
        .stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
        .stat-card { background: #fff; border: 1px solid #eef1f7; border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(16,33,71,.04); }
        .stat-label { color: #8a94ad; font-size: 13px; }
        .stat-value { color: var(--sk-navy); font-size: 28px; font-weight: 800; margin: 6px 0 2px; }
        .stat-sub { color: #5c6b85; font-size: 12px; }
        .bar { background: #eef1f7; border-radius: 6px; height: 10px; overflow: hidden; min-width: 80px; }
        .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--sk-gold), var(--sk-gold-dark)); border-radius: 6px; }
        .filter-grid { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
        .filter-grid label { font-size: 13px; color: #5c6b85; }
        .filter-grid input, .filter-grid select { padding: 7px 11px; border: 1px solid #e3e8f2; border-radius: 7px; font-size: 13px; }
        .filter-grid select.entity { min-width: 120px; }
        .tbl-wrap { overflow-x: auto; }
        .cell-amount { color: var(--sk-navy); font-weight: 600; }
