/* ============================================================================
 * 全局样式表 app.css
 * ----------------------------------------------------------------------------
 * 作用：为整个系统提供统一、现代、高端的视觉风格（企业蓝 + 白色）。
 * 结构：
 *   1. 设计变量（配色 / 圆角 / 阴影）
 *   2. 基础重置与通用排版
 *   3. 通用组件（按钮 / 卡片 / 徽标 / 表单 / 高端列表 / 提示条）
 *   4. 安装向导样式
 *   5. 登录页样式
 *   6. 后台主框架（侧边栏 / 顶栏 / 内容区）
 *   7. 数据概览与业务模块样式
 *   8. 响应式适配
 * ========================================================================== */

/* -------------------- 1. 设计变量（企业蓝 · 白 高端配色） -------------------- */
:root {
    --brand: #1667ff;             /* 主品牌色（企业蓝） */
    --brand-2: #4d8bff;           /* 辅助品牌色（亮蓝） */
    --brand-dark: #0b4bd4;        /* 深蓝（悬浮 / 按压态） */
    --brand-grad: linear-gradient(135deg, #1f6bff 0%, #0b4bd4 100%);
    --brand-soft: #eaf1ff;        /* 浅蓝底（选中 / 标签背景） */
    --bg: #f3f6fc;                /* 页面背景（冷调浅蓝白） */
    --surface: #ffffff;           /* 卡片 / 面板背景 */
    --text: #16202f;             /* 主文字（深靛） */
    --text-soft: #64748b;        /* 次要文字（slate 灰蓝） */
    --border: #e6ebf3;           /* 边框 */
    --success: #16a34a;          /* 成功（绿） */
    --danger: #e11d48;           /* 危险（玫红） */
    --warning: #d97706;          /* 警告（琥珀） */
    --radius: 16px;              /* 统一圆角 */
    --radius-sm: 10px;
    --shadow: 0 12px 32px rgba(19, 62, 138, .12);      /* 蓝调投影 */
    --shadow-soft: 0 4px 16px rgba(19, 62, 138, .08);
    --shadow-blue: 0 10px 24px rgba(22, 103, 255, .30); /* 品牌蓝光晕 */
    --sidebar: #0a2450;          /* 侧边栏深企业蓝 */
}

/* -------------------- 2. 基础重置与排版 -------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* 全局细腻滚动条（高端观感） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c6d2e6; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #a9bbdb; background-clip: content-box; }

/* -------------------- 3. 通用组件 -------------------- */

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
    background: #eef2fa; color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(22, 103, 255, .42); }
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-danger { background: #fff1f3; color: var(--danger); border: 1px solid #fbd0da; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: transparent; }

/* 卡片 */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-soft);
    transition: box-shadow .25s ease;
}
.card-pad { padding: 24px; }

/* 徽标 / 标签 */
.badge {
    display: inline-flex; align-items: center; padding: 3px 10px;
    border-radius: 999px; font-size: 12px; font-weight: 600;
    background: #eef2fa; color: var(--text-soft);
}
.badge-大众 { background: #e0edff; color: #2563eb; }
.badge-小众 { background: #ffe4ec; color: #db2777; }
.badge-大厂 { background: #e6ecff; color: #4f46e5; }
.badge-新兴 { background: #dcfce7; color: #16a34a; }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-warn { background: #fef3c7; color: #b45309; }
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-warning { background: #fef3c7; color: #d97706; }

/* 表单 */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field .hint { font-size: 12px; color: var(--text-soft); margin-top: 6px; }
.input {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px; background: #fbfcff;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(22, 103, 255, .15); background: #fff;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.input { resize: vertical; font-family: inherit; line-height: 1.6; }
select.input { cursor: pointer; }

/* 开关行（复选框 + 文字） */
.switch-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.switch-row input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

/* 双列布局（列表 + 表单） */
.settings-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }

/* 普通数据表格（紧凑型） */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { color: var(--text-soft); font-weight: 600; font-size: 13px; }
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: #f5f9ff; }
/* 列表悬浮弹出效果：鼠标移到行时轻微上浮 + 阴影 + 左侧强调条 */
.table.hover-pop tbody tr { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.table.hover-pop tbody tr:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(31,74,168,.12); background: #fff; position: relative; z-index: 1; }
.table.hover-pop tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--brand); }

/* ========== 高端交互列表（悬浮上浮 · 动态弹出效果） ========== */
/* 说明：行以“浮起卡片”呈现，鼠标悬浮时整行上浮、加深蓝色阴影并显现左侧品牌色光条。 */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; font-size: 14px; }
.data-table thead th {
    text-align: left; padding: 2px 16px 6px; font-size: 12px; font-weight: 700;
    color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.data-table thead th.ta-right { text-align: right; }
.data-table tbody tr {
    transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease;
}
.data-table tbody td {
    padding: 14px 16px; background: var(--surface); vertical-align: middle;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    transition: border-color .24s ease, background .24s ease;
}
.data-table tbody td:first-child {
    border-left: 1px solid var(--border);
    border-top-left-radius: 14px; border-bottom-left-radius: 14px; position: relative;
}
.data-table tbody td:last-child {
    border-right: 1px solid var(--border);
    border-top-right-radius: 14px; border-bottom-right-radius: 14px; text-align: right;
}
.data-table tbody td:first-child::before {
    content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px;
    border-radius: 0 4px 4px 0; background: var(--brand-grad); opacity: 0; transition: opacity .24s ease;
}
.data-table tbody tr:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.data-table tbody tr:hover td { border-color: #cfe0ff; background: #fbfdff; }
.data-table tbody tr:hover td:first-child::before { opacity: 1; }
.data-table tbody tr.row-current td { background: #f7faff; }
.data-table tbody tr.row-current td:first-child::before { opacity: 1; }
.data-table tbody tr.row-expired td:first-child::before { background: linear-gradient(180deg,#f97316,#e11d48); opacity: 1; }

/* 列表内“账号”单元（头像 + 名称 + 副信息） */
.u-cell { display: flex; align-items: center; gap: 12px; }
.u-ava {
    width: 44px; height: 44px; border-radius: 12px; flex: none;
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
    background: var(--brand-grad); box-shadow: var(--shadow-blue);
}
.u-ava.super { background: linear-gradient(135deg,#0a2450,#1667ff); }
.u-ava.expired { background: linear-gradient(135deg,#f97316,#e11d48); box-shadow: 0 8px 18px rgba(225,29,72,.28); }
.u-info { min-width: 0; }
.u-nm { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.u-sb { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.cell-k { font-size: 11px; color: var(--text-soft); }
.cell-v { font-size: 14px; font-weight: 700; margin-top: 2px; }

/* 列表内内联抽佣设置（紧凑） */
.comm-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comm-inline .mini-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.comm-inline .mini-switch input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.comm-inline input[type=number] { width: 74px; padding: 6px 8px; font-size: 13px; }

/* 行操作按钮组 */
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* 提示条 */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.alert-error { background: #fff1f3; color: var(--danger); border: 1px solid #fbd0da; }
.alert-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

/* -------------------- 4. 安装向导 -------------------- */
.install-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px;
    background: radial-gradient(1200px 600px at 20% -10%, #1f6bff22, transparent),
                radial-gradient(1000px 500px at 100% 0%, #0b4bd422, transparent), var(--bg); }
.install-box { width: 100%; max-width: 720px; }
.install-head { text-align: center; margin-bottom: 26px; }
.install-head .logo { font-size: 40px; }
.install-head h1 { font-size: 24px; margin-top: 8px; }
.install-head p { color: var(--text-soft); margin-top: 4px; }

/* 步骤条 */
.steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 26px; }
.step-dot { display: flex; align-items: center; gap: 8px; }
.step-dot .num {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: #e4e9f4; color: var(--text-soft); font-weight: 700; font-size: 13px;
}
.step-dot .label { font-size: 13px; color: var(--text-soft); }
.step-dot.active .num { background: var(--brand-grad); color: #fff; }
.step-dot.active .label { color: var(--text); font-weight: 600; }
.step-dot.done .num { background: var(--success); color: #fff; }
.step-line { width: 34px; height: 2px; background: var(--border); }

/* 环境检测列表 */
.check-list { list-style: none; }
.check-item { display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; border-bottom: 1px dashed var(--border); }
.check-item:last-child { border-bottom: none; }
.check-item .name { font-weight: 600; }
.check-item .val { color: var(--text-soft); font-size: 13px; margin-left: auto; margin-right: 14px; }
.check-ok { color: var(--success); font-weight: 700; }
.check-fail { color: var(--danger); font-weight: 700; }

.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
#test-result { font-size: 13px; margin-top: 10px; min-height: 20px; }

/* -------------------- 5. 登录页 -------------------- */
.auth-wrap { min-height: 100vh; height: 100vh; display: grid; grid-template-columns: var(--split-left, 55%) 1fr; position: relative; overflow: hidden; }
.auth-hero { position: relative; color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(150deg, #061630 0%, #0a2450 48%, #0d47a1 100%); overflow: hidden; }
/* 彻底去掉圆形光斑：::after / 光球 / 极光团（开关灯也不再出现） */
.auth-hero::after,
.auth-hero[data-fx]::after,
.auth-hero .hero-orb,
.auth-hero .hero-aurora {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    animation: none !important;
    background: none !important;
}
.auth-hero h2 { font-size: 32px; line-height: 1.35; position: relative; z-index: 1; letter-spacing: .5px;
    text-shadow: 0 2px 20px rgba(31,107,255,.35); transition: opacity .35s ease, transform .45s ease; }
.auth-hero .brand { font-size: 20px; font-weight: 800; position: relative; z-index: 1;
    transition: opacity .3s ease, transform .4s ease; }
.auth-hero .hero-kicker {
    display: inline-block; position: relative; z-index: 1;
    font-size: 11px; letter-spacing: .28em; font-weight: 600; color: rgba(212,181,106,.92);
    margin-bottom: 12px; transition: opacity .3s ease, color .4s ease;
}
.auth-hero .hero-fx-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
    /* 仅细线粒子，开灯也不抬高透明度，避免圆斑感 */
    opacity: .4 !important;
}
@keyframes heroOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -14px) scale(1.08); }
}
.auth-hero[data-fx="aurora"]::after {
    top: -120px; right: -120px;
    background: radial-gradient(circle, #1f6bff55, transparent 65%);
}
.auth-hero[data-fx="gold"]::after {
    top: -100px; left: -80px; right: auto;
    background: radial-gradient(circle, rgba(212,181,106,.45), transparent 65%);
}
.auth-hero[data-fx="gold"] .hero-kicker { color: #f0e0b0; }
.auth-hero[data-fx="gold"] .hero-orb-a {
    background: radial-gradient(circle, rgba(240,224,176,.5), transparent 70%);
}
.auth-hero[data-fx="cyan"]::after {
    bottom: -100px; right: -60px; top: auto;
    background: radial-gradient(circle, rgba(64,196,220,.42), transparent 65%);
}
.auth-hero[data-fx="cyan"] .hero-kicker { color: #8fe7f5; }
.auth-hero[data-fx="pulse"]::after {
    top: 18%; left: 28%; width: 320px; height: 320px; right: auto;
    background: radial-gradient(circle, rgba(120,160,255,.38), transparent 65%);
    animation: heroPulseRing 4s ease-in-out infinite;
}
.auth-hero[data-fx="orbit"]::after {
    top: -80px; right: 8%;
    background: conic-gradient(from 40deg, transparent, rgba(212,181,106,.3), transparent 40%, rgba(110,184,255,.28), transparent 70%);
    animation: heroOrbitSpin 18s linear infinite;
}
.auth-hero[data-fx="ember"]::after {
    bottom: -120px; left: 18%; top: auto; right: auto;
    background: radial-gradient(circle, rgba(255,140,80,.38), transparent 65%);
}
.auth-hero[data-fx="ember"] .hero-kicker { color: #ffc29a; }
.auth-hero[data-fx="mist"]::after {
    top: 36%; left: -12%; right: auto;
    background: radial-gradient(circle, rgba(180,200,255,.3), transparent 70%);
}
@keyframes heroPulseRing {
    0%, 100% { transform: scale(1); opacity: .5; }
    50% { transform: scale(1.25); opacity: .85; }
}
@keyframes heroOrbitSpin { to { transform: rotate(360deg); } }
.auth-hero.is-swapping .hero-mid,
.auth-hero.is-swapping .brand { opacity: 0; transform: translateY(10px); }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--surface); min-height: 0; height: 100%; position: relative; overflow: hidden; }
.auth-form { width: 100%; max-width: 380px; }
.auth-form h3 { font-size: 22px; margin-bottom: 6px; }
.auth-form .sub { color: var(--text-soft); margin-bottom: 24px; }

/* 品牌区高端装饰：流动极光光斑 + 玻璃拟态特性药丸 */
.hero-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-aurora::before, .hero-aurora::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(24px);
}
.hero-aurora::before { width: 520px; height: 520px; top: -170px; left: -130px;
    background: radial-gradient(circle, rgba(31,107,255,.55), transparent 62%);
    animation: auroraFloat 9s ease-in-out infinite; }
.hero-aurora::after { width: 380px; height: 380px; bottom: -140px; right: -70px;
    background: radial-gradient(circle, rgba(77,139,255,.42), transparent 65%);
    animation: auroraFloat 12s ease-in-out infinite reverse; }
@keyframes auroraFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(34px,22px); } }
.hero-mid {
    position: relative; z-index: 1;
    transition: opacity .4s ease, transform .45s ease;
}
.hero-feats { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 20px; }
.auth-hero .feature { display: inline-flex; align-items: center; gap: 8px; font-size: 14px;
    padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px);
    transition: opacity .35s ease, transform .4s ease; }
.hero-foot { position: relative; z-index: 1; opacity: .65; font-size: 13px; }

/* 文案切换：先淡出再换字（需压过 lights-on 下的 opacity:1，否则会「字没消失内容就变了」） */
.auth-hero.is-swapping .hero-mid,
.auth-hero.is-swapping .brand,
.auth-stage .auth-hero.is-swapping .hero-mid,
.auth-stage .auth-hero.is-swapping .brand,
.auth-stage.lights-on .auth-hero.is-swapping .hero-mid,
.auth-stage.lights-on .auth-hero.is-swapping .brand {
    opacity: 0 !important;
    transform: translateY(14px) !important;
    pointer-events: none;
}
/* 舞台：整页承载。关灯的“暗场”仅作用于左侧品牌区，右侧关灯态展示官网内容。
   --split-left 控制左右两栏宽度（可由中缝分割线拖拽调整）。 */
.auth-stage { position: relative; min-height: 100vh; height: 100vh; overflow: hidden; background: #05070f; --split-left: 55%; }

/* 中缝可拖拽分割线 */
.auth-divider { position: absolute; top: 0; bottom: 0; left: var(--split-left, 55%); width: 14px;
    transform: translateX(-50%); z-index: 40; cursor: col-resize; display: flex; align-items: center; justify-content: center; }
.auth-divider .handle { width: 4px; height: 54px; border-radius: 999px; background: rgba(255,255,255,.35);
    box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: background .15s ease, height .15s ease; }
.auth-divider:hover .handle, .auth-divider.dragging .handle { background: var(--brand); height: 88px; }
.auth-stage .auth-wrap { position: relative; z-index: 1; }

/* 右侧登录区：始终盖在幕布之上；关灯播官网，开灯显示登录 */
.auth-stage .auth-form-side {
    position: relative; z-index: 7; background: var(--surface);
    overflow: hidden; min-height: 0; height: 100%;
    transition: background .35s ease;
}
.auth-stage.lights-on .auth-form-side {
    background: #f0f4fa;
}

/* 广告位（官网）与登录表单：必须先后切换，禁止叠在一起「折叠」 */
.auth-adslot {
    position: absolute; inset: 0; z-index: 2; overflow: hidden;
    opacity: 1; visibility: visible;
    background: #eef2f8;
    display: flex; flex-direction: column;
    /* 关灯：等登录先淡出，再显现官网 */
    transition: opacity .4s ease .38s, visibility 0s linear .38s;
}
.auth-stage.lights-on .auth-adslot {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
    /* 开灯：官网先快速消失，再出登录 */
    transition: opacity .32s ease, visibility 0s linear .32s;
}
.ad-video, .ad-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* -------------------- 5.2 关灯态·企业官网（真正的前端，浮于背景动画之上） -------------------- */
.site-panel {
    position: relative;
    z-index: 2;
    flex: 1;
    width: 100%;
    min-height: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    color: #152238;
    -webkit-overflow-scrolling: touch;
    transition: opacity .6s ease;
    background: #eef2f8;
    box-sizing: border-box;
}
.site-panel::-webkit-scrollbar { width: 8px; }
.site-panel::-webkit-scrollbar-track { background: #e8edf5; }
.site-panel::-webkit-scrollbar-thumb { background: rgba(31,107,255,.35); border-radius: 4px; }
.site-panel section, .site-panel header, .site-panel footer { padding-left: clamp(12px, 3vw, 24px); padding-right: clamp(12px, 3vw, 24px); }
.site-panel section.site-cblock { padding-left: clamp(12px, 3vw, 18px); padding-right: clamp(12px, 3vw, 18px); }
.site-panel section.site-cblock.fdpc-goods-block {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 顶部导航（浅色官网面板配套：白底深字，与工作台预览一致） */
.site-topbar {
    position: sticky; top: 0; z-index: 6; flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; flex-wrap: wrap;
    padding-top: 12px; padding-bottom: 12px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #d8e2f0;
    color: #152238;
}
.site-brand {
    font-size: 15px; font-weight: 800; letter-spacing: .5px;
    min-width: 0; flex-shrink: 1; color: #152238;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; max-width: 100%; justify-content: flex-end; }
.site-nav a {
    color: #2a3d5c; text-decoration: none; font-size: 13px; font-weight: 700;
    padding: 6px 10px; border-radius: 999px;
    transition: color .15s, background .15s;
}
.site-nav a:hover { color: #152238; background: rgba(31,107,255,.08); }
.site-nav a.active { color: var(--brand); background: rgba(31,107,255,.1); }
.site-nav a.site-nav-cta.active { background: linear-gradient(135deg, var(--brand), #4d8bff); color: #fff; }
.site-nav a.site-nav-cta {
    background: linear-gradient(135deg, var(--brand), #4d8bff); color: #fff; font-weight: 700;
    box-shadow: 0 8px 20px rgba(31,107,255,.35);
}
.site-nav a.site-nav-cta:hover { transform: translateY(-1px); background: linear-gradient(135deg, var(--brand), #5f9bff); color: #fff; }

/* 主视觉 / 空页提示 */
.site-hero-empty { padding: clamp(48px, 12vh, 96px) 20px; text-align: center; background: #eef2f8; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 240px; }
.site-hero-empty.site-page-empty { min-height: 100%; }
.site-page-empty p { color: #3d5170; max-width: 420px; margin: 12px auto 0; font-size: 14px; line-height: 1.7; }
.site-hero-empty h1 { font-size: clamp(22px, 3vw, 32px); color: #152238; }
.site-hero-empty p { color: #3d5170; max-width: 480px; margin: 16px auto 0; }
.site-hero-empty .site-eyebrow { color: var(--brand); background: rgba(31,107,255,.1); border-color: rgba(31,107,255,.22); }

/* 以下 .site-* 旧内置区块统一按浅色面板配色（防再出现“浅底浅字”） */
.site-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: var(--brand);
    padding: 6px 14px; border-radius: 999px; background: rgba(31,107,255,.1); border: 1px solid rgba(31,107,255,.22); }
.site-hero h1 { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.12; margin: 18px 0 16px; font-weight: 900; letter-spacing: -.5px; color: #152238; }
.site-hero h1 span { background: linear-gradient(90deg, var(--brand), #4d8bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-hero p { margin: 0 0 26px; color: #3d5170; font-size: clamp(14px, 1.4vw, 16px); line-height: 1.85; max-width: 640px; }
.site-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.site-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-size: 14.5px;
    font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
    transition: transform .16s, box-shadow .16s, background .16s, color .16s, border-color .16s; }
.site-btn.lg { padding: 15px 34px; font-size: 15.5px; }
.site-btn.primary { background: linear-gradient(135deg, var(--brand), #4d8bff); color: #fff; box-shadow: 0 12px 30px rgba(31,107,255,.42); }
.site-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(31,107,255,.6); }
.site-btn.ghost { background: #fff; color: #152238; border: 1px solid #b8c8de; }
.site-btn.ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); background: rgba(31,107,255,.06); }

/* hero 战绩 */
.site-trust { display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; margin-top: 40px; }
.site-trust .st-i { display: flex; flex-direction: column; gap: 2px; }
.site-trust b { font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: #152238; }
.site-trust span { font-size: 12.5px; color: #6b7f9c; }

/* 通用区块 */
.site-sec { padding-top: clamp(34px, 6vh, 66px); padding-bottom: clamp(34px, 6vh, 66px); color: #152238; }
.site-sec.alt { background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.site-sec-head { margin-bottom: 28px; }
.site-sec-head h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; margin: 0 0 8px; color: #152238; }
.site-sec-head p { margin: 0; color: #6b7f9c; font-size: 14px; }

/* 应用矩阵（可在线购买） */
.site-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 18px; }
.site-empty { color: #6b7f9c; padding: 30px 0; }
.app-card { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: 18px;
    background: #fff; border: 1px solid #b8c8de; overflow: hidden; color: #152238;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.app-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0, rgba(77,139,255,.14), transparent 60%);
    opacity: 0; transition: opacity .2s ease; }
.app-card:hover { transform: translateY(-6px); background: #fff; border-color: rgba(31,107,255,.45);
    box-shadow: 0 18px 40px rgba(15,30,60,.12); }
.app-card:hover::before { opacity: 1; }
.app-ico { font-size: 34px; line-height: 1; margin-bottom: 12px; }
.app-name { font-size: 17px; font-weight: 800; margin-bottom: 6px; color: #152238; }
.app-desc { font-size: 13px; color: #3d5170; line-height: 1.6; min-height: 42px; }
.app-meta { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 16px; }
.app-price { font-size: 24px; font-weight: 900; color: #152238; }
.app-price.free { font-size: 18px; color: #16a34a; }
.app-unit { font-size: 12px; color: #6b7f9c; }
.app-buy { position: relative; z-index: 1; text-align: center; padding: 11px 0; border-radius: 12px; font-weight: 700; font-size: 14px;
    text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--brand), #4d8bff);
    box-shadow: 0 10px 24px rgba(31,107,255,.35); transition: transform .16s, box-shadow .16s; }
.app-buy:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(31,107,255,.55); }

/* 平台优势 */
.site-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.feat { padding: 20px; border-radius: 16px; background: #fff; border: 1px solid #b8c8de; color: #152238;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.feat:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,30,60,.1); }
.feat .fi { font-size: 26px; }
.feat b { display: block; font-size: 15.5px; margin: 10px 0 6px; color: #152238; }
.feat i { font-style: normal; font-size: 13px; color: #3d5170; line-height: 1.6; }

/* 服务流程 */
.site-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.flow-step { position: relative; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid #b8c8de; color: #152238; }
.flow-step .fs-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
    font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--brand), #4d8bff); box-shadow: 0 8px 18px rgba(31,107,255,.4); }
.flow-step b { display: block; font-size: 15px; margin: 12px 0 6px; color: #152238; }
.flow-step i { font-style: normal; font-size: 12.5px; color: #3d5170; }

/* 行动号召横幅（浅蓝底 + 深字，避免浅字洗掉） */
.site-cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding-top: clamp(30px, 5vh, 54px); padding-bottom: clamp(30px, 5vh, 54px);
    background: linear-gradient(120deg, rgba(31,107,255,.12), rgba(77,139,255,.06));
    border-top: 1px solid #d8e2f0; border-bottom: 1px solid #d8e2f0; color: #152238; }
.site-cta-band h2 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; margin: 0 0 8px; color: #152238; }
.site-cta-band p { margin: 0; color: #3d5170; font-size: 14px; max-width: 560px; line-height: 1.7; }

/* 页脚 */
.site-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-top: 22px; padding-bottom: 26px; border-top: 1px solid #d8e2f0; color: #152238; }
.site-foot .sf-brand { font-weight: 800; color: #152238; }
.site-foot .sf-copy { font-size: 12.5px; color: #6b7f9c; }

/* -------------------- 5.3 官网面板内 SPA 切页 -------------------- */
.site-page { display: none; }
.site-page.active {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    animation: sitePageIn .4s ease;
    min-height: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
    background: #eef2f8;
}
/* 短内容页：组件区撑满剩余高度，便于页脚贴底，避免「页脚下面再空一大截」 */
.site-panel .site-page.active > .site-custom-blocks {
    flex: 1 1 auto;
}
@keyframes sitePageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* 无 href 的导航/按钮统一手型 */
.site-brand[data-nav], .site-nav a, .site-cta [data-nav] { cursor: pointer; }
.site-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.site-brand .site-logo { height: 28px; width: auto; object-fit: contain; border-radius: 6px; }
.site-brand .site-logo-ico { font-size: 20px; line-height: 1; }
.app-buy { border: none; width: 100%; cursor: pointer; font-family: inherit; }

/* 新手教程 */
.site-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.guide-item { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid #b8c8de; color: #152238; }
.guide-item .gi-ico { font-size: 24px; }
.guide-item b { display: block; font-size: 15px; margin-bottom: 6px; color: #152238; }
.guide-item i { font-style: normal; font-size: 13px; color: #3d5170; line-height: 1.7; }

/* 价格表 */
.price-table { border: 1px solid #b8c8de; border-radius: 16px; overflow: hidden; background: #fff; color: #152238; }
.price-head, .price-row { display: grid; grid-template-columns: 2fr 1.2fr 1fr .8fr; align-items: center; gap: 10px; padding: 14px 18px; }
.price-head { background: #f4f7fc; font-size: 12.5px; color: #6b7f9c; font-weight: 700; }
.price-row { border-top: 1px solid #e2e8f0; font-size: 14px; transition: background .15s; color: #152238; }
.price-row:hover { background: #f8fafc; }
.price-row .pr-name { font-weight: 700; color: #152238; }
.price-row .pr-fee { font-weight: 800; color: #152238; }
.pr-buy { border: none; cursor: pointer; font-family: inherit; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 13px;
    color: #fff; background: linear-gradient(135deg, var(--brand), #4d8bff); box-shadow: 0 8px 18px rgba(31,107,255,.35); transition: transform .15s; }
.pr-buy:hover { transform: translateY(-2px); }

/* 详情 / 购买（官网面板已是浅色底，文字必须用深色，否则几乎看不见） */
.site-panel .glass {
    background: #fff;
    border: 1px solid #b8c8de;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 30, 60, .06);
    color: #152238;
}
/* ========== 开通页 · 高端粒子舞台 ========== */
.site-panel .site-page[data-page="buy"].active {
    background: #070b14;
}
.site-panel .buy-stage {
    --buy-ink: #070b14;
    --buy-gold: #d4b56a;
    --buy-gold-2: #f0e0b0;
    --buy-cyan: #6eb8ff;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(72vh, 760px);
    margin: 0 -4px;
    padding: 22px 18px 36px;
    border-radius: 22px;
    color: #e8eef8;
    background:
        radial-gradient(120% 80% at 12% -10%, rgba(212,181,106,.16), transparent 55%),
        radial-gradient(90% 70% at 100% 0%, rgba(110,184,255,.12), transparent 50%),
        linear-gradient(165deg, #0a1222 0%, #070b14 48%, #0c1528 100%);
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.site-panel .buy-particles {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
.site-panel .buy-aurora {
    position: absolute; inset: -20% -10% auto;
    height: 55%; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(212,181,106,.22), transparent 55%),
        radial-gradient(ellipse at 78% 30%, rgba(80,150,255,.18), transparent 50%);
    filter: blur(28px);
    animation: buyAurora 12s ease-in-out infinite alternate;
}
.site-panel .buy-vignette {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.45) 100%),
        linear-gradient(180deg, transparent 70%, rgba(0,0,0,.35));
}
@keyframes buyAurora {
    from { transform: translate3d(-2%, 0, 0) scale(1); opacity: .85; }
    to   { transform: translate3d(3%, 4%, 0) scale(1.08); opacity: 1; }
}
.site-panel .buy-stage > *:not(.buy-particles):not(.buy-aurora):not(.buy-vignette) {
    position: relative; z-index: 1;
}
.site-panel .buy-back {
    border: 1px solid rgba(212,181,106,.28);
    background: rgba(255,255,255,.04);
    color: rgba(232,238,248,.78);
    cursor: pointer;
    font-family: inherit;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.site-panel .buy-back:hover {
    background: rgba(212,181,106,.12);
    border-color: rgba(212,181,106,.55);
    color: var(--buy-gold-2);
    transform: translateX(-2px);
}
.site-panel .buy-hero-line {
    text-align: center;
    margin: 0 auto 22px;
    max-width: 520px;
    animation: buyRise .7s cubic-bezier(.22,.9,.3,1) both;
}
.site-panel .buy-kicker {
    display: inline-block;
    font-size: 11px; letter-spacing: .28em; font-weight: 600;
    color: var(--buy-gold);
    margin-bottom: 10px;
}
.site-panel .buy-hero-title {
    margin: 0;
    font-family: "Cormorant Garamond", "Noto Serif SC", serif;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 600;
    letter-spacing: .04em;
    color: #f5f7fb;
    text-shadow: 0 0 40px rgba(212,181,106,.25);
}
.site-panel .buy-hero-sub {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(200,214,235,.65);
    letter-spacing: .12em;
}
@keyframes buyRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
.site-panel .buy-grid {
    display: grid; grid-template-columns: 1fr 1.12fr; gap: 18px; align-items: stretch;
}
@media (max-width: 900px) { .site-panel .buy-grid { grid-template-columns: 1fr; } }

.site-panel .buy-info,
.site-panel .buy-form {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 26px 24px;
    background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
    border: 1px solid rgba(212,181,106,.22);
    box-shadow:
        0 24px 60px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(18px) saturate(1.2);
    animation: buyRise .8s cubic-bezier(.22,.9,.3,1) both;
}
.site-panel .buy-form { animation-delay: .08s; }
.site-panel .buy-info .bi-glow {
    position: absolute; top: -40%; left: -20%; width: 70%; height: 70%;
    background: radial-gradient(circle, rgba(212,181,106,.2), transparent 65%);
    pointer-events: none;
}
.site-panel .bi-ico-wrap {
    width: 72px; height: 72px; border-radius: 20px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, rgba(212,181,106,.2), rgba(110,184,255,.08));
    border: 1px solid rgba(212,181,106,.35);
    box-shadow: 0 12px 28px rgba(0,0,0,.25), 0 0 24px rgba(212,181,106,.15);
}
.site-panel .buy-info .bi-ico { font-size: 36px; line-height: 1; }
.site-panel .buy-info .bi-name {
    font-family: "Cormorant Garamond", "Noto Serif SC", serif;
    font-size: 28px; font-weight: 600; margin: 16px 0 8px;
    color: #f7f3e8; letter-spacing: .03em;
}
.site-panel .buy-info .bi-desc {
    font-size: 13.5px; color: rgba(200,214,235,.72); line-height: 1.7;
}
.site-panel .buy-info .bi-price {
    display: flex; align-items: baseline; gap: 10px;
    margin: 20px 0 8px; padding: 14px 0;
    border-top: 1px solid rgba(212,181,106,.18);
    border-bottom: 1px solid rgba(212,181,106,.18);
}
.site-panel .buy-info .bi-p {
    font-size: 36px; font-weight: 700; color: var(--buy-gold-2);
    text-shadow: 0 0 28px rgba(212,181,106,.35);
}
.site-panel .buy-info .bi-p.is-free {
    color: #7ddea0; font-size: 30px;
    text-shadow: 0 0 28px rgba(125,222,160,.3);
}
.site-panel .buy-info .bi-u { font-size: 12.5px; color: rgba(200,214,235,.55); }
.site-panel .buy-info .bi-list { list-style: none; padding: 0; margin: 14px 0 0; }
.site-panel .buy-info .bi-list li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 9px 0; font-size: 13px; color: rgba(220,228,240,.82);
    border-top: 1px dashed rgba(255,255,255,.08);
}
.site-panel .buy-info .bi-list li::before {
    content: ""; flex: 0 0 16px; height: 16px; margin-top: 2px;
    background:
        linear-gradient(135deg, var(--buy-gold), #a8893d);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.2 11.4 2.8 8l1.1-1.1 2.3 2.3 5.1-5.1L12.4 5.2z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.2 11.4 2.8 8l1.1-1.1 2.3 2.3 5.1-5.1L12.4 5.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.site-panel .bf-head { margin-bottom: 18px; }
.site-panel .bf-title {
    font-family: "Cormorant Garamond", "Noto Serif SC", serif;
    font-size: 24px; font-weight: 600; color: #f5f7fb; letter-spacing: .02em;
}
.site-panel .bf-sub { font-size: 12.5px; color: rgba(200,214,235,.58); margin: 6px 0 0; line-height: 1.6; }
.site-panel .bf-alert {
    background: rgba(220,60,80,.12); border: 1px solid rgba(240,120,130,.35); color: #ffb4bc;
    border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 14px;
}
.site-panel .bf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .site-panel .bf-row2 { grid-template-columns: 1fr; } }
.site-panel .bf-fld { margin-bottom: 14px; }
.site-panel .bf-fld label {
    display: block; font-size: 12px; font-weight: 600;
    color: rgba(232,238,248,.78); margin-bottom: 7px; letter-spacing: .04em;
}
.site-panel .bf-fld label i { color: #e8a0a8; font-style: normal; }
.site-panel .bf-fld input {
    width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; font-size: 14px;
    background: rgba(0,0,0,.28); border: 1px solid rgba(212,181,106,.22); color: #f2f5fa; outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.site-panel .bf-fld input:focus {
    border-color: rgba(212,181,106,.65);
    box-shadow: 0 0 0 3px rgba(212,181,106,.14), 0 0 24px rgba(212,181,106,.08);
    background: rgba(0,0,0,.38);
}
.site-panel .bf-fld input::placeholder { color: rgba(170,186,210,.45); }
.site-panel .bf-pays { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .site-panel .bf-pays { grid-template-columns: 1fr; } }
.site-panel .bf-pay-opt {
    display: flex; align-items: center; gap: 8px; padding: 12px 13px; border-radius: 12px;
    cursor: pointer; font-size: 13.5px; color: rgba(232,238,248,.88);
    background: rgba(255,255,255,.03); border: 1.5px solid rgba(212,181,106,.2);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.site-panel .bf-pay-opt input { accent-color: var(--buy-gold); }
.site-panel .bf-pay-opt.checked {
    border-color: rgba(212,181,106,.7);
    background: rgba(212,181,106,.1);
    box-shadow: 0 0 20px rgba(212,181,106,.12);
    color: #fff;
}
.site-panel .bf-empty {
    font-size: 13px; color: #f0d090;
    background: rgba(212,181,106,.1); border: 1px solid rgba(212,181,106,.28);
    border-radius: 12px; padding: 10px 12px;
}
.site-panel .bf-submit {
    width: 100%; margin-top: 8px; padding: 15px 0; border: none; border-radius: 14px;
    cursor: pointer; font-family: inherit; font-size: 15.5px; font-weight: 800;
    letter-spacing: .08em; color: #1a1408;
    background: linear-gradient(135deg, #f0e0b0 0%, #d4b56a 45%, #b8923f 100%);
    box-shadow: 0 14px 36px rgba(212,181,106,.35), inset 0 1px 0 rgba(255,255,255,.45);
    transition: transform .2s, box-shadow .2s, filter .2s;
    position: relative; overflow: hidden;
}
.site-panel .bf-submit::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .6s ease;
}
.site-panel .bf-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(212,181,106,.5), inset 0 1px 0 rgba(255,255,255,.5);
    filter: brightness(1.05);
}
.site-panel .bf-submit:hover::after { transform: translateX(120%); }
.site-panel .bf-submit:disabled { opacity: .55; cursor: default; transform: none; filter: none; }
.site-panel .bf-safe {
    text-align: center; margin-top: 14px; font-size: 11.5px;
    color: rgba(180,196,220,.5);
}

/* 结果（与开通舞台同系） */
.site-panel .buy-result { max-width: 460px; margin: 10px auto; text-align: center; }
.site-panel .buy-result .br-badge {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center; font-size: 42px;
}
.site-panel .buy-result .br-badge.ok {
    background: radial-gradient(circle at 50% 40%, rgba(22,163,74,.22), rgba(22,163,74,.06));
    box-shadow: 0 0 28px rgba(22,163,74,.18);
}
.site-panel .buy-result .br-badge.wait {
    background: radial-gradient(circle at 50% 40%, rgba(217,119,6,.22), rgba(217,119,6,.06));
    box-shadow: 0 0 28px rgba(217,119,6,.16);
}
.site-panel .buy-result .br-title { font-size: 21px; font-weight: 900; margin-bottom: 10px; color: #152238; }
.site-panel .buy-result .br-text { color: #3d5170; font-size: 14px; line-height: 1.8; }
.site-panel .buy-result .br-kv {
    background: #f8fafc; border: 1px solid #b8c8de; border-radius: 14px;
    padding: 12px 18px; margin: 20px 0; text-align: left;
}
.site-panel .buy-result .br-kv .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: #152238; }
.site-panel .buy-result .br-kv .k { color: #6b7f9c; }
.site-panel .buy-result .br-kv .v { font-weight: 700; color: #152238; }
.site-panel .buy-result .br-btns { display: flex; gap: 12px; }
.site-panel .buy-result .br-btns .site-btn { flex: 1; justify-content: center; }
.site-panel .buy-result .br-btns .site-btn.ghost {
    background: #fff; color: #152238; border: 1px solid #b8c8de;
}
.site-panel .buy-result .br-btns .site-btn.ghost:hover {
    border-color: var(--brand); color: var(--brand); background: rgba(31,107,255,.06);
}

/* 官网开通 · 扫码支付弹层 */
.site-pay-mask {
    position: fixed; inset: 0; z-index: 120;
    display: flex; align-items: center; justify-content: center;
    background: rgba(8,14,28,.52); backdrop-filter: blur(8px); padding: 20px;
}
.site-pay-mask[hidden] { display: none !important; }
.site-pay-card {
    width: min(380px, 100%); position: relative;
    padding: 26px 22px 20px; border-radius: 20px; background: #fff;
    box-shadow: 0 28px 60px rgba(0,0,0,.28); text-align: center; color: #152238;
}
.site-pay-close {
    position: absolute; top: 12px; right: 12px; border: none; background: #eef2fa;
    width: 32px; height: 32px; border-radius: 10px; cursor: pointer; font-size: 18px; color: #6b7f9c;
}
.site-pay-title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.site-pay-amount {
    font-size: 32px; font-weight: 900; color: #1f6bff; letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.site-pay-app { margin-top: 4px; font-size: 13px; color: #6b7f9c; }
.site-pay-qr-wrap {
    margin: 18px auto 12px; width: 220px; height: 220px;
    border-radius: 16px; border: 1px solid #e2e8f4; background: #f8fafd;
    display: grid; place-items: center; overflow: hidden;
}
.site-pay-qr { width: 220px; height: 220px; display: block; }
.site-pay-qr-empty { padding: 16px; font-size: 13px; color: #8a9bb5; line-height: 1.55; }
.site-pay-tip { margin: 0; font-size: 13px; color: #3d5170; line-height: 1.55; }
.site-pay-no { margin: 8px 0 0; font-size: 12px; color: #93a3bd; word-break: break-all; }
.site-pay-status { margin: 10px 0 14px; font-size: 13px; font-weight: 700; color: #b8860b; min-height: 1.2em; }
.site-pay-status.is-ok { color: #1e7a45; }
.site-pay-status.is-err { color: #c0392b; }
.site-pay-refresh { width: 100%; justify-content: center; }

/* ---------- 我的 · 会员中心（铺满右侧 · 大字高对比可读） ---------- */
.site-panel .site-page[data-page="me"].active {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100%;
    background: #eef2f8;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
.site-panel .me-stage {
    max-width: none;
    width: 100%;
    margin: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 18px clamp(16px, 3vw, 28px) 28px !important;
}
.site-panel .me-head { text-align: left; margin: 0 0 16px; flex-shrink: 0; }
.site-panel .me-kicker {
    display: inline-block; font-size: 12px; letter-spacing: .2em; font-weight: 800;
    color: var(--brand); opacity: 1; margin-bottom: 8px;
}
.site-panel .me-title { font-size: 30px; font-weight: 900; margin: 0 0 8px; color: #0f1a2e; letter-spacing: .02em; }
.site-panel .me-sub { margin: 0; font-size: 14px; color: #4a5d78; line-height: 1.7; max-width: none; font-weight: 500; }
.site-panel .me-panel {
    padding: 0; border-radius: 16px; overflow: hidden;
    background: #fff; border: 1px solid #c9d6ea;
    box-shadow: 0 10px 28px rgba(20,40,80,.06);
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.site-panel .me-tabs { display: flex; gap: 10px; margin-bottom: 18px; padding: 22px 24px 0; }
.site-panel .me-tab {
    flex: 1; border: 1px solid #c9d6ea; background: #f6f8fc; color: #2a3d5c;
    border-radius: 12px; padding: 12px 0; font-weight: 800; font-size: 15px;
    cursor: pointer; font-family: inherit; transition: .18s;
}
.site-panel .me-tab.active {
    background: var(--brand); color: #fff; border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(31,107,255,.28);
}
.site-panel .me-alert {
    margin: 0 24px 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600;
}
.site-panel .me-alert.err { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6c6; }
.site-panel .me-alert.ok { background: #f0faf4; color: #1e7a45; border: 1px solid #b7e4c7; }
.site-panel .me-form { padding: 0 24px 24px; }
.site-panel .me-form .bf-fld input {
    background: #fff; border: 1.5px solid #b8c8de; color: #0f1a2e; font-size: 15px;
}
.site-panel .me-form .bf-fld input:focus {
    border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,107,255,.15);
}
.site-panel .me-form .bf-fld label { color: #2a3d5c; font-size: 14px; font-weight: 700; }
.site-panel .me-form .bf-submit {
    background: linear-gradient(135deg, #4d8cff, #1f6bff);
    color: #fff; letter-spacing: .04em; font-size: 15px; font-weight: 800;
    box-shadow: 0 12px 28px rgba(31,107,255,.32);
}
.site-panel .me-reg-gift {
    margin: 12px 0 0; text-align: center; font-size: 13px; color: #4a5d78; font-weight: 600;
}
.site-panel .me-reg-gift b { color: #a66b00; }
.site-panel .me-hero {
    display: flex; align-items: center; gap: 18px;
    padding: 28px 28px 24px;
    background: linear-gradient(135deg, #1f6bff 0%, #3b82f6 48%, #60a5fa 100%);
    color: #fff;
}
.site-panel .me-ava-wrap { position: relative; flex-shrink: 0; }
.site-panel .me-ava {
    width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
    font-size: 30px; font-weight: 800; color: #1f4f9a;
    background: linear-gradient(160deg, #fff 0%, #e8f0ff 100%);
    border: 3px solid rgba(255,255,255,.85);
    box-shadow: 0 10px 28px rgba(10,40,100,.28);
}
.site-panel .me-vip {
    position: absolute; right: -4px; bottom: -2px;
    font-size: 11px; font-weight: 800; letter-spacing: .04em;
    padding: 3px 8px; border-radius: 999px;
    color: #5a3d08; background: linear-gradient(135deg, #ffe7a8, #d4b56a);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.site-panel .me-hero-info { min-width: 0; }
.site-panel .me-name { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.site-panel .me-meta { font-size: 14px; color: rgba(255,255,255,.95); margin-top: 8px; line-height: 1.55; word-break: break-all; font-weight: 600; }
.site-panel .me-assets {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; margin: 0; border-bottom: 1px solid #d8e2f0;
    background: #f4f7fc;
}
.site-panel .me-asset {
    padding: 20px 16px 18px; text-align: center;
    border-right: 1px solid #d8e2f0;
}
.site-panel .me-asset:last-child { border-right: none; }
.site-panel .me-asset-label {
    display: block; font-size: 13px; font-weight: 800; color: #3d5170; letter-spacing: .04em;
}
.site-panel .me-asset-val {
    display: block; margin-top: 10px;
    font-size: 26px; font-weight: 900; color: #0f1a2e; letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.site-panel .me-asset-hint {
    display: block; margin-top: 6px; font-style: normal;
    font-size: 12px; color: #5a6f8c; font-weight: 600;
}
.site-panel .me-shortcuts {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px; padding: 22px 20px 12px;
}
.site-panel .me-sc {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 16px 8px 14px; border-radius: 14px;
    border: 1px solid #c9d6ea; background: #fff;
    color: #1e2f4a; font-size: 14px; font-weight: 800; font-family: inherit;
    cursor: pointer; transition: .18s ease;
}
.site-panel .me-sc:hover {
    border-color: rgba(31,107,255,.45); color: var(--brand);
    background: #f5f8ff; transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(31,107,255,.1);
}
.site-panel .me-sc-ico {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; font-size: 20px;
    background: linear-gradient(145deg, #eef3ff, #f7f9fc);
    border: 1px solid #c9d6ea;
}
.site-panel .me-sc-danger:hover {
    border-color: rgba(192,57,43,.35); color: #c0392b; background: #fff7f6;
}
.site-panel .me-block-title {
    font-size: 16px; font-weight: 800; color: #0f1a2e; margin: 0 0 12px;
}
.site-panel .me-hint {
    margin: 10px 24px 22px; font-size: 13px; color: #5a6f8c; line-height: 1.65; flex-shrink: 0; font-weight: 500;
}
.site-panel .me-pwd-form,
.site-panel .me-fb-panel {
    margin: 8px 18px 4px; padding: 16px; border-radius: 14px;
    background: #f6f8fc; border: 1px solid #e2e8f4;
}
.site-panel .me-fb-sub { margin: 0 0 12px; font-size: 12.5px; color: #6b7f9c; line-height: 1.55; }
.site-panel .me-fb-form textarea {
    width: 100%; box-sizing: border-box; resize: vertical; min-height: 88px;
    padding: 10px 12px; border-radius: 10px; border: 1.5px solid #d8e0ef;
    font: inherit; color: #152238; background: #fff;
}
.site-panel .me-fb-form textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,107,255,.15);
}
.site-panel .me-fb-msg { margin: 10px 0 0; font-size: 12.5px; font-weight: 700; }
.site-panel .me-fb-msg.is-ok { color: #1e7a45; }
.site-panel .me-fb-msg.is-err { color: #c0392b; }
.site-panel .me-apps-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    margin: 20px 24px 14px; flex-shrink: 0;
}
.site-panel .me-apps-head h3 {
    margin: 0 0 6px; font-size: 18px; font-weight: 900; color: #0f1a2e;
}
.site-panel .me-apps-head p {
    margin: 0; font-size: 13px; color: #4a5d78; line-height: 1.55; font-weight: 500;
}
.site-panel .me-apps-more { flex-shrink: 0; font-size: 13px !important; padding: 8px 14px !important; font-weight: 800 !important; }
.site-panel .me-apps-list {
    display: flex; flex-direction: column; gap: 14px;
    padding: 0 20px 12px;
    flex: 1 1 auto;
    min-height: 160px;
}
.site-panel .me-apps-empty {
    padding: 40px 18px; text-align: center; font-size: 14px; color: #4a5d78; font-weight: 600;
    background: #f6f8fc; border: 1px dashed #b8c8de; border-radius: 14px;
    flex: 1 1 auto;
    display: flex; align-items: center; justify-content: center;
    min-height: 140px;
}
.site-panel #meGuest {
    width: 100%;
    flex: 1 1 auto;
}
.site-panel .me-app-card {
    padding: 16px 16px 14px; border-radius: 14px;
    background: #fff; border: 1px solid #b8c8de;
    box-shadow: 0 6px 18px rgba(20,40,80,.05);
}
.site-panel .me-app-top { display: flex; gap: 14px; align-items: flex-start; }
.site-panel .me-app-ico {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 24px;
    background: #f0f4fb; border: 1px solid #c9d6ea;
}
.site-panel .me-app-name { font-size: 17px; font-weight: 900; color: #0f1a2e; }
.site-panel .me-app-meta { font-size: 13px; color: #3d5170; margin-top: 4px; line-height: 1.55; font-weight: 600; }
.site-panel .me-app-status.is-paid { color: #157a3f; font-weight: 800; }
.site-panel .me-app-status.is-pending { color: #9a6b00; font-weight: 800; }
.site-panel .me-app-status.is-expired { color: #c0392b; font-weight: 800; }
.site-panel .me-app-actions { display: flex; gap: 10px; margin-top: 14px; }
.site-panel .me-app-actions .site-btn { flex: 1; justify-content: center; font-size: 14px; padding: 10px 12px; font-weight: 800; }
.site-panel .me-app-actions .site-btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) {
    .site-panel .me-assets { grid-template-columns: 1fr; }
    .site-panel .me-asset { border-right: none; border-bottom: 1px solid #d8e2f0; }
    .site-panel .me-asset:last-child { border-bottom: none; }
    .site-panel .me-shortcuts { grid-template-columns: repeat(2, 1fr); }
    .site-panel .me-ava { width: 64px; height: 64px; font-size: 26px; }
    .site-panel .me-name { font-size: 22px; }
    .site-panel .me-asset-val { font-size: 22px; }
}
/* 账号密码弹层：只盖右侧官网区，层级低于中缝，拖动不受影响且不被左侧裁切 */
.auth-stage .me-cred-mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: var(--split-left, 55%);
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8,14,28,.52);
    backdrop-filter: blur(6px);
    padding: 20px;
    box-sizing: border-box;
}
.auth-stage .me-cred-mask[hidden] { display: none !important; }
.auth-stage .me-cred-card {
    width: min(380px, 100%);
    position: relative;
    padding: 22px 20px 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 48px rgba(0,0,0,.28);
    color: #152238;
}
.auth-stage .me-cred-close {
    position: absolute; top: 10px; right: 12px; border: none; background: #eef2fa;
    width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 18px; color: #6b7f9c;
}
.auth-stage .me-cred-title { font-size: 16px; font-weight: 800; margin-bottom: 14px; padding-right: 28px; }
.auth-stage .me-cred-row {
    display: flex; align-items: center; gap: 8px; padding: 10px 0;
    border-top: 1px solid #eef2f8; font-size: 13px;
}
.auth-stage .me-cred-row span { color: #6b7f9c; width: 36px; flex-shrink: 0; }
.auth-stage .me-cred-row b { flex: 1; word-break: break-all; font-weight: 700; }
.auth-stage .me-cred-copy {
    border: 1px solid #d0dbeb; background: #f6f8fc; border-radius: 8px;
    padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: inherit; color: #3d5170;
}
.auth-stage .me-cred-hint { margin: 10px 0 0; font-size: 12px; color: #8a9bb5; line-height: 1.5; }

/* 兼容旧选择器（若其它页仍引用） */
.me-cred-mask[hidden] { display: none !important; }

/* 会员管理 · 内联编辑 */
.inline-edit { display: inline-block; position: relative; vertical-align: middle; }
.inline-edit > summary { list-style: none; cursor: pointer; }
.inline-edit > summary::-webkit-details-marker { display: none; }
.inline-edit-panel {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
    width: 280px; padding: 14px; background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f4); border-radius: 12px;
    box-shadow: 0 16px 40px rgba(7,20,42,.16);
}
.inline-edit-panel .field { margin-bottom: 10px; }
.inline-edit-panel .field label { display: block; font-size: 12px; color: var(--text-soft); margin-bottom: 4px; }

/* 官网面板内 · 应用详情 / 管理端演示 */
.site-panel .fdpc-goods-card .g-btn {
    cursor: pointer; font-family: inherit; appearance: none;
}
.site-panel .site-app-detail .sad-hero {
    display: flex; gap: 16px; align-items: center; padding: 20px; margin-bottom: 14px;
}
.site-panel .sad-ico { font-size: 42px; line-height: 1; }
.site-panel .sad-name { font-size: 22px; font-weight: 800; color: #152238; }
.site-panel .sad-tag { margin-top: 6px; font-size: 13px; color: #6b7f9c; line-height: 1.55; }
.site-panel .sad-meta { display: flex; gap: 12px; align-items: baseline; margin-top: 10px; }
.site-panel .sad-price { font-size: 24px; font-weight: 900; color: var(--brand); }
.site-panel .sad-days { font-size: 12px; color: #8a9bb3; }
.site-panel .sad-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.site-panel .sad-chips span {
    font-size: 12px; padding: 5px 10px; border-radius: 999px;
    background: rgba(31,107,255,.08); color: #1f4f9a; font-weight: 600;
}
.site-panel .sad-block { padding: 16px 18px; margin-bottom: 12px; }
.site-panel .sad-h { font-size: 14px; font-weight: 800; margin-bottom: 10px; color: #152238; }
.site-panel .sad-detail { font-size: 13px; line-height: 1.75; color: #3d5170; white-space: pre-wrap; }
.site-panel .sad-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.site-panel .sad-feat {
    display: flex; gap: 10px; padding: 12px; border-radius: 12px;
    background: #f5f8ff; border: 1px solid #e2eaf6;
}
.site-panel .sad-feat .ico { font-size: 20px; }
.site-panel .sad-feat b { display: block; font-size: 13px; color: #152238; }
.site-panel .sad-feat i { display: block; font-style: normal; font-size: 12px; color: #6b7f9c; margin-top: 2px; }
.site-panel .sad-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.site-panel .sad-gallery img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; background: #eef2f8;
}
.site-panel .sad-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.site-panel .site-app-demo { padding-top: 12px; }
.site-panel .sademo-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 10px; flex-wrap: nowrap;
    padding: 8px 4px;
}
.site-panel .sademo-bar .buy-back,
.site-panel .site-app-detail .buy-back {
    /* 演示/详情页是浅色底，不能用开通页的浅字样式，否则「返回」会看不见 */
    flex: 0 0 auto;
    margin-bottom: 0;
    border: 1px solid #c5d3e8;
    background: #fff;
    color: #152238;
    box-shadow: 0 1px 3px rgba(20,40,80,.06);
}
.site-panel .sademo-bar .buy-back:hover,
.site-panel .site-app-detail .buy-back:hover {
    background: #eef4ff;
    border-color: var(--brand, #1f6bff);
    color: var(--brand, #1f6bff);
    transform: translateX(-2px);
}
.site-panel .sademo-title {
    flex: 1 1 auto; min-width: 0;
    font-size: 14px; font-weight: 700; color: #152238;
    text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.site-panel .sademo-bar .site-btn { flex: 0 0 auto; }
.site-panel .sademo-frame-wrap {
    padding: 0; overflow: hidden; border-radius: 16px; height: min(78vh, 760px);
}
.site-panel .sademo-frame {
    width: 100%; height: 100%; border: 0; display: block; background: #0f1b33;
}
@media (max-width: 720px) {
    .site-panel .sad-feats, .site-panel .sad-gallery { grid-template-columns: 1fr; }
    .site-panel .sademo-frame-wrap { height: 70vh; }
}

/* 登录表单：开灯后居中；不透明实心底，避免透出官网 */
.auth-stage .auth-form {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 400px;
    flex-shrink: 0;
}

/* ========== 登录表单 · 高端质感 ========== */
.auth-stage .auth-form.is-luxe {
    --luxe-gold: #c9a84c;
    --luxe-ink: #0d1526;
    padding: 28px 26px 24px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(201,168,76,.35);
    box-shadow:
        0 24px 56px rgba(13,21,38,.18),
        0 0 0 1px rgba(255,255,255,.6) inset;
    overflow: hidden;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.auth-stage .auth-form-fx {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; opacity: .9;
}
.auth-stage .auth-form-inner { position: relative; z-index: 1; }
.auth-stage .auth-form-kicker {
    display: inline-block;
    font-size: 10px; letter-spacing: .28em; font-weight: 700;
    color: var(--luxe-gold); margin-bottom: 10px;
}
.auth-stage .auth-greet-title {
    margin: 0 0 8px;
    font-family: "Cormorant Garamond", "Noto Serif SC", serif;
    font-size: clamp(28px, 3.2vw, 34px);
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--luxe-ink);
    line-height: 1.25;
}
.auth-stage .auth-greet-sub {
    margin: 0 0 22px !important;
    font-size: 13.5px !important;
    color: #5a6f8c !important;
    letter-spacing: .04em;
    line-height: 1.65;
}
.auth-stage .auth-form.is-luxe .field label {
    font-size: 12px;
    letter-spacing: .06em;
    color: #314968;
    margin-bottom: 8px;
}
.auth-stage .auth-form.is-luxe .auth-input,
.auth-stage .auth-form.is-luxe input.input {
    background: #fff;
    border: 1.5px solid #c5d0e0;
    border-radius: 12px;
    padding: 13px 15px;
    color: #152238;
    box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-stage .auth-form.is-luxe .auth-input:hover,
.auth-stage .auth-form.is-luxe input.input:hover {
    border-color: #9eb0c9;
}
.auth-stage .auth-form.is-luxe .auth-input:focus,
.auth-stage .auth-form.is-luxe input.input:focus {
    outline: none;
    border-color: var(--luxe-gold);
    background: #fffef9;
    box-shadow:
        0 0 0 3px rgba(201,168,76,.18),
        0 8px 20px rgba(201,168,76,.08);
}
.auth-stage .auth-form.is-luxe .auth-input::placeholder {
    color: #9aadc4;
}
.auth-stage .auth-login-btn {
    margin-top: 6px;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .18em;
    color: #1a1408;
    background: linear-gradient(135deg, #f0e0b0 0%, #d4b56a 48%, #b8923f 100%);
    box-shadow: 0 14px 32px rgba(201,168,76,.35), inset 0 1px 0 rgba(255,255,255,.45);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.auth-stage .auth-login-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 18px 40px rgba(201,168,76,.45), inset 0 1px 0 rgba(255,255,255,.5);
}
.auth-stage .auth-form-safe {
    margin: 14px 0 0;
    text-align: center;
    font-size: 11.5px;
    color: #8a9bb3;
    letter-spacing: .02em;
}

/* -------------------- 5.4 总控制台 · 前端设计工作台 -------------------- */
.fd-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.fd-tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; text-decoration: none;
    font-size: 14px; font-weight: 600; color: var(--text-soft); background: var(--surface-2, #f2f5fb);
    border: 1px solid var(--border); transition: all .15s ease; }
.fd-tab:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.fd-tab.active { color: #fff; background: linear-gradient(135deg, var(--brand), #4d8bff); border-color: transparent;
    box-shadow: 0 8px 20px rgba(31,107,255,.32); }
.fd-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 18px; align-items: start; }
@media (max-width: 1024px) { .fd-layout { grid-template-columns: 1fr; } }
.fd-preview { display: flex; justify-content: center; padding: 10px 0; }

/* 预览：桌面框 */
.device-desktop { width: 100%; max-width: 460px; border-radius: 14px; overflow: hidden; background: #0e1930;
    border: 1px solid var(--border); box-shadow: 0 18px 44px rgba(20,40,90,.18); }
.device-desktop .dv-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #16233f; }
.device-desktop .dv-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #3a4a6b; }
.device-desktop .dv-bar .dot:nth-child(1) { background: #ff5f57; }
.device-desktop .dv-bar .dot:nth-child(2) { background: #febc2e; }
.device-desktop .dv-bar .dot:nth-child(3) { background: #28c840; }

/* 预览：手机框 */
.device-phone { width: 260px; border-radius: 30px; overflow: hidden; background: #0e1930; padding: 8px;
    border: 1px solid var(--border); box-shadow: 0 18px 44px rgba(20,40,90,.2); }
.device-phone .dv-bar { display: flex; justify-content: center; padding: 6px 0; }
.device-phone .dv-notch { width: 90px; height: 6px; border-radius: 999px; background: #2a3a5c; }

/* 屏幕内容 */
.dv-screen { background: #fff; border-radius: 8px; overflow: hidden; min-height: 320px; }
.device-phone .dv-screen { border-radius: 22px; }
.dv-top { padding: 12px 14px; color: #fff; display: flex; align-items: center; }
.dv-logo { height: 22px; }
.dv-logo-txt { font-weight: 800; font-size: 14px; }
.dv-banner { height: 96px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.dv-banner.ph { background: linear-gradient(135deg, #dbe6fb, #eef3fc); color: #7d8ba6; font-size: 13px; font-weight: 600; }
.dv-title { padding: 12px 14px 4px; font-size: 15px; font-weight: 800; color: #1e2b48; }
.dv-comps { padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.dv-comp { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #f4f7fc; border: 1px solid #e6ecf6; }
.dv-c-tag { color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.dv-c-name { font-size: 13px; color: #33405c; font-weight: 600; }
.dv-empty { text-align: center; color: #9aa7bd; font-size: 13px; padding: 24px 0; }

/* 关灯氛围：暗幕只盖左侧品牌区；宽度必须瞬时跟随分割线，禁止 transition 造成蓝色缝隙 */
.auth-curtain {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: var(--split-left, 55%);
    z-index: 5; pointer-events: none;
    background: #05070f;
    opacity: 1; transition: opacity .85s ease;
}
.auth-stage.lights-on .auth-curtain { opacity: 0; }

/* 关灯时左侧底色与舞台一致，避免拖拽时暗幕与分栏百分比取整出现蓝缝 */
.auth-stage:not(.lights-on) .auth-hero {
    background: #05070f;
}

/* 关灯：左侧品牌文案全部隐藏；开灯后淡入显示 */
.auth-stage .auth-hero > * {
    opacity: 0; transform: translateY(12px);
    transition: opacity .8s ease .3s, transform .8s ease .3s;
}
.auth-stage:not(.lights-on) .auth-hero .brand,
.auth-stage:not(.lights-on) .auth-hero .hero-mid,
.auth-stage:not(.lights-on) .auth-hero .hero-foot,
.auth-stage:not(.lights-on) .auth-hero .hero-fx-canvas {
    opacity: 0 !important;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    transition: opacity .45s ease, visibility 0s linear .45s;
}
.auth-stage.lights-on .auth-hero > * {
    opacity: 1; transform: none; visibility: visible;
}
.auth-stage.lights-on .auth-hero .hero-fx-canvas {
    opacity: .4 !important;
    visibility: visible;
}
.auth-stage.lights-on .hero-foot { opacity: .65; }

/* 登录表单与官网错开显示：开灯先藏官网再出登录；关灯先藏登录再出官网 */
.auth-stage .auth-form {
    opacity: 0;
    transform: translateY(12px);
    visibility: hidden;
    pointer-events: none;
    /* 关灯：登录立刻淡出 */
    transition: opacity .32s ease, transform .32s ease, visibility 0s linear .32s;
}
.auth-stage.lights-on .auth-form {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    /* 开灯：等官网消失后再淡入 */
    transition: opacity .45s ease .38s, transform .45s ease .38s, visibility 0s linear .38s;
}

/* 锥形光束：开灯后自灯泡向下洒落（居中于左侧品牌区，不越界到右侧白色区） */
.lamp-beam {
    position: absolute; top: 156px; left: calc(var(--split-left, 55%) / 2); width: 520px; height: 74vh; z-index: 6;
    transform: translateX(-50%); pointer-events: none; mix-blend-mode: screen;
    background: linear-gradient(180deg, rgba(255,240,205,.55), rgba(255,240,205,.08) 52%, transparent 82%);
    clip-path: polygon(46% 0, 54% 0, 90% 100%, 10% 100%);
    filter: blur(9px); opacity: 0; transition: opacity .9s ease .2s;
}
.auth-stage.lights-on .lamp-beam { opacity: 1; }

/* 吊灯装置：吸顶盘 + 电线 + 灯罩 + 灯泡 + 光晕 + 拉绳（悬于左侧品牌区中央上方，随分割线定位） */
.lamp-rig { position: absolute; top: 0; left: calc(var(--split-left, 55%) / 2); transform: translateX(-50%); z-index: 8;
    display: flex; flex-direction: column; align-items: center; }

/* 吸顶盘（电线固定处，金属圆盘） */
.lamp-canopy { width: 50px; height: 12px; border-radius: 0 0 10px 10px;
    background: linear-gradient(180deg, #33406a, #131b30);
    box-shadow: 0 3px 8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.16); }

/* 电线：与灯罩中轴对齐，略提亮度避免关灯时「看不见主吊线、误把侧拉绳当吊线」 */
.lamp-cord-top {
    width: 2px;
    height: 78px;
    margin: 0 auto;
    flex: none;
    background: linear-gradient(#8a97b8, #3a4668 45%, #121a2c);
    box-shadow: 0 0 1px rgba(220, 230, 255, .2);
}

/* 灯罩：梯形吊灯罩 + 金属高光 + 底沿开口 */
.lamp-shade {
    position: relative; width: 108px; height: 54px; z-index: 2;
    margin: -1px auto 0; /* 与吊线轻微咬合，避免缝隙像错位 */
    flex: none;
    clip-path: polygon(31% 0, 69% 0, 100% 100%, 0 100%);
    background:
        linear-gradient(103deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 40%),
        linear-gradient(180deg, #47578a 0%, #202b49 100%);
    box-shadow: inset 0 -10px 16px rgba(0,0,0,.5), 0 4px 10px rgba(0,0,0,.45);
    transition: filter .35s ease;
}
.auth-stage.lights-on .lamp-shade { filter: brightness(1.35) saturate(1.1); }
/* 灯罩底部开口：关灯暗、开灯暖光 */
.lamp-shade::after {
    content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
    width: 108px; height: 16px; border-radius: 50%;
    background: radial-gradient(closest-side, #10182b, rgba(16,24,43,.5));
    transition: background .35s ease, box-shadow .35s ease;
}
.auth-stage.lights-on .lamp-shade::after {
    background: radial-gradient(closest-side, #fff4d6, #ffcf73 58%, rgba(255,207,115,.15));
    box-shadow: 0 0 12px 3px rgba(255,207,115,.35);
}

/* 灯泡：梨形玻璃 + 螺口，藏于灯罩下沿 */
.lamp-bulb {
    position: relative; z-index: 1; width: 30px; height: 38px; margin-top: -14px; cursor: pointer;
    border-radius: 50% 50% 48% 48% / 58% 58% 42% 42%;
    background: radial-gradient(circle at 50% 36%, #26314c, #0c1223);
    transition: background .3s ease, box-shadow .3s ease;
}
.lamp-bulb::before {   /* 螺口铜座 */
    content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    width: 13px; height: 8px; border-radius: 2px;
    background: linear-gradient(#9aa3bd, #4a5573); box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.lamp-bulb .filament { position: absolute; inset: 0; margin: auto; width: 10px; height: 13px;
    border: 1.5px solid #2a3450; border-radius: 3px 3px 4px 4px; transition: border-color .3s, box-shadow .3s; }
.auth-stage.lights-on .lamp-bulb {
    background: radial-gradient(circle at 50% 36%, #fffef4, #ffe7a4 52%, #ffcc69);
    /* 收紧发光范围，避免大块圆形光斑 */
    box-shadow: 0 0 14px 4px rgba(255,214,130,.75), 0 0 28px 8px rgba(255,206,120,.28);
}
.auth-stage.lights-on .lamp-bulb .filament { border-color: #ff9b2f; box-shadow: 0 0 9px #ffb347; }

/* 灯泡炸裂 · 真实玻璃碎片（不规则多边形 + 重力下落，非礼花） */
.lamp-shards {
    position: absolute; inset: 0; pointer-events: none; z-index: 12; overflow: visible;
}
.lamp-flash {
    position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(220,235,255,.45) 35%, transparent 70%);
    animation: lampFlash .28s ease-out forwards;
    pointer-events: none;
}
@keyframes lampFlash {
    0% { transform: scale(.4); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* 灯丝烧断：橙红闪光 + 整段线圈亮一下再裂开落下 */
.lamp-filament-flash {
    position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff6e0 0%, #ff4a1a 35%, rgba(255,60,20,0) 70%);
    box-shadow: 0 0 18px 6px rgba(255,70,30,.85);
    animation: lampFilamentFlash .32s ease-out forwards;
    pointer-events: none; z-index: 14;
}
@keyframes lampFilamentFlash {
    0% { transform: scale(.3); opacity: 1; }
    40% { transform: scale(1.4); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}
.lamp-filament-coil {
    position: absolute; width: 12px; height: 16px; margin: -8px 0 0 -6px;
    border: 2px solid #ff3b1a;
    border-radius: 4px 4px 5px 5px;
    box-shadow:
        0 0 8px 2px rgba(255,60,20,.95),
        0 0 16px 4px rgba(255,140,40,.7),
        inset 0 0 4px #ffefc0;
    animation: lampFilamentSnap .22s ease-in forwards;
    pointer-events: none; z-index: 14;
}
@keyframes lampFilamentSnap {
    0% { opacity: 1; transform: scale(1) rotate(0deg); filter: brightness(1.6); }
    55% { opacity: 1; transform: scale(1.15) rotate(8deg); filter: brightness(2); }
    100% { opacity: 0; transform: scale(.6) rotate(-12deg); }
}
.lamp-filament-bit {
    position: absolute;
    border-radius: 2px;
    background: linear-gradient(180deg, #fff2c8 0%, #ff4d1f 35%, #c01808 100%);
    box-shadow:
        0 0 6px 2px rgba(255,70,30,.95),
        0 0 14px 3px rgba(255,120,40,.65),
        inset 0 0 3px rgba(255,240,200,.9);
    transform: translate(-50%, -50%);
    animation: lampFilamentFall 1.35s cubic-bezier(.33,.05,.5,1) forwards;
    pointer-events: none; z-index: 13;
    will-change: transform, opacity, filter;
}
.lamp-filament-bit.is-coil {
    border-radius: 3px;
    background:
        repeating-linear-gradient(
            180deg,
            #ffefc0 0 2px,
            #ff3d18 2px 4px,
            #b01008 4px 5px
        );
    box-shadow:
        0 0 8px 2px rgba(255,55,20,1),
        0 0 18px 4px rgba(255,100,30,.7);
}
@keyframes lampFilamentFall {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 1;
        filter: brightness(1.8);
    }
    12% {
        transform: translate(calc(-50% + var(--mx, 0px)), calc(-50% + var(--my, 0px))) rotate(calc(var(--rot) * .35)) scale(1.05);
        opacity: 1;
        filter: brightness(1.5);
    }
    70% {
        filter: brightness(1.1);
        opacity: .95;
    }
    100% {
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(.85);
        opacity: 0;
        filter: brightness(.55) saturate(.7);
    }
}
.lamp-filament-spark {
    position: absolute; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px;
    border-radius: 50%;
    background: #ff6a2a;
    box-shadow: 0 0 6px 2px rgba(255,80,20,.95), 0 0 10px #ffb347;
    animation: lampFilamentSpark 1.1s ease-in forwards;
    pointer-events: none; z-index: 13;
}
@keyframes lampFilamentSpark {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% {
        transform: translate(var(--dx), var(--dy)) scale(.2);
        opacity: 0;
    }
}

.lamp-shard {
    position: absolute;
    border-radius: 0;
    border: 1px solid rgba(255,255,255,.45);
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,.55),
        inset -1px -1px 0 rgba(40,60,90,.25),
        0 3px 6px rgba(0,0,0,.35);
    transform: translate(-50%, -50%) rotate(0deg);
    animation: lampShardFall 1.15s cubic-bezier(.33,.05,.45,1) forwards;
    opacity: 1;
    will-change: transform, opacity;
}
@keyframes lampShardFall {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 1;
        filter: brightness(1.35);
    }
    18% {
        transform: translate(calc(-50% + var(--mx, 0px)), calc(-50% + var(--my, 0px))) rotate(var(--spin));
        opacity: 1;
        filter: brightness(1.1);
    }
    100% {
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot));
        opacity: 0;
        filter: brightness(.9);
    }
}
.auth-stage.bulb-broken .lamp-bulb.is-shattered {
    opacity: 0; pointer-events: none; transform: scale(.2);
    transition: opacity .2s ease, transform .25s ease;
}
.auth-stage.bulb-broken .lamp-halo,
.auth-stage.bulb-broken .lamp-beam { opacity: 0 !important; }
.lamp-bulb.is-installing {
    opacity: 1 !important;
    animation: lampScrewIn 1.05s cubic-bezier(.22,.9,.3,1) both;
}
@keyframes lampScrewIn {
    0% { opacity: 0; transform: translateY(42px) rotate(-140deg) scale(.55); }
    55% { opacity: 1; transform: translateY(6px) rotate(-28deg) scale(.95); }
    100% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}
.pull.is-disabled { opacity: .72; cursor: pointer; }
.pull.is-disabled .pull-tip {
    color: #ffd0a8; background: rgba(80,30,10,.55); border-color: rgba(255,180,120,.35);
}

/* 购买新灯泡弹层 */
.bulb-shop {
    position: fixed; inset: 0; z-index: 80;
    display: flex; align-items: center; justify-content: center;
    background: rgba(5, 8, 18, .55); backdrop-filter: blur(8px);
    padding: 20px;
}
.bulb-shop[hidden] { display: none !important; }
.bulb-shop-card {
    width: min(400px, 100%);
    padding: 28px 26px 22px;
    border-radius: 20px;
    background: linear-gradient(160deg, #121a2e, #0b1220);
    border: 1px solid rgba(212,181,106,.35);
    box-shadow: 0 28px 60px rgba(0,0,0,.45), 0 0 40px rgba(212,181,106,.08);
    color: #e8eef8; text-align: center;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    animation: bulbShopIn .35s ease both;
}
@keyframes bulbShopIn {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to { opacity: 1; transform: none; }
}
.bulb-shop-ico { font-size: 42px; line-height: 1; margin-bottom: 10px; }
.bulb-shop-title {
    margin: 0 0 8px;
    font-family: "Cormorant Garamond", "Noto Serif SC", serif;
    font-size: 28px; font-weight: 600; letter-spacing: .06em; color: #f5f0e4;
}
.bulb-shop-text {
    margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: rgba(200,214,235,.78);
}
.bulb-shop-text b { color: #f0d090; }
.bulb-shop-bal {
    margin-bottom: 16px; font-size: 13px; color: rgba(200,214,235,.65);
}
.bulb-shop-bal strong { color: #f0e0b0; font-size: 18px; margin-left: 4px; }
.bulb-shop-actions { display: flex; flex-direction: column; gap: 8px; }
.bulb-shop-btn {
    border: none; border-radius: 12px; padding: 12px 16px; cursor: pointer;
    font-family: inherit; font-size: 14px; font-weight: 700;
}
.bulb-shop-btn.primary {
    color: #1a1408;
    background: linear-gradient(135deg, #f0e0b0, #d4b56a 50%, #b8923f);
    box-shadow: 0 12px 28px rgba(212,181,106,.3);
}
.bulb-shop-btn.primary:hover { filter: brightness(1.05); }
.bulb-shop-btn.ghost {
    color: rgba(220,230,245,.8); background: rgba(255,255,255,.04);
    border: 1px solid rgba(212,181,106,.22);
}
.bulb-shop-hint { min-height: 18px; margin: 12px 0 0; font-size: 12px; color: #f0c090; }

/* 灯泡光晕：已关闭（用户不需要圆形光斑） */
.lamp-halo,
.auth-stage.lights-on .lamp-halo {
    display: none !important;
    opacity: 0 !important;
}

/* 拉绳开关：侧挂于灯罩右侧；提示文案绝对定位，避免开/关灯换字导致绳子左右跳动 */
.pull { position: absolute; top: 116px; right: -78px; z-index: 9; padding: 0; border: none; background: none;
    width: 16px;
    display: flex; flex-direction: column; align-items: center; cursor: grab;
    user-select: none; -webkit-user-select: none; touch-action: none;
    transform-origin: top center; animation: cordSway 3.6s ease-in-out infinite; }
.pull.dragging, .pull:active { cursor: grabbing; }
.pull-string { width: 2px; height: 72px; border-radius: 2px; transform-origin: top center;
    background: linear-gradient(#39456a, #93a0c6); opacity: .75; flex: none; }
.pull-bead { width: 15px; height: 15px; margin-top: -2px; border-radius: 50%; flex: none;
    background: radial-gradient(circle at 34% 30%, #e6ecff, #7d8cbf); box-shadow: 0 2px 6px rgba(0,0,0,.45);
    transition: transform .05s linear; }
.pull-tip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    font-size: 12px; white-space: nowrap; color: #8ea0c9; opacity: .9;
    background: rgba(12,20,40,.6); padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(142,160,201,.25);
    pointer-events: none;
}
.auth-stage.lights-on .pull-tip { color: #cfe0ff; background: rgba(31,107,255,.28); border-color: rgba(207,224,255,.35); }
.auth-stage.lights-off .pull-bead { animation: beadPulse 2s ease-in-out infinite; }
.pull.yank { animation: cordYank .55s cubic-bezier(.36,.07,.19,.97); }
@keyframes cordSway { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(2.6deg); } }
@keyframes cordYank { 0% { transform: translateY(0); } 28% { transform: translateY(17px); }
    56% { transform: translateY(-5px); } 78% { transform: translateY(3px); } 100% { transform: translateY(0); } }
@keyframes beadPulse {
    0%,100% { box-shadow: 0 2px 6px rgba(0,0,0,.45), 0 0 0 0 rgba(150,180,255,.5); }
    50%     { box-shadow: 0 2px 6px rgba(0,0,0,.45), 0 0 0 9px rgba(150,180,255,0); }
}

/* 开通成功后：拉线“一闪一闪”提示用户拉灯登录 */
.pull.attract { animation: cordSway 3.6s ease-in-out infinite, pullBlink 1s ease-in-out infinite; }
.pull.attract .pull-string { background: linear-gradient(#ffd98a, #fff3c4); }
.pull.attract .pull-bead {
    background: radial-gradient(circle at 34% 30%, #fff7d6, #ffcf73);
    animation: beadBlink 1s ease-in-out infinite;
}
.pull.attract .pull-tip {
    color: #6b4b12; background: #ffd66e; border-color: #ffe6a8; opacity: 1; font-weight: 700;
    box-shadow: 0 0 16px rgba(255,207,115,.8);
}
@keyframes pullBlink {
    0%, 100% { filter: none; }
    50%      { filter: drop-shadow(0 0 8px rgba(255,214,110,.95)) drop-shadow(0 0 18px rgba(255,207,115,.7)); }
}
@keyframes beadBlink {
    0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,.4), 0 0 0 0 rgba(255,207,115,.7); transform: scale(1); }
    50%      { box-shadow: 0 2px 10px rgba(0,0,0,.4), 0 0 14px 6px rgba(255,207,115,.85); transform: scale(1.22); }
}

/* -------------------- 6. 后台主框架 -------------------- */
.layout { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }

.sidebar { color: #c3d0ea; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 45;
    background: linear-gradient(185deg, #0a2450 0%, #071a3a 100%); border-right: 1px solid #0d2c5e; }
.sidebar .logo { display: flex; align-items: center; gap: 10px; padding: 6px 10px 22px; font-weight: 800; font-size: 18px; color: #fff; }
.sidebar .logo .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-grad); display: grid; place-items: center; box-shadow: var(--shadow-blue); }
.nav-group-title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7f93bd; padding: 16px 12px 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #c3d0ea;
    font-size: 14px; font-weight: 500; margin-bottom: 4px; transition: background .16s ease, color .16s ease, transform .16s ease; }
.nav-item:hover { background: #ffffff12; color: #fff; transform: translateX(2px); }
.nav-item.active { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-blue); }
.nav-item .ico { font-size: 16px; }

/* 侧边栏可折叠功能分组 */
.nav-group { margin-bottom: 2px; }
.nav-group-header { width: 100%; display: flex; align-items: center; justify-content: space-between;
    background: none; border: none; cursor: pointer; text-align: left;
    font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7f93bd;
    padding: 16px 12px 8px; transition: color .15s ease; }
.nav-group-header:hover { color: #c3d0ea; }
.nav-group-header .caret { font-size: 10px; transition: transform .2s ease; }
.nav-group.collapsed .nav-group-header .caret { transform: rotate(-90deg); }
.nav-group-items { overflow: hidden; }
.nav-group.collapsed .nav-group-items { display: none; }

/* 当分组标题需要呈现为“主功能项”（图标+文案+折叠箭头）时 */
.nav-group-header.nav-item-like { text-transform: none; letter-spacing: normal; font-size: 14px; font-weight: 500;
    color: #c3d0ea; padding: 11px 12px; border-radius: 10px; gap: 12px; margin-bottom: 4px; }
.nav-group-header.nav-item-like:hover { background: #ffffff12; color: #fff; }
.nav-group-header.nav-item-like .ico { font-size: 16px; }
.nav-group-header.nav-item-like .txt { flex: 1; }
/* 子功能项缩进，视觉上归属于上方主功能 */
.nav-item.nav-sub { padding-left: 34px; font-size: 13px; margin-bottom: 2px; }

/* 行业选项触发按钮（侧边栏顶部，点击向右展开抽屉） */
.industry-trigger { width: 100%; display: flex; align-items: center; gap: 10px; margin: 4px 0 6px;
    padding: 12px 12px; border: none; cursor: pointer; border-radius: 12px; color: #fff; font-size: 14px; font-weight: 700;
    background: var(--brand-grad); box-shadow: var(--shadow-blue); transition: transform .15s ease, box-shadow .15s ease; }
.industry-trigger:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(22, 103, 255, .5); }
.industry-trigger .ico { font-size: 16px; }
.industry-trigger .arrow { margin-left: auto; transition: transform .2s ease; }
.industry-trigger.active .arrow { transform: rotate(90deg); }

/* 行业抽屉遮罩 */
#industry-backdrop { position: fixed; inset: 0; background: rgba(7, 20, 42, .5); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; z-index: 40; }
#industry-backdrop.show { opacity: 1; visibility: visible; }

/* 行业抽屉主体：从侧边栏右侧向右滑出 */
#industry-drawer { position: fixed; top: 0; left: 256px; width: calc(100vw - 256px);
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 24px 50px rgba(7, 20, 42, .18);
    z-index: 50; display: flex; flex-direction: column;
    transform: translateX(-24px); opacity: 0; visibility: hidden;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, visibility .3s ease; }
#industry-drawer.open { transform: translateX(0); opacity: 1; visibility: visible; }

.ind-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.ind-drawer-head .title { font-size: 17px; font-weight: 800; display: flex; flex-direction: column; }
.ind-drawer-head .title .sub { font-size: 12px; font-weight: 500; color: var(--text-soft); margin-top: 4px; }
.ind-close { border: none; background: #eef2fa; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 15px; color: var(--text-soft); }
.ind-close:hover { background: #e2e8f4; color: var(--text); }

/* 抽屉内容区 */
.ind-drawer-body { overflow: hidden; padding: 16px 20px 8px; }

/* 大类横排：一横排，可左右滑动 */
.ind-row { display: flex; gap: 14px; width: 100%; overflow-x: auto; overflow-y: hidden; padding: 8px 4px 18px;
    cursor: grab; scroll-behavior: smooth; scrollbar-width: thin; }
.ind-row.dragging { cursor: grabbing; scroll-behavior: auto; }
.ind-row::-webkit-scrollbar { height: 8px; }
.ind-row::-webkit-scrollbar-thumb { background: #c6d2e6; border-radius: 999px; }
.ind-row::-webkit-scrollbar-track { background: #eef2fa; border-radius: 999px; }

/* 单个“行业大类”按钮（只显示名称，紧凑一横排） */
.cat-card { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border: 1px solid var(--border); border-radius: 10px; background: #fafcff;
    font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--text);
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; user-select: none; }
.cat-card:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); transform: translateY(-2px); }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px;
    background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar .page-title { font-size: 18px; font-weight: 800; }
.catering-pos-back {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    padding: 8px 14px; border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 800;
    color: #fff; background: var(--brand-grad);
    box-shadow: 0 4px 14px rgba(22, 103, 255, .28);
    transition: transform .15s ease, box-shadow .15s ease;
}
.catering-pos-back:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(22, 103, 255, .35); color: #fff; }
.catering-pos-back-ico { font-size: 16px; line-height: 1; }

/* 餐饮 · 收银台入口 — 高端亮光呼吸边框 */
@keyframes catering-pos-breathe {
    0%, 100% {
        box-shadow:
            0 0 6px rgba(125, 211, 252, .45),
            0 0 14px rgba(22, 103, 255, .35),
            0 0 22px rgba(245, 215, 122, .18);
    }
    50% {
        box-shadow:
            0 0 12px rgba(125, 211, 252, .85),
            0 0 26px rgba(22, 103, 255, .6),
            0 0 42px rgba(245, 215, 122, .42),
            0 0 56px rgba(22, 103, 255, .22);
    }
}
@keyframes catering-pos-border-flow {
    0%   { background-position: 0% 50%; opacity: .75; }
    50%  { background-position: 100% 50%; opacity: 1; }
    100% { background-position: 0% 50%; opacity: .75; }
}

.catering-pos-entry {
    position: relative;
    isolation: isolate;
    animation: catering-pos-breathe 2.8s ease-in-out infinite;
}
.catering-pos-entry::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #7dd3fc, #1667ff, #f5d77a, #ffcf73, #7dd3fc);
    background-size: 320% 320%;
    animation: catering-pos-border-flow 3.2s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}
.catering-pos-entry > * { position: relative; z-index: 1; }

/* 侧栏收银台 */
.nav-item.catering-pos-entry {
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(22, 103, 255, .38) 0%, rgba(212, 175, 55, .14) 100%);
    border: 1px solid rgba(125, 211, 252, .35);
    margin-bottom: 10px;
    overflow: visible;
    z-index: 1;
}
.nav-item.catering-pos-entry::before { border-radius: 12px; }
.nav-item.catering-pos-entry:hover {
    background: linear-gradient(135deg, rgba(22, 103, 255, .52) 0%, rgba(212, 175, 55, .22) 100%);
    color: #fff !important;
    transform: translateX(3px);
}
.nav-item.catering-pos-entry.active {
    background: linear-gradient(135deg, #1667ff 0%, #c9a227 120%);
    box-shadow: 0 0 20px rgba(22, 103, 255, .45), 0 0 32px rgba(245, 215, 122, .25);
}

/* 顶栏收银台按钮 */
.catering-pos-back.catering-pos-entry {
    border: 1px solid rgba(255, 255, 255, .25);
    overflow: visible;
}
.catering-pos-back.catering-pos-entry::before { border-radius: 12px; }
.catering-pos-back.catering-pos-entry:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* 概览页「进入收银台」大按钮 */
.catering-pos-entry-btn {
    position: relative;
    overflow: visible;
    font-weight: 800 !important;
    letter-spacing: .04em;
    padding: 10px 22px !important;
    border: 1px solid rgba(255, 255, 255, .3) !important;
}
.catering-pos-entry-btn::before { border-radius: 12px; }
.catering-pos-entry-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .catering-pos-entry { animation: none; }
    .catering-pos-entry::before { animation: none; opacity: .85; }
}
.topbar .user { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-grad); color: #fff;
    display: grid; place-items: center; font-weight: 700; }
.avatar.ring { box-shadow: 0 0 0 3px rgba(22, 103, 255, .18); }
.topbar .user .u-meta { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.topbar .user .u-name { font-size: 14px; font-weight: 700; color: var(--text); }
.topbar .user .u-role { font-size: 11px; font-weight: 700; color: var(--brand);
    background: var(--brand-soft); padding: 1px 8px; border-radius: 999px; margin-top: 2px; }
.content { padding: 28px; }

/* -------------------- 7. 数据概览与业务模块 -------------------- */

/* 指标卡片（通用） */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-card { padding: 22px; transition: transform .25s ease, box-shadow .25s ease; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-card .top { display: flex; align-items: center; justify-content: space-between; }
.stat-card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--brand-soft); }
.stat-card .value { font-size: 30px; font-weight: 800; margin-top: 14px; }
.stat-card .label { color: var(--text-soft); font-size: 13px; }

.section-title { font-size: 16px; font-weight: 800; margin: 6px 0 16px; display: flex; align-items: center; gap: 8px; }

/* 分布条形 */
.bar-list { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 46px; align-items: center; gap: 12px; }
.bar-row .name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 10px; background: #eef2fa; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand-grad); border-radius: 999px; }
.bar-row .cnt { text-align: right; font-weight: 700; font-size: 14px; }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }

/* 筛选工具条 */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.chip { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface);
    border: 1px solid var(--border); color: var(--text-soft); cursor: pointer; transition: all .15s ease; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-blue); }
.search-box { margin-left: auto; display: flex; gap: 8px; }
.search-box .input { width: 240px; }

/* 行业分组与卡片网格 */
.cat-block { margin-bottom: 28px; }
.cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cat-head .emoji { font-size: 22px; }
.cat-head h3 { font-size: 16px; }
.cat-head .count { font-size: 12px; color: var(--text-soft); background: #eef2fa; padding: 2px 10px; border-radius: 999px; }

.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ind-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ind-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0ff; }
.ind-card .head { display: flex; align-items: center; justify-content: space-between; }
.ind-card .emoji { font-size: 26px; }
.ind-card h4 { font-size: 15px; }
.ind-card p { font-size: 13px; color: var(--text-soft); min-height: 40px; }

/* 行业 / 模块详情 */
.detail-hero { padding: 30px; display: flex; align-items: center; gap: 20px; margin-bottom: 22px; border-radius: var(--radius);
    background: linear-gradient(135deg, #0a2450, #0d47a1); color: #fff; }
.detail-hero .big-emoji { font-size: 56px; }
.detail-hero h1 { font-size: 26px; }
.detail-hero .meta { opacity: .85; margin-top: 6px; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.kv { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--text-soft); }
.empty { text-align: center; color: var(--text-soft); padding: 50px 0; }

.breadcrumb { font-size: 13px; color: var(--text-soft); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--brand); }

/* -------------------- 7.1 数据概览 · 高端动态看板 -------------------- */
/* 财务指标卡（渐变 + 悬浮上浮 + 顶部光带 + 入场动画） */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.metric-card {
    position: relative; overflow: hidden; border-radius: var(--radius);
    padding: 20px 22px; color: #fff; box-shadow: var(--shadow);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
    animation: metricIn .6s both;
}
.metric-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(19,62,138,.28); }
.metric-card::after {
    content: ""; position: absolute; top: -60%; right: -20%;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255,255,255,.14); filter: blur(6px);
}
.metric-card .m-ico { font-size: 22px; opacity: .95; }
.metric-card .m-val { font-size: 30px; font-weight: 800; margin-top: 10px; letter-spacing: .3px; }
.metric-card .m-label { font-size: 13px; opacity: .92; margin-top: 4px; }
.metric-card .m-foot { font-size: 12px; opacity: .85; margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.m-revenue    { background: linear-gradient(135deg,#1f6bff,#0b4bd4); }
.m-commission { background: linear-gradient(135deg,#4f46e5,#7c3aed); }
.m-pending    { background: linear-gradient(135deg,#f59e0b,#fbbf24); color:#3b2a00; }
.m-pending .m-foot, .m-pending .m-label { opacity:.8; }
.m-orders     { background: linear-gradient(135deg,#0ea5e9,#06b6d4); }
.metric-card:nth-child(2){animation-delay:.08s}
.metric-card:nth-child(3){animation-delay:.16s}
.metric-card:nth-child(4){animation-delay:.24s}
@keyframes metricIn { from { opacity:0; transform: translateY(14px); } to { opacity:1; transform:none; } }

/* ---- 数据概览顶部欢迎横幅（动态渐变光效） ---- */
.dash-hero {
    position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 22px;
    padding: 26px 30px; color: #eaf1ff;
    background: linear-gradient(120deg,#0b2a6b 0%,#123a8a 42%,#2b57c9 100%);
    box-shadow: 0 20px 46px rgba(11,42,107,.34);
    animation: metricIn .6s both;
}
.dash-hero::before {
    content:""; position:absolute; inset:0;
    background:
        radial-gradient(600px 220px at 12% -20%, rgba(90,140,255,.42), transparent 60%),
        radial-gradient(520px 200px at 100% 120%, rgba(0,224,255,.28), transparent 60%);
    animation: heroGlow 9s ease-in-out infinite alternate;
}
.dash-hero::after {
    content:""; position:absolute; top:-40%; right:-6%; width:340px; height:340px; border-radius:50%;
    background: conic-gradient(from 0deg, rgba(255,255,255,.10), rgba(255,255,255,0) 55%, rgba(120,180,255,.16), rgba(255,255,255,0));
    animation: heroSpin 18s linear infinite; filter: blur(2px);
}
@keyframes heroGlow { from { opacity:.7; } to { opacity:1; } }
@keyframes heroSpin { to { transform: rotate(360deg); } }
.dash-hero > * { position: relative; z-index: 1; }
.dash-hero .dh-eyebrow { font-size:12px; letter-spacing:2px; text-transform:uppercase; color: rgba(210,225,255,.75); }
.dash-hero .dh-title { font-size:26px; font-weight:800; margin-top:6px; }
.dash-hero .dh-sub { font-size:13.5px; color: rgba(210,225,255,.82); margin-top:8px; }
.dash-hero .dh-chips { display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }
.dash-hero .dh-chip {
    display:flex; align-items:center; gap:10px; padding:10px 16px; border-radius:14px;
    background: rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(6px); font-size:13px;
}
.dash-hero .dh-chip b { font-size:18px; font-weight:800; }
.dash-hero .dh-chip .c-ico { font-size:18px; }
.dash-hero .dh-clock { position:absolute; top:24px; right:30px; text-align:right; z-index:1; }
.dash-hero .dh-clock .t { font-size:24px; font-weight:800; letter-spacing:1px; font-variant-numeric: tabular-nums; }
.dash-hero .dh-clock .d { font-size:12.5px; color: rgba(210,225,255,.78); margin-top:2px; }
.dash-live {
    position:absolute; bottom:22px; right:30px; z-index:2;
    display:flex; align-items:center; gap:8px; font-size:12px;
    padding:6px 12px; border-radius:999px;
    background: rgba(0,0,0,.22); border:1px solid rgba(255,255,255,.14);
    color: rgba(230,240,255,.9);
}
.dash-live .pulse {
    width:8px; height:8px; border-radius:50%; background:#4ade80;
    box-shadow:0 0 0 0 rgba(74,222,128,.6);
    animation: livePulse 2s ease-out infinite;
}
.dash-live.is-err .pulse { background:#f87171; animation:none; }
.dash-live i { font-style:normal; opacity:.8; font-size:11px; }
@keyframes livePulse {
    0% { box-shadow:0 0 0 0 rgba(74,222,128,.55); }
    70% { box-shadow:0 0 0 8px rgba(74,222,128,0); }
    100% { box-shadow:0 0 0 0 rgba(74,222,128,0); }
}

/* ---- 指标卡内嵌迷你曲线 + 环比涨跌角标 ---- */
.metric-card .m-spark { position:absolute; left:0; right:0; bottom:0; height:38px; width:100%; opacity:.9; }
.metric-card .m-spark path.fill { opacity:.22; }
.metric-card .m-spark path.line { fill:none; stroke: rgba(255,255,255,.9); stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
    stroke-dasharray: var(--slen,300); stroke-dashoffset: var(--slen,300); animation: drawLine 1.6s .3s forwards cubic-bezier(.4,0,.2,1); }
.m-pending .m-spark path.line { stroke: rgba(59,42,0,.75); }
.metric-card .m-delta { position:absolute; top:18px; right:20px; font-size:12px; font-weight:700;
    padding:3px 9px; border-radius:999px; background: rgba(255,255,255,.18); display:inline-flex; align-items:center; gap:3px; }
.metric-card .m-delta.up { color:#c9ffe2; } .metric-card .m-delta.down { color:#ffd9dd; }
.m-pending .m-delta { background: rgba(59,42,0,.14); }
.metric-card .m-foot { position: relative; z-index: 1; }
.metric-card .m-val, .metric-card .m-label, .metric-card .m-ico { position: relative; z-index: 1; }

/* ---- 数据概览：主图 + 环形分布 两栏布局 ---- */
.dash-split { display:grid; grid-template-columns: 1.65fr 1fr; gap:18px; margin-bottom:22px; align-items:stretch; }
@media (max-width: 980px){ .dash-split { grid-template-columns: 1fr; } }

/* ---- 交互式曲线图：十字准星 + 悬浮气泡 ---- */
.chart-wrap { position: relative; min-height: 280px; }
.trend-line.glow { filter: drop-shadow(0 6px 10px rgba(109,94,252,.35)); }
.trend-line.dash { stroke-dasharray: 8 6; opacity:.92; }
.trend-hit { fill:#6d5efc; opacity:0; transition:opacity .15s; cursor:crosshair; }
.chart-wrap:hover .trend-hit { opacity:.35; }
.trend-hit:hover { opacity:.85 !important; r:7; }
.tc-line { position:absolute; top:0; width:1px; background: linear-gradient(var(--brand), transparent); opacity:0; transition:opacity .15s; pointer-events:none; z-index:3; }
.tc-dot { position:absolute; width:11px; height:11px; border-radius:50%; border:2.5px solid #fff; transform: translate(-50%,-50%);
    box-shadow:0 2px 8px rgba(0,0,0,.25); opacity:0; transition:opacity .15s; pointer-events:none; z-index:4; }
.chart-tip {
    position:absolute; z-index:5; min-width:150px; padding:11px 13px; border-radius:12px; pointer-events:none;
    background: rgba(15,26,54,.94); color:#eaf1ff; font-size:12.5px; line-height:1.7;
    box-shadow: 0 14px 34px rgba(10,20,50,.4); opacity:0; transform: translate(-50%,-8px) scale(.96);
    transition: opacity .15s, transform .15s; white-space:nowrap;
}
.chart-tip.show { opacity:1; transform: translate(-50%,-12px) scale(1); }
.chart-tip .tt-date { font-weight:700; margin-bottom:5px; color:#fff; }
.chart-tip .tt-row { display:flex; align-items:center; gap:7px; }
.chart-tip .tt-row i { width:9px; height:9px; border-radius:3px; display:inline-block; }
.chart-tip .tt-row b { margin-left:auto; font-weight:800; }
.chart-seg { display:inline-flex; background:#eef2fa; border-radius:10px; padding:3px; gap:2px; }
.chart-seg button { border:0; background:transparent; padding:6px 14px; border-radius:8px; font-size:12.5px; color:var(--text-soft); cursor:pointer; font-weight:600; transition:.2s; }
.chart-seg button.active { background:#fff; color:var(--brand); box-shadow:0 2px 8px rgba(19,62,138,.12); }

/* ---- 订单状态环形图 ---- */
.donut-wrap { display:flex; flex-direction:column; align-items:center; gap:18px; padding-top:6px; }
.donut { position:relative; width:190px; height:190px; }
.donut svg { transform: rotate(-90deg); }
.donut .donut-ring { fill:none; stroke-width:20; stroke-linecap:butt;
    stroke-dasharray: 0 var(--circ);
    transition: stroke-dasharray 1.1s cubic-bezier(.3,1,.4,1); }
.donut.go .donut-ring { stroke-dasharray: var(--seg) var(--circ); }
.donut-ring.dim { opacity:.28; filter: grayscale(.4); }
.donut-legend .dl-item { cursor:default; padding:4px 6px; border-radius:8px; transition:background .15s; }
.donut-legend .dl-item:hover { background:#f0f4fc; }
.donut .donut-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.donut .donut-center .dc-num { font-size:34px; font-weight:800; color:var(--text); line-height:1; }
.donut .donut-center .dc-lab { font-size:12px; color:var(--text-soft); margin-top:6px; }
.donut-legend { width:100%; display:flex; flex-direction:column; gap:10px; }
.donut-legend .dl-item { display:flex; align-items:center; gap:9px; font-size:13px; }
.donut-legend .dl-item i { width:11px; height:11px; border-radius:4px; }
.donut-legend .dl-item .dl-name { color:var(--text-soft); }
.donut-legend .dl-item .dl-val { margin-left:auto; font-weight:800; }

/* 趋势折线图 */
.trend-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 10px; }
.trend-legend { display:flex; gap:16px; font-size:13px; color: var(--text-soft); }
.trend-legend i { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
.trend-svg { width:100%; height:auto; display:block; }
.trend-grid line { stroke: var(--border); stroke-dasharray: 3 4; }
.trend-axis { fill: var(--text-soft); font-size: 11px; }
.trend-area { opacity: 0; animation: areaIn .9s .3s forwards ease-out; }
@keyframes areaIn { to { opacity: 1; } }
.trend-line {
    fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
    animation: drawLine 1.4s .1s forwards cubic-bezier(.4,0,.2,1);
}
.trend-line.l2 { animation-delay: .35s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.trend-dot { opacity: 0; animation: dotIn .3s forwards; }
.trend-dot:hover { r: 6; }
@keyframes dotIn { to { opacity: 1; } }
.trend-empty { text-align:center; color: var(--text-soft); padding: 40px 0; }
.trend-empty.is-hint {
    position:absolute; top:12px; left:50%; transform:translateX(-50%);
    z-index:2; padding:8px 14px; border-radius:10px; font-size:12px;
    background: rgba(245,158,11,.12); color:#92400e; max-width:90%;
}
.rank-item { transition: transform .2s; }
.rank-item:hover { transform: translateX(4px); }
.rank-item .rank-fill { transition: width .8s cubic-bezier(.3,1,.4,1); }

/* 营收榜（横向条形，宽度动画） */
.rank-list { display:flex; flex-direction:column; gap:14px; }
.rank-item .rank-top { display:flex; justify-content:space-between; font-size:13px; margin-bottom:6px; }
.rank-item .rank-top b { color: var(--brand); }
.rank-track { height:10px; border-radius:6px; background:#eef2fa; overflow:hidden; }
.rank-fill { height:100%; border-radius:6px; background: var(--brand-grad); width:0; animation: rankGrow 1.1s .2s forwards cubic-bezier(.3,1,.4,1); }
@keyframes rankGrow { to { width: var(--w); } }

/* 最近订单迷你列表 */
.mini-orders { display:flex; flex-direction:column; }
.mini-order { display:flex; align-items:center; justify-content:space-between; padding:11px 0; border-bottom:1px dashed var(--border); }
.mini-order:last-child { border-bottom:0; }
.mini-order .mo-main { font-weight:600; font-size:14px; }
.mini-order .mo-sub { font-size:12px; color: var(--text-soft); margin-top:2px; }
.mini-order .mo-amt { font-weight:800; color: var(--brand); }

/* -------------------- 7.2 应用管理（高端看板） -------------------- */
.am-hero {
    position: relative; overflow: hidden; border-radius: var(--radius);
    padding: 30px 34px; margin-bottom: 22px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: linear-gradient(135deg, #0c1f4a 0%, #12356e 42%, #1a4fbf 100%);
    box-shadow: 0 20px 46px rgba(11,42,107,.32); animation: metricIn .6s both;
}
.am-hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(520px 200px at 8% -10%, rgba(90,140,255,.45), transparent 60%),
                radial-gradient(400px 180px at 100% 120%, rgba(0,224,255,.22), transparent 60%);
    animation: heroGlow 9s ease-in-out infinite alternate;
}
.am-hero > * { position: relative; z-index: 1; }
.am-hero-tag { font-size: 12px; font-weight: 700; letter-spacing: .14em; opacity: .82; margin-bottom: 8px; }
.am-hero-txt h1 { font-size: 26px; font-weight: 800; margin: 0; }
.am-hero-txt p { margin-top: 8px; opacity: .88; font-size: 14px; max-width: 640px; line-height: 1.6; }
.am-hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn-light { background: #fff; color: #0d47a1; font-weight: 700; border: none; }
.btn-light:hover { background: #eef4ff; }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }
.am-hero-badge {
    flex: none; text-align: center; padding: 18px 28px; border-radius: 16px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px);
}
.am-hero-badge .v { font-size: 40px; font-weight: 900; line-height: 1; }
.am-hero-badge .l { font-size: 12px; opacity: .85; margin-top: 6px; }
.am-preview-ico { font-size: 52px; line-height: 1; }

.am-toolbar-card { margin-bottom: 18px; }
.am-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.am-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.am-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.am-view-toggle { display: inline-flex; background: #eef2fa; border-radius: 10px; padding: 3px; }
.am-view-toggle button {
    border: 0; background: transparent; padding: 6px 12px; border-radius: 8px;
    font-size: 14px; cursor: pointer; color: var(--text-soft); transition: .2s;
}
.am-view-toggle button.on { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(19,62,138,.1); }

/* 应用卡片网格 */
.am-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px; margin-bottom: 22px;
}
.am-card {
    position: relative; overflow: hidden; border-radius: 16px;
    background: #fff; border: 1px solid var(--border);
    padding: 20px; box-shadow: 0 8px 24px rgba(19,62,138,.06);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
    animation: metricIn .5s both;
}
.am-card:nth-child(2) { animation-delay: .05s; }
.am-card:nth-child(3) { animation-delay: .1s; }
.am-card:nth-child(4) { animation-delay: .15s; }
.am-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(19,62,138,.14);
    border-color: color-mix(in srgb, var(--am-accent, #2563eb) 40%, var(--border));
}
.am-card-glow {
    position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--am-accent, #2563eb) 35%, transparent), transparent 70%);
    opacity: .6; pointer-events: none;
}
.am-card-hd { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.am-card-ico {
    width: 48px; height: 48px; border-radius: 14px; flex: none;
    display: grid; place-items: center; font-size: 26px;
    background: color-mix(in srgb, var(--am-accent, #2563eb) 12%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--am-accent, #2563eb) 20%, #dbe6ff);
}
.am-card-meta { flex: 1; min-width: 0; }
.am-card-meta h3 { margin: 0; font-size: 16px; font-weight: 800; }
.am-card-meta code { font-size: 11px; color: var(--text-soft); background: #f4f7fc; padding: 2px 6px; border-radius: 6px; }
.am-status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; flex: none; }
.am-status.on { background: #dcfce7; color: #15803d; }
.am-status.off { background: #f1f5f9; color: #64748b; }
.am-card-desc { font-size: 13px; color: var(--text-soft); line-height: 1.55; min-height: 2.8em; margin-bottom: 14px; }
.am-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.am-card-stats div { text-align: center; padding: 8px 4px; background: #f8fafd; border-radius: 10px; }
.am-card-stats b { display: block; font-size: 15px; font-weight: 800; color: var(--brand); }
.am-card-stats span { font-size: 11px; color: var(--text-soft); }
.am-heat { height: 6px; border-radius: 999px; background: #eef2fa; overflow: hidden; margin-bottom: 14px; }
.am-heat-fill { height: 100%; width: 0; border-radius: 999px;
    background: linear-gradient(90deg, var(--am-accent, #2563eb), color-mix(in srgb, var(--am-accent, #2563eb) 60%, #7c3aed));
    animation: rankGrow 1s .2s forwards cubic-bezier(.3,1,.4,1); }
.am-card-ft { display: flex; gap: 6px; flex-wrap: wrap; }
.am-table-wrap { margin-bottom: 22px; }
.am-quick-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.am-form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.btn-danger { background: #ef4444; color: #fff; border: none; }
.btn-danger:hover { background: #dc2626; }

/* -------------------- 7.3 安全中心（高端动态） -------------------- */
.sec-page { opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease; }
.sec-page.sec-ready { opacity: 1; transform: none; }

.sec-hero-premium {
    position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 22px;
    padding: 30px 34px 34px; color: #e8f0ff;
    background: linear-gradient(125deg, #0a0f1e 0%, #141033 38%, #1a1040 62%, #0d2847 100%);
    box-shadow: 0 24px 56px rgba(8,12,40,.45), inset 0 1px 0 rgba(255,255,255,.06);
    animation: metricIn .65s both;
    min-height: 200px;
}
.sec-hero-premium.sec-hero-sm { min-height: auto; padding: 24px 28px; }
.sec-hero-premium::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(520px 200px at 8% -10%, rgba(34,211,238,.22), transparent 58%),
        radial-gradient(480px 180px at 95% 110%, rgba(167,139,250,.18), transparent 55%);
    animation: secGlow 8s ease-in-out infinite alternate;
}
@keyframes secGlow { from { opacity: .65; } to { opacity: 1; } }

.sec-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55; pointer-events: none; }
.sec-scan-line {
    position: absolute; left: 0; right: 0; height: 2px; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(34,211,238,.5), transparent);
    animation: secScan 4s linear infinite;
}
@keyframes secScan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.sec-hero-radar {
    position: absolute; right: 200px; top: 50%; transform: translateY(-50%);
    width: 140px; height: 140px; z-index: 1; opacity: .35; pointer-events: none;
}
.sec-radar-ring { position: absolute; inset: 0; border: 1px solid rgba(34,211,238,.25); border-radius: 50%; }
.sec-radar-ring.r2 { inset: 18%; } .sec-radar-ring.r3 { inset: 36%; }
.sec-radar-sweep {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(34,211,238,.35), transparent 40%);
    animation: heroSpin 3s linear infinite;
}

.sec-hero-clock { position: absolute; top: 26px; right: 32px; text-align: right; z-index: 3; }
.sec-hero-clock .t { font-size: 26px; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.sec-hero-clock .d { font-size: 12px; color: rgba(200,220,255,.75); margin-top: 2px; }

.sec-hero-body { position: relative; z-index: 2; max-width: 72%; }
.sec-hero-tag { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: rgba(167,139,250,.9); }
.sec-hero-title { font-size: 28px; font-weight: 900; margin: 8px 0 0; letter-spacing: .02em; }
.sec-hero-desc { margin: 10px 0 0; font-size: 14px; color: rgba(210,225,255,.82); max-width: 620px; line-height: 1.55; }
.sec-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sec-chip {
    display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(8px); font-size: 13px;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.sec-chip:hover { transform: translateY(-2px); border-color: rgba(34,211,238,.35); box-shadow: 0 8px 24px rgba(34,211,238,.12); }
.sec-chip b { font-size: 17px; font-weight: 800; }
.sec-chip.chip-ok b { color: #4ade80; }
.sec-chip.chip-warn b { color: #fbbf24; }

.sec-hero-threat {
    position: absolute; right: 32px; bottom: 32px; z-index: 3;
    text-align: center; padding: 18px 26px; border-radius: 16px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
}
.sec-hero-threat.has-alert { border-color: rgba(248,113,113,.5); box-shadow: 0 0 30px rgba(248,113,113,.2); }
.sec-hero-threat .v { font-size: 42px; font-weight: 900; line-height: 1; color: #fca5a5; }
.sec-hero-threat:not(.has-alert) .v { color: #86efac; }
.sec-hero-threat .l { font-size: 12px; opacity: .85; margin-top: 6px; }
.sec-threat-pulse {
    position: absolute; inset: -4px; border-radius: 18px; border: 2px solid rgba(248,113,113,.4);
    animation: livePulse 2s ease-out infinite; pointer-events: none; opacity: 0;
}
.sec-hero-threat.has-alert .sec-threat-pulse { opacity: 1; }

.sec-live {
    position: absolute; bottom: 32px; left: 34px; z-index: 3;
    display: flex; align-items: center; gap: 8px; font-size: 12px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.12);
    color: rgba(220,235,255,.9);
}
.sec-live .pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.5); animation: livePulse 2s ease-out infinite; }
.sec-live.is-err .pulse { background: #f87171; }

/* 指标卡 */
.sec-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.sec-metric {
    position: relative; overflow: hidden; border-radius: 18px; padding: 22px 20px 18px;
    color: #fff; animation: metricIn .6s both; animation-delay: var(--delay, 0s);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.sec-metric:hover { transform: translateY(-6px) scale(1.01); }
.sec-metric-glow {
    position: absolute; top: -40%; right: -20%; width: 160px; height: 160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
    pointer-events: none;
}
.sec-metric.sc-pv { background: linear-gradient(145deg, #0369a1, #0ea5e9 55%, #38bdf8); box-shadow: 0 16px 40px rgba(14,165,233,.35); }
.sec-metric.sc-uv { background: linear-gradient(145deg, #5b21b6, #7c3aed 55%, #a78bfa); box-shadow: 0 16px 40px rgba(124,58,237,.32); }
.sec-metric.sc-threat { background: linear-gradient(145deg, #b45309, #f59e0b 55%, #fbbf24); box-shadow: 0 16px 40px rgba(245,158,11,.3); }
.sec-metric.sc-block { background: linear-gradient(145deg, #9f1239, #e11d48 55%, #fb7185); box-shadow: 0 16px 40px rgba(225,29,72,.28); }
.sec-metric-ico { font-size: 24px; }
.sec-metric-val { font-size: 34px; font-weight: 900; margin-top: 10px; letter-spacing: -.02em; }
.sec-metric-lab { font-size: 13px; opacity: .92; margin-top: 4px; }
.sec-metric-foot { font-size: 12px; opacity: .85; margin-top: 10px; }
.sec-metric-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sec-metric-bar { height: 4px; border-radius: 4px; background: rgba(0,0,0,.15); margin-top: 12px; overflow: hidden; }
.sec-metric-bar i { display: block; height: 100%; border-radius: 4px; background: rgba(255,255,255,.75); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.sec-metric-bar.bar-warn i { background: rgba(255,255,255,.8); }
.sec-metric-bar.bar-block i { background: rgba(255,255,255,.7); }

/* 玻璃卡片 */
.sec-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-bottom: 18px; }
.sec-bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.sec-glass-card {
    background: rgba(255,255,255,.92); border: 1px solid rgba(200,215,240,.6);
    border-radius: 18px; padding: 20px 22px;
    box-shadow: 0 12px 36px rgba(15,40,90,.08);
    backdrop-filter: blur(12px);
    animation: metricIn .55s both;
}
.sec-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-card-title { font-size: 15px; font-weight: 800; color: var(--text); }
.sec-card-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-chart-wrap { min-height: 240px; position: relative; }
.sec-chart-wrap .trend-grid line { stroke: rgba(148,163,184,.2); stroke-width: 1; }
.sec-chart-tip { background: rgba(15,23,42,.92); border: 1px solid rgba(34,211,238,.25); }
.sec-legend { margin-top: 10px; }

/* 威胁流 */
.sec-threat-feed { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.sec-threat-empty { text-align: center; padding: 40px 20px; color: var(--text-soft); }
.sec-shield-ok { font-size: 48px; animation: secShield 3s ease-in-out infinite; }
@keyframes secShield { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.sec-threat-row {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9); border: 1px solid var(--border);
    animation: secRowIn .45s both; animation-delay: calc(var(--i, 0) * .06s);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
@keyframes secRowIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.sec-threat-row:hover { transform: translateX(4px); box-shadow: 0 6px 20px rgba(15,40,90,.08); border-color: #c7d8f5; }
.sec-threat-row.level-critical, .sec-threat-row.level-high { border-left: 3px solid #ef4444; }
.sec-threat-row.level-warn { border-left: 3px solid #f59e0b; }
.tr-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: #94a3b8; }
.sec-threat-row.level-critical .tr-dot, .sec-threat-row.level-high .tr-dot { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,.6); animation: livePulse 2s infinite; }
.tr-body { flex: 1; min-width: 0; }
.tr-top { display: flex; align-items: center; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.tr-type { font-weight: 700; color: var(--text); }
.tr-level { padding: 2px 8px; border-radius: 6px; background: #fee2e2; color: #b91c1c; font-size: 11px; font-weight: 700; }
.sec-threat-row.level-warn .tr-level { background: #fef3c7; color: #b45309; }
.tr-top time { margin-left: auto; color: var(--text-soft); }
.tr-ip { display: block; font-size: 12px; margin-top: 4px; }
.tr-path { font-size: 11px; color: var(--text-soft); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-action {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: #eef2ff; color: var(--brand); text-decoration: none; font-weight: 800;
    transition: background .2s, transform .2s;
}
.tr-action:hover { background: var(--brand); color: #fff; transform: scale(1.08); }

/* IP 排行 */
.sec-ip-rank { display: flex; flex-direction: column; gap: 10px; }
.sec-ip-row {
    display: grid; grid-template-columns: 28px 130px 1fr 48px auto; gap: 10px; align-items: center;
    animation: secRowIn .4s both; animation-delay: calc(var(--i, 0) * .05s);
}
.sec-ip-row .rank { font-size: 12px; font-weight: 800; color: var(--text-soft); }
.sec-ip-row code { font-size: 12px; }
.ip-bar { height: 6px; border-radius: 6px; background: #eef2fa; overflow: hidden; }
.ip-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #0ea5e9, #a78bfa); transition: width 1s ease; }

/* 快捷操作 */
.sec-action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sec-action {
    display: flex; flex-direction: column; padding: 18px 16px; border-radius: 14px;
    background: linear-gradient(145deg, #f8fafd, #eef3fb); border: 1px solid var(--border);
    text-decoration: none; color: inherit; position: relative; overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.sec-action::before {
    content: ""; position: absolute; inset: 0; opacity: 0;
    background: linear-gradient(135deg, rgba(34,211,238,.12), rgba(167,139,250,.1));
    transition: opacity .25s;
}
.sec-action:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(15,40,90,.12); border-color: #a5c4f5; }
.sec-action:hover::before { opacity: 1; }
.sec-action .a-ico { font-size: 30px; position: relative; }
.sec-action b { margin-top: 10px; font-size: 14px; position: relative; }
.sec-action i { font-size: 12px; color: var(--text-soft); font-style: normal; margin-top: 4px; position: relative; }

/* 导出页 */
.sec-export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sec-export-card { text-align: center; padding: 28px 22px !important; }
.sec-export-card .ex-ico { font-size: 40px; margin-bottom: 12px; }
.sec-export-card h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.sec-export-card p { font-size: 13px; color: var(--text-soft); margin: 0 0 18px; line-height: 1.5; }
.sec-export-card .ex-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sec-export-tips { margin: 0; padding-left: 20px; font-size: 13px; color: var(--text-soft); line-height: 1.8; }

/* ---- 安全子页统一样式 ---- */
.sec-sub-page { padding-bottom: 8px; }
.sec-breadcrumb {
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft);
    margin-bottom: 14px; animation: metricIn .4s both;
}
.sec-breadcrumb a { color: var(--brand); text-decoration: none; font-weight: 600; }
.sec-breadcrumb a:hover { text-decoration: underline; }
.sec-breadcrumb .sep { opacity: .5; }

.sec-sub-hero { min-height: 160px; padding: 26px 30px; }
.sec-sub-hero .sec-hero-body { max-width: 68%; }
.sec-sub-hero .sec-hero-action {
    position: absolute; right: 32px; bottom: 28px; z-index: 3;
}
.sec-btn-glass {
    background: rgba(255,255,255,.1) !important; border-color: rgba(255,255,255,.2) !important;
    color: #fff !important; backdrop-filter: blur(6px);
}
.sec-btn-glass:hover { background: rgba(255,255,255,.18) !important; }

.sec-variant-warn { background: linear-gradient(125deg, #1a0808 0%, #3b1010 40%, #1a1040 100%); }
.sec-variant-warn::before {
    background: radial-gradient(480px 180px at 90% 0%, rgba(239,68,68,.28), transparent 55%);
}
.sec-variant-block { background: linear-gradient(125deg, #1a0814 0%, #3b0a20 40%, #1a1030 100%); }
.sec-variant-block::before {
    background: radial-gradient(480px 180px at 90% 0%, rgba(244,63,94,.25), transparent 55%);
}
.sec-variant-trace { background: linear-gradient(125deg, #0a1428 0%, #142040 45%, #1a1048 100%); }
.sec-variant-export { background: linear-gradient(125deg, #0a1a28 0%, #102840 45%, #1a2850 100%); }

.sec-blocked-tag { color: #fca5a5; font-weight: 700; }
.sec-blocked-pill {
    display: inline-block; padding: 8px 16px; border-radius: 10px;
    background: rgba(248,113,113,.2); border: 1px solid rgba(248,113,113,.4);
    color: #fca5a5; font-weight: 700; font-size: 13px;
}
.sec-ip-inline { background: rgba(255,255,255,.12); padding: 2px 8px; border-radius: 6px; font-size: 14px; }

.sec-table-card { margin-bottom: 18px; animation: metricIn .5s both; animation-delay: .08s; }
.sec-table-wrap { overflow-x: auto; margin: 0 -4px; }
.sec-data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sec-data-table thead th {
    text-align: left; padding: 12px 14px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft);
    border-bottom: 2px solid #e8eef8; background: linear-gradient(180deg, #f8fafd, #f1f5fb);
}
.sec-data-table tbody tr {
    animation: secRowIn .4s both; animation-delay: calc(var(--i, 0) * .03s);
    transition: background .2s, transform .2s;
}
.sec-data-table tbody tr:hover { background: linear-gradient(90deg, rgba(14,165,233,.06), rgba(167,139,250,.04)); }
.sec-data-table tbody td { padding: 12px 14px; border-bottom: 1px solid #eef2fa; vertical-align: middle; }
.sec-data-table tbody tr.level-critical,
.sec-data-table tbody tr.level-high { border-left: 3px solid #ef4444; }
.sec-data-table tbody tr.level-warn { border-left: 3px solid #f59e0b; }

.col-time { white-space: nowrap; font-size: 12px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.col-path { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-actions { display: flex; gap: 6px; align-items: center; white-space: nowrap; }

.sec-ip-code {
    font-size: 12px; padding: 3px 8px; border-radius: 6px;
    background: #eef2ff; color: #3730a3; font-weight: 600;
}
.sec-method {
    display: inline-block; padding: 2px 8px; border-radius: 6px;
    font-size: 11px; font-weight: 800; background: #e0f2fe; color: #0369a1;
}
.sec-badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
}
.sec-badge-ok { background: #dcfce7; color: #15803d; }
.sec-badge-muted { background: #f1f5f9; color: #64748b; }
.sec-badge-warn { background: #fef3c7; color: #b45309; }

.sec-level {
    display: inline-block; padding: 3px 10px; border-radius: 8px;
    font-size: 11px; font-weight: 800;
}
.sec-level-critical, .sec-level-high { background: #fee2e2; color: #b91c1c; }
.sec-level-warn { background: #fef3c7; color: #b45309; }
.sec-level-info { background: #e0f2fe; color: #0369a1; }

.sec-type-tag { font-weight: 600; color: var(--text); }
.sec-action-blocked { color: #dc2626; font-weight: 700; font-size: 12px; }
.sec-action-logged { color: #64748b; font-size: 12px; }
.sec-link-btn {
    display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px;
    font-size: 12px; font-weight: 700; color: var(--brand); text-decoration: none;
    background: #eef2ff; transition: background .2s, color .2s, transform .2s;
}
.sec-link-btn:hover { background: var(--brand); color: #fff; transform: translateX(2px); }
.sec-perm { color: #dc2626; font-weight: 700; font-size: 12px; }
.sec-bot-tag { font-size: 14px; }

.sec-filter-form, .sec-filter-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sec-input { border-radius: 10px !important; border-color: #d8e2f0 !important; transition: border-color .2s, box-shadow .2s; }
.sec-input:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(31,107,255,.12) !important; }

.sec-filter-chip {
    padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
    text-decoration: none; color: var(--text-soft); background: #f1f5f9;
    border: 1px solid transparent; transition: all .2s;
}
.sec-filter-chip:hover { border-color: #c7d8f5; color: var(--brand); }
.sec-filter-chip.active {
    background: linear-gradient(135deg, #0ea5e9, #6366f1); color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,.3);
}

.sec-form-card .sec-form .field { margin-bottom: 14px; }
.sec-form-card .sec-form label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.sec-info-box {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px 16px;
    border-radius: 12px; background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border: 1px solid #bfdbfe; font-size: 13px; color: #1e40af; line-height: 1.5;
}
.sec-info-box .ico { font-size: 18px; flex-shrink: 0; }
.sec-inline-form { display: inline; }

/* 攻击回溯 · 时间轴 v2 */
.sec-timeline-card, .sec-trace-card { animation: metricIn .5s both; }
.sec-count-badge {
    padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
    background: #eef2ff; color: var(--brand);
}
.sec-timeline-v2 { max-height: 520px; overflow-y: auto; padding: 4px 0; }
.sec-tl-node {
    display: flex; gap: 14px; animation: secRowIn .45s both;
    animation-delay: calc(var(--i, 0) * .04s);
}
.sec-tl-node .tl-marker { display: flex; flex-direction: column; align-items: center; width: 20px; flex-shrink: 0; }
.sec-tl-node .tl-dot {
    width: 12px; height: 12px; border-radius: 50%; background: #94a3b8;
    border: 2px solid #fff; box-shadow: 0 0 0 2px #e2e8f0; flex-shrink: 0;
}
.sec-tl-node.level-critical .tl-dot,
.sec-tl-node.level-high .tl-dot { background: #ef4444; box-shadow: 0 0 0 2px #fecaca, 0 0 12px rgba(239,68,68,.5); animation: livePulse 2s infinite; }
.sec-tl-node.level-warn .tl-dot { background: #f59e0b; box-shadow: 0 0 0 2px #fde68a; }
.sec-tl-node .tl-line { flex: 1; width: 2px; background: linear-gradient(180deg, #e2e8f0, transparent); margin: 4px 0; min-height: 20px; }
.sec-tl-node:last-child .tl-line { display: none; }
.sec-tl-node .tl-card {
    flex: 1; margin-bottom: 16px; padding: 14px 16px; border-radius: 14px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9); border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}
.sec-tl-node .tl-card:hover { transform: translateX(4px); box-shadow: 0 8px 24px rgba(15,40,90,.08); }
.sec-tl-node.level-critical .tl-card,
.sec-tl-node.level-high .tl-card { border-left: 3px solid #ef4444; }
.sec-tl-node .tl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sec-tl-node .tl-head time { font-size: 11px; color: var(--text-soft); }
.sec-tl-node .tl-title { font-weight: 800; font-size: 14px; }
.sec-tl-node .tl-path { font-size: 12px; color: var(--text-soft); margin-top: 4px; word-break: break-all; }
.tl-payload {
    font-size: 11px; background: #0f172a; color: #94a3b8; padding: 10px 12px;
    border-radius: 10px; margin-top: 8px; overflow-x: auto; white-space: pre-wrap;
    word-break: break-all; border: 1px solid #1e293b;
}

.sec-visit-trace-v2 { max-height: 520px; overflow-y: auto; }
.sv-row-v2 {
    display: grid; grid-template-columns: 100px 48px 1fr auto; gap: 10px; align-items: center;
    padding: 10px 12px; border-radius: 10px; margin-bottom: 6px;
    background: #f8fafd; border: 1px solid transparent;
    animation: secRowIn .35s both; animation-delay: calc(var(--i, 0) * .025s);
    transition: border-color .2s, background .2s;
}
.sv-row-v2:hover { border-color: #c7d8f5; background: #fff; }
.sv-row-v2 time { font-size: 11px; color: var(--text-soft); }
.sv-row-v2 .sv-method { font-size: 11px; font-weight: 800; color: #0369a1; }
.sv-row-v2 .sv-path { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sec-search-card, .sec-tips-card { margin-top: 18px; animation: metricIn .5s both; animation-delay: .12s; }
.sec-export-animate { animation: metricIn .55s both; animation-delay: calc(var(--i, 0) * .08s + .05s); }
.sec-export-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,40,90,.12); transition: transform .25s, box-shadow .25s; }

@media (max-width: 1100px) {
    .sec-metric-grid { grid-template-columns: repeat(2, 1fr); }
    .sec-split, .sec-bottom, .sec-export-grid { grid-template-columns: 1fr; }
    .sec-hero-body { max-width: 100%; }
    .sec-hero-radar { display: none; }
    .sec-hero-threat { position: static; margin-top: 18px; display: inline-block; }
    .sec-live { left: auto; right: 28px; bottom: auto; top: 26px; }
    .sec-sub-hero .sec-hero-body { max-width: 100%; }
    .sec-sub-hero .sec-hero-action { position: static; margin-top: 14px; }
    .sec-data-table { font-size: 12px; }
    .col-path { max-width: 120px; }
}

/* 子页兼容 */
.sec-hero {
    position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 22px;
    padding: 28px 32px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b69 45%, #1e3a5f 100%);
    box-shadow: 0 20px 46px rgba(26,10,46,.35); animation: metricIn .6s both;
}
.sec-hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(400px 180px at 90% 0%, rgba(239,68,68,.25), transparent 60%);
}
.sec-hero > * { position: relative; z-index: 1; }
.sec-hero-warn { background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 50%, #1e1b4b 100%); }
.sec-hero-sm { padding: 22px 28px; }
.sec-hero-tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; opacity: .75; }
.sec-hero-txt h1 { font-size: 24px; font-weight: 800; margin: 6px 0 0; }
.sec-hero-txt p { margin: 8px 0 0; opacity: .88; font-size: 14px; }
.sec-hero-badge { text-align: center; padding: 16px 24px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }
.sec-hero-badge .v { font-size: 36px; font-weight: 900; }
.sec-hero-badge .l { font-size: 12px; opacity: .85; margin-top: 4px; }
.sec-warn .v { color: #fca5a5; }
.sec-chart-wrap { min-height: 200px; position: relative; }
.sec-threat-list { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; }
.sec-threat-item { padding: 12px 14px; border-radius: 12px; background: #f8fafd; border: 1px solid var(--border); }
.sec-threat-item .th-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.sec-threat-item code { font-size: 12px; }
.sec-threat-item time { margin-left: auto; color: var(--text-soft); }
.sec-threat-item .th-path { font-size: 12px; color: var(--text-soft); margin: 6px 0; }
.sec-quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sec-quick { display: flex; flex-direction: column; padding: 16px; border-radius: 14px; background: #f8fafd; border: 1px solid var(--border); text-decoration: none; color: inherit; transition: .2s; }
.sec-quick:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d8f5; }
.sec-quick span { font-size: 28px; }
.sec-quick b { margin-top: 8px; font-size: 14px; }
.sec-quick i { font-size: 12px; color: var(--text-soft); font-style: normal; margin-top: 4px; }
.sec-timeline { max-height: 520px; overflow-y: auto; }
.sec-tl-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.sec-tl-item .tl-time { flex: 0 0 130px; font-size: 11px; color: var(--text-soft); }
.sec-tl-item .tl-path { font-size: 12px; color: var(--text-soft); margin-top: 4px; }
.tl-payload { font-size: 11px; background: #0f172a; color: #94a3b8; padding: 8px; border-radius: 8px; margin-top: 6px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.sec-visit-trace { max-height: 520px; overflow-y: auto; }
.sv-row { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 12px; }
.sv-row time { flex: 0 0 100px; color: var(--text-soft); }
.sv-method { flex: 0 0 40px; font-weight: 700; }
.sv-path { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 兼容旧类名 im-hero */
.im-hero {
    position: relative; overflow: hidden; border-radius: var(--radius);
    padding: 30px 34px; margin-bottom: 22px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: linear-gradient(135deg, #071a3a 0%, #0a2450 48%, #0d47a1 100%);
    box-shadow: var(--shadow); animation: metricIn .6s both;
}
.im-hero::before {
    content: ""; position: absolute; top: -80px; right: 120px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(31,107,255,.5), transparent 62%);
}
.im-hero::after {
    content: ""; position: absolute; bottom: -120px; left: -40px;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(77,139,255,.25), transparent 65%);
}
.im-hero-txt { position: relative; z-index: 1; }
.im-hero-tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; opacity: .8; margin-bottom: 8px; }
.im-hero-txt h1 { font-size: 26px; font-weight: 800; }
.im-hero-txt p { margin-top: 8px; opacity: .86; font-size: 14px; max-width: 640px; }
.im-hero-badge {
    position: relative; z-index: 1; flex: none; text-align: center;
    padding: 18px 28px; border-radius: 16px; backdrop-filter: blur(6px);
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
}
.im-hero-badge .v { font-size: 40px; font-weight: 900; line-height: 1; }
.im-hero-badge .l { font-size: 12px; opacity: .85; margin-top: 6px; }

/* 行业图标头像 */
.im-ava {
    width: 44px; height: 44px; border-radius: 12px; flex: none;
    display: grid; place-items: center; font-size: 22px;
    background: var(--brand-soft); box-shadow: inset 0 0 0 1px #dbe6ff;
}

/* 费用高亮 */
.im-fee { font-size: 15px; font-weight: 800; color: var(--brand); }

/* 开通热度条 */
.im-heat { height: 8px; border-radius: 999px; background: #eef2fa; overflow: hidden; margin-top: 6px; }
.im-heat-fill { height: 100%; width: 0; border-radius: 999px; background: var(--brand-grad);
    animation: rankGrow 1s .2s forwards cubic-bezier(.3,1,.4,1); }

/* -------------------- 7.9 前端聚合商城（storefront） -------------------- */
.shop-body { background: var(--bg); }
.shop-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
    padding: 14px 32px; background: #fff; border-bottom: 1px solid var(--border); }
.shop-brand { font-size: 20px; font-weight: 800; color: var(--text); }
.shop-nav { display: flex; gap: 20px; }
.shop-nav a { font-size: 14px; color: var(--text-soft); }
.shop-nav a:hover { color: var(--brand); }
.shop-main { max-width: 1160px; margin: 0 auto; padding: 26px 20px 60px; }
.shop-footer { text-align: center; color: var(--text-soft); font-size: 13px; padding: 30px; }
.shop-hero { background: linear-gradient(135deg,#0a2450,#0d47a1); color: #fff; border-radius: 18px; padding: 34px; margin-bottom: 22px; }
.shop-hero h1 { font-size: 26px; }
.shop-hero p { opacity: .9; margin-top: 8px; }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: .18s; display: block; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0ff; }
.pc-cover { position: relative; aspect-ratio: 1/1; background: #eef2fa; display: grid; place-items: center; overflow: hidden; }
.pc-cover img { width: 100%; height: 100%; object-fit: cover; }
.pc-noimg { font-size: 40px; }
.pc-shop { position: absolute; left: 8px; top: 8px; background: rgba(7,20,42,.6); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.pc-body { padding: 12px 14px; }
.pc-name { font-size: 14px; font-weight: 600; line-height: 1.4; height: 2.8em; overflow: hidden; }
.pc-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.pc-price { color: var(--danger); font-weight: 800; font-size: 17px; }
.pc-sales { color: var(--text-soft); font-size: 12px; }
.shop-store-head { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--border);
    border-radius: 16px; padding: 22px; margin-bottom: 20px; }
.ss-logo { width: 72px; height: 72px; border-radius: 16px; background: #eef2fa; display: grid; place-items: center; font-size: 34px; overflow: hidden; }
.ss-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-store-head h1 { font-size: 22px; }
.shop-store-head p { color: var(--text-soft); margin: 6px 0; }
.product-detail { display: grid; grid-template-columns: 440px 1fr; gap: 30px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.pd-cover { aspect-ratio: 1/1; background: #eef2fa; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.pd-cover img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: 24px; }
.pd-price { color: var(--danger); font-size: 30px; font-weight: 800; margin: 16px 0; }
.pd-price del { color: var(--text-soft); font-size: 16px; font-weight: 400; margin-left: 8px; }
.pd-meta { display: flex; gap: 20px; color: var(--text-soft); font-size: 14px; margin-bottom: 16px; }
.pd-shop { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pd-sku { color: var(--text-soft); font-size: 13px; margin-bottom: 18px; }

/* -------------------- 7.7 通用弹窗（Modal） -------------------- */
.modal-mask { position: fixed; inset: 0; z-index: 1200; display: none;
    align-items: center; justify-content: center; padding: 20px;
    background: rgba(7, 20, 42, .5); backdrop-filter: blur(3px); }
.modal-mask.open { display: flex; animation: maskIn .2s ease; }
.modal-mask[hidden] { display: none !important; }
.modal-mask.open:not([hidden]) { display: flex; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box { width: 100%; max-width: 460px; max-height: min(90vh, 820px); background: var(--surface); border-radius: 18px;
    box-shadow: 0 30px 60px rgba(7,20,42,.35); overflow: auto; animation: modalIn .28s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.modal-box > form { display: flex; flex-direction: column; min-height: 0; }
.modal-box .modal-body { overflow: auto; flex: 1; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head .t { font-size: 17px; font-weight: 800; }
.modal-close { border: none; background: #eef2fa; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 15px; color: var(--text-soft); }
.modal-close:hover { background: #e2e8f4; color: var(--text); }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* 套餐卡片 */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pkg-card { border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: linear-gradient(180deg,#fff,#fafcff);
    display: flex; flex-direction: column; gap: 8px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.pkg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0ff; }
.pkg-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,103,255,.12); }
.pkg-name { font-size: 16px; font-weight: 800; }
.pkg-price { font-size: 26px; font-weight: 800; color: var(--brand); }
.pkg-price small { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.pkg-feat { font-size: 13px; color: var(--text-soft); }
.pkg-card .btn { margin-top: auto; }

/* 用量进度条 */
.usage-bar { height: 12px; border-radius: 999px; background: #eef2fa; overflow: hidden; margin-top: 8px; }
.usage-fill { height: 100%; border-radius: 999px; background: var(--brand-grad); transition: width .8s cubic-bezier(.3,1,.4,1); }

/* -------------------- 8. 响应式 -------------------- */
@media (max-width: 1024px) {
    .stat-grid, .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col, .detail-grid, .settings-grid { grid-template-columns: 1fr; }
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
    .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
    .row-2 { grid-template-columns: 1fr; }
    #industry-drawer { left: 0; width: 100vw; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-header { padding: 12px 16px; }
    /* 小屏无左侧品牌区：关闭吊灯暗场与广告位，登录表单常显，避免无处开灯 */
    .lamp-rig, .lamp-beam, .auth-curtain, .auth-adslot, .auth-divider { display: none; }
    .auth-stage .auth-form { opacity: 1 !important; transform: none !important; visibility: visible !important; pointer-events: auto !important; }
}
@media (max-width: 560px) {
    .stat-grid, .metric-grid { grid-template-columns: 1fr; }
}

/* -------------------- 表单字段说明 / 配置指南（浅色主题） -------------------- */
/* 字段下方的灰色小字说明：解释含义、怎么填、在哪里获取 */
.field-hint { font-size: 12.5px; color: var(--text-soft); margin-top: 6px; line-height: 1.65; }
.field-hint code { background: var(--brand-soft); color: var(--brand); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.field-hint a { color: var(--brand); text-decoration: none; }
.field-hint a:hover { text-decoration: underline; }
.field-hint b { color: var(--text); }

/* 按钮下方的一句话作用说明 */
.btn-note { font-size: 12.5px; color: var(--text-soft); margin-top: 8px; line-height: 1.6; max-width: 340px; }

/* 顶部可展开使用指南 */
.help-guide { border: 1px solid var(--border); border-radius: 14px; background: #fff; margin-bottom: 22px; overflow: hidden; }
.help-guide > summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 8px; background: linear-gradient(90deg, var(--brand-soft), transparent); }
.help-guide > summary::-webkit-details-marker { display: none; }
.help-guide > summary::after { content: '▾'; margin-left: auto; transition: transform .2s ease; color: var(--brand); }
.help-guide[open] > summary::after { transform: rotate(180deg); }
.help-guide .hg-body { padding: 4px 22px 20px; }
.help-guide .hg-step { display: flex; gap: 14px; padding: 14px 0; border-top: 1px dashed var(--border); }
.help-guide .hg-step:first-child { border-top: none; }
.help-guide .hg-num { flex: 0 0 28px; height: 28px; border-radius: 999px; background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.help-guide .hg-step b { display: block; margin-bottom: 4px; color: var(--text); }
.help-guide .hg-step p { margin: 0; font-size: 13px; color: var(--text-soft); line-height: 1.7; }
.help-guide .hg-step code { background: var(--brand-soft); color: var(--brand); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
