/* 银发局：白底、亮黄绿、深色字、黑色按钮。黄绿只做底色、高亮和按钮，不拿来写字
   动效一套语言：出现和移动用 --ease（快进慢停），来回切换用 --ease-io；--t1 按下、悬停，--t2 出现、切换，--t3 弹窗、页面
   系统打开「减少动态效果」时只留很短的淡入淡出 */
:root {
  --bg: #F5F6F1; --surface: #FFFFFF; --surface-2: #F0F2EA; --line: #E4E7DC; --line-2: #CFD4C4;
  --ink: #15170F; --ink-2: #4A4F42; --ink-3: #767C6B;
  --lime: #C8F03C; --lime-2: #B4E01F; --lime-soft: #F0FAD2; --lime-ink: #3B5C00;
  --btn: #15170F; --btn-ink: #FFFFFF; --btn-hover: #2A2D22;
  --good: #23803A; --good-bg: #E6F5E9; --warn: #A86A00; --warn-bg: #FDF2DE; --bad: #C9302C; --bad-bg: #FCEBEA; --info: #2A62C9; --info-bg: #E9F0FC;
  --dy: #15170F; --sph: #F08A00; --xhs: #FF2442;
  --r: 18px; --r-sm: 12px; --r-xs: 8px;
  --shadow: 0 1px 2px rgba(21, 23, 15, .04), 0 6px 20px rgba(21, 23, 15, .05);
  --shadow-up: 0 10px 40px rgba(21, 23, 15, .16);
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-io: cubic-bezier(.4, 0, .2, 1);
  --t1: 120ms; --t2: 200ms; --t3: 300ms;
  --side: 232px; --tab-h: 62px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0F0A; --surface: #161910; --surface-2: #1D2116; --line: #2A2F22; --line-2: #3A4030;
    --ink: #EEF1E6; --ink-2: #B9BFAC; --ink-3: #8C9280;
    --lime-soft: #222E0A; --lime-ink: #D3F26A;
    --btn: #C8F03C; --btn-ink: #15170F; --btn-hover: #D6F65E;
    --good: #5CC774; --good-bg: #16301C; --warn: #E7A93D; --warn-bg: #33270F; --bad: #F0706B; --bad-bg: #3A1716; --info: #7AA6F5; --info-bg: #162440;
    --dy: #EEF1E6; --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-up: 0 10px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0F0A; --surface: #161910; --surface-2: #1D2116; --line: #2A2F22; --line-2: #3A4030;
  --ink: #EEF1E6; --ink-2: #B9BFAC; --ink-3: #8C9280; --lime-soft: #222E0A; --lime-ink: #D3F26A;
  --btn: #C8F03C; --btn-ink: #15170F; --btn-hover: #D6F65E;
  --good: #5CC774; --good-bg: #16301C; --warn: #E7A93D; --warn-bg: #33270F; --bad: #F0706B; --bad-bg: #3A1716; --info: #7AA6F5; --info-bg: #162440;
  --dy: #EEF1E6; --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-up: 0 10px 40px rgba(0, 0, 0, .5); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.noscroll { overflow: hidden; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
p { margin: 0 0 10px; }
img { max-width: 100%; }
.num, .tbl td.r { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.pos { color: var(--good); } .neg { color: var(--bad); }
:focus-visible { outline: 2px solid var(--lime-2); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* —— 外框：桌面左边导航，手机底部标签栏 —— */
.shell { min-height: 100vh; }
.side { display: none; }
.main { padding: 0 16px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); max-width: 1120px; margin: 0 auto; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 0; margin: 0 -16px 8px; padding-inline: 16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.top h1 { font-size: 20px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .back { margin-left: -6px; }
.top-act { display: flex; gap: 8px; align-items: center; }
.tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--line); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--ink-3); text-decoration: none; position: relative; -webkit-tap-highlight-color: transparent; }
.tabs a svg { width: 23px; height: 23px; transition: transform var(--t1) var(--ease); }
.tabs a:active svg { transform: scale(.9); }
.tabs a.on { color: var(--ink); font-weight: 600; }
.tabs a.on::before { content: ''; position: absolute; top: 6px; width: 40px; height: 30px; border-radius: 15px; background: var(--lime); z-index: -1; animation: pillIn var(--t2) var(--ease); }
@keyframes pillIn { from { transform: scaleX(.6); opacity: 0; } }
.badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; line-height: 17px; font-weight: 700; text-align: center; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: .02em; text-decoration: none; }
.logo i { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--lime); color: #15170F; font-style: normal; font-size: 16px; }
@media (min-width: 900px) {
  .side { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--side); padding: 22px 14px; background: var(--surface); border-right: 1px solid var(--line); z-index: 25; }
  .side .logo { padding: 0 10px 22px; }
  .side nav { display: flex; flex-direction: column; gap: 2px; }
  .side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; text-decoration: none; color: var(--ink-2); font-size: 14.5px; position: relative; transition: background var(--t1) var(--ease), color var(--t1) var(--ease); }
  .side nav a svg { width: 19px; height: 19px; flex: none; }
  .side nav a:hover { background: var(--surface-2); color: var(--ink); }
  .side nav a.on { background: var(--lime); color: #15170F; font-weight: 600; }
  .side nav a .badge { position: static; margin-left: auto; }
  .side .who { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); font-size: 13px; }
  .side .who b { display: block; font-size: 14px; }
  .tabs { display: none; }
  .shell .main { margin-left: var(--side); padding: 0 32px 48px; max-width: calc(1120px + 64px); }
  .top { margin: 0 -32px 12px; padding: 18px 32px 14px; min-height: 72px; }
  .top h1 { font-size: 24px; }
  .fab { display: none !important; }
}
/* 页面进场：只有换页才动，同一页刷新数据不动 */
.view.enter { animation: viewIn var(--t3) var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }

/* —— 卡片、面板 —— */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card + .card, .card + .sec, .sec + .card { margin-top: 14px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h h2, .card-h h3 { flex: 1; min-width: 0; }
a.card { display: block; text-decoration: none; transition: transform var(--t1) var(--ease), box-shadow var(--t2) var(--ease), border-color var(--t2) var(--ease); }
a.card:hover { border-color: var(--line-2); }
a.card:active { transform: scale(.99); }
.sec { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 26px 2px 10px; }
.sec h2 { font-size: 17px; flex: 1 0 auto; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: 1fr; } .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); } .g6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .g4 { grid-template-columns: repeat(4, 1fr); } .g6 { grid-template-columns: repeat(6, 1fr); } }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.split { display: grid; gap: 14px; }
@media (min-width: 1000px) { .split { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* 大数字 */
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; display: block; min-width: 0; }
.kpi .l { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font-size: 28px; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delta { font-weight: 600; } .delta.up { color: var(--good); } .delta.down { color: var(--bad); }
.hero { display: block; text-decoration: none; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); padding: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
a.hero { transition: transform var(--t1) var(--ease), border-color var(--t2) var(--ease); } a.hero:hover { border-color: var(--line-2); } a.hero:active { transform: scale(.99); }
.hero > * { position: relative; z-index: 1; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--lime); opacity: .28; pointer-events: none; }
.hero .t { font-size: 13px; color: var(--ink-3); }
.hero h2 { font-size: 19px; margin: 4px 0 10px; position: relative; z-index: 1; }
.hero .big { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hero .big small { font-size: 15px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.plats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.plat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.douyin { background: var(--dy); } .dot.channels { background: var(--sph); } .dot.xhs { background: var(--xhs); }
.pcard .row { margin-bottom: 6px; }
.pcard .v { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.spark { display: block; width: 100%; height: 40px; margin-top: 8px; overflow: visible; }
.spark path.a { fill: color-mix(in srgb, var(--lime) 35%, transparent); stroke: none; }
.spark path.l { fill: none; stroke: var(--lime-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
[data-theme="dark"] .spark path.l { stroke: var(--lime); }

/* 复盘三格 */
.rev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rev > div { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px; min-width: 0; }
.rev .a { font-size: 12.5px; color: var(--ink-3); }
.rev .v { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.3; }
.rev .c { font-size: 12.5px; margin-top: 2px; }
.rev .na { color: var(--ink-3); font-size: 14px; padding: 6px 0; }

/* 提示卡片（按规则写的数据分析和待办） */
.ins { display: flex; flex-direction: column; gap: 8px; }
.in { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-size: 14px; text-decoration: none; transition: border-color var(--t1) var(--ease), transform var(--t1) var(--ease); }
a.in:active { transform: scale(.99); }
a.in:hover { border-color: var(--line-2); }
.in::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--ink-3); }
.in.todo { background: var(--lime-soft); border-color: transparent; } .in.todo::before { background: var(--lime-ink); }
.in.good::before { background: var(--good); } .in.warn::before { background: var(--warn); } .in.info::before { background: var(--info); }
.in-btn { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.in-btn::after { content: '›'; margin-left: auto; color: var(--ink-3); font-size: 18px; line-height: 1.2; }
a.in::after { content: '›'; margin-left: auto; color: var(--ink-3); font-size: 18px; line-height: 1.2; }

/* —— 按钮 —— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--btn); color: var(--btn-ink);
  font: 600 15px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background var(--t1) var(--ease), transform var(--t1) var(--ease), opacity var(--t2) var(--ease); }
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn.lime { background: var(--lime); color: #15170F; } .btn.lime:hover { background: var(--lime-2); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); } .btn.ghost:hover { background: var(--surface-2); }
.btn.quiet { background: transparent; color: var(--ink-2); } .btn.quiet:hover { background: var(--surface-2); }
.btn.danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 35%, transparent); } .btn.danger:hover { background: var(--bad-bg); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.lg { min-height: 52px; font-size: 16px; border-radius: 14px; }
.btn .spin { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 11px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background var(--t1) var(--ease), transform var(--t1) var(--ease); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); } .icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; }
.link { background: none; border: 0; padding: 0; color: var(--ink-2); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link:hover { color: var(--ink); } .link.danger { color: var(--bad); }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.fab { position: fixed; z-index: 29; right: 18px; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--lime); color: #15170F;
  box-shadow: 0 6px 22px rgba(80, 110, 0, .35); display: grid; place-items: center; cursor: pointer; transition: transform var(--t1) var(--ease); }
.fab:active { transform: scale(.92); } .fab svg { width: 26px; height: 26px; }

/* —— 分段选择（滑块跟着走） —— */
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button, .seg a { position: relative; z-index: 1; flex: none; border: 0; background: none; padding: 7px 14px; border-radius: 9px; font: 500 14px/1.2 var(--font); color: var(--ink-2); cursor: pointer; text-decoration: none; white-space: nowrap; transition: color var(--t2) var(--ease); }
.seg .on { color: var(--ink); font-weight: 600; }
.seg .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; border-radius: 9px; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); transition: transform var(--t2) var(--ease), width var(--t2) var(--ease); }
.seg .cnt { margin-left: 4px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.seg.block { display: flex; } .seg.block button, .seg.block a { flex: 1; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; margin-bottom: 12px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 13px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; text-decoration: none; color: var(--ink-2); cursor: pointer; transition: background var(--t1) var(--ease), border-color var(--t1) var(--ease), color var(--t1) var(--ease); }
.chip:hover { border-color: var(--line-2); } .chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.toggle { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 14px; user-select: none; transition: background var(--t1) var(--ease), border-color var(--t1) var(--ease); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle:has(input:checked) { background: var(--lime-soft); border-color: var(--lime-2); font-weight: 600; }
.toggle:has(input:focus-visible) { outline: 2px solid var(--lime-2); outline-offset: 2px; }

/* —— 表单 —— */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-l { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field-h { font-size: 12.5px; color: var(--ink-3); }
input, textarea, select { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font: 16px/1.4 var(--font);
  transition: border-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease); -webkit-appearance: none; appearance: none; }
textarea { resize: vertical; min-height: 88px; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 45%, transparent); }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; border-radius: 5px; accent-color: var(--ink); -webkit-appearance: auto; appearance: auto; flex: none; }
.chk { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.chk input { margin-top: 2px; }
.r2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; } .r3 { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .r3 { grid-template-columns: 1fr 1fr; } }
.nums input { font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 600; }
.prefilled { background: var(--lime-soft); border-color: var(--lime-2); }
.err { color: var(--bad); font-size: 13.5px; min-height: 0; }
.err:empty { display: none; }

/* —— 列表、表格 —— */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.item { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); text-decoration: none; position: relative; transition: background var(--t1) var(--ease); }
.item:first-child { border-top: 0; }
a.item:hover, .item.click:hover { background: var(--surface-2); cursor: pointer; }
.item .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .m { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; flex: none; }
.item .v small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.item.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 30% { background: var(--lime-soft); } }
.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r, .tbl th.r { text-align: right; }
.tbl.nums td, .tbl.nums th { white-space: nowrap; }
.tbl tr.click { cursor: pointer; transition: background var(--t1) var(--ease); } .tbl tr.click:hover { background: var(--surface-2); }
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.bar .tr { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.bar .tr i { display: block; height: 100%; border-radius: 5px; background: var(--lime-2); transform-origin: left; animation: grow var(--t3) var(--ease) both; }
.bar .tr i.douyin { background: var(--dy); } .bar .tr i.channels { background: var(--sph); } .bar .tr i.xhs { background: var(--xhs); }
@keyframes grow { from { transform: scaleX(0); } }
.bar b { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 3em; text-align: right; }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.funnel > div { background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; text-align: left; min-width: 0; }
.funnel > div:first-child { background: var(--lime); color: #15170F; }
.funnel .v { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.funnel .l { font-size: 12.5px; opacity: .75; }
.funnel .p { font-size: 12px; opacity: .75; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; transition: background var(--t2) var(--ease), color var(--t2) var(--ease); }
.pill.good { background: var(--good-bg); color: var(--good); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); } .pill.lime { background: var(--lime); color: #15170F; } .pill.mute { color: var(--ink-3); }
.banner { padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--ink); font-size: 14px; margin-bottom: 12px; }
.banner.lime { background: var(--lime-soft); }
.banner b { font-weight: 650; }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-3); }
.empty .e-t { font-size: 17px; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }
.issues { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.issues li { padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); }
.issues li.block { background: var(--bad-bg); } .issues li.tip { background: var(--info-bg); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs a { display: block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.copybox { display: flex; gap: 8px; align-items: stretch; }
.copybox code { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; word-break: break-all; }
details > summary { cursor: pointer; list-style: none; color: var(--ink-2); font-size: 14px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: '›'; display: inline-block; margin-right: 6px; transition: transform var(--t2) var(--ease); }
details[open] > summary::before { transform: rotate(90deg); }
.step { display: flex; gap: 10px; align-items: flex-start; }
.step i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 13px/24px var(--font); text-align: center; font-style: normal; }
.shot-pick { display: grid; place-items: center; gap: 6px; padding: 22px; border: 2px dashed var(--line-2); border-radius: var(--r); background: var(--surface); cursor: pointer; text-align: center; transition: border-color var(--t1) var(--ease), background var(--t1) var(--ease); }
.shot-pick:hover { border-color: var(--ink-3); } .shot-pick b { font-size: 16px; } .shot-pick input { display: none; }
.shot-pick svg { width: 34px; height: 34px; color: var(--ink-2); }
.card, .hero, .sec { scroll-margin-top: 84px; }
.card.enter { animation: viewIn var(--t3) var(--ease); }
.shot-prev { display: flex; gap: 12px; align-items: flex-start; }
.shot-prev img { width: 92px; border-radius: 10px; border: 1px solid var(--line); }

/* 换页时旧页面先留着，超过 150ms 还没好才在顶上走一条细线，快的请求什么都不闪 */
.progress { position: fixed; z-index: 90; top: 0; left: 0; right: 0; height: 2px; pointer-events: none; opacity: 0; transition: opacity var(--t2) var(--ease); }
.progress i { display: block; height: 100%; width: 100%; background: var(--lime-2); transform-origin: left; transform: scaleX(0); }
.progress.on { opacity: 1; transition-delay: 150ms; } .progress.on i { transform: scaleX(.8); transition: transform 2.4s var(--ease) 150ms; }
.progress.done i { transform: scaleX(1); transition: transform var(--t2) var(--ease); }
/* 加载：先等 150ms，快的请求不闪一下 */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 0; color: var(--ink-3); font-size: 14px; animation: fadeIn var(--t2) var(--ease) 150ms both; }
.loading span { width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--ink-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes fadeIn { from { opacity: 0; } }

/* —— 弹窗：桌面居中，手机从底部升起；关的时候原路退回 —— */
.modal-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(13, 15, 10, .38); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn var(--t2) var(--ease); }
.modal { width: 100%; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-up); animation: sheetUp var(--t3) var(--ease); overscroll-behavior: contain; }
.modal::before { content: ''; display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 10px; }
.modal-head { touch-action: none; }   /* 手机上按住标题往下拖能关 */
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; position: sticky; top: -8px; background: var(--surface); padding: 6px 0; z-index: 1; }
.modal-head h2 { flex: 1; font-size: 18px; }
.modal-wrap.out { animation: fadeOut var(--t2) var(--ease-io) forwards; }
.modal-wrap.out .modal { animation: sheetDown var(--t2) var(--ease-io) forwards; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fadeOut { to { opacity: 0; } }
@media (min-width: 640px) {
  .modal-wrap { align-items: center; padding: 24px; }
  .modal { max-width: 520px; border-radius: 20px; padding: 18px 22px 22px; animation: popIn var(--t3) var(--ease); }
  .modal.wide { max-width: 820px; }
  .modal::before { display: none; }
  .modal-wrap.out .modal { animation: popOut var(--t2) var(--ease-io) forwards; }
  @keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
  @keyframes popOut { to { opacity: 0; transform: translateY(6px) scale(.98); } }
}
/* 确认框：盖在弹窗上面，居中，不顶掉正在填的东西 */
.confirm-wrap { z-index: 70; align-items: center; padding: 24px; }
.modal.confirm { max-width: 380px; border-radius: 20px; padding: 20px 20px 16px; animation: popIn var(--t3) var(--ease); }
.modal.confirm::before { display: none; }
.modal.confirm h2 { font-size: 17px; margin-bottom: 8px; } .modal.confirm p { color: var(--ink-2); font-size: 14.5px; }
.modal.confirm .btns { justify-content: flex-end; }
.confirm-wrap.out .modal.confirm { animation: popOut var(--t2) var(--ease-io) forwards; }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes popOut { to { opacity: 0; transform: translateY(6px) scale(.98); } }
/* 按下去就有反应：请求没回来之前变暗、不能再点；150ms 内回来的看不出来 */
.is-busy { pointer-events: none; cursor: progress; animation: busyDim 0s 150ms forwards; }
@keyframes busyDim { to { opacity: .55; } }
/* 系统替人改了一个值（比如从链接认出了平台）：那个框亮一下 */
.nudge { animation: nudge 900ms var(--ease); }
@keyframes nudge { 0%, 40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 70%, transparent); border-color: var(--lime-2); } }
.menu { display: flex; flex-direction: column; gap: 4px; }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border: 0; border-radius: 12px; background: none; font: 500 16px/1.3 var(--font); color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; transition: background var(--t1) var(--ease); }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu svg { width: 22px; height: 22px; flex: none; color: var(--ink-2); }
.menu small { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 400; }

/* 提示条：从下面升起，自己退场 */
#toasts { position: fixed; z-index: 80; left: 0; right: 0; bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
@media (min-width: 900px) { #toasts { bottom: 28px; left: var(--side); } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 520px; padding: 11px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 14.5px; box-shadow: var(--shadow-up); animation: toastIn var(--t3) var(--ease); }
.toast.bad { background: var(--bad); color: #fff; }
.toast button { border: 0; background: none; color: var(--lime); font: 700 14px/1 var(--font); cursor: pointer; padding: 4px 0; }
.toast.out { animation: toastOut var(--t2) var(--ease-io) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* —— 登录、加入这类单页 —— */
.solo { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.solo .box { width: 100%; max-width: 400px; }
.solo .logo { font-size: 24px; margin-bottom: 22px; } .solo .logo i { width: 38px; height: 38px; font-size: 20px; border-radius: 11px; }
.solo h1 { font-size: 24px; margin-bottom: 6px; }
.solo .lead { color: var(--ink-3); margin-bottom: 20px; }
.solo .foot { margin-top: 18px; font-size: 13px; color: var(--ink-3); text-align: center; }
.hello { margin: 4px 2px 14px; } .hello h2 { font-size: 22px; } .hello p { color: var(--ink-3); margin: 2px 0 0; font-size: 13.5px; }

/* 爆款工作台 */
.vw-b { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.vw-b.own { border-color: var(--lime-2); }
.vw-b p { margin: 4px 0; font-size: 14px; }
.shot { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; background: var(--surface); }
.shot + .shot { margin-top: 10px; }
.excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; color: var(--ink-2); }

/* ===== 第二期 ===== */
/* 今天：一张卡一件事 */
.top .aa[aria-pressed="true"] { background: var(--lime); color: #15170F; }
.tasks { display: flex; flex-direction: column; gap: 12px; }
.task { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); text-decoration: none; }
.task-shoot { background: var(--lime-soft); border-color: transparent; }
.task-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.task-k { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--lime-ink); }
.task-k svg { width: 18px; height: 18px; }
.task h2 { font-size: 21px; margin: 2px 0 8px; }
.task p { margin: 0 0 6px; }
.hook { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.task .btn.block { margin-top: 12px; }
.t-peek { display: block; text-align: center; margin-top: 10px; }
.done-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-weight: 650; color: var(--good); }
.done-line svg { width: 22px; height: 22px; flex: none; }
.task-small { display: flex; align-items: center; gap: 12px; padding: 14px 16px; transition: border-color var(--t1) var(--ease), transform var(--t1) var(--ease); }
.task-small:active { transform: scale(.99); } .task-small:hover { border-color: var(--line-2); }
.task-small b { display: block; } .task-small .muted { display: block; font-size: 13.5px; }
.task-small .go { font-size: 22px; color: var(--ink-3); }
.more-line { display: block; text-align: center; font-size: 14px; padding: 2px 0; }
.chip-s { margin-left: auto; font-size: 12.5px; padding: 2px 9px; border-radius: 99px; background: var(--surface); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.mo-text { white-space: pre-wrap; font-size: 16px; line-height: 1.7; margin: 4px 0 10px; }
mark.fill, .mo-text mark { background: var(--warn-bg); color: var(--warn); border-radius: 4px; padding: 0 2px; }
/* 拍这条：一步一步 */
.stepcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-top: 14px; box-shadow: var(--shadow); }
.st-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.st-h i { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 15px/28px var(--font); text-align: center; font-style: normal; flex: none; }
.st-h h3 { font-size: 18px; }
.shots-big { list-style: none; counter-reset: s; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shots-big li { counter-increment: s; position: relative; padding: 12px 14px 12px 46px; border-radius: var(--r-sm); background: var(--surface-2); }
.shots-big li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: #15170F; font: 700 13px/22px var(--font); text-align: center; }
.sb-v, .sb-s { font-size: 16px; } .sb-s { margin-top: 4px; font-weight: 600; }
.sb-v .muted, .sb-s .muted { margin-right: 8px; font-size: 13.5px; font-weight: 400; }
.sec-s { margin-left: 8px; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.sb-r { margin-top: 6px; font-size: 13px; color: var(--warn); }
.script-big { font-size: 20px; line-height: 1.85; font-weight: 500; padding: 16px; border-radius: var(--r-sm); background: var(--surface-2); }
.script-big.sm { font-size: 16px; }
.big-btns .btn { flex: 1 1 0; min-width: 0; }
.big-btns .btn svg, .btn svg { width: 20px; height: 20px; flex: none; }
.big-btns .btn.on { background: var(--lime); color: #15170F; box-shadow: none; }
.copyrow { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.copyrow:first-of-type { border-top: 0; padding-top: 0; }
.cr-h { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.copyrow p { margin: 4px 0 0; font-size: 15px; }
/* 提词器：整屏大字，自己往上走 */
.prompter { position: fixed; inset: 0; z-index: 100; background: #0B0C08; color: #F4F6EE; display: flex; flex-direction: column; animation: fadeIn var(--t2) var(--ease); }
.prompter.out { animation: fadeOut var(--t2) var(--ease-io) forwards; }
.p-bar { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
.p-x { display: inline-flex; align-items: center; gap: 6px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font: 600 16px/1 var(--font); padding: 11px 14px; border-radius: 12px; cursor: pointer; }
.p-x svg { width: 20px; height: 20px; }
.p-speed { display: flex; background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 3px; }
.p-speed button, .p-size { border: 0; background: none; color: #DDE2D2; font: 600 16px/1 var(--font); padding: 9px 13px; border-radius: 9px; cursor: pointer; transition: background var(--t1) var(--ease), color var(--t1) var(--ease); }
.p-speed button.on { background: #C8F03C; color: #15170F; }
.p-size { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 12px 13px; }
.p-scroll { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 0 22px; -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 72%, transparent); }
.p-scroll::-webkit-scrollbar { display: none; }
.p-pad { height: 38vh; }
.p-text { max-width: 760px; margin: 0 auto; }
.p-text p { font-size: 34px; line-height: 1.6; font-weight: 650; margin: 0 0 .6em; letter-spacing: .02em; }
.prompter[data-size="1"] .p-text p { font-size: 42px; } .prompter[data-size="2"] .p-text p { font-size: 52px; }
.p-text mark { background: #4D4210; color: #FFE58A; border-radius: 6px; padding: 0 4px; }
.p-hint { text-align: center; padding: 10px 0 calc(14px + env(safe-area-inset-bottom)); color: #9AA08E; font-size: 14px; transition: opacity var(--t2) var(--ease); }
.prompter.running .p-hint { opacity: 0; }
.p-count { position: absolute; inset: 0; display: grid; place-items: center; font: 800 120px/1 var(--font); color: #C8F03C; pointer-events: none; background: rgba(0, 0, 0, .35); }
/* 看大图：长按存到手机 */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(6, 7, 4, .94); display: flex; align-items: center; justify-content: center; animation: fadeIn var(--t2) var(--ease); }
.lightbox.out { animation: fadeOut var(--t2) var(--ease-io) forwards; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; animation: popIn var(--t3) var(--ease); }
.lb-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-x svg { width: 22px; height: 22px; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); color: #DDE2D2; font-size: 14px; }
.lb-bar button { border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb-tip { color: #B9BFAC; }
.lb-bar .btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
/* 一组图 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.gallery.g-big { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery.g-big { grid-template-columns: repeat(4, 1fr); } }
.g-it { position: relative; display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; cursor: zoom-in; }
.g-it img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t1) var(--ease); }
.g-it:active img { transform: scale(.97); }
.g-vid { aspect-ratio: auto; cursor: default; display: flex; flex-direction: column; }
.g-vid video { width: 100%; aspect-ratio: 9 / 16; max-height: 320px; background: #000; object-fit: contain; display: block; }
.g-dl { display: block; text-align: center; padding: 7px; font-size: 13px; }
/* 排期：一周七天 */
.weeknav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.week { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) and (max-width: 999px) { .week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; } }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.day.today { border-color: var(--lime-2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lime) 45%, transparent); }
.day.past { background: var(--surface-2); }
.day-h { display: flex; align-items: center; gap: 6px; font-size: 13.5px; } .day-h span { color: var(--ink-3); }
.cal-it { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; text-align: left; width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 9px; font: inherit; font-size: 13.5px; line-height: 1.45; color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color var(--t1) var(--ease), transform var(--t1) var(--ease); }
.cal-it:hover { border-color: var(--line-2); } .cal-it:active { transform: scale(.98); }
.cal-it.draft { border-style: dashed; border-color: var(--line-2); }
.cal-it .k { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--lime); color: #15170F; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
button.cal-it .k { background: var(--info-bg); color: var(--info); }
.cal-it .tt { flex: 1; min-width: 0; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-it .m, .cal-it .r { flex-basis: 100%; font-size: 12px; color: var(--ink-3); }
.cal-it .r { color: var(--good); }
.cal-it .dr { color: var(--warn); font-weight: 650; }
.cal-add { border: 1px dashed var(--line-2); background: none; border-radius: 10px; padding: 7px; font: inherit; font-size: 13px; color: var(--ink-3); text-align: center; text-decoration: none; cursor: pointer; transition: color var(--t1) var(--ease), border-color var(--t1) var(--ease); }
.cal-add:hover { color: var(--ink); border-color: var(--ink-3); }
.picks { display: flex; gap: 8px; flex-wrap: wrap; }
.pick { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color var(--t1) var(--ease); }
.pick.on { border-color: var(--lime-2); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick i { position: absolute; top: 4px; right: 4px; min-width: 20px; height: 20px; border-radius: 10px; background: rgba(0, 0, 0, .35); color: #fff; font: 700 12px/20px var(--font); text-align: center; font-style: normal; transition: background var(--t1) var(--ease); }
.pick.on i { background: var(--lime); color: #15170F; }
.pick:has(input:focus-visible) { outline: 2px solid var(--lime-2); outline-offset: 2px; }
.ver { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; margin-top: 10px; }
.ver p { margin: 8px 0 0; white-space: pre-wrap; }
/* 产品库 */
.search { display: flex; gap: 8px; margin-bottom: 12px; } .search input { flex: 1; min-width: 0; }
.pcard2 { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-decoration: none; box-shadow: var(--shadow); transition: border-color var(--t1) var(--ease), transform var(--t1) var(--ease); }
.pcard2:hover { border-color: var(--line-2); } .pcard2:active { transform: scale(.99); }
.pcard2 img, .pcard2 .noimg { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); }
.pcard2 .noimg { display: grid; place-items: center; color: var(--ink-3); } .pcard2 .noimg svg { width: 32px; height: 32px; }
.pcard2 .t { font-weight: 700; font-size: 16px; } .pcard2 .m { font-size: 13px; color: var(--ink-3); }
.tg { font-size: 14px; color: var(--ink-2); margin: 2px 0 0; }
.phero { padding: 0; overflow: hidden; }
.ph-cover { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; background: var(--surface-2); }
.ph-cover img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.ph-body { padding: 16px 18px 18px; }
.actions3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px 8px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; transition: background var(--t1) var(--ease), transform var(--t1) var(--ease); }
.act:hover { background: var(--surface-2); } .act:active { transform: scale(.97); }
.act svg { width: 26px; height: 26px; color: var(--lime-ink); } .act b { font-size: 14.5px; } .act span { font-size: 12px; color: var(--ink-3); }
@media (max-width: 380px) { .act span { display: none; } }
.donts { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bad-bg); } .donts b { color: var(--bad); } .donts p { margin: 6px 0 0; }
.psecs { padding: 6px 18px; } .psec { padding: 12px 0; border-top: 1px solid var(--line); } .psec:first-child { border-top: 0; }
.psec h3 { font-size: 15px; } .psec p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.75; }
details.faq { padding: 13px 16px; border-top: 1px solid var(--line); } details.faq:first-child { border-top: 0; }
details.faq summary { font-weight: 600; color: var(--ink); font-size: 15.5px; } details.faq p { margin: 8px 0 10px; color: var(--ink-2); }
.answer { padding: 14px; border-radius: var(--r-sm); background: var(--lime-soft); animation: viewIn var(--t3) var(--ease); } .answer.miss { background: var(--surface-2); }
.mgr { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; } .mg { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; font-size: 13px; } .mg img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }

/* ===== 大字模式：给退休的推荐官 ===== */
:root.big { --tab-h: 76px; --ink-3: var(--ink-2); }
html.big body { font-size: 18px; line-height: 1.7; }
html.big h1 { font-size: 30px; } html.big h2 { font-size: 23px; } html.big h3 { font-size: 19px; }
html.big .small { font-size: 15.5px; } html.big .tiny { font-size: 14px; }
html.big .top h1 { font-size: 23px; }
html.big .btn { min-height: 52px; font-size: 18px; padding: 0 22px; border-radius: 14px; }
html.big .btn.sm { min-height: 44px; font-size: 16px; padding: 0 15px; }
html.big .btn.lg { min-height: 60px; font-size: 20px; }
html.big .icon-btn { width: 46px; height: 46px; } html.big .icon-btn svg { width: 24px; height: 24px; }
html.big input, html.big textarea, html.big select { min-height: 54px; font-size: 19px; }
html.big input[type=checkbox] { width: 24px; height: 24px; min-height: 0; }
html.big .chk { font-size: 17px; }
html.big .field-l { font-size: 16.5px; } html.big .field-h { font-size: 14.5px; }
html.big .tabs a { font-size: 14px; } html.big .tabs a svg { width: 27px; height: 27px; }
html.big .tabs a.on::before { width: 50px; height: 34px; top: 8px; border-radius: 17px; }
html.big .badge { font-size: 12.5px; min-width: 20px; height: 20px; line-height: 20px; border-radius: 10px; }
html.big .item { padding: 16px; } html.big .item .t { font-size: 18px; } html.big .item .m { font-size: 15.5px; white-space: normal; }
html.big .pill { font-size: 14.5px; padding: 3px 10px; }
html.big .seg button, html.big .seg a { font-size: 16.5px; padding: 10px 16px; }
html.big .chip { font-size: 16px; padding: 8px 15px; }
html.big .kpi .l { font-size: 15px; } html.big .kpi .v { font-size: 32px; } html.big .kpi .s { font-size: 14px; }
html.big .g4, html.big .g6 { grid-template-columns: repeat(2, 1fr); }
html.big .rev .a, html.big .rev .c { font-size: 14.5px; } html.big .rev .v { font-size: 26px; }
html.big .funnel .v { font-size: 26px; } html.big .funnel .l, html.big .funnel .p { font-size: 15px; }
html.big .in { font-size: 16.5px; padding: 14px 16px; }
html.big .toast { font-size: 17px; padding: 14px 18px; }
html.big .modal-head h2 { font-size: 21px; } html.big .menu a, html.big .menu button { font-size: 18px; padding: 15px 12px; } html.big .menu small { font-size: 14.5px; }
html.big .issues { font-size: 15.5px; } html.big .banner { font-size: 16px; }
html.big .fab { width: 64px; height: 64px; border-radius: 20px; } html.big .fab svg { width: 30px; height: 30px; }
html.big .hello h2 { font-size: 26px; } html.big .hello p { font-size: 16px; }
html.big .task h2 { font-size: 24px; } html.big .task-k { font-size: 15.5px; } html.big .task-k svg { width: 21px; height: 21px; } html.big .hook { font-size: 18px; }
html.big .task-small .muted { font-size: 15.5px; } html.big .more-line { font-size: 16px; } html.big .chip-s { font-size: 14px; }
html.big .mo-text { font-size: 18.5px; }
html.big .st-h h3 { font-size: 21px; } html.big .st-h i { width: 32px; height: 32px; line-height: 32px; font-size: 17px; }
html.big .sb-v, html.big .sb-s { font-size: 18.5px; } html.big .sb-v .muted, html.big .sb-s .muted { font-size: 15px; } html.big .sb-r { font-size: 15px; }
html.big .shots-big li { padding-left: 52px; } html.big .shots-big li::before { width: 26px; height: 26px; line-height: 26px; font-size: 15px; }
html.big .script-big { font-size: 24px; line-height: 1.9; } html.big .script-big.sm { font-size: 19px; }
html.big .big-btns { display: grid; grid-template-columns: 1fr 1fr; } html.big .big-btns .btn:first-child { grid-column: 1 / -1; }
html.big .copyrow p { font-size: 17px; } html.big .cr-h { font-size: 15px; }
html.big .pcard2 .t { font-size: 19px; } html.big .pcard2 .m { font-size: 15px; } html.big .tg { font-size: 16.5px; }
html.big .actions3 { grid-template-columns: 1fr; } html.big .act { flex-direction: row; justify-content: flex-start; gap: 12px; text-align: left; padding: 16px; }
html.big .act b { font-size: 18px; } html.big .act span { display: inline; font-size: 15px; margin-left: auto; }
html.big .psec h3 { font-size: 18px; } html.big .psec p { font-size: 18px; } html.big details.faq summary { font-size: 18px; } html.big details.faq p { font-size: 17px; }
html.big .gallery { grid-template-columns: repeat(2, 1fr); }
html.big .lb-tip { font-size: 16px; }
html.big .adv { display: none; }   /* 次要的（各平台走势线）收起来 */
@media (max-width: 420px) { html.big .r2 { grid-template-columns: 1fr; } }

/* —— 第三期：成交团队、朋友圈一天五条、去 AI 味、营销角度、海报 —— */
.issues li.ai { background: var(--surface-2); }
.ai-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 11.5px; font-weight: 700; line-height: 18px; vertical-align: 1px; }
.ai-dot { color: var(--ink-2); font-weight: 650; }
.cal-it .k-mo { background: var(--surface-2); color: var(--ink-2); }
.chip .cnt { margin-left: 5px; font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .r3 { grid-template-columns: 1fr; } }
.r2-wrap { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
/* 朋友圈五条：一行一条，「现在该发」的展开；展开、收起只动高度和透明度 */
.mo-prog { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mo-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mo-it { border-radius: 12px; background: var(--surface); border: 1px solid transparent; transition: border-color var(--t2) var(--ease); }
.mo-it.open { border-color: var(--line); }
.mo-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; border-radius: 12px; }
.mo-row:active { transform: scale(.99); }
.mo-at { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; width: 42px; flex: none; }
.mo-row b { flex: none; font-weight: 650; }
.mo-peek { flex: 1; min-width: 0; color: var(--ink-3); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-it.open .mo-peek { visibility: hidden; }
.mo-ok { flex: none; width: 22px; height: 22px; border-radius: 11px; background: var(--good); color: #fff; display: grid; place-items: center; } .mo-ok svg { width: 14px; height: 14px; }
.mo-it.done .mo-row b, .mo-it.done .mo-at { color: var(--ink-3); }
.mo-body { max-height: 0; overflow: hidden; opacity: 0; padding: 0 12px; transition: max-height var(--t2) var(--ease-io), opacity var(--t1) var(--ease-io); }
.mo-it.open .mo-body { max-height: 1600px; opacity: 1; padding: 0 12px 12px; transition: max-height var(--t3) var(--ease), opacity var(--t2) var(--ease); }
.note-in { display: flex; gap: 8px; margin-top: 10px; } .note-in input { flex: 1; min-width: 0; }
/* 推荐官看到的进展 */
.news { list-style: none; margin: 0; padding: 0; } .news li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); } .news li:first-child { border-top: 0; }
.news a { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; } .news .muted { flex: none; }
.news li.signed a { color: var(--good); font-weight: 650; } .news li.signed b { color: var(--ink); }
.item .fl { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 2px; }
/* 跟进记录 */
.evs { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.ev { position: relative; padding: 0 0 16px 14px; } .ev::before { content: ''; position: absolute; left: -23px; top: 6px; width: 12px; height: 12px; border-radius: 6px; background: var(--surface); border: 2px solid var(--line-2); }
.ev-status::before, .ev-assign::before { background: var(--lime); border-color: var(--lime-2); } .ev-dup::before { background: var(--bad); border-color: var(--bad); } .ev-host::before { background: var(--info); border-color: var(--info); }
.ev-h { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; font-size: 13.5px; } .ev-h b { font-weight: 650; }
.ev p { margin: 4px 0 0; white-space: pre-wrap; }
.qr-thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); flex: none; } .qr-thumb.empty { display: grid; place-items: center; font-size: 12px; color: var(--ink-3); background: var(--surface-2); }
.card.team .chips { margin-bottom: 0; flex-wrap: wrap; } .card.team .chip b { margin-left: 4px; font-variant-numeric: tabular-nums; }
/* 营销角度：按认知阶段分组 */
.stage { margin-bottom: 14px; } .stage-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: 0 2px 8px; } .stage-h b { font-size: 15px; }
.angle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; margin-bottom: 8px; } .angle.is-draft { border-style: dashed; }
.ag-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .ag-h b { font-size: 15.5px; } .ag-h .muted { font-size: 13.5px; }
.ag-line { margin: 8px 0 6px; font-size: 17px; font-weight: 650; line-height: 1.5; }
.ag-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
/* 海报 */
.poster-maker { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .poster-maker { grid-template-columns: minmax(300px, 420px) 1fr; align-items: start; } .pm-preview { position: sticky; top: 76px; } }
.pm-preview canvas { width: 100%; height: auto; display: block; border-radius: var(--r-sm); box-shadow: var(--shadow); background: var(--surface-2); }
@media (max-width: 899px) { .pm-preview { max-width: 360px; margin: 0 auto; width: 100%; } }
.pick.is-poster { border-color: var(--ink); } .pick.is-poster.on { border-color: var(--lime-2); }
.poster-out { display: block; width: 100%; max-width: 360px; margin: 0 auto; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.poster-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pg-it { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.pg-img { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; aspect-ratio: 3 / 4; } .pg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-m { display: flex; align-items: center; gap: 4px; padding: 6px 8px; }
html.big .mo-row { padding: 14px; } html.big .mo-row b { font-size: 18px; } html.big .mo-at { font-size: 15px; width: 50px; } html.big .mo-peek { font-size: 15.5px; }
html.big .ag-line { font-size: 19px; } html.big .ev p { font-size: 17px; } html.big .news li { font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .loading { animation: none; }
}
