/* ============================================================
   最美乡村 · 村级综合服务平台（政企现代版）
   设计语言：深蓝导航 + 纯白内容 + 冷灰蓝中性色 + 克制品牌色，双主题
   品牌全后台可配置；全部图标内联 SVG
   ============================================================ */

/* ---------- 主题令牌（浅色默认） ---------- */
:root {
  --bg: #f3f5f9;
  --bg-2: #f7f9fc;
  --panel: #ffffff;
  --panel-2: #f5f7fa;
  --panel-3: #edf0f5;
  --line: rgba(23, 32, 54, .08);
  --line-2: rgba(23, 32, 54, .16);
  --text: #17233d;
  --text-2: #57627a;
  --text-3: #8e98ab;
  --gold: #c9992e;
  --gold-2: #f0c27b;
  --danger: #d43c2c;
  --warn: #b97d10;
  --shadow-1: 0 1px 2px rgba(23, 32, 54, .05), 0 4px 10px -2px rgba(23, 32, 54, .07);
  --shadow-2: 0 2px 4px rgba(23, 32, 54, .05), 0 14px 26px -6px rgba(23, 32, 54, .15), 0 30px 56px -22px rgba(23, 32, 54, .1);
  --shadow-3: 0 4px 10px rgba(23, 32, 54, .07), 0 26px 56px -12px rgba(23, 32, 54, .24), 0 56px 110px -30px rgba(23, 32, 54, .16);
  --shadow-pop: 0 2px 5px rgba(23, 32, 54, .06), 0 18px 32px -8px rgba(23, 32, 54, .18), 0 36px 64px -20px rgba(23, 32, 54, .14);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --topbar-bg: rgba(255, 255, 255, .86);
  --side-bg: linear-gradient(188deg, #1c2e5c 0%, #13224a 46%, #0c1734 100%);
  --mesh-a: rgba(47, 84, 208, .06);
  --mesh-b: rgba(47, 84, 208, .04);
  --mesh-c: rgba(44, 92, 197, .035);
  --hero-bg: linear-gradient(132deg, #1f3568 0%, #16274f 52%, #0f1c3c 100%);
  --r-sm: 8px; --r-md: 14px; --r-lg: 18px; --r-xl: 22px;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Outfit", "DIN Alternate", "Noto Sans SC", sans-serif;
  --eo: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 160ms; --dur-base: 320ms; --dur-slow: 640ms;
  --sidebar-w: 236px;
  /* 主题色（默认深蓝·现代，后台可切换） */
  --ac: #2c5cc5;
  --ac-2: #4f7df0;
  --ac-soft: rgba(44, 92, 197, .08);
  --ac-line: rgba(44, 92, 197, .32);
  --ac-glow: rgba(44, 92, 197, .18);
}
[data-accent="vermillion"] { --ac: #d43a29; --ac-2: #ff6a45; --ac-soft: rgba(212,58,41,.09); --ac-line: rgba(212,58,41,.35); --ac-glow: rgba(212,58,41,.2); }
[data-accent="gold"]   { --ac: #c98f1f; --ac-2: #edb45c; --ac-soft: rgba(201,143,31,.1); --ac-line: rgba(201,143,31,.38); --ac-glow: rgba(201,143,31,.22); }
[data-accent="jade"]   { --ac: #1f9d69; --ac-2: #4cc98f; --ac-soft: rgba(31,157,105,.09); --ac-line: rgba(31,157,105,.35); --ac-glow: rgba(31,157,105,.2); }
[data-accent="blue"]   { --ac: #2f6fd0; --ac-2: #6c9cf0; --ac-soft: rgba(47,111,208,.08); --ac-line: rgba(47,111,208,.35); --ac-glow: rgba(47,111,208,.2); }
[data-accent="violet"] { --ac: #7d5bd6; --ac-2: #a88cf0; --ac-soft: rgba(125,91,214,.09); --ac-line: rgba(125,91,214,.35); --ac-glow: rgba(125,91,214,.2); }

/* 深色主题覆盖 */
[data-theme="dark"] {  --bg: #0a0d12; --bg-2: #0d1118;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .07);
  --panel-3: rgba(255, 255, 255, .11);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --text: #e9ecf2; --text-2: rgba(233, 236, 242, .64); --text-3: rgba(233, 236, 242, .4);
  --gold: #f0c27b; --danger: #ff5a5a; --warn: #f0b45c;
  --shadow-1: 0 2px 10px rgba(0, 0, 0, .25);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-3: 0 30px 70px rgba(0, 0, 0, .45);
  --topbar-bg: rgba(10, 13, 18, .72);
  --side-bg: rgba(10, 13, 18, .86);
  --mesh-a: rgba(255, 90, 60, .16); --mesh-b: rgba(240, 194, 123, .08); --mesh-c: rgba(62, 207, 142, .06);
  --hero-bg: linear-gradient(150deg, rgba(255,255,255,.06), rgba(255,255,255,.02) 55%), #0d1118;
  --ac: #ff5a3c; --ac-2: #ff8a5c; --ac-soft: rgba(255,90,60,.14); --ac-line: rgba(255,106,69,.42); --ac-glow: rgba(255,90,60,.32);
}
[data-theme="dark"][data-accent="gold"]   { --ac: #e8b04e; --ac-2: #f5d089; --ac-soft: rgba(232,176,78,.14); --ac-line: rgba(232,176,78,.45); --ac-glow: rgba(232,176,78,.32); }
[data-theme="dark"][data-accent="jade"]   { --ac: #2fc98c; --ac-2: #6fe3b2; --ac-soft: rgba(47,201,140,.13); --ac-line: rgba(47,201,140,.42); --ac-glow: rgba(47,201,140,.3); }
[data-theme="dark"][data-accent="blue"]   { --ac: #4f8ef7; --ac-2: #8ab6ff; --ac-soft: rgba(79,142,247,.14); --ac-line: rgba(79,142,247,.45); --ac-glow: rgba(79,142,247,.32); }
[data-theme="dark"][data-accent="violet"] { --ac: #9b7bff; --ac-2: #c1a8ff; --ac-soft: rgba(155,123,255,.14); --ac-line: rgba(155,123,255,.45); --ac-glow: rgba(155,123,255,.32); }
[data-theme="dark"][data-accent="vermillion"] { --ac: #ff6a45; --ac-2: #ff9270; --ac-soft: rgba(255,106,69,.14); --ac-line: rgba(255,106,69,.42); --ac-glow: rgba(255,106,69,.3); }
/* 深色主题侧栏保持深蓝夜色 */
[data-theme="dark"] { --side-bg: linear-gradient(188deg, #101c3c 0%, #0b142c 50%, #070f22 100%); }

/* ---------- 开机欢迎动画（红金党政风） ---------- */
.intro-scene { position: fixed; inset: 0; z-index: 300; display: none; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(120% 90% at 50% 30%, #a41614 0%, #7d0f0e 46%, #4d0808 100%); overflow: hidden; transition: opacity .5s; }
.intro-scene.bye { opacity: 0; pointer-events: none; }
.intro-rays { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 42%, rgba(255, 214, 130, .07) 0deg 7deg, transparent 7deg 15deg); animation: raysSpin 36s linear infinite; mask-image: radial-gradient(60% 60% at 50% 42%, #000 20%, transparent 70%); }
@keyframes raysSpin { to { transform: rotate(360deg); } }
.intro-body { position: relative; z-index: 2; text-align: center; }
.intro-flag { width: 190px; height: 133px; margin: 0 auto 4px; display: block; filter: drop-shadow(0 0 14px rgba(247, 210, 113, .45)); }
.intro-flag .st { fill: #f7d271; opacity: 0; transform: scale(.2); transform-origin: center; transform-box: fill-box; animation: starIn .7s var(--eo) forwards; }
.intro-flag .big { animation-delay: .1s; }
.intro-flag .sm:nth-of-type(2) { animation-delay: .3s; }
.intro-flag .sm:nth-of-type(3) { animation-delay: .45s; }
.intro-flag .sm:nth-of-type(4) { animation-delay: .6s; }
.intro-flag .sm:nth-of-type(5) { animation-delay: .75s; }
@keyframes starIn { to { opacity: 1; transform: scale(1); } }
.intro-slogan { font-size: 14px; letter-spacing: .55em; text-indent: .55em; color: rgba(255, 224, 160, .85); opacity: 0; animation: fadeUp .9s var(--eo) .9s forwards; }
.intro-title { margin-top: 14px; font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 7vw, 84px); letter-spacing: .14em; text-indent: .14em;
  background: linear-gradient(180deg, #ffe9ad 8%, #f7c24e 46%, #e29a26 78%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .35)); opacity: 0; animation: titleIn 1s var(--eo) 1.15s forwards; }
@keyframes titleIn { from { opacity: 0; transform: translateY(22px) scale(.94); letter-spacing: .4em; } to { opacity: 1; transform: none; letter-spacing: .14em; } }
.intro-line { width: 120px; height: 2px; margin: 18px auto 0; background: linear-gradient(90deg, transparent, #f7d271, transparent); transform: scaleX(0); animation: lineGrow .8s var(--eo) 1.8s forwards; }
@keyframes lineGrow { to { transform: scaleX(1); } }
.intro-sub { margin-top: 12px; font-size: 15px; letter-spacing: .4em; text-indent: .4em; color: rgba(255, 236, 200, .78); opacity: 0; animation: fadeUp .8s var(--eo) 2.1s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.intro-hills { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; line-height: 0; }
.intro-hills svg { width: 100%; height: 150px; }
.hh { opacity: 0; animation: fadeUp .7s var(--eo) forwards; }
/* 欢迎页停留：底部居中「进入平台」主按钮（不再自动跳转） */
.intro-skip { position: absolute; z-index: 3; bottom: 8.5%; left: 50%; transform: translateX(-50%); padding: 15px 56px; border-radius: 999px; border: 1px solid rgba(255, 224, 160, .6); background: linear-gradient(140deg, #f7d271, #d9a83e); color: #5a0e0e; font-size: 16.5px; font-weight: 800; letter-spacing: .3em; text-indent: .3em; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform var(--dur-fast), box-shadow var(--dur-fast); animation: introPulse 2.4s ease-out infinite; }
.intro-skip:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 16px 38px rgba(0, 0, 0, .42); }
.intro-skip:active { transform: translateX(-50%) translateY(-1px); }
@keyframes introPulse { 0% { outline: 0 solid rgba(247, 210, 113, .5); } 70% { outline: 14px solid rgba(247, 210, 113, 0); } 100% { outline: 0 solid rgba(247, 210, 113, 0); } }
.intro-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.intro-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f7d271, #ffe9ad); animation: progGrow 9s linear forwards; }
@keyframes progGrow { to { width: 100%; } }

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.7; letter-spacing: .015em; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-radius: 6px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
::selection { background: var(--ac-soft); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* 全局氛围层 */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(52rem 34rem at 10% -12%, var(--mesh-a), transparent 58%),
              radial-gradient(44rem 30rem at 102% 2%, var(--mesh-b), transparent 56%),
              radial-gradient(50rem 36rem at 50% 118%, var(--mesh-c), transparent 58%); }
#app, .login-scene { position: relative; z-index: 1; }
.gilded { background: linear-gradient(100deg, var(--ac-2), var(--ac) 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold-text { background: linear-gradient(100deg, #e9c27a, #c9992e 60%, #e9c27a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 登录页（左品牌视觉 + 右白卡） ---------- */
.login-scene { position: fixed; inset: 0; z-index: 200; display: none; background: var(--bg-2); overflow: hidden; }
.login-left { flex: 1.2; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 6vh 6vw; overflow: hidden;
  background:
    radial-gradient(40rem 26rem at 84% -8%, var(--mesh-a), transparent 62%),
    radial-gradient(34rem 24rem at -6% 84%, var(--mesh-b), transparent 58%),
    linear-gradient(160deg, #fffefb, #fdf5ec 70%, #fceddf);
  border-right: 1px solid var(--line);
}
[data-theme="dark"] .login-left { background: radial-gradient(40rem 26rem at 84% -8%, var(--ac-glow), transparent 62%), linear-gradient(160deg, #12161d, #17110b 80%); }
.login-brandline { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.brand-logo { width: 46px; height: 46px; flex: none; }
.brand-logo img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.brand-logo svg { width: 100%; height: 100%; }
.login-brandline b { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: .1em; display: block; line-height: 1.25; }
.login-brandline span { font-size: 11px; color: var(--text-3); letter-spacing: .24em; display: block; }
.login-art { position: relative; z-index: 2; max-width: 560px; }
.login-art .badge { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--ac-line); border-radius: 999px; padding: 6px 15px; font-size: 12px; letter-spacing: .28em; color: var(--ac); background: var(--ac-soft); }
.login-art .badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ac); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }
.login-art h1 { margin: 26px 0 16px; font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.24; letter-spacing: .02em; }
.login-art .stroke { color: transparent; -webkit-text-stroke: 1.3px var(--line-2); }
.login-art p { color: var(--text-2); max-width: 44ch; font-size: 15px; }
/* 热力可视化 */
.login-viz { position: relative; z-index: 2; margin-top: 34px; max-width: 520px; }
.login-viz svg { width: 100%; height: auto; display: block; }
.viz-chip { position: absolute; z-index: 3; font-size: 11.5px; padding: 6px 12px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); white-space: nowrap; }
.viz-chip b { color: var(--ac); font-family: var(--font-num); }
.viz-chip.c1 { left: 62%; top: 4%; animation: float 6s ease-in-out infinite; }
.viz-chip.c2 { left: 4%; top: 46%; animation: float 7s ease-in-out infinite 1s; }
.viz-chip.c3 { left: 46%; bottom: 2%; animation: float 8s ease-in-out infinite .4s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
.login-slides { position: relative; z-index: 2; margin-top: 30px; }
.login-slides .cap b { font-family: var(--font-display); font-weight: 700; font-size: 17px; display: block; transition: opacity .4s; }
.login-slides .cap span { color: var(--text-3); font-size: 12.5px; }
.login-dots { display: flex; gap: 8px; margin-top: 12px; }
.login-dots i { width: 22px; height: 4px; border-radius: 3px; background: var(--line-2); transition: all .4s var(--eo); cursor: pointer; }
.login-dots i.on { width: 36px; background: linear-gradient(90deg, var(--ac-2), var(--ac)); }
.login-chips { position: relative; z-index: 2; display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; }
.login-chips span { font-size: 12px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); }
.login-hills { position: absolute; left: 0; right: 0; bottom: 0; height: 26vh; pointer-events: none; opacity: .5; z-index: 1; }
.login-hills svg { position: absolute; bottom: 0; width: 100%; height: 100%; }
.login-right { flex: .9; display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--panel); position: relative; }
.login-card { width: min(420px, 100%); }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.login-brand .brand-logo { width: 42px; height: 42px; }
.login-brand b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: .06em; }
.login-brand span { font-size: 12px; color: var(--text-3); }
.login-hello { font-family: var(--font-display); font-weight: 900; font-size: 24px; margin-bottom: 4px; }
.login-sub { color: var(--text-2); font-size: 13px; margin-bottom: 26px; line-height: 1.7; }
.login-field { margin-bottom: 15px; position: relative; }
.login-field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 7px; letter-spacing: .06em; }
.login-field .fwrap { position: relative; }
.login-field .fwrap > svg.lead { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.login-field input {
  width: 100%; height: 48px; padding: 0 44px 0 40px;
  background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: var(--r-md); transition: all var(--dur-fast) ease-out;
}
.login-field input:focus { outline: none; background: var(--panel); border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); }
.login-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--text-3); }
.login-eye:hover { color: var(--text); background: var(--panel-3); }
.login-eye svg { width: 17px; height: 17px; }
.login-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; font-size: 12.5px; color: var(--text-2); }
.login-row .safe { margin-left: auto; color: var(--text-3); }
.login-check { width: 16px; height: 16px; accent-color: var(--ac); }
.login-roles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.role-chip { padding: 6px 13px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line-2); color: var(--text-2); transition: all var(--dur-fast) ease-out; }
.role-chip:hover { border-color: var(--ac); color: var(--ac); }
.role-chip.on { background: var(--ac-soft); border-color: var(--ac); color: var(--ac); }
.login-tip { margin-top: 18px; padding: 11px 14px; border-radius: var(--r-md); background: var(--panel-2); border: 1px dashed var(--line-2); font-size: 12px; color: var(--text-3); line-height: 1.8; }
/* 已登录身份快捷进入条 */
.login-resume { display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; padding: 10px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(46,125,91,.09), rgba(46,125,91,.03)); border: 1px solid rgba(46,125,91,.28); font-size: 12.5px; color: var(--text-2); }
.login-resume svg { width: 15px; height: 15px; color: #2e7d5b; flex: none; }
.login-resume b { color: var(--text-1); font-weight: 700; }
.login-resume .btn { margin-left: auto; flex: none; }
.login-copy { margin-top: 18px; text-align: center; font-size: 11px; color: var(--text-3); letter-spacing: .12em; }

/* 登录页左侧：三张全幅动态轮播场景 */
.login-left { color: #fff; }
.lg-stage { position: absolute; inset: 0; overflow: hidden; }
.lg-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 6vw 96px; opacity: 0; transition: opacity .9s var(--eo); pointer-events: none; }
.lg-slide.on { opacity: 1; pointer-events: auto; }
/* 三张场景背景：跟随系统主题色渐变（color-mix 派生深色，不支持时回退深色底） */
.lg-slide { background: linear-gradient(150deg, #182a52 0%, #101c3c 48%, #0a142e 100%); }
.lg-slide.s-grid { background: linear-gradient(150deg, color-mix(in srgb, var(--ac) 58%, #0b1530) 0%, color-mix(in srgb, var(--ac) 32%, #0b1530) 48%, #0a142e 100%); }
.lg-slide.s-doc { background: linear-gradient(150deg, color-mix(in srgb, var(--ac) 44%, #0d2136) 0%, color-mix(in srgb, var(--ac) 22%, #0d2136) 52%, #081826 100%); }
.lg-slide.s-party { background: linear-gradient(150deg, color-mix(in srgb, var(--ac) 60%, #200c12) 0%, color-mix(in srgb, var(--ac) 36%, #200c12) 50%, #150709 100%); }
.lg-slide::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.5px); background-size: 26px 26px; mask-image: linear-gradient(115deg, transparent 30%, #000 78%); }
.lg-scene { position: absolute; inset: 0; }
.lg-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lg-slide .lg-scene svg { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.pulse { transform-origin: center; animation: pulseDot 2.6s ease-in-out infinite; }
.pulse.d2 { animation-delay: .7s; } .pulse.d3 { animation-delay: 1.3s; }
@keyframes pulseDot { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.float { animation: floatY 5.5s ease-in-out infinite; }
.float.f2 { animation-delay: 1.2s; } .float.f3 { animation-delay: 2.3s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.lg-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: rgba(10, 18, 40, .55); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); font-size: 12px; color: rgba(255, 255, 255, .78); box-shadow: 0 10px 26px rgba(4, 10, 26, .35); animation: floatY 6s ease-in-out infinite; }
.lg-chip b { color: #fff; font-weight: 700; }
.lg-chip svg { width: 13px; height: 13px; color: var(--ac-2); }
.lg-chip.c1 { left: 8%; top: 24%; } .lg-chip.c2 { right: 10%; top: 18%; animation-delay: 1.4s; } .lg-chip.c3 { right: 22%; bottom: 34%; animation-delay: 2.6s; }
.lg-slide.s-party .lg-chip svg { color: #f5c95e; }
.lg-cap { position: relative; z-index: 2; max-width: 560px; }
.cap-line { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--eo) .25s, transform .7s var(--eo) .25s; }
.lg-slide.on .cap-line { opacity: 1; transform: none; }
.lg-slide.on .cap-line:nth-child(2) { transition-delay: .45s; }
.lg-cap .cap-line:first-child { display: flex; align-items: baseline; gap: 12px; font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: .04em; font-family: var(--font-body); color: #fff; }
.lg-cap .cap-line:first-child i { font-style: normal; background: linear-gradient(100deg, var(--ac-2), color-mix(in srgb, var(--ac) 60%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-slide.s-party .cap-line:first-child i { background: linear-gradient(100deg, #f7d271, #e0a83c); -webkit-background-clip: text; background-clip: text; }
.lg-cap p { margin-top: 12px; font-size: 13.5px; line-height: 1.9; color: rgba(255, 255, 255, .6); max-width: 46ch; }
.login-brandline { position: absolute; z-index: 3; left: 5vw; top: 5vh; }
.login-brandline b { color: #fff; }
.login-brandline .brand-sub { color: rgba(255, 255, 255, .45) !important; }
.login-footbar { position: absolute; z-index: 3; left: 5vw; right: 5vw; bottom: 4.5vh; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.login-footbar .login-dots i { background: rgba(255, 255, 255, .22); }
.login-footbar .login-dots i.on { background: linear-gradient(90deg, var(--ac-2), var(--ac)); }
.login-footbar .login-chips { margin-top: 0; }
.login-footbar .login-chips span { padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .62); font-size: 11.5px; letter-spacing: .04em; backdrop-filter: blur(6px); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: var(--r-md); font-size: 14px; font-weight: 500; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); transition: all var(--dur-fast) ease-out; white-space: nowrap; position: relative; overflow: hidden; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { background: var(--panel-2); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(140deg, var(--ac-2), var(--ac) 75%); border-color: transparent; color: #fff; box-shadow: 0 6px 18px var(--ac-glow); }
.btn.primary:hover { box-shadow: 0 10px 26px var(--ac-glow); filter: brightness(1.05); }
.btn.primary::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent); transform: skewX(-20deg); transition: left .5s var(--eo); }
.btn.primary:hover::after { left: 130%; }
.btn.gold { background: linear-gradient(150deg, #f0c27b, #c9992e); border-color: transparent; color: #3a2c10; box-shadow: 0 6px 18px rgba(201,153,46,.25); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); box-shadow: none; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: rgba(212,60,44,.08); border-color: rgba(212,60,44,.4); }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn.lg { height: 50px; padding: 0 28px; font-size: 15.5px; font-weight: 700; letter-spacing: .2em; text-indent: .2em; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; color: var(--text-2); transition: all var(--dur-fast) ease-out; }
.btn-icon:hover { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.btn-icon svg { width: 17px; height: 17px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 7px; letter-spacing: .04em; }
.field .req::after { content: " *"; color: var(--danger); }
.input, .select, .textarea { width: 100%; min-height: 42px; padding: 9px 14px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-md); transition: border-color var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out; font-size: 14px; color: var(--text); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.select option { background: var(--panel); color: var(--text); }
.textarea { min-height: 100px; resize: vertical; line-height: 1.75; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.cols3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 应用布局 ---------- */
#app { display: none; }
#app.ready { display: block; }
.app-shell { display: flex; min-height: 100vh; }
/* ---- 门户模式：登录后首页整屏全宽（隐藏侧栏/顶栏），点卡片进入模块布局 ---- */
body.portal .sidebar { transform: translateX(-100%); }
body.portal .main { margin-left: 0; }
body.portal .topbar { display: none; }
body.portal .content { padding: 0; max-width: none; }
body.portal .home-intro { min-height: 100vh; }
/* ---- 顶栏用户区（模块模式：头像 + 姓名 + 角色·村名 + 退出） ---- */
.topbar-user { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--line); }
.topbar-user .tu-av { width: 34px; height: 34px; font-size: 13px; }
.topbar-user .tu-info b { display: block; font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.topbar-user .tu-info span { display: block; font-size: 11px; color: var(--text-3); }
.topbar-user .tu-out { color: var(--text-3); }
.topbar-user .tu-out:hover { color: #ff8a80; }
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); z-index: 60; background: var(--side-bg); color: #fff; display: flex; flex-direction: column; transition: transform var(--dur-base) var(--eo); box-shadow: 4px 0 24px rgba(10, 18, 40, .18); }
.sidebar::after { content: ""; position: absolute; top: -30%; right: -60%; width: 130%; height: 60%; pointer-events: none; background: radial-gradient(closest-side, rgba(79, 125, 240, .16), transparent); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 16px; border-bottom: 1px solid rgba(255, 255, 255, .09); position: relative; z-index: 1; }
/* 抽屉收起按钮 */
.side-fold { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); flex: none; transition: all var(--dur-fast); }
.side-fold:hover { color: #fff; background: rgba(255,255,255,.16); transform: translateX(-2px); }
.side-fold svg { width: 15px; height: 15px; }
@media (max-width: 1023px) { .side-fold { display: none; } }
.main { transition: margin-left var(--dur-base) var(--eo); }
body.side-collapsed .sidebar { transform: translateX(-100%); }
body.side-collapsed .main { margin-left: 0; }
body.side-collapsed .menu-toggle { display: inline-flex; color: var(--ac); }
.sidebar-brand .brand-logo { width: 40px; height: 40px; }
.sidebar-brand b { display: block; font-family: var(--font-body); font-weight: 800; font-size: 16px; letter-spacing: .06em; color: #fff; }
.sidebar-brand span { display: block; font-size: 10px; color: rgba(255, 255, 255, .42); letter-spacing: .18em; margin-top: 2px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 12px 20px; position: relative; z-index: 1; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
.nav-group { margin-top: 16px; }
.nav-group > .group-label { padding: 0 12px 7px; font-size: 10px; letter-spacing: .26em; color: rgba(255, 255, 255, .36); display: flex; align-items: center; gap: 8px; }
.group-label::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .09); }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; color: rgba(255, 255, 255, .68); font-size: 13.5px; transition: all var(--dur-fast) ease-out; position: relative; }
.nav-item svg { width: 17px; height: 17px; flex: none; opacity: .78; transition: all var(--dur-fast); }
.nav-item:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.nav-item:hover svg { opacity: 1; }
.nav-item.on { background: linear-gradient(92deg, rgba(79, 125, 240, .32), rgba(79, 125, 240, .1)); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(122, 158, 255, .28); }
.nav-item.on svg { opacity: 1; color: #9db9ff; }
.nav-item.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #7aa2ff, var(--ac-2)); }
.nav-item .badge { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: rgba(255, 255, 255, .14); color: #cfdcff; font-size: 10.5px; line-height: 18px; text-align: center; }
.nav-item.on .badge { background: var(--ac-2); color: #fff; }
.sidebar-foot { padding: 14px 16px 16px; border-top: 1px solid rgba(255, 255, 255, .09); position: relative; z-index: 1; }
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; background: linear-gradient(140deg, #5b8bf5, var(--ac)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px rgba(44, 92, 197, .4); }
.sidebar-user b { display: block; font-size: 13px; line-height: 1.35; color: #fff; }
.sidebar-user span { font-size: 11px; color: rgba(255, 255, 255, .45); }
.logout-btn { margin-left: auto; color: rgba(255, 255, 255, .5); }
.logout-btn:hover { color: #ff8a80; }
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; position: relative; }
.topbar { position: sticky; top: 0; z-index: 40; height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 26px; background: var(--topbar-bg); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar .crumb { display: flex; align-items: center; gap: 10px; }
.crumb-ico { width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--panel-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.crumb-ico svg { width: 17px; height: 17px; color: var(--ac); }
.topbar .crumb b { font-family: var(--font-body); font-weight: 800; font-size: 16.5px; letter-spacing: .02em; color: var(--text); }
.topbar .crumb small { color: var(--text-3); font-size: 11px; margin-left: 6px; letter-spacing: .1em; }
.topbar-spacer { flex: 1; }
.topbar-search { position: relative; width: 260px; }
.topbar-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.topbar-search input { width: 100%; height: 38px; padding: 0 14px 0 34px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); font-size: 13px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.topbar-search input::placeholder { color: var(--text-3); }
.topbar-search input:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); }
.topbar-user { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.topbar-user .who b { display: block; font-size: 12.5px; line-height: 1.3; }
.topbar-user .who span { font-size: 10.5px; color: var(--text-3); }
.content { flex: 1; padding: 30px 40px 42px; max-width: 1400px; width: 100%; margin: 0 auto; position: relative; z-index: 1; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-family: var(--font-body); font-weight: 800; font-size: 23px; letter-spacing: .01em; color: var(--text); }
.page-head .sub { color: var(--text-3); font-size: 12.5px; margin-top: 3px; }
.page-head .head-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.menu-toggle { display: none; }
.backdrop { display: none; }

/* ---------- 卡片 ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; box-shadow: var(--shadow-1); }
.card.pad { padding: 22px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
/* 标题行内联图标防溢出（SVG 无 width 属性时按容器拉伸的兜底约束） */
.card-head h3 svg, .perm-panel-head h3 svg, .modal-head h3 svg, .page-head h2 svg, .perm-panel-head .head-side svg { max-width: 18px; max-height: 18px; width: 16px; height: 16px; flex: none; }
.page-head h2 svg { width: 18px; height: 18px; }
.card-head h3 { font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: .02em; display: flex; align-items: center; gap: 9px; color: var(--text); }
.card-head h3::before { content: ""; width: 4px; height: 15px; border-radius: 4px; background: linear-gradient(180deg, var(--ac-2), var(--ac)); }
.card-head .head-side { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-head .head-side .btn { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 9px; }

/* ---------- 首页：深蓝 hero 横幅 + KPI 大数字 + 应用宫格 ---------- */
.welcome { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--hero-bg); color: #fff; padding: 26px 32px; box-shadow: 0 16px 40px rgba(16, 30, 64, .28); margin-bottom: 18px; }
.welcome::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(26rem 16rem at 88% -18%, rgba(79, 125, 240, .3), transparent 62%),
              radial-gradient(20rem 14rem at -4% 120%, rgba(44, 92, 197, .28), transparent 60%); }
.welcome::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(60% 120% at 70% 20%, #000 30%, transparent 75%); }
.welcome .inner { position: relative; z-index: 1; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.w-hello { font-family: var(--font-body); font-weight: 800; font-size: 26px; letter-spacing: .01em; line-height: 1.3; color: #fff; }
.w-hello .wname { background: linear-gradient(100deg, #ffd98a, #f5b856 70%); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 30px; }
.w-date { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: rgba(255, 255, 255, .58); font-size: 12.5px; letter-spacing: .05em; }
.w-date svg { width: 14px; height: 14px; }
.w-sub { color: rgba(255, 255, 255, .52); font-size: 13px; margin-top: 6px; max-width: 52ch; }
.w-search { position: relative; margin-top: 16px; width: min(360px, 100%); }
.w-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: rgba(255, 255, 255, .5); pointer-events: none; }
.w-search input { width: 100%; height: 42px; padding: 0 16px 0 38px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 13.5px; transition: all var(--dur-fast); }
.w-search input::placeholder { color: rgba(255, 255, 255, .42); }
.w-search input:focus { outline: none; background: rgba(255, 255, 255, .16); border-color: rgba(122, 158, 255, .6); box-shadow: 0 0 0 3px rgba(79, 125, 240, .25); }
.w-stats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-left: auto; }
.w-orb { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 17px; border-radius: var(--r-md); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); backdrop-filter: blur(6px); min-width: 172px; transition: transform .38s var(--spring), background var(--dur-base), box-shadow .38s var(--eo); cursor: pointer; }
.w-orb:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .13); box-shadow: 0 14px 30px -6px rgba(4, 10, 26, .45); }
.w-orb .ico { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); flex: none; }
.w-orb .ico svg { width: 19px; height: 19px; color: #b7ccff; }
.w-orb b { display: block; font-family: var(--font-num); font-size: 24px; font-weight: 700; line-height: 1.15; color: #fff; }
.w-orb b em { font-style: normal; font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, .48); font-family: var(--font-body); margin-left: 3px; }
.w-orb span { font-size: 11px; color: rgba(255, 255, 255, .52); letter-spacing: .05em; }
/* KPI 大数字卡 */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); cursor: pointer; transition: transform .38s var(--spring), box-shadow .38s var(--eo); text-align: left; width: 100%; }
.kpi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.kpi-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--tint); flex: none; }
.kpi-ico svg { width: 20px; height: 20px; color: var(--tink); }
.kpi-body { flex: 1; min-width: 0; }
.kpi-body .lb { font-size: 13px; font-weight: 600; color: var(--text-2); }
.kpi-body .big { display: block; font-family: var(--font-num); font-size: 30px; font-weight: 700; line-height: 1.15; color: var(--text); margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi-body .big em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--text-3); font-family: var(--font-body); margin-left: 3px; }
.kpi-body .sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.sec-row { margin-bottom: 24px; }
.sec-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sec-title h3 { font-family: var(--font-body); font-weight: 800; font-size: 16.5px; letter-spacing: .02em; color: var(--text); }
.sec-title h3::before { content: ""; width: 4px; height: 15px; border-radius: 4px; background: linear-gradient(180deg, var(--ac-2), var(--ac)); display: inline-block; margin-right: 10px; }
.sec-title small { color: var(--text-3); font-size: 12px; }
.sec-title .line { flex: 1; height: 1px; background: var(--line); }
.launch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.launch-card { position: relative; display: flex; flex-direction: column; gap: 11px; padding: 18px 16px 15px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); transition: transform .38s var(--spring), box-shadow .38s var(--eo), border-color var(--dur-base); overflow: hidden; text-align: left; min-height: 130px; box-shadow: var(--shadow-1); }
.launch-card:hover { transform: translateY(-6px) scale(1.015); border-color: var(--c-line, var(--ac-line)); box-shadow: 0 3px 6px rgba(23,32,54,.05), 0 22px 38px -8px var(--c-glow, rgba(23,32,54,.18)), 0 40px 72px -24px var(--c-glow, rgba(23,32,54,.12)); }
.launch-card .ico { width: 42px; height: 42px; border-radius: 11px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; background: var(--c-soft, var(--ac-soft)); transition: transform var(--dur-base) var(--eo); }
.launch-card:hover .ico { transform: translateY(-2px); }
.launch-card .ico svg { width: 21px; height: 21px; color: var(--c-ink, var(--ac)); }
.launch-card b { position: relative; z-index: 1; font-size: 14.5px; font-weight: 700; letter-spacing: .02em; color: var(--text); }
.launch-card small { position: relative; z-index: 1; color: var(--text-3); font-size: 11.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.launch-card .cnt { position: absolute; right: 14px; top: 17px; z-index: 1; font-family: var(--font-num); font-size: 12px; color: var(--text-3); background: var(--panel-2); border-radius: 999px; padding: 1px 9px; font-variant-numeric: tabular-nums; }
.launch-card .arrow { position: absolute; right: 14px; bottom: 14px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--c-soft, var(--ac-soft)); opacity: 0; transform: translateX(-6px); transition: all var(--dur-base) var(--eo); }
.launch-card .arrow svg { width: 13px; height: 13px; color: var(--c-ink, var(--ac)); }
.launch-card:hover .arrow { opacity: 1; transform: none; }
/* 热词标签 */
.hot-words { display: flex; flex-wrap: wrap; gap: 10px; }
.hw { padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer; border: 1px solid; transition: transform var(--dur-fast), box-shadow var(--dur-fast); }
.hw:hover { transform: translateY(-2px); }

/* ---------- 首页：红金动态首页（开机动画场景化） ---------- */
.home-intro { position: relative; overflow: hidden; border-radius: var(--r-xl); min-height: calc(100vh - 118px); background: radial-gradient(120% 90% at 50% 14%, #a41614 0%, #7d0f0e 46%, #4d0808 100%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 44px 30px 130px; box-shadow: 0 24px 60px -14px rgba(60, 8, 8, .35); }
.hi-rays { position: absolute; inset: -40%; pointer-events: none; background: repeating-conic-gradient(from 0deg at 50% 22%, rgba(255, 214, 130, .07) 0deg 7deg, transparent 7deg 15deg); animation: raysSpin 40s linear infinite; mask-image: radial-gradient(58% 58% at 50% 22%, #000 18%, transparent 68%); }
.hi-body { position: relative; z-index: 2; text-align: center; width: 100%; max-width: 1120px; }
.hi-flag { width: 150px; height: 105px; margin: 0 auto 4px; display: block; filter: drop-shadow(0 0 14px rgba(247, 210, 113, .4)); }
.hi-flag .st { fill: #f7d271; opacity: 0; transform: scale(.2); transform-origin: center; transform-box: fill-box; animation: starIn .7s var(--eo) forwards; }
.hi-flag .big { animation-delay: .1s; }
.hi-flag .sm:nth-of-type(2) { animation-delay: .28s; }
.hi-flag .sm:nth-of-type(3) { animation-delay: .42s; }
.hi-flag .sm:nth-of-type(4) { animation-delay: .56s; }
.hi-flag .sm:nth-of-type(5) { animation-delay: .7s; }
.hi-slogan { font-size: 13px; letter-spacing: .5em; text-indent: .5em; color: rgba(255, 224, 160, .85); opacity: 0; animation: fadeUp .8s var(--eo) .5s forwards; }
.hi-title { margin-top: 10px; font-family: var(--font-display); font-weight: 900; font-size: clamp(38px, 5.2vw, 66px); letter-spacing: .14em; text-indent: .14em;
  background: linear-gradient(180deg, #ffe9ad 8%, #f7c24e 46%, #e29a26 78%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .35)); opacity: 0; animation: titleIn 1s var(--eo) .7s forwards; }
.hi-line { width: 110px; height: 2px; margin: 16px auto 0; background: linear-gradient(90deg, transparent, #f7d271, transparent); transform: scaleX(0); animation: lineGrow .8s var(--eo) 1.2s forwards; }
.hi-sub { margin-top: 11px; font-size: 13.5px; letter-spacing: .34em; text-indent: .34em; color: rgba(255, 236, 200, .78); opacity: 0; animation: fadeUp .8s var(--eo) 1.4s forwards; }
.hi-date { margin-top: 7px; font-size: 12px; color: rgba(255, 236, 200, .5); letter-spacing: .12em; opacity: 0; animation: fadeUp .8s var(--eo) 1.55s forwards; }
.hi-stats { display: flex; justify-content: center; gap: clamp(22px, 5vw, 64px); margin-top: 30px; flex-wrap: wrap; }
.hi-stat { text-align: center; padding: 10px 18px; border-radius: 14px; transition: all .38s var(--spring); opacity: 0; animation: fadeUp .7s var(--eo) 1.7s forwards; }
.hi-stat:hover { background: rgba(255, 224, 160, .1); transform: translateY(-4px); box-shadow: 0 16px 34px -8px rgba(0, 0, 0, .4); }
.hi-stat b { display: block; font-size: 34px; font-weight: 700; line-height: 1.15; color: #f7d271; text-shadow: 0 3px 14px rgba(0, 0, 0, .3); font-variant-numeric: tabular-nums; }
.hi-stat span { font-size: 11.5px; color: rgba(255, 236, 200, .62); letter-spacing: .08em; }
/* ---- 首页彩色渐变卡片宫格（最初版形式：独立色系 + 3D 倾斜 + 光扫 + 色晕） ---- */
.home-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 13px; width: 100%; margin-top: 30px; position: relative; z-index: 2; perspective: 900px; }
.mod-card { position: relative; overflow: hidden; text-align: left; border-radius: 16px; padding: 16px 15px 14px; cursor: pointer;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 30%, rgba(12,8,8,.25)), rgba(12,8,8,.38) 68%), rgba(12,8,8,.3);
  border: 1px solid color-mix(in srgb, var(--c) 48%, transparent);
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--c) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.08);
  transform-style: preserve-3d; transition: transform .38s cubic-bezier(.34,1.45,.64,1), box-shadow .38s var(--eo), border-color .3s;
  opacity: 0; animation: fadeUp .55s var(--eo) forwards; animation-delay: calc(var(--i) * 36ms + 1.7s); }
.mod-card::before { content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent); transform: skewX(-20deg); transition: left .55s var(--eo); pointer-events: none; }
.mod-card:hover::before { left: 130%; }
.mod-card:hover { transform: translateY(-6px) rotateX(4deg) rotateY(-4deg) scale(1.02);
  box-shadow: 0 18px 44px -10px color-mix(in srgb, var(--c) 55%, transparent), 0 28px 64px -18px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12);
  border-color: var(--c); }
.mod-card::after { content: ""; position: absolute; right: -26px; bottom: -26px; width: 84px; height: 84px; border-radius: 50%;
  background: var(--c); opacity: .22; filter: blur(10px); transform: scale(.8); transition: transform .45s var(--eo), opacity .45s; pointer-events: none; }
.mod-card:hover::after { transform: scale(1.15); opacity: .34; }
.mod-card .mc-ico { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 10px;
  background: linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 66%, #000));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--c) 62%, transparent); }
.mod-card .mc-ico svg { width: 18px; height: 18px; color: #fff; }
.mod-card b { display: block; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.mod-card small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.5; }
.mod-card .mc-go { position: absolute; right: 12px; bottom: 11px; font-size: 10.5px; color: var(--c); filter: brightness(1.5); opacity: 0; transition: opacity .25s; }
.mod-card:hover .mc-go { opacity: 1; }

/* 数据带 */
.home-dash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 4px; }
.home-dash .dash-tile { min-width: 0; }
.dash-tile .card-pad { min-width: 0; overflow: hidden; }
.dash-tile { grid-column: span 4; }
.dash-tile.w3 { grid-column: span 3; }
.dash-tile.w5 { grid-column: span 5; }
.dash-tile.w6 { grid-column: span 6; }
.dash-tile.w7 { grid-column: span 7; }
.dash-tile.w12 { grid-column: span 12; }
.chart-box { position: relative; height: 240px; }
.chart-box svg, .chart-box canvas { display: block; }
.activity-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.activity-item:last-child { border-bottom: none; }
.activity-item .t { flex: none; width: 52px; text-align: center; }
.activity-item .t b { display: block; font-family: var(--font-num); font-size: 17px; color: var(--ac); line-height: 1.15; }
.activity-item .t span { font-size: 10px; color: var(--text-3); }
.activity-item .m { flex: 1; min-width: 0; }
.activity-item .m p { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 表格 / 筛选 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--text-3); }
.search-box input { width: 250px; height: 38px; padding: 0 13px 0 32px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); font-size: 13px; }
.search-box input::placeholder { color: var(--text-3); }
.search-box input:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 15px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); transition: all var(--dur-fast) ease-out; }
.chip:hover { border-color: var(--ac); color: var(--ac); }
.chip.on { background: linear-gradient(140deg, var(--ac-2), var(--ac)); border-color: transparent; color: #fff; box-shadow: 0 4px 12px var(--ac-glow); }
.data-table { width: 100%; background: var(--panel); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.data-table table { font-size: 13px; }
.data-table thead th { text-align: left; padding: 12px 15px; background: var(--panel-2); font-weight: 600; color: var(--text-2); font-size: 11.5px; letter-spacing: .06em; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
.data-table thead th.sortable { cursor: pointer; }
.data-table thead th.sortable:hover { color: var(--ac); }
.data-table tbody td { padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text-2); }
.data-table tbody td b, .data-table tbody td strong { color: var(--text); }
.data-table tbody tr { transition: background var(--dur-fast) ease-out; }
.data-table tbody tr:hover { background: var(--ac-soft); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .actions { display: flex; gap: 4px; justify-content: flex-end; }
.data-table .link-btn { color: var(--ac); font-weight: 500; padding: 4px 7px; border-radius: 6px; font-size: 12.5px; }
.data-table .link-btn:hover { background: var(--ac-soft); }
.data-table .link-btn.del { color: var(--danger); }
.data-table .link-btn.del:hover { background: rgba(212,60,44,.08); }
.table-empty { padding: 56px 20px; text-align: center; color: var(--text-3); }
.table-empty svg { width: 40px; height: 40px; margin: 0 auto 12px; opacity: .3; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; gap: 8px; }
.pager .pages { display: flex; gap: 6px; flex-wrap: wrap; }
.pager button { min-width: 30px; height: 30px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); font-size: 12.5px; color: var(--text-2); }
.pager button.on { background: linear-gradient(140deg, var(--ac-2), var(--ac)); color: #fff; border-color: transparent; }
.pager button:disabled { opacity: .35; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2.5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag.red { background: rgba(212,60,44,.09); color: var(--danger); border-color: rgba(212,60,44,.25); }
.tag.green { background: rgba(31,157,105,.1); color: #1f9d69; border-color: rgba(31,157,105,.3); }
.tag.blue { background: rgba(47,111,208,.09); color: #2f6fd0; border-color: rgba(47,111,208,.28); }
.tag.gold { background: rgba(201,153,46,.1); color: var(--gold); border-color: rgba(201,153,46,.32); }
.tag.gray { background: var(--panel-2); color: var(--text-2); border-color: var(--line-2); }
[data-theme="dark"] .tag.green { color: #6fe3b2; }
[data-theme="dark"] .tag.blue { color: #8ab6ff; }
[data-theme="dark"] .tag.gold { color: var(--gold); }
[data-theme="dark"] .tag.red { color: #ff8a8a; }

/* ---------- 弹窗 / 提示 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; background: rgba(30, 26, 20, .4); backdrop-filter: blur(6px); padding: 20px; }
[data-theme="dark"] .modal-mask { background: rgba(5, 7, 10, .62); }
.modal { width: min(640px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); animation: pop-in var(--dur-base) var(--eo); }
.modal.wide { width: min(940px, 100%); }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.modal-head .btn-icon { margin-left: auto; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-size: 13px; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); animation: toast-in var(--dur-base) var(--eo); backdrop-filter: blur(8px); }
.toast svg { width: 15px; height: 15px; }
.toast.ok svg { color: #1f9d69; }
.toast.err svg { color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ---------- 看板 ---------- */
.kanban-wrap { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.kanban-col { flex: none; width: 274px; border-radius: var(--r-lg); background: var(--panel-2); border: 1px solid var(--line); padding: 12px; }
.kanban-col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.kanban-col-head b { font-size: 14px; }
.kanban-col-head .count { margin-left: auto; font-size: 11.5px; color: var(--text-3); background: var(--panel); border-radius: 999px; padding: 1px 9px; }
.kanban-col-head .col-del { color: var(--text-3); }
.kanban-col-head .col-del:hover { color: var(--danger); }
.kanban-cards { display: flex; flex-direction: column; gap: 10px; min-height: 40px; }
.kanban-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; cursor: grab; box-shadow: var(--shadow-1); transition: all var(--dur-fast) ease-out; }
.kanban-card:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.kanban-card.dragging { opacity: .5; transform: rotate(2deg) scale(1.02); }
.kanban-col.drag-over { outline: 2px dashed var(--ac); outline-offset: -2px; background: var(--ac-soft); }
.kanban-card b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; line-height: 1.55; }
.kanban-card.overdue b { color: var(--danger); }
.kanban-card .meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); flex-wrap: wrap; }
.kanban-card .meta .who { display: inline-flex; align-items: center; gap: 5px; }
.kanban-card .meta .who i { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(140deg, #6c9cf0, #2f6fd0); color: #fff; font-size: 10px; font-style: normal; display: inline-flex; align-items: center; justify-content: center; }
.kanban-card .meta svg { width: 12px; height: 12px; }
.kanban-add { width: 100%; margin-top: 10px; padding: 8px; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--text-3); font-size: 13px; transition: all var(--dur-fast) ease-out; display: flex; align-items: center; justify-content: center; gap: 6px; }
.kanban-add svg { width: 14px; height: 14px; }
.kanban-add:hover { color: var(--ac); border-color: var(--ac); background: var(--ac-soft); }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; max-width: 880px; margin: 0 auto; padding: 10px 0 30px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(180deg, var(--gold), var(--panel-3)); }
.tl-item { position: relative; width: 50%; padding: 10px 40px 26px; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-item::before { content: ""; position: absolute; top: 22px; width: 13px; height: 13px; border-radius: 50%; background: var(--panel); border: 3px solid var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); z-index: 1; }
.tl-item:nth-child(odd)::before { right: -6.5px; }
.tl-item:nth-child(even)::before { left: -6.5px; }
.tl-card { display: inline-block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--shadow-1); text-align: left; max-width: 100%; transition: all var(--dur-base) var(--eo); }
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.tl-card .y { font-family: var(--font-num); font-weight: 700; color: var(--ac); font-size: 17px; }
.tl-card h4 { font-size: 14px; margin: 4px 0; }
.tl-card p { font-size: 12.5px; color: var(--text-2); line-height: 1.75; }

/* ---------- 值班日历 ---------- */
.calendar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.cal-head { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cal-head b { font-family: var(--font-display); font-size: 19px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow { padding: 9px 10px; text-align: center; font-size: 11.5px; color: var(--text-2); background: var(--panel-2); border-bottom: 1px solid var(--line); letter-spacing: .1em; }
.cal-cell { min-height: 96px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; cursor: pointer; transition: background var(--dur-fast) ease-out; }
.cal-cell:hover { background: var(--ac-soft); }
.cal-cell .d { font-family: var(--font-num); font-size: 13px; font-weight: 600; color: var(--text-2); }
.cal-cell.today { background: var(--ac-soft); box-shadow: inset 0 0 0 1.5px var(--ac); }
.cal-cell.today .d { color: var(--ac); }
.cal-cell.mute .d { opacity: .3; }
.cal-cell .duty { margin-top: 5px; font-size: 11px; line-height: 1.55; }
.cal-cell .duty .leader { color: var(--gold); font-weight: 600; }
.cal-cell .duty .staff { color: #2f6fd0; }
.cal-cell .duty .note { color: var(--warn); }

/* ---------- 网格化 ---------- */
.grid-canvas { position: relative; min-height: 440px; background:
  linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 30px 30px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: inset var(--shadow-1); }
.grid-block { position: absolute; min-width: 196px; border-radius: var(--r-md); color: #fff; padding: 13px 15px; cursor: grab; user-select: none; box-shadow: var(--shadow-2); transition: box-shadow var(--dur-fast), transform var(--dur-fast); }
.grid-block:hover { box-shadow: var(--shadow-3); }
.grid-block.dragging { opacity: .75; cursor: grabbing; }
.grid-block b { display: block; font-size: 14px; margin-bottom: 6px; text-shadow: 0 1px 4px rgba(0,0,0,.25); position: relative; padding-right: 26px; }
.grid-block .gb-edit { position: absolute; top: -3px; right: -3px; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .22); display: inline-flex; align-items: center; justify-content: center; opacity: .9; }
.grid-block .gb-edit svg { width: 13px; height: 13px; }
.grid-block:hover .gb-edit { background: rgba(255, 255, 255, .36); }
.grid-block .row { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .95; margin-top: 2px; }
.grid-block .row svg { width: 12px; height: 12px; flex: none; }
/* 网格事件列表：信息可截断省略，操作按钮始终完整可见 */
.ev-row { align-items: center; flex-wrap: nowrap; }
.ev-row b { flex: none; }
.ev-row .ev-what { flex: 1; min-width: 150px; color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-row .ev-actions { display: flex; gap: 2px; align-items: center; flex: none; }
.ev-row .ev-actions .link-btn { color: var(--ac); font-weight: 500; padding: 4px 8px; border-radius: 6px; font-size: 12.5px; white-space: nowrap; }
.ev-row .ev-actions .link-btn:hover { background: var(--ac-soft); }
.ev-row .ev-actions .link-btn.del { color: var(--danger); }
.ev-row .ev-actions .link-btn.del:hover { background: rgba(212, 60, 44, .08); }
@media (max-width: 900px) { .ev-row { flex-wrap: wrap; } .ev-row .ev-what { min-width: 100%; } }
/* 我的账号：权限标签整齐换行，卡片不越列 */
.perm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.perm-tags .tag { max-width: 100%; }
#meGrid > .card, #meGrid > div, #siteGrid > .card, #siteGrid > div { min-width: 0; }
.setting-row .tag { flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 思维导图 ---------- */
.mindmap-box { position: relative; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); min-height: 480px; }
.mindmap-svg { display: block; }
.mm-node { position: absolute; transform: translate(-50%, -50%); border-radius: var(--r-md); padding: 9px 15px; background: var(--panel); border: 1.6px solid var(--node-c, var(--line-2)); box-shadow: var(--shadow-1); cursor: pointer; transition: all var(--dur-fast); text-align: center; }
.mm-node:hover { box-shadow: var(--shadow-2); transform: translate(-50%, -50%) scale(1.05); }
.mm-node.root { background: linear-gradient(140deg, var(--ac-2), var(--ac)); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 16px; border-color: transparent; }
.mm-node b { font-size: 13px; white-space: nowrap; }
.mm-node .ops { position: absolute; top: -10px; right: -10px; display: none; gap: 4px; }
.mm-node:hover .ops { display: flex; }
.mm-node .ops button { width: 20px; height: 20px; border-radius: 50%; background: var(--text); color: var(--panel); display: flex; align-items: center; justify-content: center; }
.mm-node .ops svg { width: 11px; height: 11px; }

/* ---------- 相册 / 文件 / 文档 ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.album-item { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--panel); aspect-ratio: 4 / 3; cursor: pointer; box-shadow: var(--shadow-1); }
.album-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--eo); }
.album-item:hover img { transform: scale(1.06); }
.album-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; background: linear-gradient(transparent, rgba(10,12,16,.72)); color: #fff; font-size: 12.5px; }
.album-item .ops { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity var(--dur-fast); }
.album-item:hover .ops { opacity: 1; }
.album-item .ops button { width: 30px; height: 30px; border-radius: 9px; background: rgba(10,12,16,.7); color: #fff; display: flex; align-items: center; justify-content: center; }
.album-item .ops svg { width: 14px; height: 14px; }
.album-uploader { border: 1.6px dashed var(--line-2); border-radius: var(--r-lg); padding: 38px; text-align: center; color: var(--text-3); cursor: pointer; transition: all var(--dur-fast); margin-bottom: 16px; background: var(--panel); }
.album-uploader svg { width: 30px; height: 30px; margin: 0 auto 8px; opacity: .5; display: block; }
.album-uploader:hover, .album-uploader.drag { border-color: var(--ac); background: var(--ac-soft); color: var(--ac); }
.file-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-bottom: 12px; flex-wrap: wrap; }
.file-crumb a:hover { color: var(--ac); }
.file-crumb svg { width: 12px; height: 12px; }
.file-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.file-row { display: flex; align-items: center; gap: 13px; padding: 13px 17px; border-bottom: 1px solid var(--line); transition: background var(--dur-fast); }
.file-row:hover { background: var(--ac-soft); }
.file-row:last-child { border-bottom: none; }
.file-row .f-ico { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.file-row .f-ico svg { width: 18px; height: 18px; }
.file-row .f-name { flex: 1; min-width: 0; cursor: pointer; }
.file-row .f-name b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .f-name small { color: var(--text-3); font-size: 11px; }
.file-row .actions { display: flex; gap: 4px; }
.file-drop { border: 1.6px dashed var(--line-2); border-radius: var(--r-lg); padding: 30px; text-align: center; color: var(--text-3); margin-bottom: 14px; transition: all var(--dur-fast); background: var(--panel); font-size: 13px; }
.file-drop svg { width: 26px; height: 26px; vertical-align: -7px; margin-right: 8px; opacity: .5; }
.file-drop.drag { border-color: var(--ac); background: var(--ac-soft); color: var(--ac); }
.doc-list-item { display: flex; gap: 14px; padding: 15px 17px; border-bottom: 1px solid var(--line); background: transparent; transition: background var(--dur-fast); cursor: pointer; }
.doc-list-item:hover { background: var(--ac-soft); }
.doc-list-item:last-child { border-bottom: none; }
.doc-list-item .d-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--ac-soft); color: var(--ac); display: flex; align-items: center; justify-content: center; flex: none; }
.doc-list-item .d-ico svg { width: 18px; height: 18px; }
.doc-list-item b { display: block; font-size: 14px; }
.doc-list-item small { color: var(--text-3); font-size: 11.5px; }
.doc-list-item .d-side { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.rich-editor { min-height: 320px; padding: 16px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 0 0 var(--r-md) var(--r-md); line-height: 1.85; outline: none; }
.rich-editor:empty::before { content: attr(data-ph); color: var(--text-3); }
.rich-editor p { margin-bottom: .8em; }
.rich-content { line-height: 1.9; color: var(--text-2); }
.rich-content img { border-radius: var(--r-md); margin: 8px 0; }
.doc-toolbar { display: flex; gap: 4px; padding: 8px; background: var(--panel-2); border: 1px solid var(--line-2); border-bottom: none; border-radius: var(--r-md) var(--r-md) 0 0; flex-wrap: wrap; }
.doc-toolbar button { min-width: 32px; height: 30px; padding: 0 9px; gap: 5px; border-radius: 8px; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-size: 12.5px; }
.doc-toolbar button svg { width: 15px; height: 15px; flex: none; }
.doc-toolbar button:hover { background: var(--panel); color: var(--text); box-shadow: var(--shadow-1); }

/* ---------- 数据大屏（页面 + 全屏模式） ---------- */
.screen-hero { border-radius: var(--r-lg); background: var(--hero-bg); border: 1px solid var(--line); padding: 18px 24px; display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.screen-hero > svg { width: 30px; height: 30px; flex: none; color: var(--ac); opacity: .9; }
.screen-hero h3 { font-family: var(--font-display); font-weight: 900; font-size: 19px; color: #fff; letter-spacing: .02em; }
.screen-hero p { color: rgba(255, 255, 255, .72); font-size: 12px; }
.screen-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.screen-card { grid-column: span 4; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; position: relative; overflow: hidden; box-shadow: var(--shadow-1); }
.screen-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--ac-2), var(--ac), transparent); opacity: .7; }
.screen-card h4 { font-size: 12.5px; color: var(--text-2); letter-spacing: .15em; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.screen-card h4::before { content: ""; width: 8px; height: 8px; background: var(--ac); transform: rotate(45deg); border-radius: 2px; }
.screen-card .big { font-family: var(--font-num); font-size: 34px; font-weight: 700; }
.screen-card .big em { font-style: normal; font-size: 12px; color: var(--text-3); margin-left: 6px; font-family: var(--font-body); }
.screen-chart { height: 250px; }
.screen-mode { position: fixed; inset: 0; z-index: 150; background: #0b0e13; color: #e9e4d8; overflow: auto; padding: 26px; }
.screen-mode::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(60rem 34rem at 50% -14%, rgba(224,75,44,.22), transparent 60%), radial-gradient(44rem 30rem at 96% 106%, rgba(240,194,123,.08), transparent 58%); }
.screen-mode .screen-head { position: relative; display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 22px; }
.screen-head h2 { font-family: var(--font-display); font-weight: 900; font-size: 30px; letter-spacing: .3em; text-indent: .3em; background: linear-gradient(100deg, #f7dca0, #d9a441 60%, #f7dca0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.screen-head .wing { flex: 1; max-width: 320px; height: 1px; background: linear-gradient(90deg, transparent, rgba(240,194,123,.55)); }
.screen-head .wing.r { background: linear-gradient(270deg, transparent, rgba(240,194,123,.55)); }
.screen-mode .screen-grid { position: relative; max-width: 1560px; margin: 0 auto; }
.screen-mode .screen-card { background: rgba(13,17,24,.72); border-color: rgba(240,194,123,.2); color: #e9e4d8; backdrop-filter: blur(8px); }
.screen-mode .screen-card::before { background: linear-gradient(90deg, transparent, rgba(240,194,123,.7), transparent); }
.screen-mode .screen-card h4 { color: rgba(233,228,216,.7); }
.screen-mode .screen-card h4::before { background: var(--gold-2, #d9a441); }
.screen-mode .screen-card .big { color: #f2ede2; }
.screen-mode .screen-card .big em { color: rgba(233,228,216,.5); }
.screen-foot { position: relative; text-align: center; color: rgba(233,228,216,.35); font-size: 12px; margin-top: 20px; letter-spacing: .1em; }
.screen-close { position: absolute; right: 26px; top: 26px; z-index: 5; background: rgba(13,17,24,.8); border-color: rgba(255,255,255,.2); color: #e9e4d8; }

/* ---------- 系统中心 ---------- */
.setting-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.setting-row:last-child { border-bottom: none; }
.setting-row .s-info { flex: 1; }
.setting-row b { display: block; font-size: 14px; }
.setting-row small { color: var(--text-3); font-size: 12px; }
.switch { position: relative; width: 44px; height: 25px; border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line-2); transition: all var(--dur-fast); flex: none; }
.switch::after { content: ""; position: absolute; left: 3px; top: 2.5px; width: 18px; height: 18px; border-radius: 50%; background: var(--panel); box-shadow: var(--shadow-1); transition: all var(--dur-fast) var(--eo); }
.switch.on { background: linear-gradient(140deg, var(--ac-2), var(--ac)); border-color: transparent; }
.switch.on::after { transform: translateX(19px); background: #fff; }
.log-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; align-items: baseline; flex-wrap: wrap; }
.log-row .t { color: var(--text-3); font-size: 11.5px; flex: none; width: 148px; font-family: var(--font-num); }
.log-row .who { font-weight: 600; flex: none; }
.log-row .what { color: var(--text-2); }
.perm-table td, .perm-table th { padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: 13px; text-align: left; color: var(--text-2); }
.perm-table th { color: var(--text-3); font-size: 11.5px; letter-spacing: .06em; }
.perm-table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--ac); }
.accent-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.accent-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: var(--shadow-1); transition: transform var(--dur-fast); }
.accent-dot:hover { transform: scale(1.12); }
.accent-dot.on { border-color: var(--text); box-shadow: 0 0 0 3px var(--ac-soft); }
.detail-grid { display: grid; grid-template-columns: 140px 1fr; }
.detail-grid dt { padding: 12px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; }
.detail-grid dd { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.group-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); margin-bottom: 12px; transition: all var(--dur-fast); min-width: 0; }
.group-card .group-head { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.group-card .group-head b { font-size: 15px; white-space: nowrap; }
.group-card .group-head small { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-card .group-badge { width: 42px; height: 42px; border-radius: 12px; background: var(--ac-soft); color: var(--ac); display: flex; align-items: center; justify-content: center; flex: none; }
.group-card .group-badge svg { width: 20px; height: 20px; }
.group-card .group-stats { display: flex; gap: 14px; color: var(--text-2); font-size: 12.5px; white-space: nowrap; flex: none; }
.group-card .actions { display: flex; gap: 4px; align-items: center; flex: none; }
.group-card .link-btn { padding: 6px 10px; white-space: nowrap; font-size: 13px; }
.group-card:hover { border-color: var(--ac-line); box-shadow: var(--shadow-1); }
.group-card .g-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--ac-soft); color: var(--ac); display: flex; align-items: center; justify-content: center; flex: none; }
.group-card .g-ico svg { width: 20px; height: 20px; }
.group-card b { display: block; font-size: 15px; }
.group-card small { color: var(--text-3); font-size: 12px; }
.group-card .g-side { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ---------- 入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: none; transition: opacity var(--dur-base) var(--eo), transform var(--dur-base) var(--eo); }
.reveal.d1 { transition-delay: 60ms; } .reveal.d2 { transition-delay: 120ms; }
.reveal.d3 { transition-delay: 180ms; } .reveal.d4 { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 打印 ---------- */
@media print {
  body::before, .sidebar, .topbar, .toolbar, .head-actions, .no-print, .btn { display: none !important; }
  body { background: #fff; color: #111; }
  .main { margin-left: 0; }
  .card, .data-table, .tl-card, .calendar, .file-list { box-shadow: none !important; border-color: #ddd !important; }
  .content { padding: 0; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .dash-tile, .dash-tile.w5, .dash-tile.w6, .dash-tile.w7 { grid-column: span 6; }
  .screen-card { grid-column: span 6; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-3); }
  .backdrop.show { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(30,26,20,.4); backdrop-filter: blur(3px); }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 14px; gap: 8px; }
  .topbar-search { display: none; }
  .topbar-user .who { display: none; }
  .content { padding: 16px 13px; }
  .form-grid, .form-grid.cols3 { grid-template-columns: 1fr; }
  .page-head h2 { font-size: 20px; }
  .login-scene { flex-direction: column; overflow-y: auto; }
  .login-left { flex: none; padding: 0; min-height: 0; height: 320px; }
  .lg-stage { position: relative; height: 100%; }
  .lg-slide { padding: 0 24px 60px; }
  .lg-chip { display: none; }
  .lg-cap .cap-line:first-child { font-size: 26px; }
  .lg-cap p { font-size: 12px; }
  .login-brandline { left: 20px; top: 18px; }
  .login-footbar { left: 20px; right: 20px; bottom: 14px; }
  .login-footbar .login-chips { display: none; }
  .login-right { flex: none; padding: 26px 20px 44px; }
  .welcome { padding: 20px 18px; border-radius: var(--r-lg); }
  .w-hello { font-size: 22px; } .w-hello .wname { font-size: 24px; }
  .w-stats { width: 100%; margin-left: 0; grid-template-columns: 1fr 1fr; }
  .w-orb { min-width: 0; padding: 12px 14px; }
  .w-orb b { font-size: 19px; }
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-card { padding: 14px; gap: 10px; }
  .kpi-ico { width: 38px; height: 38px; }
  .kpi-body .big { font-size: 23px; }
  .kpi-body .sub { display: none; }
  .home-intro { padding: 30px 16px 110px; min-height: calc(100vh - 96px); }
  .hi-flag { width: 110px; height: 77px; }
  .hi-stats { gap: 10px; }
  .hi-stat { padding: 8px 10px; }
  .hi-stat b { font-size: 24px; }
  .home-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mod-card { padding: 12px 12px 11px; }
  .launch-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .launch-card { padding: 14px 13px 13px; min-height: 116px; gap: 9px; }
  .launch-card .ico { width: 38px; height: 38px; }
  .launch-card b { font-size: 13.5px; }
  .launch-card small { font-size: 10.5px; }
  .launch-card .cnt { right: 11px; top: 12px; font-size: 10.5px; }
  .home-dash { gap: 10px; }
  .dash-tile, .dash-tile.w5, .dash-tile.w6, .dash-tile.w7, .dash-tile.w12 { grid-column: span 12; }
  .chart-box { height: 210px; }
  .timeline::before { left: 14px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 10px 0 24px 40px; }
  .tl-item:nth-child(odd)::before, .tl-item:nth-child(even)::before { left: 7.5px; right: auto; }
  .cal-cell { min-height: 64px; padding: 5px; }
  .cal-cell .duty { font-size: 9.5px; }
  .cal-cell .duty .staff { display: none; }
  .data-table { overflow-x: auto; display: block; }
  .data-table table { min-width: 660px; }
  .screen-grid { grid-template-columns: 1fr; }
  .screen-mode { padding: 16px; }
  .screen-mode .screen-card { grid-column: span 1 !important; }
  .detail-grid { grid-template-columns: 108px 1fr; }
  .log-row .t { width: 108px; }
}

/* ==================== v22 四期同发扩展样式 ==================== */
/* 提醒铃铛 */
#bellBtn { position: relative; }
#bellBtn .bell-dot { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--danger, #d05038); color: #fff; font-size: 10px; font-style: normal; display: flex; align-items: center; justify-content: center; font-family: var(--font-num); }
.bell-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: var(--r-md, 12px); border: 1px solid var(--line); background: var(--panel-2, #fbfaf7); transition: .15s; text-align: left; }
.bell-item:hover { border-color: var(--ac); background: var(--ac-soft, rgba(47,111,208,.06)); }
.bell-item .bi-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--ac-soft, rgba(47,111,208,.1)); color: var(--ac); display: flex; align-items: center; justify-content: center; flex: none; }
.bell-item .bi-ico svg { width: 17px; height: 17px; }
.bell-item b { display: block; font-size: 13.5px; }
.bell-item small { display: block; color: var(--text-3); font-size: 12px; }
.bell-item svg:last-child { width: 14px; height: 14px; color: var(--text-3); flex: none; }
/* 走访慰问 */
.care-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.care-stat { display: flex; align-items: center; gap: 12px; background: var(--panel, #fff); border: 1px solid var(--line); border-radius: var(--r-md, 12px); padding: 14px 16px; }
.care-stat .cs-ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.care-stat .cs-ico svg { width: 18px; height: 18px; }
.care-stat b { display: block; font-size: 20px; font-family: var(--font-num); line-height: 1.2; }
.care-stat span:last-child, .care-stat div span { font-size: 12px; color: var(--text-3); }
.care-stat.blue .cs-ico { background: rgba(47,111,208,.1); color: #2f6fd0; }
.care-stat.green .cs-ico { background: rgba(31,157,105,.1); color: #1f9d69; }
.care-stat.red .cs-ico { background: rgba(208,80,56,.1); color: #d05038; }
.care-stat.gold .cs-ico { background: rgba(201,153,46,.12); color: #c9992e; }
/* 公告通知 */
.notice-list { display: flex; flex-direction: column; gap: 14px; }
.notice-item { display: flex; gap: 14px; background: var(--panel, #fff); border: 1px solid var(--line); border-radius: var(--r-md, 12px); padding: 16px 18px; }
.n-badge { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.n-badge svg { width: 18px; height: 18px; }
.n-badge.red { background: rgba(208,80,56,.1); color: #d05038; }
.n-badge.blue { background: rgba(47,111,208,.1); color: #2f6fd0; }
.n-badge.gold { background: rgba(201,153,46,.12); color: #c9992e; }
.n-badge.gray { background: var(--panel-2); color: var(--text-3); }
.notice-item b { font-size: 14.5px; }
.n-body { font-size: 13.5px; color: var(--text-2); margin-top: 6px; white-space: pre-wrap; }
.n-date { display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); font-size: 12px; margin-top: 8px; }
.n-date svg { width: 13px; height: 13px; }
/* 自定义表单 */
.forms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.form-card { background: var(--panel, #fff); border: 1px solid var(--line); border-radius: var(--r-md, 12px); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.fc-head { display: flex; align-items: flex-start; gap: 12px; }
.fc-ico { width: 40px; height: 40px; border-radius: 11px; background: rgba(125,91,214,.1); color: #7d5bd6; display: flex; align-items: center; justify-content: center; flex: none; }
.fc-ico svg { width: 19px; height: 19px; }
.fc-head b { display: block; font-size: 15px; }
.fc-head small { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.fc-stats { display: flex; gap: 16px; color: var(--text-3); font-size: 12.5px; }
.fc-stats svg { width: 13px; height: 13px; vertical-align: -2px; }
.fc-ops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.dfield { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2, #fbfaf7); flex-wrap: wrap; }
.df-type { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: rgba(125,91,214,.1); color: #7d5bd6; white-space: nowrap; }
/* v26 专用模块可视化：积分排行 / 四议流程 / 志愿时长 / 应急闭环 */
.dash-band { margin-bottom: 18px; }
.rank-panel { background: var(--panel, #fff); border: 1px solid var(--line); border-radius: var(--r-md, 12px); padding: 20px 22px; }
.rank-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.rank-title svg { width: 16px; height: 16px; color: var(--ac, #2f6fd0); }
.rank-title small { font-weight: 400; color: var(--text-3); font-size: 12px; }
.podium-row { display: flex; align-items: stretch; gap: 14px; max-width: 640px; margin: 6px auto 20px; }
.podium { flex: 1; border-radius: 12px; border: 1px solid var(--line); padding: 14px 10px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; background: var(--panel-2, #fbfaf7); overflow: hidden; }
.podium b { font-size: 14px; }
.podium small { color: var(--text-3); font-size: 11.5px; }
.podium strong { font-size: 18px; font-family: var(--font-num); }
.podium .pd-medal { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; font-family: var(--font-num); box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.podium.p1 { padding-top: 18px; }
.podium.p1 .pd-medal { background: linear-gradient(135deg,#f0c75e,#d99b1f); }
.podium.p2 .pd-medal { background: linear-gradient(135deg,#b9c4d6,#93a5c2); }
.podium.p3 .pd-medal { background: linear-gradient(135deg,#e2a678,#c47a45); }
.podium .pd-bar { height: 8px; width: 100%; margin-top: 10px; border-radius: 8px 8px 0 0; }
.podium.p1 .pd-bar { height: 16px; }
.rank-list { display: flex; flex-direction: column; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px dashed var(--line); }
.rank-row:last-child { border-bottom: none; }
.rank-row b { font-size: 13.5px; min-width: 76px; }
.rank-row small { color: var(--text-3); font-size: 11.5px; min-width: 52px; }
.rank-row .rank-bar, .bd-bar { flex: 1; height: 8px; border-radius: 5px; background: var(--panel-2, #f0eee9); overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg,#c9992e,#e8b64c); }
.rank-row em, .bd-row em { font-style: normal; font-family: var(--font-num); font-size: 12.5px; color: var(--text-2); min-width: 62px; text-align: right; }
.rank-row em.up { color: #1f9d69; }
.rank-row em.down { color: #d05038; }
.rk-no { width: 24px; height: 24px; border-radius: 50%; background: var(--panel-2); color: var(--text-3); font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; font-family: var(--font-num); }
.bar-dist { display: flex; flex-direction: column; gap: 8px; }
.bd-row { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.bd-row > span { min-width: 72px; color: var(--text-2); }
.bd-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg,#3c9464,#5cb98a); }
/* 四议两公开 */
.decide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.decide-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel-2, #fbfaf7); transition: .15s; }
.decide-card:hover { border-color: var(--ac, #3c8ea6); box-shadow: 0 4px 14px rgba(60,142,166,.1); }
.decide-card.ok { border-color: rgba(31,157,105,.4); }
.dc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dc-head b { font-size: 14px; }
.steps { display: flex; align-items: flex-start; margin: 4px 2px 12px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; }
.st-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel, #fff); color: var(--text-3); font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--font-num); }
.st-dot svg { width: 13px; height: 13px; }
.step.done .st-dot { background: #1f9d69; border-color: #1f9d69; color: #fff; }
.step.cur .st-dot { border-color: #c9992e; color: #c9992e; box-shadow: 0 0 0 4px rgba(201,153,46,.15); }
.step small { font-size: 11px; color: var(--text-3); }
.step.cur small { color: #c9992e; font-weight: 700; }
.step.done small { color: #1f9d69; }
.step-line { flex: 1; height: 2px; background: var(--line); margin-top: 13px; min-width: 14px; }
.step-line.done { background: #1f9d69; }
.dc-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-3); }
.dc-meta svg { width: 13px; height: 13px; vertical-align: -2px; }
.dc-result { margin-top: 10px; padding: 9px 12px; border-radius: 9px; background: rgba(31,157,105,.07); border-left: 3px solid #1f9d69; font-size: 12.5px; color: var(--text-2); white-space: pre-wrap; }
/* 安全应急 */
.emerg-top { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.ring-wrap { display: flex; align-items: center; gap: 14px; flex: none; }
.ring-wrap b { display: block; font-size: 14px; }
.ring-wrap span { font-size: 12px; color: var(--text-3); }
.over-list { flex: 1; min-width: 240px; border: 1px solid rgba(208,80,56,.3); background: rgba(208,80,56,.05); border-radius: 11px; padding: 12px 14px; }
.over-list > b { display: flex; align-items: center; gap: 7px; color: #d05038; font-size: 13px; margin-bottom: 8px; }
.over-list > b svg { width: 15px; height: 15px; }
.over-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed rgba(208,80,56,.2); font-size: 12.5px; }
.over-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.over-item small { color: var(--text-3); }
.over-ok { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; padding: 16px; border: 1px dashed rgba(31,157,105,.4); border-radius: 11px; color: #1f9d69; font-size: 13px; }
.over-ok svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 640px) {
  .podium-row { gap: 8px; }
  .rank-row small { display: none; }
  .emerg-top { flex-direction: column; }
}

/* ===== v30 村民集市卡片 ===== */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.mk-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .25s var(--eo, ease), transform .25s var(--eo, ease), border-color .25s; }
.mk-card:hover { box-shadow: 0 10px 28px -12px rgba(15, 35, 60, .18); transform: translateY(-2px); border-color: var(--line-2, var(--line)); }
.mk-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-title { font-size: 14.5px; font-weight: 700; color: var(--text-1); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-detail { margin: 0; font-size: 13px; line-height: 1.7; color: var(--text-2); background: var(--bg-2, rgba(120,140,170,.06)); border-radius: 9px; padding: 9px 12px; }
.mk-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.mk-meta span { display: inline-flex; align-items: center; gap: 5px; }
.mk-meta svg { max-width: 14px; }
.mk-ops { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 2px; }
.mk-ops label { font-size: 12.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.mk-ops .select { width: auto !important; height: 30px; }


/* ===== v30 操作列与提示条 ===== */
.data-table td:last-child { min-width: 120px; }
.data-table .actions { flex-wrap: nowrap; min-width: max-content; }
.hint-bar { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.7; color: var(--text-3); background: var(--bg-2, rgba(120,140,170,.07)); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.hint-bar svg { max-width: 15px; margin-top: 2px; flex: none; }

/* 移动端适配 */
@media (max-width: 640px) {
  .content { padding: 16px 14px 30px !important; }
  .care-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .head-actions { flex-wrap: wrap; }
  .data-table { overflow-x: auto; }
  .data-table table { min-width: 560px; }
  .home-cards { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .hi-stats { flex-wrap: wrap; gap: 10px !important; }
  .hi-stat { padding: 10px 14px !important; }
  .hi-title { font-size: 34px !important; }
  .screen-grid > .screen-card { grid-column: span 12 !important; }
  .topbar-search { display: none; }
  .modal { width: 94vw !important; max-height: 90vh; }
  .modal.wide { width: 96vw !important; }
  .form-grid { grid-template-columns: 1fr !important; }
  .notice-item { flex-wrap: wrap; }
  .kanban-wrap { overflow-x: auto; }
}

/* 内联 SVG 终极兜底：裸 p/span 中的 icon 不被 flex 拉伸（地图/图表 svg 为 div 直接子元素不受影响） */
.content p > svg, .content span > svg, .modal p > svg, .modal span > svg { max-width: 16px; max-height: 16px; width: 15px; height: 15px; vertical-align: -2px; flex: none; }
.table-empty svg { width: 34px !important; height: 34px !important; max-width: 34px; max-height: 34px; }
