/* ==========================================================================
   视觉系统:苹果式的中性底色 + 毛玻璃悬浮层
   - 底色是中性浅灰(深色模式是纯黑),卡片是实心的白 / 深灰,干净不发灰
   - 毛玻璃只用在浮在内容上面的东西:顶部导航、手机标签栏、弹窗、抽屉、提示
   - <html data-theme="light|dark"> 切换;颜色和材质全是变量,改风格只动这一段
   - 图表色 --s1..--s6 已用色盲与对比度校验,顺序固定,不要打乱
   ========================================================================== */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", Roboto, sans-serif;
  --font-d: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", Roboto, sans-serif;
  --page: 1680px; --gap: 18px; --r: 14px; --r-m: 12px; --r-s: 10px;
  --ease: cubic-bezier(.22, .8, .24, 1); --spring: cubic-bezier(.32, 1.36, .52, 1);

  color-scheme: light;
  --bg: #f5f5f7;
  --card: #fff;
  --card-shadow: 0 0 0 1px rgba(0, 0, 0, .035), 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -20px rgba(0, 0, 0, .16);
  --card-hover: 0 0 0 1px rgba(0, 0, 0, .045), 0 2px 4px rgba(0, 0, 0, .04), 0 24px 46px -22px rgba(0, 0, 0, .26);
  --surface: #fff; --edge: rgba(245, 245, 247, .85);
  --primary: #2463eb; --primary-bg: rgba(36, 99, 235, .09); --accent: var(--primary);
  --bar: rgba(245, 245, 247, .78); --th: rgba(118, 118, 128, .06); --side: 232px;

  --ink: #1d1d1f; --ink-2: #48484a; --ink-3: #6e6e73; --ink-4: #aeaeb2;
  --hair: rgba(0, 0, 0, .07); --hair-2: rgba(0, 0, 0, .12);
  --fill: rgba(118, 118, 128, .07); --fill-2: rgba(118, 118, 128, .12); --fill-3: rgba(118, 118, 128, .2);
  --control: #fff; --control-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .04);

  --frost: rgba(255, 255, 255, .72);
  --sheet: rgba(250, 250, 252, .88);
  --blur: saturate(180%) blur(24px); --blur-heavy: saturate(180%) blur(40px);
  --rim: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .45) 40%, rgba(255, 255, 255, .25) 70%, rgba(255, 255, 255, .75));
  --frost-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 10px 30px -12px rgba(0, 0, 0, .18);
  --sheen: transparent;
  --seg-track: rgba(118, 118, 128, .12);
  --seg-on: #fff; --seg-on-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 3px 10px -2px rgba(0, 0, 0, .14);
  --nav-on: #1d1d1f; --nav-on-ink: #fff;
  --mask: rgba(0, 0, 0, .22);
  --mark: linear-gradient(160deg, #48484a, #1d1d1f); --mark-ink: #fff;

  --btn: rgba(118, 118, 128, .12); --btn-hover: rgba(118, 118, 128, .2);
  --btn-p: var(--primary); --btn-p-ink: #fff;
  --focus: var(--primary); --focus-ring: rgba(36, 99, 235, .18);

  /* 状态:永远和文字、圆点一起出现,不单靠颜色 */
  --pos: #248a3d; --pos-bg: rgba(52, 199, 89, .14);
  --warn: #b25000; --warn-bg: rgba(255, 149, 0, .14);
  --info: #0062cc; --info-bg: rgba(0, 122, 255, .1);
  --neg: #d70015; --neg-bg: rgba(255, 59, 48, .1);

  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #6250d6; --s0: rgba(60, 60, 67, .22);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000;
  --card: #1c1c1e;
  --card-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
  --card-hover: 0 0 0 1px rgba(255, 255, 255, .1), 0 22px 44px -24px rgba(0, 0, 0, .9);
  --surface: #1c1c1e; --edge: rgba(0, 0, 0, .82);
  --primary: #4b8bf5; --primary-bg: rgba(75, 139, 245, .18);
  --bar: rgba(0, 0, 0, .72); --th: rgba(118, 118, 128, .14);
  --ink: #f5f5f7; --ink-2: rgba(235, 235, 245, .76); --ink-3: rgba(235, 235, 245, .58); --ink-4: rgba(235, 235, 245, .3);
  --hair: rgba(255, 255, 255, .08); --hair-2: rgba(255, 255, 255, .14);
  --fill: rgba(118, 118, 128, .14); --fill-2: rgba(118, 118, 128, .22); --fill-3: rgba(118, 118, 128, .32);
  --control: #1c1c1e; --control-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
  --frost: rgba(30, 30, 32, .7);
  --sheet: rgba(38, 38, 40, .88);
  --rim: linear-gradient(145deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, .02) 70%, rgba(255, 255, 255, .14));
  --frost-shadow: 0 0 0 .5px rgba(255, 255, 255, .12), 0 12px 34px -12px rgba(0, 0, 0, .8);
  --sheen: rgba(255, 255, 255, .05);
  --seg-track: rgba(118, 118, 128, .24);
  --seg-on: #636366; --seg-on-shadow: 0 2px 8px -2px rgba(0, 0, 0, .5);
  --nav-on: #f5f5f7; --nav-on-ink: #000;
  --mask: rgba(0, 0, 0, .5);
  --mark: linear-gradient(160deg, #fafafa, #c7c7cc); --mark-ink: #000;
  --btn: rgba(118, 118, 128, .24); --btn-hover: rgba(118, 118, 128, .34);
  --btn-p: var(--primary); --btn-p-ink: #fff;
  --focus: var(--primary); --focus-ring: rgba(75, 139, 245, .3);
  --pos: #30d158; --pos-bg: rgba(48, 209, 88, .16);
  --warn: #ffb340; --warn-bg: rgba(255, 159, 10, .16);
  --info: #64a8ff; --info-bg: rgba(10, 132, 255, .2);
  --neg: #ff6961; --neg-bg: rgba(255, 69, 58, .18);
  --s1: #4b93ec; --s2: #e46a33; --s3: #22ad7c; --s4: #c98500; --s5: #de5f90; --s6: #9085e9; --s0: rgba(235, 235, 245, .3);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); scrollbar-gutter: stable; }
html, body { margin: 0; min-height: 100%; }
body { font: 400 15px/1.55 var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body.locked { overflow: hidden; }
#app { position: relative; min-height: 100vh; }
a { color: inherit; text-decoration: none; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: rgba(0, 113, 227, .2); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--fill-3); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
svg.ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-3); } .soft { color: var(--ink-2); }
.t-pos { color: var(--pos); } .t-warn { color: var(--warn); } .t-neg { color: var(--neg); } .t-info { color: var(--info); }
.small { font-size: 13px; } .bold { font-weight: 600; } .nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- 材质 ---------- */
/* 卡片:实心、干净 */
.panel { position: relative; background: var(--card); border-radius: var(--r); box-shadow: var(--card-shadow); }
/* 毛玻璃:只给浮在内容上面的东西用(导航、标签栏、弹窗、抽屉、提示) */
.frost { position: relative; background: var(--frost); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: var(--r); box-shadow: var(--frost-shadow); }
/* 玻璃边缘的高光 */
.frost::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.lit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(560px circle at var(--mx, 50%) var(--my, -30%), var(--sheen), transparent 42%); opacity: 0; transition: opacity .5s var(--ease); }
.lit:hover::after { opacity: 1; }
/* 带一点状态色的卡片:颜色只在右下角淡淡一层 */
.tint-warn { background: linear-gradient(150deg, transparent 42%, rgba(255, 149, 0, .11)), var(--card); }
.tint-info { background: linear-gradient(150deg, transparent 42%, rgba(0, 122, 255, .09)), var(--card); }
.tint-pos { background: linear-gradient(150deg, transparent 42%, rgba(52, 199, 89, .1)), var(--card); }
.tint-neg { background: linear-gradient(150deg, transparent 42%, rgba(255, 59, 48, .1)), var(--card); }
/* 钛金黑卡:工作台最重要的那一块,浅色模式下也是深色 */
.dark-card {
  --ink: #fff; --ink-2: rgba(255, 255, 255, .76); --ink-3: rgba(255, 255, 255, .54); --ink-4: rgba(255, 255, 255, .3);
  --hair: rgba(255, 255, 255, .09); --hair-2: rgba(255, 255, 255, .16);
  --fill: rgba(255, 255, 255, .06); --fill-2: rgba(255, 255, 255, .1); --fill-3: rgba(255, 255, 255, .16);
  --seg-track: rgba(255, 255, 255, .1); --seg-on: rgba(255, 255, 255, .24); --seg-on-shadow: 0 2px 8px -2px rgba(0, 0, 0, .5);
  --sheet: rgba(44, 44, 48, .92); --surface: #222225; --btn: rgba(255, 255, 255, .12); --btn-hover: rgba(255, 255, 255, .2);
  --s0: rgba(255, 255, 255, .3); --s1: #4b93ec; --s2: #e46a33; --s3: #22ad7c; --sheen: rgba(255, 255, 255, .07);
  color: var(--ink);
  background: radial-gradient(130% 150% at 0% 0%, #3c3c41 0%, #222225 42%, #131315 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .55);
}
[data-theme="dark"] .dark-card { background: radial-gradient(130% 150% at 0% 0%, #46464c 0%, #2a2a2e 45%, #1c1c1e 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .12); }

/* ---------- 外壳:左侧菜单 + 顶部栏 ---------- */
.sidebar { position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: var(--side); display: flex; flex-direction: column; padding: 18px 12px 12px; background: var(--card); box-shadow: 1px 0 0 var(--hair); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 2px 8px 18px; }
.brand-t { min-width: 0; line-height: 1.25; }
.brand-t b { display: block; font-size: 15.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-t small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.mark { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; color: var(--mark-ink); font: 700 17px/1 var(--font-d); background: var(--mark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 14px -8px rgba(0, 0, 0, .5); }
.menu { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 2px; }
.menu::-webkit-scrollbar { display: none; }
.menu-g { padding: 16px 12px 6px; font-size: 12px; font-weight: 600; color: var(--ink-4); }
.menu a { display: flex; align-items: center; gap: 12px; height: 40px; flex-shrink: 0; padding: 0 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; user-select: none; }
.menu a svg.ic { width: 19px; height: 19px; color: var(--ink-3); transition: color .15s; }
.menu a:hover { background: var(--fill); color: var(--ink); }
.menu a.on { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.menu a.on svg.ic { color: var(--primary); }
.side-user { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 8px 2px; box-shadow: inset 0 1px 0 var(--hair); cursor: pointer; }
.side-user b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user small { display: block; font-size: 12px; color: var(--ink-3); }
.side-user svg.ic { width: 16px; height: 16px; color: var(--ink-4); }
.side-user:hover svg.ic { color: var(--ink-2); }
.main { margin-left: var(--side); min-width: 0; }
/* 顶部栏是毛玻璃:内容滚到下面会透出模糊的影子 */
.topbar { position: sticky; top: 0; z-index: 40; height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 32px; background: var(--bar); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 1px 0 var(--hair); }
.m-brand { display: none; width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
.crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.crumbs svg.ic { width: 14px; height: 14px; color: var(--ink-4); }
.tools { display: flex; align-items: center; gap: 4px; }
.round { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); background: transparent; transition: background .15s, color .15s; }
.round:hover { background: var(--fill-2); color: var(--ink); }
.round svg.ic { width: 20px; height: 20px; }
.round .badge { position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b30; color: #fff; font: 700 11px/18px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.avatar { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; color: #fff; font-weight: 650; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); text-shadow: 0 1px 1px rgba(0, 0, 0, .15); }

/* 手机底部标签栏:胶囊 + 会滑动的"液滴"(iOS 的做法) */
.capsule { position: relative; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 99px; flex-shrink: 0; }
.capsule a { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 99px; font-size: 14px; font-weight: 550; color: var(--ink-2); white-space: nowrap; transition: color .25s; user-select: none; }
.capsule .ind { position: absolute; z-index: 0; top: 5px; left: 0; height: 42px; border-radius: 99px; background: var(--fill-2); transition: transform .55s var(--spring), width .55s var(--spring); }
.tabbar { display: none; }

/* 弹出层(通知、我的) */
.pop { position: absolute; top: calc(100% - 2px); right: 40px; z-index: 45; width: 390px; max-width: calc(100vw - 24px); max-height: min(74vh, 660px); overflow-y: auto; border-radius: 28px; background: var(--sheet); -webkit-backdrop-filter: var(--blur-heavy); backdrop-filter: var(--blur-heavy); transform-origin: top right; animation: pop .45s var(--spring); }
.pop-h { display: flex; align-items: center; gap: 10px; padding: 20px 22px 10px; }
.pop-h b { flex: 1; font-size: 17px; font-weight: 650; }
.pop-h a { font-size: 13px; color: var(--ink-3); } .pop-h a:hover { color: var(--ink); }
.note-i { display: flex; gap: 12px; padding: 13px 22px; cursor: pointer; transition: background .15s; }
.note-i:hover { background: var(--fill); }
.note-i .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; flex-shrink: 0; background: transparent; }
.note-i.unread .dot { background: #0a84ff; box-shadow: 0 0 10px #0a84ff; }
.note-i .t { font-weight: 600; font-size: 14.5px; }
.note-i .b { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.note-i .w { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.me-card { display: flex; align-items: center; gap: 14px; padding: 22px 22px 16px; }
.me-card b { display: block; font-size: 17px; font-weight: 650; } .me-card small { color: var(--ink-3); font-size: 13px; }
.pop-sec { padding: 6px 22px 16px; }
.pop-sec > .lbl { margin-bottom: 10px; }
.pop-a { display: flex; align-items: center; gap: 12px; padding: 13px 22px; cursor: pointer; font-weight: 550; box-shadow: inset 0 1px 0 var(--hair); }
.pop-a:hover { background: var(--fill); }
.pop-a svg.ic { color: var(--ink-3); }

/* 外观选择 */
.walls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wall-opt { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; cursor: pointer; overflow: hidden; box-shadow: 0 0 0 1px var(--hair-2); transition: transform .4s var(--spring), box-shadow .2s; }
.wall-opt:hover { transform: translateY(-2px); }
.wall-opt.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.wall-opt span { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 11.5px; font-weight: 650; }
.wall-opt i { position: absolute; left: 12%; right: 12%; height: 14%; border-radius: 4px; }
.wall-opt i:nth-of-type(1) { top: 16%; } .wall-opt i:nth-of-type(2) { top: 36%; right: 40%; }
.th-light { background: #f5f5f7; color: #1d1d1f; } .th-light i { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.th-dark { background: #000; color: #f5f5f7; } .th-dark i { background: #2c2c2e; }
.th-auto { background: linear-gradient(115deg, #f5f5f7 50%, #000 50%); color: #8e8e93; } .th-auto i { background: linear-gradient(115deg, #fff 50%, #2c2c2e 50%); }

/* ---------- 页面骨架 ---------- */
.mini-control { display: none; }
.page { max-width: var(--page); margin: 0 auto; padding: 24px 32px 80px; }
.head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 20px 28px; margin: 22px 6px 30px; }
.head-t { flex: 1 1 560px; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .2em; color: var(--ink-3); text-transform: uppercase; }
.head h1 { margin-top: 10px; font: 650 clamp(36px, 3.3vw, 58px)/1.06 var(--font-d); letter-spacing: -.03em; }
.lede { margin-top: 12px; max-width: 860px; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.lede b { color: var(--ink); font-weight: 600; }
.head-a { display: flex; gap: 10px; flex-wrap: wrap; }
.head .btn:not(.primary), .toolbar .btn:not(.primary), .crumb a { background-color: var(--control); box-shadow: var(--control-shadow); }
.head .btn:not(.primary):hover, .toolbar .btn:not(.primary):hover, .crumb a:hover { background-color: var(--control); filter: brightness(.97); }
.crumb { margin: 18px 6px -6px; }
.crumb a { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px 0 9px; border-radius: 99px; font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.crumb a:hover { color: var(--ink); }
.sec-title { display: flex; align-items: center; gap: 12px; margin: 34px 6px 16px; }
.sec-title h2 { font: 650 22px/1.2 var(--font-d); letter-spacing: -.015em; }

/* 便当格:12 栏 */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--gap); margin-bottom: var(--gap); }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; } .c12 { grid-column: span 12; } .r2 { grid-row: span 2; }

.tile { padding: 24px 26px; display: flex; flex-direction: column; min-width: 0; }
.tile.flush { padding: 10px 12px; }
.tile.link { cursor: pointer; transition: transform .5s var(--spring); }
.tile.link:hover { transform: translateY(-3px); box-shadow: var(--card-hover); }
.tile-h { display: flex; align-items: center; gap: 10px; min-height: 30px; margin-bottom: 18px; }
.tile.flush > .tile-h { padding: 14px 14px 0; margin-bottom: 8px; }
.tile-h h3 { font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tile-h .more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.tile-h .more:hover { color: var(--ink); }
.tile-h .more svg.ic { width: 15px; height: 15px; }
.badge-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--fill-2); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.badge-ic svg.ic { width: 17px; height: 17px; }
/* iOS 设置那样的彩色图标底 */
.b-blue, .b-indigo, .b-orange, .b-green, .b-teal, .b-red, .b-pink, .b-purple, .b-brown, .b-gray { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 10px -5px rgba(0, 0, 0, .35); }
.b-blue { background: linear-gradient(160deg, #5ac8fa, #007aff); } .b-indigo { background: linear-gradient(160deg, #8e8cf6, #5856d6); }
.b-orange { background: linear-gradient(160deg, #ffbe5c, #ff8a00); } .b-green { background: linear-gradient(160deg, #5fdc85, #28b24b); }
.b-teal { background: linear-gradient(160deg, #6bd8ec, #1ea5c8); } .b-red { background: linear-gradient(160deg, #ff7a70, #ff3b30); }
.b-pink { background: linear-gradient(160deg, #ff7aa0, #ff2d55); } .b-purple { background: linear-gradient(160deg, #d08cf5, #af52de); }
.b-brown { background: linear-gradient(160deg, #d2ad86, #a2845e); } .b-gray { background: linear-gradient(160deg, #b8b8c0, #8e8e93); }

/* 指标块 */
.kpi .k { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 550; color: var(--ink-2); }
.kpi .v { margin-top: auto; padding-top: 22px; font: 300 clamp(30px, 2.3vw, 44px)/1.05 var(--font-d); letter-spacing: -.03em; white-space: nowrap; }
.kpi .v small { font-size: .45em; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-left: 4px; }
.kpi .sub { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.kpi .sub b { color: var(--ink-2); font-weight: 600; }

/* 金额:¥ 和小数缩小,主数字用细体 */
.money { white-space: nowrap; }
.cur { font-size: .55em; font-weight: 450; opacity: .58; margin-right: .12em; letter-spacing: 0; }
.money .dec { font-size: .58em; opacity: .52; letter-spacing: 0; }
.hero-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 18px 44px; margin-bottom: 26px; }
.hero-row .spec { max-width: 640px; margin-bottom: 4px; }
.hero-n { font: 250 clamp(54px, 5vw, 96px)/.95 var(--font-d); letter-spacing: -.045em; }

/* 规格条:一排数字用细线隔开(像苹果的技术规格) */
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); row-gap: 18px; }
.spec > div { min-width: 0; padding: 2px 22px; box-shadow: inset 1px 0 0 var(--hair); }
.spec > div:first-child { box-shadow: none; padding-left: 0; }
.spec .k { font-size: 12.5px; font-weight: 550; color: var(--ink-3); white-space: nowrap; }
.spec .v { margin-top: 8px; font: 300 clamp(22px, 1.7vw, 30px)/1.1 var(--font-d); letter-spacing: -.025em; white-space: nowrap; }
.summary { padding: 22px 28px; margin-bottom: var(--gap); }

/* ---------- 列表行 ---------- */
.rows { display: flex; flex-direction: column; margin: 0 -10px; }
.ri { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 16px; cursor: pointer; transition: background .15s; min-width: 0; }
.ri + .ri::before { content: ""; position: absolute; top: 0; left: 64px; right: 10px; height: 1px; background: var(--hair); }
.ri:hover { background: var(--fill); }
.ri:hover::before, .ri:hover + .ri::before { opacity: 0; }
.ri .t { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ri .s { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.ri .end { text-align: right; flex-shrink: 0; }
.ri .end .amt { font: 500 15.5px/1.3 var(--font-d); letter-spacing: -.01em; white-space: nowrap; }
.ri .end .pill { margin-top: 5px; }
/* 日历小图标:上面月份,下面日 */
.daychip { width: 48px; height: 52px; border-radius: 14px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 rgba(255, 255, 255, .1); }
.daychip small { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #ff3b30; line-height: 1.2; }
.daychip b { font: 300 21px/1.05 var(--font-d); }
.daychip.late { background: var(--neg-bg); }
.daychip.today { background: var(--warn-bg); }
.ic-circle { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--fill-2); }
.ic-circle.income { background: var(--pos-bg); color: var(--pos); }
.ic-circle svg.ic { width: 18px; height: 18px; }
.stack { display: flex; margin-top: 14px; }
.stack .avatar { box-shadow: 0 0 0 2.5px var(--surface), inset 0 1px 0 rgba(255, 255, 255, .45); }
.stack .avatar + .avatar { margin-left: -9px; }

/* ---------- 标签 ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--fill-2); color: var(--ink-2); vertical-align: middle; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pill.plain { padding: 0 11px; } .pill.plain::before { display: none; }
.pill.pos { color: var(--pos); background: var(--pos-bg); } .pill.warn { color: var(--warn); background: var(--warn-bg); }
.pill.info { color: var(--info); background: var(--info-bg); } .pill.neg { color: var(--neg); background: var(--neg-bg); }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 9px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); background: var(--fill-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip svg.ic { width: 14px; height: 14px; }

/* ---------- 按钮 ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 19px; border: 0; border-radius: 99px; cursor: pointer; white-space: nowrap; font: 600 14.5px/1 var(--font); color: var(--ink); background-color: var(--btn); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px var(--hair); transition: transform .4s var(--spring), background-color .2s, opacity .2s, filter .2s; user-select: none; }
.btn:hover { background-color: var(--btn-hover); }
.btn:active { transform: scale(.95); }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.btn svg.ic { width: 18px; height: 18px; }
.btn.primary { background: var(--btn-p); color: var(--btn-p-ink); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn.primary:hover { filter: brightness(.94); background: var(--btn-p); }
.btn.go { background: linear-gradient(180deg, #3ccf6e, #24a650); color: #fff; box-shadow: 0 10px 24px -12px rgba(36, 166, 80, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.go:hover { filter: brightness(1.06); }
.btn.danger { color: var(--neg); }
.btn.danger-solid { background: linear-gradient(180deg, #ff6a5f, #e5392f); color: #fff; box-shadow: 0 12px 28px -12px rgba(229, 57, 47, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--fill-2); }
.btn.sm { height: 32px; padding: 0 13px; gap: 5px; font-size: 13px; } .btn.sm svg.ic { width: 15px; height: 15px; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn.icon { width: 42px; padding: 0; } .btn.sm.icon { width: 32px; }
.btn.block { width: 100%; }
.acts { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.x-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; flex-shrink: 0; display: grid; place-items: center; cursor: pointer; background: var(--fill-2); color: var(--ink-2); transition: background .15s, transform .3s var(--spring); }
.x-btn:hover { background: var(--fill-3); color: var(--ink); } .x-btn:active { transform: scale(.9); }

/* ---------- 表单 ---------- */
input, select, textarea { width: 100%; min-width: 0; height: 46px; padding: 0 15px; border: 0; border-radius: 14px; font: inherit; font-size: 15px; color: var(--ink); background-color: var(--fill); box-shadow: inset 0 0 0 1px var(--hair-2); transition: box-shadow .2s, background-color .2s; }
input:hover, select:hover, textarea:hover { background-color: var(--fill-2); }
input:focus, select:focus, textarea:focus { outline: 0; background-color: var(--fill-2); box-shadow: inset 0 0 0 1.5px var(--focus), 0 0 0 4px var(--focus-ring); }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23999cb5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
option { background: #fff; color: #1d1d1f; }
[data-theme="dark"] option { background: #2c2c2e; color: #f5f5f7; }
textarea { height: auto; min-height: 90px; padding: 12px 15px; resize: vertical; line-height: 1.55; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
[data-theme="dark"] input[type=date]::-webkit-calendar-picker-indicator { filter: invert(1); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form.one { grid-template-columns: minmax(0, 1fr); }
.form .full { grid-column: 1 / -1; }
.f { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.f > label, .lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.f .help { font-size: 12.5px; color: var(--ink-3); }
.inline2 { display: flex; gap: 10px; } .inline2 > :first-child { flex: 1; } .inline2 > :last-child { width: 96px; flex-shrink: 0; }
.form-sec { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; color: var(--ink-3); margin: 26px 2px 12px; text-transform: uppercase; }
.form-sec:first-child { margin-top: 4px; }
/* iOS 开关 */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); user-select: none; white-space: nowrap; }
.switch input { -webkit-appearance: none; appearance: none; position: relative; width: 46px; height: 28px; padding: 0; flex-shrink: 0; border-radius: 99px; cursor: pointer; background: var(--fill-3); box-shadow: inset 0 0 0 1px var(--hair); transition: background .3s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .4s var(--spring); }
.switch input:checked { background: #34c759; box-shadow: none; }
.switch input:checked::after { transform: translateX(18px); }
.switch input:focus { box-shadow: 0 0 0 4px var(--focus-ring); }
/* 大号金额输入(像 Apple Pay) */
.amount-in { display: flex; align-items: baseline; justify-content: center; gap: 4px; padding: 8px 0 4px; }
.amount-in span { font: 300 30px/1 var(--font-d); color: var(--ink-3); }
.amount-in input { width: 100%; max-width: 440px; height: 72px; padding: 0; font: 250 58px/1 var(--font-d); letter-spacing: -.035em; text-align: center; background: transparent; box-shadow: none; }
.amount-in input:hover, .amount-in input:focus { background: transparent; box-shadow: none; }
.taxline { display: flex; align-items: center; justify-content: center; gap: 8px 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); margin: 2px 0 6px; }
.taxline select { width: auto; height: 34px; border-radius: 99px; font-size: 13.5px; padding-left: 14px; }
.taxline b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* 分段控件 */
.seg { display: inline-flex; gap: 2px; padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 99px; background: var(--seg-track); }
.seg::-webkit-scrollbar { display: none; }
.seg a { flex-shrink: 0; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 17px; border-radius: 99px; font-size: 14px; font-weight: 550; color: var(--ink-2); white-space: nowrap; transition: background .3s, color .3s, box-shadow .3s; user-select: none; }
.seg a:hover { color: var(--ink); }
.seg a.on { color: var(--ink); background: var(--seg-on); box-shadow: var(--seg-on-shadow); }
.seg a .n { font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.seg.sm a { height: 28px; padding: 0 12px; font-size: 12.5px; }

/* 筛选条:放在壁纸上的控件自己带玻璃 */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: var(--gap); }
.toolbar > input, .toolbar > select, .toolbar .search input, .toolbar .range input { background-color: var(--control); box-shadow: var(--control-shadow); }
.toolbar > input, .toolbar > select { width: auto; max-width: 240px; height: 44px; border-radius: 99px; padding-left: 18px; }
.toolbar .seg { padding: 4px; }
.toolbar .range { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13px; }
.toolbar .range input { width: 156px; height: 44px; border-radius: 99px; }
.toolbar .switch { padding: 0 6px; }
.toolbar .sum { font-size: 14px; color: var(--ink-2); padding: 0 6px; }
.request-date-input { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.request-date-input input { width: auto; height: 36px; }
.toolbar .sum b { color: var(--ink); font-weight: 600; }
.search { position: relative; }
.search svg.ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { width: 240px; height: 44px; border-radius: 99px; padding-left: 42px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 99px; font-size: 14px; font-weight: 550; color: var(--ink-2); background: var(--control); box-shadow: var(--control-shadow); transition: background .2s, color .2s; }
.chips a:hover { color: var(--ink); }
.chips a.on { background: var(--btn-p); color: var(--btn-p-ink); box-shadow: none; }
.chips a .n { font-size: 12px; opacity: .6; }

.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: var(--gap); border-radius: 18px; font-size: 14px; line-height: 1.65; color: var(--ink-2); background: var(--control); box-shadow: var(--control-shadow); }
.note > svg.ic { margin-top: 2px; color: var(--accent); }
.note b { color: var(--ink); font-weight: 600; }
.dialog .note, .tile .note { background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { padding: 14px 14px 12px; font-size: 12px; font-weight: 650; letter-spacing: .04em; color: var(--ink-3); text-align: left; white-space: nowrap; background: linear-gradient(var(--hair-2), var(--hair-2)) bottom / 100% 1px no-repeat; }
.tbl td { padding: 14px; vertical-align: middle; background: linear-gradient(var(--hair), var(--hair)) bottom / 100% 1px no-repeat; transition: background-color .15s; }
.tbl tbody tr:last-child td { background-image: none; }
.tbl tbody tr:hover td { background-color: var(--fill); }
.tbl tbody tr:hover td:first-child { border-radius: 14px 0 0 14px; } .tbl tbody tr:hover td:last-child { border-radius: 0 14px 14px 0; }
.tbl tr.click { cursor: pointer; }
.tbl tfoot td { padding-top: 16px; font-weight: 650; background: linear-gradient(var(--hair-2), var(--hair-2)) top / 100% 1px no-repeat; }
.tbl tr.void td { color: var(--ink-4); }
.tbl tr.void .strike { text-decoration: line-through; }
.tbl tr.day td { padding: 24px 14px 8px; font-size: 12.5px; font-weight: 650; letter-spacing: .03em; color: var(--ink-3); background-image: none; }
.tbl tr.day:hover td { background-color: transparent; }
.tbl tr.day:first-child td { padding-top: 10px; }
.tbl tr.day .day-sum { float: right; font-weight: 550; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tbl .amt { font: 500 15.5px/1.3 var(--font-d); letter-spacing: -.01em; }
.tbl .amt.income { color: var(--pos); }
.tbl .t1 { font-weight: 600; } .tbl .t2 { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.tbl .t2 a { color: var(--ink-2); } .tbl .t2 a:hover { color: var(--ink); }
.tx { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.tx .ic-circle { width: 36px; height: 36px; }
.tree-l1 { padding-left: 46px !important; } .tree-l2 { padding-left: 80px !important; color: var(--ink-2); }
.tree-l1::before, .tree-l2::before { content: "└"; color: var(--ink-4); margin-right: 8px; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); font-size: 14px; }
.empty > svg.ic { width: 42px; height: 42px; stroke-width: 1.2; opacity: .55; margin-bottom: 12px; }
.empty b { display: block; color: var(--ink-2); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.empty .btn { margin-top: 18px; }
.loading { opacity: .55; transition: opacity .2s; }

/* ---------- 图表 ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.key i.line { width: 14px; height: 2px; border-radius: 1px; }
.chart { position: relative; user-select: none; }
.chart .plot { position: relative; margin-left: 46px; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart .gl { position: absolute; left: 0; right: 0; height: 1px; background: var(--hair); }
.chart .gl.base { background: var(--hair-2); }
.chart .yl { position: absolute; left: -46px; width: 38px; text-align: right; font-size: 11.5px; color: var(--ink-3); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.chart .xl { position: relative; height: 22px; margin: 10px 0 0 46px; font-size: 11.5px; color: var(--ink-3); }
.chart .xl span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.chart .xl span.on { color: var(--ink); font-weight: 600; }
.chart .hit { position: absolute; top: 0; bottom: 0; cursor: crosshair; }
.chart .guide { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: var(--hair-2); pointer-events: none; }
.chart .dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.chart .tip { position: absolute; top: -6px; z-index: 3; min-width: 168px; padding: 12px 14px; border-radius: 16px; pointer-events: none; font-size: 12.5px; white-space: nowrap; background: var(--sheet); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 0 0 .5px var(--hair-2), 0 16px 34px -14px rgba(0, 0, 0, .35); }
.chart .tip .tt { color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.chart .tip .tr { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.chart .tip .tr b { margin-left: auto; padding-left: 16px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); }
.chart .tip .tr span { color: var(--ink-3); }
.chart .tip .tr.sum { margin-top: 8px; padding-top: 8px; box-shadow: inset 0 1px 0 var(--hair); }
.rings { position: relative; flex-shrink: 0; }
.rings svg { display: block; transform: rotate(-90deg); overflow: visible; }
.rings circle { fill: none; stroke-linecap: round; }
.rings .arc { transition: stroke-dashoffset 1.5s var(--ease); }
.rings .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.rings .center b { display: block; font: 300 26px/1 var(--font-d); letter-spacing: -.03em; }
.rings .center small { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: .06em; }
.donut-wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.donut { position: relative; flex-shrink: 0; }
.donut svg { display: block; transform: rotate(-90deg); }
.donut circle { fill: none; transition: opacity .2s; }
.donut .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .center small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .06em; }
.donut .center b { font: 300 22px/1.15 var(--font-d); letter-spacing: -.02em; margin-top: 4px; }
.donut-legend { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.donut-legend .dl { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 0 -10px; border-radius: 12px; font-size: 13.5px; transition: background .15s; }
.donut-legend .dl:hover, .donut-legend .dl.on { background: var(--fill); }
.donut-legend .dl i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.donut-legend .dl span { flex: 1; color: var(--ink-2); }
.donut-legend .dl b { font-weight: 600; font-variant-numeric: tabular-nums; }
.donut-legend .dl em { width: 46px; text-align: right; font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 12.5px; }
/* 横条(复盘):数据端 4px 圆角,基线端方角 */
.hbars { display: flex; flex-direction: column; gap: 4px; }
.hb { display: grid; grid-template-columns: minmax(90px, 180px) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 9px 10px; margin: 0 -10px; border-radius: 12px; }
.hb:hover { background: var(--fill); }
.hb .name { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb .track { position: relative; height: 12px; border-radius: 0 4px 4px 0; }
.hb .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--s1); min-width: 3px; transition: width 1s var(--ease); }
.hb .track i.fr { background: var(--s2); top: 3px; bottom: 3px; }
.hb .val { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; min-width: 92px; }
.hb .val b { font-weight: 650; }
.hb.hot .name { color: var(--ink); font-weight: 600; }
/* 预算 vs 实际:子弹图 */
.bullet { position: relative; height: 34px; margin: 6px 0 2px; }
.bullet .bg { position: absolute; left: 0; right: 0; top: 11px; height: 12px; border-radius: 6px; background: var(--fill-2); }
.bullet .zone { position: absolute; top: 11px; height: 12px; }
.bullet .zone.warn { background: repeating-linear-gradient(135deg, rgba(255, 196, 90, .16) 0 4px, transparent 4px 8px); }
.bullet .zone.over { background: repeating-linear-gradient(135deg, rgba(255, 110, 100, .2) 0 4px, transparent 4px 8px); border-radius: 0 6px 6px 0; }
.bullet .bar { position: absolute; left: 0; top: 14px; height: 6px; border-radius: 0 3px 3px 0; transition: width 1.1s var(--ease); }
.bullet .bar.ok { background: var(--pos); } .bullet .bar.warn { background: var(--warn); } .bullet .bar.over { background: var(--neg); } .bullet .bar.nobudget { background: var(--s0); }
.bullet .mk { position: absolute; top: 4px; bottom: 4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.bullet .mk.thin { background: var(--ink-4); width: 1px; }
.bullet .mk span { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
/* 进度条 */
.meter { height: 6px; border-radius: 3px; background: var(--fill-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 0 3px 3px 0; background: var(--s3); transition: width 1.1s var(--ease); }

/* 到货时间轴 */
.otrack { --lab: 230px; }
.otrack .scale { position: relative; height: 26px; margin-left: var(--lab); }
.otrack .scale span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.otrack .scale span.today { color: var(--ink); font-weight: 650; }
.otrack .lanes { position: relative; }
.otrack .lane { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; min-height: 50px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.otrack .lane:hover { background: var(--fill); }
.otrack .lab { min-width: 0; padding: 0 16px 0 10px; }
.otrack .lab .t { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otrack .lab .s { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otrack .road { position: relative; height: 50px; }
.otrack .road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--hair); }
.otrack .span { position: absolute; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: var(--fill-3); }
.otrack .span.shipped { background: linear-gradient(90deg, transparent, rgba(10, 132, 255, .45)); }
.otrack .span.late { background: linear-gradient(90deg, transparent, rgba(255, 59, 48, .5)); }
.otrack .span.today { background: linear-gradient(90deg, transparent, rgba(255, 149, 0, .5)); }
.otrack .pin { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--s0); box-shadow: 0 0 0 3px var(--surface); }
.otrack .pin.ordered { background: #aeaeb2; } .otrack .pin.shipped { background: #0a84ff; } .otrack .pin.late { background: #ff3b30; box-shadow: 0 0 0 3px var(--surface), 0 0 12px rgba(255, 59, 48, .6); } .otrack .pin.today { background: #ff9500; box-shadow: 0 0 0 3px var(--surface), 0 0 12px rgba(255, 149, 0, .6); }
.otrack .eta { position: absolute; top: 50%; transform: translate(14px, -50%); font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.otrack .eta.left { transform: translate(calc(-100% - 14px), -50%); }
.otrack .now { position: absolute; top: -26px; bottom: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--accent); opacity: .85; pointer-events: none; box-shadow: 0 0 12px var(--accent); }
.otrack-legend { margin-left: auto; }
.otrack-legend .key i { border-radius: 50%; }

/* ---------- 卡片网格 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: var(--gap); }
.cards.sm { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; cursor: pointer; transition: transform .5s var(--spring); }
.card:hover { transform: translateY(-4px); box-shadow: var(--card-hover); }
.card.static { cursor: default; } .card.static:hover { transform: none; }
.card-h { display: flex; align-items: flex-start; gap: 12px; }
.card-h h3 { font: 600 19px/1.3 var(--font-d); letter-spacing: -.01em; }
.card-h .sub { margin-top: 4px; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-f { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 16px; margin-top: auto; box-shadow: inset 0 1px 0 var(--hair); font-size: 13px; color: var(--ink-3); }
.proj-body { display: flex; align-items: center; gap: 24px; }
.figs { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.figs .k { font-size: 12px; color: var(--ink-3); font-weight: 550; white-space: nowrap; }
.figs .v { margin-top: 4px; font: 400 19px/1.2 var(--font-d); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring-keys { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ring-keys .key { font-size: 12.5px; color: var(--ink-3); }
.ring-keys .key b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-proj { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; margin: 0 -10px; }
.mini-proj a { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 18px; transition: background .15s; min-width: 0; }
.mini-proj a:hover { background: var(--fill); }
.mini-proj .t { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-proj .s { font-size: 12px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; }

/* 项目详情头 */
.phero { padding: 34px 36px 30px; margin-bottom: var(--gap); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px 40px; align-items: center; }
.phero h1 { margin-top: 10px; font: 650 clamp(30px, 2.8vw, 48px)/1.1 var(--font-d); letter-spacing: -.025em; }
.phero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.phero .phero-a { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.phero .ring-side { display: flex; align-items: center; gap: 26px; }
.phero .ring-side .legend { flex-direction: column; gap: 12px; font-size: 13.5px; }
.phero .ring-side .key b { margin-left: 10px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.phero .spec { grid-column: 1 / -1; padding-top: 24px; box-shadow: inset 0 1px 0 var(--hair); }
.tabs-row { margin: 0 0 var(--gap); }

/* 请款单:钱包卡片 */
.passes { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: var(--gap); }
.pass { padding: 22px 24px 18px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; min-width: 0; transition: transform .5s var(--spring); }
.pass:hover { transform: translateY(-4px); box-shadow: var(--card-hover); }
.pass .top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pass .amt { font: 300 42px/1 var(--font-d); letter-spacing: -.04em; }
.pass .t { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.pass .s { margin-top: 3px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); min-width: 0; }
.pass .s svg.ic { width: 14px; height: 14px; color: var(--ink-3); }
.pass .flag { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.pass .flag.warn { background: var(--warn-bg); color: var(--warn); } .pass .flag.neg { background: var(--neg-bg); color: var(--neg); } .pass .flag.info { background: var(--info-bg); color: var(--info); }
.pass .flag svg.ic { width: 15px; height: 15px; }
.pass .meta { display: flex; align-items: center; gap: 9px; padding-top: 14px; margin-top: auto; box-shadow: inset 0 1px 0 var(--hair); font-size: 12.5px; color: var(--ink-3); min-width: 0; }

/* 请款详情 */
.rq-hero { text-align: center; padding: 4px 0 6px; }
.rq-hero .amt { margin-top: 10px; font: 250 clamp(48px, 5vw, 64px)/1 var(--font-d); letter-spacing: -.045em; }
.rq-hero .t { margin-top: 12px; font-size: 17px; font-weight: 600; }
.rq-hero .row { justify-content: center; margin-top: 14px; }
.group { border-radius: 20px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.gi { display: flex; align-items: baseline; gap: 16px; padding: 13px 18px; font-size: 14.5px; }
.gi + .gi { box-shadow: inset 0 1px 0 var(--hair); }
.gi > .gk { width: 86px; flex-shrink: 0; color: var(--ink-3); font-size: 13.5px; }
.gi > .gv { flex: 1; min-width: 0; word-break: break-all; }
.sec-t { margin: 24px 4px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; color: var(--ink-3); text-transform: uppercase; }
/* 收款账户:账户名、账号、开户行三行,每行单独复制,标题右边"全部复制" */
.sec-t.has-a { display: flex; align-items: center; gap: 12px; }
.sec-t.has-a a { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--primary); cursor: pointer; }
.sec-t.has-a a svg.ic { width: 14px; height: 14px; }
.bankrows .gi { align-items: center; gap: 12px; min-height: 46px; padding: 7px 8px 7px 16px; }
.bankrows .gi > .gk { width: 48px; }
.bankrows .gv.no { font: 600 17px/1.3 var(--font-d); letter-spacing: .03em; word-spacing: .2em; font-variant-numeric: tabular-nums; word-break: normal; overflow-wrap: anywhere; }
.bankrows .btn { flex-shrink: 0; }
@media (max-width: 760px) {
  .bankrows .gv.no { font-size: 16px; letter-spacing: .02em; word-spacing: .12em; }
  .bankrows .btn { width: 34px; padding: 0; }
}
.qrbox { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 20px 20px; border-radius: 24px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); text-align: center; }
.qrbox .files .f img { width: 248px; height: 248px; object-fit: contain; background: #fff; padding: 12px; border-radius: 20px; }
.qrbox .tip { font-size: 13px; color: var(--ink-3); }
.decide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.decide .btn { height: 54px; font-size: 15.5px; }
.mode { margin-top: 20px; padding: 20px; border-radius: 22px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); }
.mode h4 { font-size: 16px; font-weight: 650; margin-bottom: 14px; }
.mode .row { margin-top: 16px; }

/* 库存物品 */
.stock-n { font: 250 52px/1 var(--font-d); letter-spacing: -.04em; }
.stock-n small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
/* 联系人卡 */
.c-rows { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.c-rows > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.c-rows svg.ic { width: 16px; height: 16px; color: var(--ink-3); }
.c-rows a { color: var(--ink); }
/* 订单步骤 */
.steps { display: flex; align-items: center; gap: 0; }
.steps i { width: 9px; height: 9px; border-radius: 50%; background: var(--fill-3); flex-shrink: 0; }
.steps i.on { background: var(--pos); box-shadow: 0 0 8px var(--pos); }
.steps b { width: 18px; height: 2px; background: var(--fill-3); }
.steps b.on { background: var(--pos); }
.steps span { margin-left: 10px; font-size: 13px; font-weight: 600; }
/* 收款计划时间线 */
.plan { position: relative; display: flex; flex-direction: column; }
.plan-i { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 18px; padding: 18px 10px; border-radius: 18px; align-items: center; }
.plan-i:hover { background: var(--fill); }
.plan-i .node { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--hair-2); z-index: 1; }
.plan-i .node svg.ic { width: 15px; height: 15px; }
.plan-i .node.pos { background: var(--pos); color: #04241a; box-shadow: 0 0 14px rgba(80, 220, 160, .5); }
.plan-i .node.neg { background: var(--neg-bg); color: var(--neg); }
.plan-i .node.info { background: var(--info-bg); color: var(--info); }
.plan-i + .plan-i::before { content: ""; position: absolute; left: 24px; top: -18px; height: 36px; width: 2px; background: var(--hair-2); }
.plan-i .t { font-weight: 600; font-size: 15.5px; }
.plan-i .s { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.plan-i .m { margin-top: 10px; max-width: 420px; }
.plan-i .end { text-align: right; }
.plan-i .end .amt { font: 400 21px/1.2 var(--font-d); letter-spacing: -.02em; }
.plan-i .end .s b { color: var(--pos); font-weight: 600; }
/* 税金等式 */
.eq { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.eq .term .k { font-size: 13px; color: var(--ink-3); font-weight: 550; }
.eq .term .v { margin-top: 8px; font: 300 clamp(28px, 2.4vw, 42px)/1.05 var(--font-d); letter-spacing: -.03em; white-space: nowrap; }
.eq .op { font: 200 40px/1 var(--font-d); color: var(--ink-4); }
.eq .term.res .v { font-weight: 400; }
.stackbar { display: flex; height: 12px; gap: 2px; margin: 26px 0 12px; }
.stackbar i { height: 100%; min-width: 3px; }
.stackbar i:first-child { border-radius: 4px 0 0 4px; } .stackbar i:last-child { border-radius: 0 4px 4px 0; }
.tile-h.tax-sub { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hair); }
.calc-out { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-out > div { padding: 16px; border-radius: 18px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); }
.calc-out .k { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.calc-out .v { margin-top: 6px; font: 350 22px/1.1 var(--font-d); letter-spacing: -.02em; }

/* 设置 */
.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.side-menu { padding: 10px; position: sticky; top: 96px; }
.side-menu a { display: flex; align-items: center; gap: 13px; padding: 9px 12px; border-radius: 16px; font-weight: 550; font-size: 14.5px; color: var(--ink-2); transition: background .15s, color .15s; }
.side-menu a:hover { background: var(--fill); color: var(--ink); }
.side-menu a.on { background: var(--fill-2); color: var(--ink); }
.side-menu .gap { height: 8px; }
.app-ic { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -6px 12px rgba(0, 0, 0, .1), 0 4px 10px -4px rgba(0, 0, 0, .45); }
.app-ic svg.ic { width: 18px; height: 18px; stroke-width: 2; }
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 8px; padding: 8px 0 10px; }
.apps a { display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); text-align: center; }
.apps .app-ic { width: 62px; height: 62px; border-radius: 18px; transition: transform .4s var(--spring); }
.apps a:active .app-ic { transform: scale(.9); }
.apps .app-ic svg.ic { width: 28px; height: 28px; stroke-width: 1.8; }
.perm { display: flex; align-items: center; gap: 12px; padding: 12px 2px; box-shadow: inset 0 -1px 0 var(--hair); font-size: 14px; }
.perm:last-child { box-shadow: none; }
.perm span { flex: 1; }

/* 附件 */
.files { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.files .f { position: relative; border-radius: 16px; overflow: hidden; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--hair); }
.files .f img { display: block; width: 96px; height: 96px; object-fit: cover; }
.files .doc { display: flex; align-items: center; gap: 8px; height: 46px; max-width: 260px; padding: 0 38px 0 14px; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(0, 0, 0, .55); color: #fff; }
.files .x svg.ic { width: 13px; height: 13px; stroke-width: 2.2; }
.files label.btn { cursor: pointer; }
/* 拖文件进来:整块框出来,不改变布局 */
.files { border-radius: var(--r-m); transition: background .15s, outline-color .15s; outline: 2px dashed transparent; outline-offset: 6px; }
.files.drop, .fill-pick.drop { outline: 2px dashed var(--primary); background: var(--primary-bg); }
.drop-tip { font-size: 12.5px; color: var(--ink-4); }
.files.drop .drop-tip, .fill-pick.drop .drop-tip { color: var(--primary); }
@media (hover: none) { .drop-tip { display: none; } }

/* ---------- 弹窗、抽屉、提示 ---------- */
.mask { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 4vh 20px; background: var(--mask); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); animation: fade .3s var(--ease); }
.dialog { width: 640px; max-width: 100%; max-height: 92vh; display: flex; flex-direction: column; border-radius: 34px; }
.dialog.frost { background: var(--sheet); -webkit-backdrop-filter: var(--blur-heavy); backdrop-filter: var(--blur-heavy); box-shadow: 0 0 0 .5px var(--hair-2), 0 50px 120px -30px rgba(0, 0, 0, .4); animation: rise .5s var(--spring); }
.dialog.wide { width: 900px; }
.dialog > header { display: flex; align-items: center; gap: 12px; padding: 26px 28px 10px; }
.dialog > header h3 { flex: 1; min-width: 0; font: 650 22px/1.25 var(--font-d); letter-spacing: -.015em; }
.dialog > .body { padding: 12px 28px 26px; overflow-y: auto; overscroll-behavior: contain; }
.dialog > footer { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 16px 28px 24px; box-shadow: inset 0 1px 0 var(--hair); }
.mask.side { justify-content: flex-end; align-items: stretch; padding: 14px; }
.mask.side .dialog { width: 620px; max-height: none; border-radius: 32px; animation: slide .55s var(--spring); }
.alert-mask { z-index: 70; }
.alert { width: 380px; max-width: 100%; padding: 26px 24px 20px; border-radius: 30px; text-align: center; background: var(--sheet) !important; -webkit-backdrop-filter: var(--blur-heavy); backdrop-filter: var(--blur-heavy); animation: rise .45s var(--spring); }
.alert h3 { font: 650 18px/1.3 var(--font-d); margin-bottom: 8px; }
.alert p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; white-space: pre-line; }
.alert input { margin-top: 16px; }
.alert-a { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.island { position: fixed; z-index: 99; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 11px; min-height: 46px; max-width: min(560px, 92vw); padding: 8px 22px 8px 9px; border-radius: 99px; background: #050509; color: #fff; font-size: 14.5px; font-weight: 550; box-shadow: 0 20px 44px -14px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .07); animation: island .65s var(--spring); }
.toast i { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: #26262e; }
.toast.ok i { background: #30d158; } .toast.err i { background: #ff453a; }
.toast i svg.ic { width: 16px; height: 16px; stroke-width: 2.4; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(-6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes slide { from { opacity: .4; transform: translateX(60px); } }
@keyframes sheet { from { transform: translateY(100%); } }
@keyframes island { from { opacity: 0; transform: scale(.5, .3); filter: blur(6px); } 55% { opacity: 1; filter: none; } }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }
/* 进场:只动玻璃块本身,不动它们的父容器(动父容器会让毛玻璃失效) */
.page .panel, .head, .crumb, .toolbar, .note { animation: up .6s var(--ease) both; }
.page .bento > :nth-child(2), .page .cards > :nth-child(2), .page .passes > :nth-child(2) { animation-delay: .04s; }
.page .bento > :nth-child(3), .page .cards > :nth-child(3), .page .passes > :nth-child(3) { animation-delay: .08s; }
.page .bento > :nth-child(4), .page .cards > :nth-child(4), .page .passes > :nth-child(4) { animation-delay: .12s; }
.page .bento > :nth-child(5), .page .cards > :nth-child(5), .page .passes > :nth-child(5) { animation-delay: .16s; }
.page .bento > :nth-child(6), .page .cards > :nth-child(6), .page .passes > :nth-child(6) { animation-delay: .2s; }
.page .bento > :nth-child(n+7), .page .cards > :nth-child(n+7), .page .passes > :nth-child(n+7) { animation-delay: .24s; }

/* ---------- 登录 ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 44%) minmax(0, 1fr); background: var(--card); }
.login-side { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 40px 56px; color: #fff; background: radial-gradient(120% 90% at 0% 0%, #2b3a67 0%, #141b33 55%, #0b1022 100%); }
.login-side::after { content: ""; position: absolute; right: -140px; bottom: -140px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(closest-side, rgba(36, 99, 235, .5), transparent); pointer-events: none; }
.login-side .brand { padding: 0; }
.login-side .brand-t small { color: rgba(255, 255, 255, .6); }
.login-side .mark { background: #fff; color: #111; }
.login-pitch { position: relative; z-index: 1; margin: auto 0; max-width: 460px; }
.login-pitch h1 { font: 600 36px/1.4 var(--font-d); letter-spacing: -.01em; }
.login-pitch ul { list-style: none; margin: 38px 0 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.login-pitch li { display: flex; gap: 14px; }
.login-pitch li svg.ic { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; color: #8fb4ff; }
.login-pitch li b { display: block; font-size: 15.5px; font-weight: 600; }
.login-pitch li span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .66); }
.login-foot { position: relative; z-index: 1; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.login-main { display: grid; place-items: center; padding: 40px 24px; }
.login-form { width: 380px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.login-form h2 { font: 600 26px/1.3 var(--font-d); }
.login-form > p.muted { margin-top: -8px; font-size: 14px; }
.login-form input { height: 44px; }
.login-form .btn { margin-top: 8px; }

/* ---------- 常规后台的尺寸:圆角、字号、控件高度 ---------- */
.head { margin: 4px 0 20px; align-items: center; }
.head h1 { margin: 0; font: 600 24px/1.3 var(--font-d); letter-spacing: -.01em; }
.lede { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.lede b { color: var(--ink-2); }
.tile { padding: 20px 22px; }
.tile.flush { padding: 8px 10px; }
.tile.flush > .tile-h { padding: 12px 12px 0; }
.tile-h { margin-bottom: 14px; }
.tile-h h3 { font-size: 15.5px; color: var(--ink); }
.badge-ic { width: 28px; height: 28px; border-radius: 8px; }
.btn { height: 36px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.btn.sm { height: 30px; padding: 0 11px; border-radius: 8px; font-size: 13px; }
.btn.lg { height: 46px; border-radius: 12px; font-size: 15.5px; }
.btn.icon { width: 36px; padding: 0; } .btn.sm.icon { width: 30px; }
input, select, textarea { height: 38px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
textarea { height: auto; padding: 10px 12px; }
select { padding-right: 34px; background-position: right 12px center; }
.toolbar > input, .toolbar > select, .toolbar .search input, .toolbar .range input { height: 36px; border-radius: 10px; }
.toolbar > select { padding-left: 12px; }
.search input { width: 220px; padding-left: 36px; }
.search svg.ic { left: 12px; width: 16px; height: 16px; }
.seg { border-radius: 10px; }
.seg a { height: 30px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; }
.seg.sm a { height: 26px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; }
.chips a { height: 32px; padding: 0 13px; font-size: 13.5px; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.kpis.few { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1499px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px; }
.kpi .k { gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.kpi .v { margin-top: 14px; padding-top: 0; font: 600 26px/1.2 var(--font-d); letter-spacing: -.015em; }
.kpi .v small { margin-left: 3px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.kpi .sub { margin-top: 6px; font-size: 12.5px; }
.kpi.link { cursor: pointer; transition: box-shadow .2s, transform .3s var(--spring); }
.kpi.link:hover { box-shadow: var(--card-hover); transform: translateY(-2px); }
.spec .k { font-size: 12.5px; }
.spec .v { font: 600 20px/1.25 var(--font-d); letter-spacing: -.01em; }
.prog { display: flex; align-items: center; gap: 10px; }
.prog .meter { flex: 1; }
.prog span { width: 38px; text-align: right; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bullet.sm { height: 22px; margin: 0; }
.bullet.sm .bg, .bullet.sm .zone { top: 6px; height: 10px; }
.bullet.sm .bar { top: 8px; height: 6px; }
.bullet.sm .mk { top: 2px; bottom: 2px; }
.tbl th { padding: 11px 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); background: var(--th); }
.tbl thead th:first-child { border-radius: 10px 0 0 10px; } .tbl thead th:last-child { border-radius: 0 10px 10px 0; }
.tbl td { padding: 13px 14px; font-size: 14px; }
.tbl .amt { font: 600 14.5px/1.3 var(--font-d); letter-spacing: 0; }
.tbl .tx svg.ic { width: 16px; height: 16px; color: var(--ink-3); }
.tbl b.qty { font-size: 15px; font-weight: 600; }
.tbl tr.day td { padding-top: 18px; }
a.link { color: var(--primary); }
a.link:hover { text-decoration: underline; }
.ri .end .amt { font: 600 14.5px/1.3 var(--font-d); letter-spacing: 0; }
.pass { padding: 18px 20px 16px; }
.pass .amt { font: 600 30px/1.1 var(--font-d); letter-spacing: -.02em; }
.rq-hero .amt { font: 600 42px/1.05 var(--font-d); letter-spacing: -.02em; }
.card { padding: 20px 22px; }
.card-h h3 { font-size: 17px; }
.figs .v { font: 600 17px/1.2 var(--font-d); letter-spacing: 0; }
.rings .center b { font: 600 19px/1 var(--font-d); letter-spacing: -.01em; }
.donut .center b { font: 600 19px/1.15 var(--font-d); }
.eq .term .v { font: 600 30px/1.1 var(--font-d); letter-spacing: -.02em; }
.eq .op { font-weight: 300; }
.calc-out .v { font: 600 20px/1.15 var(--font-d); }
.amount-in input { height: 60px; font: 500 44px/1 var(--font-d); letter-spacing: -.02em; }
.amount-in span { font-size: 24px; }
.phero { padding: 26px 28px 24px; }
.phero h1 { font: 600 28px/1.25 var(--font-d); letter-spacing: -.015em; margin-top: 6px; }
.dialog { border-radius: 18px; }
.mask.side .dialog { border-radius: 18px; }
.dialog > header h3 { font-size: 18px; }
.pop { top: calc(100% + 6px); right: 24px; border-radius: 14px; }
.alert { border-radius: 16px; }
.group, .mode, .qrbox, .note, .calc-out > div { border-radius: 12px; }
.split .side-menu { border-radius: var(--r); }

/* 左上角的公司切换 */
.brand.switch { cursor: pointer; border-radius: 12px; }
.brand.switch:hover .brand-t b { color: var(--primary); }
.brand.org > svg.ic { width: 16px; height: 16px; flex-shrink: 0; margin-left: auto; color: var(--ink-3); }
.sidebar .pop { top: 64px; left: 10px; right: 10px; width: auto; max-width: none; }
.mark.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 12.5px; box-shadow: none; }
.pop-a .mark.sm { margin-left: -2px; }
.org-list { display: flex; flex-direction: column; gap: 2px; }
.org-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.org-list a:hover { background: var(--fill); }
.org-list a.on { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.org-list a svg.ic { width: 16px; height: 16px; }
.danger-zone { display: flex; justify-content: flex-end; margin-top: 26px; padding-top: 14px; box-shadow: inset 0 1px 0 var(--hair); }
.alert input + input { margin-top: 10px; }

/* 项目里的支出构成 */
.mix { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 40px; align-items: start; }
.mix-list { columns: 2 320px; column-gap: 40px; }
.mix-g { break-inside: avoid; padding-bottom: 8px; }
.mix-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 0 -10px; border-radius: 10px; font-size: 13.5px; cursor: pointer; transition: background .15s; }
.mix-row:hover, .mix-row.on { background: var(--fill); }
.mix-row.on { box-shadow: inset 0 0 0 1px var(--hair-2); }
.mix-row i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.mix-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.mix-row.top b { font-weight: 600; }
.mix-row.sub { padding-left: 30px; font-size: 13px; color: var(--ink-2); }
.mix-row em { width: 42px; text-align: right; font-style: normal; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* 流水里多选项目。面板都带入场动画、各自成一层,工具栏要垫高,下拉才盖得住下面的表格 */
.toolbar { position: relative; z-index: 5; }
.picker { position: relative; }
.picker-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; max-width: 260px; padding: 0 12px; border: 0; border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--control); box-shadow: var(--control-shadow); cursor: pointer; }
.picker-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-btn svg.ic { width: 14px; height: 14px; margin-left: auto; color: var(--ink-3); }
.picker-btn.on, .picker-btn.on svg.ic { color: var(--primary); }
.picker-btn:focus-visible { outline: 0; box-shadow: inset 0 0 0 1.5px var(--focus), 0 0 0 4px var(--focus-ring); }
.picker-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: 300px; max-width: calc(100vw - 28px); border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--hair-2), 0 18px 44px -14px rgba(0, 0, 0, .28); transform-origin: top left; animation: pop .35s var(--spring); }
.picker-pop.r { left: auto; right: 0; transform-origin: top right; }
.picker-pop .search { padding: 10px 10px 0; }
.picker-pop .search input { width: 100%; height: 34px; padding-left: 34px; }
.picker-pop .search svg.ic { left: 21px; width: 15px; height: 15px; margin-top: 5px; }
.picker-list { max-height: min(56vh, 380px); overflow-y: auto; padding: 4px 6px 6px; }
.picker-gh { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.picker-gh a { font-weight: 500; color: var(--primary); cursor: pointer; }
.picker-o { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.picker-o:hover { background: var(--fill); }
.picker-o span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb { display: grid; place-items: center; width: 18px; height: 18px; flex-shrink: 0; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--hair-2); transition: background .15s; }
.cb svg.ic { width: 13px; height: 13px; stroke-width: 3; color: #fff; opacity: 0; }
.picker-o.on .cb { background: var(--primary); box-shadow: none; }
.picker-o.on .cb svg.ic { opacity: 1; }
.picker-none { padding: 18px 10px; text-align: center; font-size: 13px; color: var(--ink-3); }
.picker-pop footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; box-shadow: inset 0 1px 0 var(--hair); }
.picker-pop footer a { font-size: 13px; color: var(--ink-3); cursor: pointer; }
.picker-pop footer a:hover { color: var(--ink); }
.picked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -4px 0 var(--gap); font-size: 13px; color: var(--ink-3); }
.picked a { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px 0 11px; border-radius: 99px; color: var(--ink-2); background: var(--control); box-shadow: var(--control-shadow); cursor: pointer; }
.picked a:hover { color: var(--ink); }
.picked a svg.ic { width: 13px; height: 13px; color: var(--ink-3); }

/* 应付款:付款进度、勾选要一起付的应付款、按单分钱 */
.amount-in.settle b { display: block; height: 60px; font: 500 44px/60px var(--font-d); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.paybar { display: flex; height: 8px; margin-top: 16px; border-radius: 99px; overflow: hidden; background: var(--fill-2); }
.paybar i { display: block; height: 100%; transition: width .5s var(--ease); }
.paybar .paid { background: var(--pos); } .paybar .waived { background: var(--warn); }
.paylegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.paylegend i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 3px; background: var(--fill-3); }
.paylegend i.paid { background: var(--pos); } .paylegend i.waived { background: var(--warn); }
.pay-pick { padding: 4px 6px 6px; margin-bottom: 10px; }
.pick-h { display: flex; align-items: center; gap: 10px; padding: 10px 10px 6px; }
.pick-h a { font-size: 13px; color: var(--primary); cursor: pointer; }
.picker-o .t1 { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-o .t2 { margin-top: 2px; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-o .owe { font: 600 14.5px/1.3 var(--font-d); white-space: nowrap; font-variant-numeric: tabular-nums; }
.picker-o.off { opacity: .5; cursor: not-allowed; }
.alloc { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--fill); }
.alloc > div { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; min-width: 0; }
.alloc b { font-variant-numeric: tabular-nums; }
.form .f.note { flex-direction: row; margin: 0; }
.gi > .gv small { display: block; margin-top: 3px; font-size: 12.5px; }
.gi.click { cursor: pointer; transition: background .15s; } .gi.click:hover { background: var(--fill-2); }
.gi.hit { background: var(--primary-bg); }
.gi.void { opacity: .55; } .gi.void .strike, .ri .amt.strike { text-decoration: line-through; }
.ri.void { opacity: .55; }
.picker-o .ask { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.picker-o .ask small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.picker-o .ask input { width: 120px; height: 32px; text-align: right; }
.pay-n { margin-right: 8px; padding: 1px 7px; border-radius: 6px; font-size: 12px; font-style: normal; font-weight: 600; color: var(--primary); background: var(--primary-bg); }
/* 手机"更多"里调整底部导航 */
.apps .app-ic { position: relative; }
.apps .app-ic i { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%; font: 650 12.5px/24px var(--font-d); font-style: normal; text-align: center; color: #fff; background: var(--primary); box-shadow: 0 0 0 2.5px var(--card); }
.apps a.picked { color: var(--ink); }
.apps a.picked .app-ic { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--primary); }
.apps-foot { display: flex; justify-content: center; margin-top: 14px; padding-top: 14px; box-shadow: inset 0 1px 0 var(--hair); }
/* 设置里的付款方式 */
.pm-list { display: flex; flex-direction: column; gap: 6px; max-width: 440px; }
.pm-i { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 10px; font-size: 14px; background: var(--fill); }
.lab-a { margin-left: 8px; font-weight: 500; letter-spacing: 0; color: var(--primary); cursor: pointer; }
.lab-a:hover { text-decoration: underline; }

/* 项目顶部压成一小块:名字一行,信息和进度是小标签,下面一行金额 */
.phero.compact { display: block; padding: 18px 22px 16px; }
.ph-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ph-title h1 { margin: 0; font: 600 22px/1.3 var(--font-d); letter-spacing: -.01em; }
.phero.compact .meta { margin-top: 10px; gap: 6px; }
.phero.compact .spec { margin-top: 14px; padding-top: 14px; box-shadow: inset 0 1px 0 var(--hair); }
.prog-chip i { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

/* 流水一条一行:分类在最前面,太长的收款方、备注截断,鼠标放上去看全文 */
.tbl.one th, .tbl.one td { padding-left: 10px; padding-right: 10px; }
.tbl.one td { padding-top: 10px; padding-bottom: 10px; font-size: 13.5px; white-space: nowrap; }
.tbl.one tr.day td { padding-top: 14px; padding-bottom: 6px; }
.tbl.one tr.day:first-child td { padding-top: 8px; }
.tx.one { gap: 10px; min-width: 0; }
.ic-dot { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: var(--ink-2); background: var(--fill-2); }
.ic-dot.income { color: var(--pos); background: var(--pos-bg); }
.tbl .tx .ic-dot svg.ic { width: 13px; height: 13px; color: inherit; }
.ell { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ell.wide { max-width: 200px; }
.tx.one .ell { max-width: 150px; }
.tbl.one td.fill { width: 100%; max-width: 0; }
.tbl.one td.fill .ell { max-width: none; }
/* 流水表拖表头右边的竖线调列宽;拖过的列按设的宽度,超出的省略 */
.tbl.one th { position: relative; }
.col-rs { position: absolute; top: 6px; bottom: 6px; right: -5px; width: 10px; cursor: col-resize; z-index: 1; touch-action: none; }
.col-rs::after { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; border-radius: 1px; background: var(--hair-2); opacity: 0; transition: opacity .15s, background-color .15s; }
.tbl.one thead:hover .col-rs::after { opacity: 1; }
.col-rs:hover::after { background: var(--primary); }
body.col-resizing { cursor: col-resize; user-select: none; }
.tbl.one td.sized .ell { max-width: none; }
.tbl.one td.sized .tx.one { overflow: hidden; }
.tx.one .ell { min-width: 0; }
.tbl.one .rest { width: 100%; }
.ledger-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: -4px 2px 12px; font-size: 13px; color: var(--ink-3); }
.ledger-sum b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.picked a.link { display: inline; height: auto; padding: 0; margin-left: 6px; color: var(--primary); background: none; box-shadow: none; }
.picked b { font-weight: 600; }
/* 可以收起来的面板(项目里的支出构成,默认收起) */
.tile.fold { margin-top: var(--gap); }
.fold-h { margin-bottom: 0; cursor: pointer; user-select: none; }
.tile.fold.open .fold-h { margin-bottom: 14px; }
.fold-ic { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-3); transition: transform .25s var(--ease); }
.tile.fold.open .fold-ic { transform: rotate(180deg); }

/* 请款单两个数:这次请多少、总共多少 */
.askline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; margin: 8px 0 4px; font-size: 13.5px; color: var(--ink-3); }
.askline label { font-weight: 600; color: var(--ink-2); }
.askline input { width: 170px; height: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.askline .unit { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.askline b { color: var(--ink); font-weight: 600; }
.rq-hero .amt-of { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }
.rq-hero .amt-of b { color: var(--ink-2); font-weight: 600; }
.rq-hero .amt.tx-amount { font-size: clamp(28px, 8vw, 42px); letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pass .amt .of { display: block; margin-top: 6px; font: 500 12.5px/1.3 var(--font); letter-spacing: 0; color: var(--ink-3); }

/* 设置 → 企业微信推送 */
.push > .tile { margin-bottom: var(--gap); }
.push .mono, textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.push-hook .acts { flex-shrink: 0; }
.push-hook .s.mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.push-ev { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 2px; box-shadow: inset 0 -1px 0 var(--hair); }
.push-ev:last-child { box-shadow: none; }
.push-ev .t1 { font-weight: 600; font-size: 14px; }
.push-ev .t2 { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.push-hooks { display: flex; flex-wrap: wrap; gap: 6px; }
.push-hooks a { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 11px 0 9px; border-radius: 99px; font-size: 13px; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--hair-2); cursor: pointer; transition: background .15s, color .15s; }
.push-hooks a svg.ic { width: 13px; height: 13px; }
.push-hooks a.on { color: var(--primary); background: var(--primary-bg); box-shadow: inset 0 0 0 1px var(--primary); }
.push-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 16px; padding-top: 4px; }
.tpl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.tpl-grid .lbl { margin-bottom: 8px; }
.var-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.var-chips a { padding: 3px 9px; border-radius: 7px; font-size: 12.5px; color: var(--ink-2); background: var(--fill-2); cursor: pointer; }
.var-chips a:hover { color: var(--primary); background: var(--primary-bg); }
.wc-msg { min-height: 140px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.75; word-break: break-all; background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); }
.wc-q { padding-left: 10px; border-left: 3px solid var(--hair-2); color: var(--ink-2); }
.wc-info { color: #19a35b; } .wc-comment { color: var(--ink-3); } .wc-warning { color: #e8710a; }
.wc-link { color: var(--primary); }
.wc-h { font-size: 15px; }

/* ---------- 宽度适配 ---------- */
@media (max-width: 1279px) {
  :root { --side: 208px; }
  .page { padding-left: 24px; padding-right: 24px; } .topbar { padding: 0 24px; }
  .c8.r2 { grid-column: span 12; grid-row: auto; } .c4 { grid-column: span 6; } .c2 { grid-column: span 3; } .c3 { grid-column: span 6; }
  .split { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 1099px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .m-brand { display: grid; }
  .tabbar { display: flex; position: fixed; z-index: 50; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(480px, calc(100% - 28px)); padding: 6px; }
  .tabbar a { flex: 1; flex-direction: column; justify-content: center; gap: 3px; height: 54px; padding: 0; font-size: 10.5px; font-weight: 600; }
  .tabbar a svg.ic { display: block; width: 23px; height: 23px; }
  .tabbar .ind { top: 6px; height: 54px; }
  .tabbar a.on { color: var(--primary); }
  .page { padding-bottom: 130px; }
  .bento > * { grid-column: span 12 !important; grid-row: auto !important; }
  .bento > .half { grid-column: span 6 !important; }
  .phero { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .side-menu { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .side-menu .gap { display: none; }
  .side-menu a { padding: 7px 12px 7px 7px; }
  .side-menu .app-ic { width: 26px; height: 26px; border-radius: 8px; } .side-menu .app-ic svg.ic { width: 15px; height: 15px; }
}
@media (max-width: 900px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .wx-mini .login-main { grid-template-columns: minmax(0, 1fr); }
  .login-side { padding: 24px; }
  .login-pitch, .login-foot { display: none; }
}
@media (min-width: 761px) { .mobile-only { display: none !important; } }
@media (max-width: 760px) {
  :root { --gap: 12px; }
  body { font-size: 15px; }
  .desk-only { display: none !important; }
  .topbar { height: 54px; padding: 0 14px; } .pop { right: 10px; }
  .page { padding: 14px 14px 124px; }
  .head { margin: 2px 0 16px; } .head h1 { font-size: 22px; } .lede { font-size: 13.5px; }
  .head-a { width: 100%; } .head-a .btn { flex: 1; }
  .kpis, .kpis.few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 14px 16px; } .kpi .v { margin-top: 10px; font-size: 20px; }
  .tile { padding: 16px; } .tile.flush { padding: 6px 4px; }
  .summary { padding: 16px 18px; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec > div { padding: 0 0 0 14px; } .spec > div:nth-child(odd) { box-shadow: none; padding-left: 0; }
  .cards, .cards.sm, .passes { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px; }
  .proj-body { gap: 16px; }
  .phero { padding: 20px 18px; }
  .toolbar { gap: 8px; }
  .toolbar > input, .toolbar > select, .toolbar .search, .toolbar .search input { max-width: none; flex: 1 1 140px; width: 100%; }
  .toolbar .picker { flex: 1 1 140px; } .toolbar .picker-btn { width: 100%; max-width: none; }
  .tpl-grid { grid-template-columns: minmax(0, 1fr); }
  .push-hook { flex-wrap: wrap; } .push-hook .acts { width: 100%; justify-content: flex-end; }
  .push-ev > .grow { flex: 1 1 100%; } .push-ev .push-hooks { flex: 1; }
  .toolbar .range { flex: 1 1 100%; } .toolbar .range input { flex: 1; width: auto; }
  .toolbar .seg { max-width: 100%; }
  .form { grid-template-columns: minmax(0, 1fr); }
  input, select, textarea { font-size: 16px; }
  .otrack { --lab: 120px; } .otrack .lab { padding-right: 10px; } .otrack .eta { display: none; }
  .hb { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 10px; }
  .eq { gap: 14px; } .eq .op { font-size: 28px; }
  .decide .btn { height: 48px; font-size: 15px; }
  .tile-h { flex-wrap: wrap; row-gap: 10px; } .tile-h .legend { order: 9; width: 100%; }
  .mix { grid-template-columns: minmax(0, 1fr); justify-items: center; } .mix-list { width: 100%; columns: 1; }
  .mask, .mask.side { padding: 0; align-items: flex-end; }
  .dialog, .dialog.wide, .mask.side .dialog { width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0; }
  .dialog.frost { animation: sheet .5s var(--ease); }
  .dialog::after { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: var(--fill-3); }
  .dialog > header { padding: 22px 18px 8px; } .dialog > .body { padding: 8px 18px 20px; }
  .dialog > footer { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); } .dialog > footer .btn { flex: 1; height: 46px; font-size: 16px; }
  .alert-mask { align-items: center !important; padding: 20px !important; }
}
/* 手机上再压一压:项目顶部、总流水的金额排成三列小字;流水只露出收支切换、"筛选"和搜索,其他筛选点"筛选"再展开 */
.m-toggle.on { color: var(--primary); background: var(--primary-bg); }
@media (max-width: 760px) {
  .phero.compact { padding: 14px 14px 12px; }
  .phero.compact .meta { flex-wrap: nowrap; margin: 8px -14px 0; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
  .phero.compact .meta::-webkit-scrollbar { display: none; }
  .phero.compact .meta .chip { flex-shrink: 0; max-width: none; }
  .spec.tight { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .phero.compact .spec.tight { margin-top: 12px; padding-top: 12px; }
  .spec.tight > div { padding: 0 0 0 8px; box-shadow: inset 1px 0 0 var(--hair); }
  .spec.tight > div:nth-child(3n+1) { padding-left: 0; box-shadow: none; }
  .spec.tight .k { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
  .spec.tight .v { margin-top: 3px; font-size: clamp(12.5px, 3.9vw, 16px); }
  .ledger-tools .m-toggle { order: 1; margin-left: auto; }
  .ledger-tools .search { order: 2; flex: 1 1 100%; }
  .ledger-tools .m-more { order: 3; }
  .ledger-tools:not(.open) .m-more { display: none !important; }
}
/* 发给供应商填写:员工这边生成的二维码、链接,发过的链接列表 */
.fill-made { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fill-made img { width: 240px; max-width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px var(--hair); }
.fill-made .help, .dialog p.help { font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.fill-made .help { margin: 0; text-align: center; }
.fill-url { display: flex; gap: 8px; width: 100%; }
.fill-url input { flex: 1; min-width: 0; font-size: 13px; }
.fill-row { align-items: center; gap: 12px; }
.fill-row .gv .ellipsis { display: block; }
.fill-row .acts { flex-shrink: 0; }
@media (max-width: 760px) {
  .fill-row { flex-wrap: wrap; row-gap: 8px; }
  .fill-row .acts { flex-basis: 100%; justify-content: flex-end; }
}
/* 供应商打开的填写页(fill.html) */
.fill-page { max-width: 560px; margin: 0 auto; padding: 18px 14px calc(40px + env(safe-area-inset-bottom)); }
.fill-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; }
.fill-head b { display: block; font-size: 16px; line-height: 1.3; }
.fill-head small { font-size: 12.5px; color: var(--ink-3); }
.fill-card { padding: 22px 18px; }
.fill-card h2 { margin: 0 0 8px; font: 600 20px/1.3 var(--font-d); }
.fill-intro { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.fill-card textarea { width: 100%; min-height: 80px; }
.fill-card .help { font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.fill-card .askline input { width: 190px; }
.fill-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; border-radius: var(--r-m); outline: 2px dashed transparent; outline-offset: 6px; transition: background .15s, outline-color .15s; }
.fill-file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 6px 4px 10px; border-radius: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--fill-2); }
.fill-file button { flex: none; padding: 0 4px; border: 0; background: transparent; color: var(--ink-3); font: inherit; cursor: pointer; }
.fill-err { margin: 14px 0 0; font-size: 14px; color: var(--neg); }
.fill-submit { width: 100%; height: 48px; margin-top: 22px; font-size: 16px; }

/* 记账的六种:图标颜色区分;转账金额不分正负 */
.ic-dot.transfer { color: var(--info); background: var(--info-bg); }
.ic-dot.advance, .ic-dot.repay { color: var(--warn); background: var(--warn-bg); }
.ic-dot.reimburse { color: #8e5cf0; background: rgba(142, 92, 240, .12); }
.ic-dot.refund { color: var(--pos); background: var(--pos-bg); }
.tbl .amt.move, .ll-item .amt.move { color: var(--info); }
.kind-seg { margin: -4px 0 16px; }
.kind-seg .seg { width: 100%; }
.kind-seg .seg a { flex: 1 0 auto; justify-content: center; padding: 0 8px; }
.sub-seg { margin: 0 auto 10px; display: flex; width: fit-content; }
.form .sub-seg { margin: 0; }
.refund-pick .search { margin: 10px 0; }
.refund-pick .search input { width: 100%; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; cursor: pointer; }
.pick-row:hover { background: var(--fill); }
.pick-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.refund-of { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; margin-bottom: 8px; border-radius: 12px; background: var(--fill); font-size: 14px; }
.refund-of small { font-size: 12px; color: var(--ink-3); }
.refund-of span { font-size: 13px; color: var(--ink-3); }
.refund-of .lab-a { margin: 4px 0 0; align-self: flex-start; }
/* 资金账户页 */
.acc-list { display: flex; flex-direction: column; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.acc-row + .acc-row { box-shadow: inset 0 1px 0 var(--hair); }
.acc-row:hover { background: var(--fill); }
.acc-row .t1 { font-weight: 600; } .acc-row .t2 { margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.acc-ic { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(150deg, #7cc4ff, #3d6df0); }
.acc-ic.private { background: linear-gradient(150deg, #c4a1ff, #7b5cff); } .acc-ic.virtual { background: linear-gradient(150deg, #6ee7a0, #1aad5b); }
.acc-ic.cash { background: linear-gradient(150deg, #ffd36e, #ff8f4e); } .acc-ic.debt { background: linear-gradient(150deg, #ff9a8b, #e5484d); }
.acc-ic.other { background: linear-gradient(150deg, #c2c6d4, #7a7f93); }
/* 按类型分组:组名 + 这一组的合计 */
.acc-group { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 8px 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.acc-group:first-child { padding-top: 0; }
.acc-group:not(:first-child) { margin-top: 4px; box-shadow: inset 0 1px 0 var(--hair); }
.acc-group b { font: 600 13px/1.3 var(--font-d); font-variant-numeric: tabular-nums; }
.acc-group b:not(.t-neg) { color: var(--ink-2); }
.seg.acc-kinds { display: flex; width: 100%; }
.seg.acc-kinds a { flex: 1 0 auto; justify-content: center; padding: 0 10px; }
@media (max-width: 760px) {
  .seg.acc-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 12px; }
  .seg.acc-kinds a { padding: 0 4px; border-radius: 9px; }
}
.acc-ic svg.ic { width: 18px; height: 18px; }
.acc-bal { font: 600 16px/1.3 var(--font-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.acc-links { display: flex; flex-direction: column; margin-top: 14px; padding-top: 10px; box-shadow: inset 0 1px 0 var(--hair); }
.acc-links a { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-radius: 10px; font-size: 14px; cursor: pointer; }
.acc-links a:hover { background: var(--fill); }
.acc-links a span { flex: 1; color: var(--ink-2); }
.acc-links a b { font-variant-numeric: tabular-nums; }
.acc-links svg.ic { width: 14px; height: 14px; color: var(--ink-3); }

/* 手机上的流水列表 */
.ledger-list { padding: 2px 2px 6px; }
.ll-day { display: flex; justify-content: space-between; gap: 10px; padding: 14px 10px 6px; font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.ll-day span { font-weight: 550; font-variant-numeric: tabular-nums; }
.ll-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; cursor: pointer; }
.ll-item:active { background: var(--fill); }
.ll-item .t1 { font-size: 14.5px; font-weight: 600; }
.ll-item .t2 { margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.ll-item .end { flex-shrink: 0; max-width: 45%; text-align: right; }
.ll-item .amt { font: 600 15px/1.3 var(--font-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ll-item .amt.income { color: var(--pos); }
.ll-item.void { opacity: .55; } .ll-item.void .amt { text-decoration: line-through; }
.danger-zone .btn + .btn { margin-left: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 子项目:列表里挂在总项目下面(缩进),项目页顶部能回到总项目 */
.tbl tr.sub-row td:first-child { padding-left: 30px; }
.tbl tr.sub-row .t1 { font-weight: 550; }
.sub-mark { margin-right: 6px; color: var(--ink-3); font-weight: 400; }
.sub-n { margin-left: 8px; vertical-align: 1px; }
.tbl tr.own-row td { color: var(--ink-2); background: var(--fill); }
.sub-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.sub-chips .k { margin-right: 2px; font-size: 12px; color: var(--ink-3); }
a.chip { cursor: pointer; }
a.chip:hover { color: var(--ink); }
.up-link { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 550; color: var(--primary); white-space: nowrap; cursor: pointer; }
.up-link svg.ic { width: 15px; height: 15px; }

.person-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.person-fields > * { width: 100%; min-width: 0; }
.office-toolbar, .office-actions, .office-pager { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.office-toolbar { margin: 0 0 14px; }
.office-date { display: contents; }
.office-toolbar > input, .office-toolbar > select, .office-date input { width: auto; max-width: 100%; min-width: 130px; }
.office-check { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 13px; }
.office-check input { margin: 0; width: 16px; height: 16px; }
.office-line { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 18px; text-align: left; color: var(--ink); }
.office-line + .office-line { border-top: 1px solid var(--hair-2); }
button.office-line { font: inherit; background: transparent; border: 0; border-radius: 0; cursor: pointer; }
button.office-line + .office-line { border-top: 1px solid var(--hair-2); }
button.office-line:hover { background: var(--fill); }
.office-line b, .office-line small { display: block; overflow-wrap: anywhere; }
.office-line small { margin-top: 4px; color: var(--ink-3); }
.office-line .office-accent { color: var(--focus); font-weight: 650; }
.office-meta { text-align: right; font-variant-numeric: tabular-nums; }
.office-meta b { white-space: nowrap; }
.office-pager { justify-content: center; padding: 12px; border-top: 1px solid var(--hair-2); color: var(--ink-3); }
.office-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.office-summary > div { padding: 14px 18px; }
.office-summary small, .office-summary b { display: block; }
.office-summary small { color: var(--ink-3); margin-bottom: 6px; }
.office-summary b { overflow-wrap: anywhere; font-size: clamp(16px, 2vw, 24px); }
.office-fields, .office-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.office-fields .office-span { grid-column: 1 / -1; }
.office-fields fieldset { min-width: 0; border: 1px solid var(--hair-2); border-radius: 10px; padding: 12px; }
.office-fields .office-check + .office-check { margin-top: 7px; }
fieldset.office-plain { border: 0; margin: 0; min-width: 0; padding: 0; }
.office-fields .help { margin: 0; }
.office-detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.office-detail-head h3 { margin: 0; overflow-wrap: anywhere; }
.office-detail-head span { flex-shrink: 0; color: var(--ink-3); }
.office-kv { margin: 0 0 12px; padding: 12px; background: var(--fill); border-radius: 10px; }
.office-kv dt { color: var(--ink-3); font-size: 12px; }
.office-kv dd { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.office-section { margin-top: 14px; }
.office-section h4 { margin: 0 0 8px; }
.office-file { display: flex; gap: 10px; align-items: center; overflow-wrap: anywhere; margin-bottom: 6px; }
.office-file a { color: var(--focus); }
.office-history { padding: 8px 0; border-top: 1px solid var(--hair-2); overflow-wrap: anywhere; }
.office-history span { margin-left: 8px; color: var(--ink-3); font-size: 12px; }
.office-history p { margin: 4px 0 0; }
@media (max-width: 520px) {
  .office-line { gap: 8px; padding: 12px; }
  .office-summary { gap: 6px; }
  .office-summary > div { padding: 9px; }
  .office-fields { grid-template-columns: 1fr; }
  .office-detail-head { align-items: flex-start; flex-direction: column; gap: 4px; }
}
.tx-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 16px; margin-top: 16px; border: 1px solid var(--hair-2); border-radius: 14px; background: var(--card); }
.tx-paid-field { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.tx-paid-field input { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tx-summary .askline { display: grid; justify-items: start; justify-content: stretch; align-content: start; gap: 7px; margin: 0; font-size: 13px; }
.tx-summary .askline .unit { width: 100%; }
.tx-summary .askline input { width: 100%; text-align: left; }
.tx-summary .taxline { grid-column: 1 / -1; justify-content: flex-start; padding-top: 11px; margin: 0; border-top: 1px solid var(--hair-2); }
.tx-field-label { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.field-link { border: 0; padding: 0; background: transparent; color: var(--focus); cursor: pointer; font: inherit; }
.tx-section { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--hair-2); }
.tx-section h4 { margin: 0 0 8px; }
.material-lines { margin-top: 14px; }
.material-lines .row { justify-content: space-between; }
.material-line { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; padding: 12px; margin-top: 8px; border: 1px solid var(--hair-2); border-radius: 10px; }
.material-tools { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.issue-list { padding: 0; gap: 0; cursor: default; }
@media (max-width: 480px) {
  .tx-summary { gap: 8px; padding: 12px; }
  .tx-summary .taxline { font-size: 12px; }
}
.project-tab-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: var(--gap); }
.project-tab-group { display: flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
.project-tab-group .seg { min-width: 0; flex: 0 1 auto; }
.project-tab-label { flex: 0 0 auto; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.project-overview { display: grid; gap: var(--gap); }
.project-overview .project-workorder-counts { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 12px 0 0; }
.project-notes { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-payment-heading { margin: 0 0 var(--gap); font-size: 18px; }
.rect-photo-fields { padding: 12px; border: 1px solid var(--hair-2); border-radius: 10px; }
.rect-photo-fields .help { margin: 0; }

.project-finance-settings { display: grid; gap: var(--gap); }
.project-finance-settings .tile-h { flex-wrap: wrap; }
.project-finance-settings .toolbar { margin: 12px 0; }
.project-finance-member-form { border-top: 1px solid var(--hair-2); padding-top: 12px; }
.finance-members-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 8px; margin: 12px 0; }
.finance-members-list label { display: flex; align-items: center; gap: 6px; }
.finance-members-list input { width: 16px; height: 16px; margin: 0; }
.finance-sharing-preview { min-width: 580px; }
.finance-visibility, .finance-shared-payment { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.finance-visibility { border: 1px solid var(--hair-2); border-radius: 10px; padding: 9px 11px; margin: 0 0 12px; }
.finance-shared-payment { border-bottom: 1px solid var(--hair-2); padding: 9px 0; }
.shared-project-finance .office-line .office-meta { white-space: normal; }
