/* ============================================================
   分站SaaS应用市场系统 · 可点击交互原型 · 共享样式
   - 官网(body.site) 与 后台(body.adm-body) 共用
   - 皮肤 = CSS 变量令牌（html[data-skin]），对应需求"多套UI皮肤"
   ============================================================ */

/* ---------- 皮肤令牌 ---------- */
html[data-skin="blue"] {
  --primary: #2e5cff; --primary-600: #1f47e0; --primary-soft: #eef2ff;
  --accent: #ff7a00; --accent-soft: #fff3e6;
  --grad-a: #2e5cff; --grad-b: #6d3bff;
}
html[data-skin="orange"] {
  --primary: #e8590c; --primary-600: #d9480f; --primary-soft: #fff0e6;
  --accent: #1971c2; --accent-soft: #e7f5ff;
  --grad-a: #f76707; --grad-b: #e8590c;
}
html[data-skin="green"] {
  --primary: #0ca678; --primary-600: #099268; --primary-soft: #e6fcf5;
  --accent: #7048e8; --accent-soft: #f3f0ff;
  --grad-a: #0ca678; --grad-b: #087f5b;
}

/* ---------- Reset 与基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #212b36; background: #f5f7fa; font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: #212b36; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 22px; border-radius: 6px; border: 1px solid transparent;
  font-size: 14px; cursor: pointer; transition: all .15s; white-space: nowrap;
  background: #fff; line-height: 1.4;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.95); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary-soft); }
.btn-ghost { border-color: #dcdfe6; color: #606266; background: #fff; }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }
.btn-lg { padding: 12px 34px; font-size: 16px; border-radius: 8px; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; }
.btn-link { border: none; background: none; color: var(--primary); cursor: pointer; padding: 0; font-size: 13px; }
.btn-link:hover { text-decoration: underline; }

/* ---------- 徽标 / 标签 ---------- */
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px; font-size: 12px; line-height: 1.6; }
.bdg-blue   { background: var(--primary-soft); color: var(--primary); }
.bdg-orange { background: var(--accent-soft); color: var(--accent); }
.bdg-green  { background: #e6fcf5; color: #0ca678; }
.bdg-red    { background: #ffe3e3; color: #e03131; }
.bdg-gray   { background: #f1f3f5; color: #868e96; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; background: #f1f3f5; color: #606266; margin-right: 6px; }
.tag-soft { background: var(--primary-soft); color: var(--primary); }

/* ---------- 卡片 / 网格 / 区块 ---------- */
.card { background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(16,24,40,.06); }
.grid { display: grid; gap: 20px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.section { padding: 56px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 28px; margin-bottom: 8px; }
.section-head p { color: #8a94a6; font-size: 15px; }
.section-head .more { float: right; }

/* ---------- 官网导航 ---------- */
.proto-ribbon { background: #101828; color: #cbd5e1; font-size: 12px; text-align: center; padding: 5px 12px; }
.proto-ribbon b { color: #fff; }
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid #eef0f4; }
.site-nav .inner { display: flex; align-items: center; height: 64px; gap: 18px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.nav-logo .mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links { flex-wrap: nowrap; }
.nav-links a { padding: 6px 12px; border-radius: 6px; color: #495057; font-size: 14.5px; white-space: nowrap; }
.nav-links a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-links a.active { color: var(--primary); font-weight: 600; background: var(--primary-soft); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-user { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.nav-user .avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* ---------- 首页 Hero ---------- */
.hero { background: linear-gradient(120deg, #0b1224 0%, #16264d 45%, #234086 100%); color: #fff; padding: 84px 0 96px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.10), transparent 65%); }
.hero .inner { position: relative; z-index: 1; max-width: 860px; }
.hero h1 { font-size: 44px; line-height: 1.25; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #8db4ff; }
.hero p.sub { font-size: 17px; color: #c3cde4; margin-bottom: 34px; }
.hero .btns { display: flex; gap: 14px; margin-bottom: 44px; }
.hero .btn-primary { background: var(--primary); }
.hero-stats { display: flex; gap: 56px; }
.hero-stats .num { font-size: 30px; font-weight: 700; color: #fff; }
.hero-stats .lbl { font-size: 13px; color: #9fb0d0; }

/* ---------- 产品卡片 ---------- */
.p-card { overflow: hidden; transition: all .2s; display: flex; flex-direction: column; }
.p-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16,24,40,.12); }
.p-cover { height: 132px; display: flex; align-items: center; justify-content: center; position: relative; }
.p-cover .ico { width: 62px; height: 62px; border-radius: 16px; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #334155; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.p-cover .src { position: absolute; top: 10px; left: 10px; }
.p-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.p-name { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.p-intro { color: #8a94a6; font-size: 13px; min-height: 40px; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-meta { margin-bottom: 14px; }
.p-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.p-price .cur { font-size: 13px; color: #e03131; }
.p-price .val { font-size: 22px; font-weight: 700; color: #e03131; }
.p-price .lbl { font-size: 12px; color: #adb5bd; }
.p-price .agent { font-size: 12px; color: #0ca678; font-weight: 600; }

/* ---------- 列表页工具条 ---------- */
.page-banner { background: linear-gradient(120deg, #0b1224, #234086); color: #fff; padding: 44px 0; }
.page-banner h1 { font-size: 30px; margin-bottom: 6px; }
.page-banner p { color: #c3cde4; font-size: 14px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: -26px 0 22px; position: relative; }
.filter-bar .card { padding: 10px 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { padding: 5px 14px; border-radius: 18px; cursor: pointer; font-size: 13px; color: #606266; border: 1px solid transparent; }
.chip:hover { color: var(--primary); }
.chip.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.result-bar { display: flex; justify-content: space-between; align-items: center; color: #8a94a6; font-size: 13px; margin-bottom: 14px; }

/* ---------- 产品详情 ---------- */
.crumbs { padding: 18px 0 4px; color: #8a94a6; font-size: 13px; }
.crumbs a:hover { color: var(--primary); }
.pd-layout { display: grid; grid-template-columns: 400px 1fr; gap: 24px; align-items: start; margin-bottom: 24px; }
.pd-gallery { height: 300px; border-radius: 10px 10px 0 0; display: flex; align-items: center; justify-content: center; }
.pd-gallery .ico { width: 96px; height: 96px; border-radius: 22px; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: #334155; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.pd-info { padding: 22px 24px; border-radius: 0 0 10px 10px; }
.pd-info h1 { font-size: 24px; margin: 8px 0 10px; }
.pd-info .intro { color: #667085; margin-bottom: 14px; }
.price-box { background: linear-gradient(120deg, #fff7f2, #fff); border: 1px solid #ffe8d9; border-radius: 10px; padding: 16px 18px; margin: 14px 0; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.price-box .big { font-size: 30px; font-weight: 700; color: #e03131; }
.price-box .old { color: #adb5bd; text-decoration: line-through; font-size: 14px; }
.price-box .agent-price { background: #e6fcf5; color: #0ca678; border-radius: 8px; padding: 8px 14px; font-size: 13px; line-height: 1.7; }
.pd-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.pd-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-top: 14px; font-size: 13px; color: #495057; }
.pd-attrs b { color: #212b36; }

/* 详情 Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid #eef0f4; margin-bottom: 22px; flex-wrap: wrap; }
.tab-btn { padding: 10px 18px; font-size: 15px; color: #606266; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; display: inline-flex; gap: 6px; align-items: center; }
.tab-btn:hover { color: var(--primary); }
.tab-btn.on { color: var(--primary); font-weight: 600; border-color: var(--primary); }
.tab-btn .lock { font-size: 12px; color: #faad14; }
.tab-panel { display: none; }
.tab-panel.on { display: block; }

/* 受限资源占位 */
.locked-box { border: 1px dashed #d0d5dd; border-radius: 10px; padding: 44px 20px; text-align: center; color: #667085; background: #fafbfc; }
.locked-box .lk { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.locked-box h4 { font-size: 16px; color: #344054; margin-bottom: 6px; }
.locked-box p { font-size: 13px; margin-bottom: 16px; }

/* 物料条目 */
.mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mat-item { padding: 16px; border: 1px solid #eef0f4; border-radius: 10px; }
.mat-item .t { font-weight: 600; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.mat-item .d { color: #8a94a6; font-size: 13px; }
.mat-item .cover { height: 90px; border-radius: 8px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; letter-spacing: 1px; }
.update-item { border-left: 3px solid var(--primary); background: #fafbfc; border-radius: 0 10px 10px 0; padding: 14px 18px; margin-bottom: 14px; }
.update-item .v { font-weight: 700; color: var(--primary); margin-right: 10px; }
.update-item .d { color: #8a94a6; font-size: 12px; }
.faq-item { border-bottom: 1px solid #f1f3f5; padding: 14px 4px; }
.faq-item .q { font-weight: 600; margin-bottom: 6px; }
.faq-item .a { color: #667085; font-size: 13px; padding-left: 20px; position: relative; }
.faq-item .a::before { content: "答"; position: absolute; left: 0; top: 3px; font-size: 11px; background: var(--primary-soft); color: var(--primary); border-radius: 4px; padding: 0 5px; }
.doc-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid #f1f3f5; }

/* ---------- 活动卡片 ---------- */
.act-card { overflow: hidden; display: flex; flex-direction: column; }
.act-cover { height: 150px; position: relative; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.act-cover .type { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.35); color: #fff; border-radius: 20px; padding: 2px 12px; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.act-cover .end { position: absolute; bottom: 10px; right: 12px; background: rgba(0,0,0,.35); color: #fff; border-radius: 4px; padding: 1px 8px; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.act-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.act-body h3 { font-size: 17px; margin-bottom: 8px; }
.act-body .desc { color: #8a94a6; font-size: 13px; margin-bottom: 12px; min-height: 40px; }
.act-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.act-price .val { font-size: 22px; font-weight: 700; color: #e03131; }
.act-join { font-size: 12px; color: #8a94a6; }
.act-join b { color: var(--accent); font-size: 15px; }

/* ---------- 福利专区 ---------- */
.wl-card { padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.wl-card .cover { width: 74px; height: 74px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.wl-card h3 { font-size: 16px; margin-bottom: 6px; }
.wl-card .d { color: #8a94a6; font-size: 13px; margin-bottom: 14px; min-height: 40px; }
.wl-card .claim-state { margin-top: 4px; }

/* ---------- 工具箱 ---------- */
.tb-group { margin-bottom: 30px; }
.tb-group h3 { font-size: 17px; margin-bottom: 14px; padding-left: 10px; border-left: 4px solid var(--primary); }
.tb-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tb-link { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border-radius: 10px; border: 1px solid #eef0f4; transition: all .15s; }
.tb-link:hover { border-color: var(--primary); box-shadow: 0 6px 16px rgba(16,24,40,.08); transform: translateY(-2px); }
.tb-link .ico { width: 38px; height: 38px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
.tb-link .ico.has-icon { position: relative; }
.tb-link .ico.has-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; background: rgba(255,255,255,.92); border-radius: inherit; }
.tb-link .n { font-weight: 600; font-size: 14px; }
.tb-link .u { color: #adb5bd; font-size: 12px; }

/* ---------- 富文本内容页 ---------- */
.rich { background: #fff; border-radius: 10px; padding: 36px 40px; }
.rich h2 { font-size: 22px; margin: 18px 0 12px; }
.rich h3 { font-size: 17px; margin: 16px 0 8px; }
.rich p { color: #495057; margin-bottom: 12px; }
.rich li { color: #495057; margin: 6px 0 6px 20px; list-style: disc; }
.rich b { color: #212b36; }

/* 招商套餐 */
.plan-card { padding: 26px; text-align: center; position: relative; }
.plan-card.recommend { border: 2px solid var(--primary); }
.plan-card .rc { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; border-radius: 16px; padding: 2px 14px; font-size: 12px; }
.plan-card h3 { font-size: 18px; margin-bottom: 4px; }
.plan-card .pr { font-size: 28px; font-weight: 700; color: var(--primary); margin: 8px 0 16px; }
.plan-card .pr span { font-size: 13px; color: #8a94a6; font-weight: 400; }
.plan-card ul { text-align: left; margin: 14px 0 20px; }
.plan-card li { margin: 8px 0 8px 18px; list-style: none; position: relative; color: #495057; font-size: 13px; }
.plan-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid #0ca678; border-bottom: 2px solid #0ca678; transform: rotate(-45deg); }

/* ---------- 登录页 ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-left { background: linear-gradient(140deg, #0b1224, #234086); color: #fff; padding: 60px 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-left h2 { font-size: 30px; margin-bottom: 14px; }
.auth-left p { color: #c3cde4; margin-bottom: 26px; }
.auth-left .pts li { margin: 10px 0; padding-left: 24px; position: relative; color: #dfe6f5; }
.auth-left .pts li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px; border-left: 2px solid #74b0ff; border-bottom: 2px solid #74b0ff; transform: rotate(-45deg); }
.auth-right { display: flex; align-items: center; justify-content: center; background: #fff; }
.auth-box { width: 400px; }
.auth-box h3 { font-size: 22px; margin-bottom: 4px; }
.auth-box .sub { color: #8a94a6; margin-bottom: 24px; }
.auth-method { display: flex; gap: 12px; margin-bottom: 20px; }
.auth-method .m { flex: 1; border: 1px solid #eef0f4; border-radius: 10px; padding: 14px; text-align: center; cursor: pointer; }
.auth-method .m.on { border-color: var(--primary); background: var(--primary-soft); }
.auth-method .m.off { opacity: .45; cursor: not-allowed; }
.auth-method .ico { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 700; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: #495057; margin-bottom: 6px; }
.form-row .ctl { width: 100%; padding: 10px 12px; border: 1px solid #dcdfe6; border-radius: 6px; outline: none; }
.form-row .ctl:focus { border-color: var(--primary); }
.sms-row { display: flex; gap: 10px; }
.sms-row .btn { flex: none; }

/* ---------- 官网页脚 ---------- */
.site-footer { background: #0b1224; color: #9fb0d0; padding: 48px 0 24px; margin-top: 56px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer li { margin: 8px 0; font-size: 13px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.site-footer .brand .mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.site-footer .bt { border-top: 1px solid #1d2942; padding-top: 18px; font-size: 12px; text-align: center; color: #667085; }

/* ---------- 浮动件：演示控制器 / 客服 ---------- */
.proto-panel { position: fixed; left: 16px; bottom: 16px; z-index: 200; width: 250px; background: #101828; color: #cbd5e1; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.28); padding: 14px 14px 12px; font-size: 13px; }
.proto-panel h5 { color: #fff; font-size: 13px; margin-bottom: 4px; display: flex; justify-content: space-between; }
.proto-panel .tip { color: #78849b; font-size: 11px; margin-bottom: 10px; }
.role-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.role-item:hover { background: rgba(255,255,255,.06); }
.role-item.on { background: var(--primary); color: #fff; }
.role-item .rd { font-size: 11px; opacity: .75; }
.proto-panel .skin-row { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #1d2942; }
.proto-panel .skin-row span { font-size: 11px; color: #78849b; align-self: center; }
.swatch { width: 26px; height: 26px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.swatch.on { border-color: #fff; }
.svc-bubble { position: fixed; right: 20px; bottom: 26px; z-index: 200; }
.svc-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(46,92,255,.35); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; border: none; }
.svc-btn b { font-size: 15px; }
/* AI 客服聊天窗（右下角弹窗，可临时关闭） */
.svc-chat {
  position: absolute; right: 66px; bottom: 0; width: 330px; height: 440px;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 48px rgba(16,24,40,.22);
  display: none; flex-direction: column; overflow: hidden;
}
.svc-chat.show { display: flex; }
.svc-chat-hd { padding: 13px 16px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: space-between; }
.svc-chat-hd b { font-size: 14px; }
.svc-chat-hd .sub { font-size: 11px; opacity: .85; }
.svc-chat-hd .x { cursor: pointer; font-size: 18px; padding: 0 4px; opacity: .9; }
.svc-chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f7f9fc; }
.chat-msg { display: flex; }
.chat-msg .b { max-width: 78%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.7; }
.chat-msg.bot .b { background: #fff; border: 1px solid #eef0f4; color: #344054; border-top-left-radius: 4px; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.user .b { background: var(--primary); color: #fff; border-top-right-radius: 4px; }
.svc-chat-ft { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #eef0f4; background: #fff; }
.svc-chat-ft input { flex: 1; border: 1px solid #dcdfe6; border-radius: 8px; padding: 8px 10px; outline: none; font-size: 13px; }
.svc-chat-ft input:focus { border-color: var(--primary); }
.svc-chat-note { padding: 7px 12px; font-size: 11px; color: #98a2b3; background: #fafbfc; border-top: 1px solid #f2f4f7; text-align: center; }
/* 福利领取成功弹窗图片位 */
.claim-imgbox { text-align: center; }
.claim-img {
  width: 100%; height: 150px; border-radius: 10px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; letter-spacing: 1px;
}
html[data-theme="dark"] .svc-chat { background: #101820; }
html[data-theme="dark"] .svc-chat-body { background: #0b1016; }
html[data-theme="dark"] .chat-msg.bot .b { background: #161d26; border-color: #232b35; color: #dbe4ec; }
html[data-theme="dark"] .svc-chat-ft, html[data-theme="dark"] .svc-chat-note { background: #101820; border-color: #232b35; }
html[data-theme="dark"] .svc-chat-ft input { background: #0b1016; border-color: #2a3542; color: var(--tx, #e6edf3); }
.svc-pop { position: absolute; right: 66px; bottom: 0; width: 250px; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.18); padding: 18px; color: #344054; display: none; }
.svc-pop.show { display: block; }
.svc-pop h5 { margin-bottom: 10px; }
.svc-pop .qr { width: 120px; height: 120px; margin: 8px auto; background:
  repeating-linear-gradient(0deg, #212b36 0 6px, transparent 6px 12px),
  repeating-linear-gradient(90deg, #212b36 0 6px, #fff 6px 12px);
  border-radius: 8px; border: 1px solid #eef0f4; }
.svc-pop .qr-note { text-align: center; color: #8a94a6; font-size: 12px; }
.svc-pop .row { display: flex; justify-content: space-between; font-size: 13px; margin: 6px 0; }

/* ---------- 弹窗 / 抽屉 / 提示 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(16,24,40,.5); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 12px; width: 560px; max-width: 100%; max-height: 86vh; display: flex; flex-direction: column; }
.modal .m-head { padding: 16px 20px; border-bottom: 1px solid #eef0f4; display: flex; justify-content: space-between; align-items: center; }
.modal .m-head h4 { font-size: 16px; }
.modal .m-head .x { cursor: pointer; color: #8a94a6; font-size: 18px; padding: 0 4px; }
.modal .m-body { padding: 20px; overflow: auto; }
.modal .m-foot { padding: 14px 20px; border-top: 1px solid #eef0f4; display: flex; justify-content: flex-end; gap: 10px; }
.drawer-mask { position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 300; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 620px; max-width: 94vw; background: #fff; z-index: 301; box-shadow: -12px 0 40px rgba(16,24,40,.12); display: flex; flex-direction: column; }
.drawer .d-head { padding: 16px 22px; border-bottom: 1px solid #eef0f4; display: flex; justify-content: space-between; align-items: center; }
.drawer .d-head .x { cursor: pointer; color: #8a94a6; font-size: 18px; }
.drawer .d-body { flex: 1; overflow: auto; padding: 20px 22px; }
.drawer .d-foot { padding: 14px 22px; border-top: 1px solid #eef0f4; display: flex; justify-content: flex-end; gap: 10px; background: #fafbfc; }
.toast-wrap { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #212b36; color: #fff; border-radius: 8px; padding: 10px 22px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: toastIn .2s; }
.toast.ok { background: #0ca678; }
.toast.warn { background: #e8590c; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 空状态 ---------- */
.empty { text-align: center; color: #98a2b3; padding: 50px 20px; }
.empty .e { font-size: 40px; font-weight: 700; color: #d0d5dd; margin-bottom: 8px; }

/* ============================================================
   管理后台（body.adm-body）· Element Plus 风格参考
   ============================================================ */
.adm-body { background: #f5f7fa; }
.adm-layout { display: flex; min-height: 100vh; }
.adm-side { width: 224px; background: #1d2b3a; color: #a3b1cc; flex: none; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: auto; }
.adm-side .brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: #fff; font-size: 16px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.06); }
.adm-side .brand .mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.adm-side .brand small { font-weight: 400; font-size: 11px; color: #78849b; display: block; }
.adm-menu { padding: 12px 10px; flex: 1; }
.menu-group { font-size: 11px; color: #5d708f; padding: 14px 12px 6px; letter-spacing: 1px; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; margin-bottom: 2px; }
.menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu-item.on { background: var(--primary); color: #fff; }
.menu-item .mi { width: 18px; text-align: center; font-size: 12px; opacity: .9; }
.adm-side .side-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12px; color: #5d708f; }
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top { height: 60px; background: #fff; border-bottom: 1px solid #eef0f4; display: flex; align-items: center; padding: 0 24px; gap: 16px; position: sticky; top: 0; z-index: 50; }
.adm-top .crumb { color: #8a94a6; font-size: 13px; }
.adm-top .crumb b { color: #212b36; }
.adm-top .spacer { flex: 1; }
.adm-top .who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.adm-top .who .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.adm-content { padding: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { padding: 18px 20px; }
.stat-card .lbl { color: #8a94a6; font-size: 13px; margin-bottom: 6px; }
.stat-card .num { font-size: 26px; font-weight: 700; }
.stat-card .sub { font-size: 12px; color: #98a2b3; margin-top: 4px; }
.stat-card .delta { color: #0ca678; }
.panel { background: #fff; border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
.panel .p-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel .p-head h3 { font-size: 16px; }
.panel .p-head .acts { display: flex; gap: 10px; }

/* 表格（Element 风格） */
.a-table-wrap { background: #fff; border-radius: 10px; padding: 6px 20px 16px; }
.a-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.a-table th { text-align: left; color: #8a94a6; font-weight: 500; background: #fafbfc; padding: 12px 8px; border-bottom: 1px solid #eef0f4; white-space: nowrap; }
.a-table td { padding: 12px 8px; border-bottom: 1px solid #f2f4f7; color: #3f4756; vertical-align: middle; }
.a-table tr:hover td { background: #fafcff; }
.a-table .pri { color: #e03131; font-weight: 600; }
.a-table .money { font-weight: 600; }
.pager { display: flex; justify-content: flex-end; gap: 6px; padding-top: 14px; }
.pager .pg { min-width: 30px; height: 30px; border-radius: 4px; border: 1px solid #dcdfe6; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; padding: 0 6px; }
.pager .pg.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 表单 */
.f-sec { margin-bottom: 22px; }
.f-sec h4 { font-size: 14px; margin-bottom: 12px; padding-left: 9px; border-left: 3px solid var(--primary); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.f-grid .full { grid-column: 1 / -1; }
.f-item { margin-bottom: 14px; }
.f-item label { display: block; font-size: 13px; color: #495057; margin-bottom: 5px; }
.f-item label i { color: #e03131; font-style: normal; margin-right: 2px; }
.f-item .ctl { width: 100%; padding: 8px 11px; border: 1px solid #dcdfe6; border-radius: 6px; outline: none; background: #fff; }
.f-item .ctl:disabled { background: #f5f7fa; color: #98a2b3; cursor: not-allowed; }
.f-item .hint { font-size: 12px; color: #98a2b3; margin-top: 3px; }
.f-item textarea.ctl { min-height: 74px; resize: vertical; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl { position: absolute; inset: 0; background: #c9ced6; border-radius: 22px; cursor: pointer; transition: .2s; }
.switch .sl::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .sl { background: var(--primary); }
.switch input:checked + .sl::before { transform: translateX(18px); }
.switch-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #f2f4f7; }
.switch-line .t { flex: 1; }
.switch-line .t b { font-size: 13.5px; font-weight: 600; }
.switch-line .t .d { font-size: 12px; color: #98a2b3; }

/* 后台登录 */
.adm-login-bg { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(130deg, #101828, #1d2b3a 60%, #234086); }
.adm-login { width: 420px; background: #fff; border-radius: 14px; padding: 34px 34px 26px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.adm-login h3 { font-size: 20px; margin-bottom: 4px; }
.adm-login .sub { color: #8a94a6; font-size: 13px; margin-bottom: 22px; }
.acct-list .acct { display: flex; align-items: center; gap: 12px; border: 1px solid #eef0f4; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; transition: all .15s; }
.acct-list .acct:hover { border-color: var(--primary); background: var(--primary-soft); }
.acct-list .avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.acct-list .t b { display: block; font-size: 14px; }
.acct-list .t span { font-size: 12px; color: #8a94a6; }
.acct-list .go { margin-left: auto; color: var(--primary); font-size: 18px; }

/* 代理树 */
.agent-node { border: 1px solid #eef0f4; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.agent-node .hd { display: flex; align-items: center; gap: 12px; }
.agent-node .avatar { width: 38px; height: 38px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.agent-node .hd .t b { font-size: 14px; display: block; }
.agent-node .hd .t span { font-size: 12px; color: #8a94a6; }
.agent-node .hd .acts { margin-left: auto; display: flex; gap: 8px; }
.agent-children { margin: 12px 0 0 50px; }
.agents-note { background: var(--primary-soft); color: var(--primary); border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }

/* ---------- 响应式（简单适配） ---------- */
@media (max-width: 1080px) {
  .cols-4, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-links { grid-template-columns: repeat(3, 1fr); }
  .pd-layout { grid-template-columns: 1fr; }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-left { display: none; }
}
@media (max-width: 720px) {
  .cols-3, .cols-2, .cols-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 30px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .mat-grid { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
}
