/* 趣盈利管理端 —— 无构建链，纯静态 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f5f6fa; --card: #fff; --line: #e4e7ef;
  --ink: #1f2533; --ink2: #6b7280; --ink3: #9ca3af;
  --ok: #16a34a; --ok-bg: #f0fdf4;
  --bad: #dc2626; --bad-bg: #fef2f2;
  --warn: #d97706; --warn-bg: #fffbeb;

  /* 皮肤系统（对齐原型四套）：--acc 系品牌色，--side 系侧栏，--brand 系旧别名 */
  --acc: #1F5FD6; --acc2: #5B92F5; --accbg: #ECF2FE; --accdk: #1A4EB4;
  --accgrad: linear-gradient(135deg,#1F5FD6,#5B92F5);
  --side: #FFFFFF; --sidebd: #E6EAF2;
  --sidecard: #F2F5FA; --sidesel: #FFFFFF; --sideselbd: #E2E7F0; --sideselink: #131A2E;
  --sidetxt: #5A6273; --sidehover: #F4F7FC; --sideon: #EAF1FE; --sideonink: #17439F;
  --sidegrp: #8D95A6; --sideline: #E6EAF2; --sidesub: #7E879A;
  --sidefoot: #969EAD; --sidetip: #8D95A6;
  --brand: var(--acc); --brand-bg: var(--accbg);
}
html[data-skin="indigo"]{
  --acc:#2B54D8; --acc2:#7593FF; --accbg:#EDF1FE; --accdk:#2244B8; --accon:#2C4894;
  --accgrad:linear-gradient(135deg,#2B54D8,#6C8CFF);
  --side:#0C1425; --sidebd:transparent; --sidecard:#161F38; --sidesel:#202B4A; --sideselbd:#2F3C63;
  --sideselink:#E4E9F5; --sidetxt:#A5B0C8; --sidehover:#131C31; --sideon:#1A2643; --sideonink:#fff;
  --sidegrp:#566279; --sideline:#18213A; --sidesub:#64708A;
  --sidefoot:#48536E; --sidetip:#7484A2;
}
html[data-skin="jade"]{
  --acc:#0E9488; --acc2:#39C6B6; --accbg:#E7F6F4; --accdk:#0B7A70; --accon:#186A62;
  --accgrad:linear-gradient(135deg,#0E9488,#3FC9B4);
  --side:#0D211E; --sidebd:transparent; --sidecard:#14312C; --sidesel:#1C3D37; --sideselbd:#2A554E;
  --sideselink:#E2F0ED; --sidetxt:#A3BBB6; --sidehover:#122925; --sideon:#173430; --sideonink:#fff;
  --sidegrp:#557069; --sideline:#16302B; --sidesub:#647F79;
  --sidefoot:#4A635E; --sidetip:#75908A;
}
html[data-skin="crimson"]{
  --acc:#F5394B; --acc2:#FF7A62; --accbg:#FFF0F1; --accdk:#E02D3E; --accon:#A34A52;
  --accgrad:linear-gradient(135deg,#F5394B,#FF8A5B);
  --side:#131A2E; --sidebd:transparent; --sidecard:#1C2540; --sidesel:#252F4D; --sideselbd:#323D5E;
  --sideselink:#E5E9F2; --sidetxt:#A9B2C6; --sidehover:#1A2338; --sideon:#202B45; --sideonink:#fff;
  --sidegrp:#5C6680; --sideline:#1E2740; --sidesub:#6B7488;
  --sidefoot:#4E5871; --sidetip:#7C8AA8;
}
body { font: 14px/1.6 "PingFang SC","Microsoft YaHei",system-ui,sans-serif; background: var(--bg); color: var(--ink); }

/* ---- 布局 ---- */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 208px; background: var(--side); border-right: 1px solid var(--sidebd);
           color: var(--sidetxt); padding: 18px 0 12px; flex-shrink: 0; overflow-y: auto; max-height: 100vh; }
.sidebar .logo { font-size: 16px; font-weight: 700; color: var(--sideselink, #131A2E); padding: 0 20px 16px; }
.sidebar .logo small { display:block; font-weight: 400; font-size: 11px; color: var(--sidesub); }
.sidebar nav a { display: block; padding: 9px 20px; color: var(--sidetxt); text-decoration: none; font-size: 13.5px;
                 border-left: 3px solid transparent; }
.sidebar nav a:hover { background: var(--sidehover); color: var(--sideselink, inherit); }
.sidebar nav a.on { background: var(--sideon); color: var(--sideonink); border-left-color: var(--acc); font-weight: 600; }
.navgrp { margin-top: 6px; }
.navgrp > .ghead { display: flex; align-items: center; justify-content: space-between;
                   padding: 7px 20px 5px; font-size: 11.5px; letter-spacing: .06em;
                   color: var(--sidegrp); cursor: pointer; user-select: none; }
.navgrp > .ghead:hover { color: var(--sideselink, var(--acc)); }
.navgrp > .ghead .arr { font-size: 10px; transition: transform .15s; }
.navgrp.closed .arr { transform: rotate(-90deg); }
.navgrp .gsub { display: block; }
.navgrp.closed .gsub { display: none; }
.navgrp.closed > .ghead { border-bottom: 1px solid var(--sideline); padding-bottom: 7px; }
/* 常用菜单：菜单项右侧收藏星标 */
.navgrp .gsub a .favstar { float: right; margin-left: 6px; opacity: .3; cursor: pointer; font-size: 12px; }
.navgrp .gsub a .favstar:hover { opacity: 1; }
.navgrp .gsub a .favstar.on { opacity: .95; color: #f5a623; }
.navgrp > .ghead .cnt { font-size: 10px; background: rgba(0,0,0,.08); border-radius: 8px; padding: 0 6px; margin-left: 6px; }
.skindots { display: inline-flex; gap: 5px; align-items: center; }
.skindots i { width: 14px; height: 14px; border-radius: 50%; cursor: pointer; display: inline-block;
              border: 2px solid transparent; }
.skindots i.on { border-color: var(--ink); }
.main { flex: 1; padding: 22px 26px; max-width: 1200px; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.topbar h1 { font-size: 20px; }
.topbar .who { color: var(--ink2); font-size: 13px; }
.spacer { flex: 1; }

/* ---- 组件 ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.card h2 { font-size: 15px; margin-bottom: 12px; }
.card h2 small { color: var(--ink3); font-weight: 400; margin-left: 8px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.stat { background: var(--brand-bg); border-radius: 10px; padding: 14px 16px; }
.stat .k { color: var(--ink2); font-size: 12px; }
.stat .v { font-size: 22px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat .s { color: var(--ink3); font-size: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; white-space: nowrap; }
th { color: var(--ink2); font-weight: 500; background: #fafbfc; }
td.wrap { white-space: normal; }
tbody tr:hover { background: #fafbff; }
.chip { display: inline-block; padding: 1px 9px; border-radius: 20px; font-size: 12px; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.mute { background: #f3f4f6; color: var(--ink2); }
button { font: inherit; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
button:hover { border-color: var(--brand); color: var(--brand); }
button.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
button.pri:hover { background: #2447d6; color: #fff; }
button.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
button.mini { padding: 2px 10px; font-size: 12px; border-radius: 6px; }
input, select, textarea { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); }
textarea { width: 100%; min-height: 90px; resize: vertical; }
label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 13px; }
.form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.form .fld { display: flex; flex-direction: column; gap: 4px; }
.form .fld > span { font-size: 12px; color: var(--ink2); }
.hint { color: var(--ink3); font-size: 12px; }
.banner { border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.bad { background: var(--bad-bg); color: var(--bad); }
.banner.ok { background: var(--ok-bg); color: var(--ok); }
.empty { color: var(--ink3); text-align: center; padding: 24px; }

/* ---- 登录 ---- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login { width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 30px; }
.login h1 { font-size: 20px; margin-bottom: 4px; }
.login .sub { color: var(--ink2); font-size: 13px; margin-bottom: 20px; }
.login .fld { margin-bottom: 12px; }
.login input, .login button { width: 100%; padding: 10px 12px; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tabs button { flex: 1; }
.tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.codeline { display: flex; gap: 8px; }
.codeline input { flex: 1; }

/* ---- 选商户 ---- */
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; cursor: pointer; transition: all .15s; }
.tcard:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(47,84,235,.12); transform: translateY(-2px); }
.tcard .n { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.tcard .m { color: var(--ink2); font-size: 13px; }

/* ---- toast ---- */
.toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%) translateY(-80px); background: #1f2533; color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 14px; z-index: 99; transition: transform .25s; max-width: 70vw; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--bad); }
.mono { font-family: Consolas, monospace; }

/* ---- 提示条（GEO 页红线 / 流程说明） ---- */
.note { border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 8px;
        padding: 10px 14px; font-size: 12.5px; color: var(--ink2); line-height: 1.9; margin-bottom: 14px; }
.note.r { border-left-color: var(--bad); }
.note b { color: var(--ink); }

/* ---- 法务 + 客服 五页 ---- */
.note.warn { border-left-color: var(--warn); }
.note.ok { border-left-color: var(--ok); }
.note.bad { border-left-color: var(--bad); }
.tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 9px;
       background: var(--soft, #f1f3f9); color: var(--ink2); vertical-align: middle; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.row { display: flex; gap: 10px; margin-bottom: 12px; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink2); margin-bottom: 10px; }
.fld input, .fld select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.fld textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; font-family: inherit; width: 100%; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .cols2 { grid-template-columns: 1fr; } }
/* 窄屏：侧栏置顶收窄（可滚动、最多 45vh），内容区独立在下方 */
@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; max-height: 45vh; border-right: none; border-bottom: 1px solid var(--sidebd); padding-top: 10px; }
  .main { max-width: none; padding: 14px; }
}
.pickrow { padding: 9px 12px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.pickrow:hover { background: var(--soft, #f1f3f9); }
.pickrow.on { background: var(--brand-bg); border-color: var(--brand); }
.pickrow b { display: block; font-size: 12.5px; color: var(--ink); line-height: 1.7; }
.pickrow span { display: block; font-size: 11px; color: var(--ink3); margin-top: 3px; }
.verdict { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.7; margin-bottom: 10px; }
.basis { background: var(--soft, #f1f3f9); border-left: 3px solid var(--brand); padding: 9px 12px;
         border-radius: 0 6px 6px 0; font-size: 12px; line-height: 1.8; color: var(--ink2); margin-bottom: 10px; }
.steps > div { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 12px; line-height: 1.75; color: var(--ink2); counter-increment: st; }
.steps { counter-reset: st; }
.steps > div:before { content: counter(st); position: absolute; left: 0; top: 1px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--brand-bg); color: var(--brand); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.clrow { padding: 7px 9px; border-radius: 6px; font-size: 12px; line-height: 1.9; color: var(--ink2); }
.clrow b { color: var(--ink); }
.clrow.hi { background: var(--bad-bg); box-shadow: inset 3px 0 0 var(--bad); }
.clrow .mono { color: var(--ink); font-weight: 600; margin-right: 5px; }
.finding { border-left: 3px solid var(--line); padding: 9px 0 9px 12px; margin-bottom: 10px; }
.finding .t { font-size: 12.5px; margin-bottom: 5px; }
.finding .w { font-size: 12px; line-height: 1.8; color: var(--ink2); }
.finding .fix { font-size: 12px; line-height: 1.8; color: var(--ok); margin-top: 5px; }
.chat-body { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.chat-msg { max-width: 78%; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.7; }
.chat-msg.u { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 3px; }
.chat-msg.a { align-self: flex-start; background: var(--brand-bg); color: var(--ink); border-bottom-left-radius: 3px; }
.chat-msg.h { align-self: flex-start; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.chat-sys { align-self: center; font-size: 11px; color: var(--ink3); background: var(--soft, #f1f3f9); padding: 3px 10px; border-radius: 9px; }
.cite { margin-top: 6px; font-size: 11px; color: var(--ink3); }
.tk { margin-top: 4px; font-size: 10.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }

/* ---- 授权中心：主体切换条 / 接入策略 seg ---- */
.azown { display: flex; gap: 8px; flex-wrap: wrap; }
.az-tab { display: inline-block; padding: 7px 16px; border-radius: 9px; font-size: 12.5px;
          background: var(--soft, #f1f3f9); color: var(--ink2); cursor: pointer; border: 1px solid transparent; }
.az-tab:hover { border-color: var(--brand); }
.az-tab.on { background: var(--brand); color: #fff; font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg > span { padding: 7px 14px; font-size: 12px; cursor: pointer; color: var(--ink2); background: var(--card); }
.seg > span + span { border-left: 1px solid var(--line); }
.seg > span.on { background: var(--brand); color: #fff; font-weight: 600; }

/* ============ PPT 视频 · 形象选择卡片（fix19） ============ */
.pv-av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.pv-av { position: relative; border: 2px solid var(--line); border-radius: 12px; padding: 10px;
  text-align: center; cursor: pointer; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.pv-av:hover { border-color: var(--brand); box-shadow: 0 3px 10px rgba(55,138,221,.15); }
.pv-av.sel { border-color: var(--brand); background: var(--brand-bg); }
.pv-av-t { width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: #fff; }
.pv-av-ph { font-size: 26px; font-weight: 700; }
.pv-av-n { font-size: 13px; font-weight: 600; color: var(--ink); }
.pv-av-s { font-size: 11px; color: var(--ink2); margin-top: 2px; }
.pv-av-c { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }

/* ============ 数字分身 · 形象库缩略图（fix19） ============ */
.av-cell { display: flex; align-items: center; gap: 8px; }
.av-thumb { width: 40px; height: 40px; flex: none; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-bg); color: var(--brand); font-size: 15px; font-weight: 700; }
