/* ============================================================
   医宣云 3.0 · 社区卫生服务中心 × AI 新一代设计系统
   ------------------------------------------------------------
   设计语言：
   · 社区卫生服务中心元素：医疗十字、心电波形、健康绿、温暖社区感
   · AI 元素：玻璃拟态、极光光晕、粒子网格、渐变流动、智能脉冲
   · 高级感：细腻多层阴影、渐变描边、克制微动效、现代字体
   · 非传统布局：悬浮玻璃胶囊侧边栏 + 氛围条 + AI 驾驶舱 Hero
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 医疗青蓝主色（可被平台自定义主题覆盖） */
  --primary: #0E9BC4;
  --primary-dark: #0B7FA6;
  --primary-soft: rgba(14, 155, 196, .10);
  /* 健康绿 / 警示 / 状态 */
  --ok: #0FA36B;
  --warn: #E8890C;
  --err: #E0443C;
  --run: #7C5CFC;
  --ai: #7C5CFC;
  /* 文字 */
  --text: #0E2A3B;
  --muted: #5A7184;
  --faint: #8AA0B2;
  /* 表面与边框 */
  --card: rgba(255, 255, 255, .72);
  --glass: rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 255, 255, .82);
  --border: rgba(13, 110, 150, .14);
  --border-soft: rgba(13, 110, 150, .09);
  /* 布局 */
  --sidebar-width: 238px;
  --sidebar-bg: #0B2332;          /* 兼容主题变量，实际由玻璃覆盖 */
  --page-bg: #EDF6FB;             /* 兼容主题变量，实际由极光层覆盖 */
  --bg: #EDF6FB;
  /* 圆角 / 阴影 */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(13, 60, 90, .06);
  --shadow-md: 0 10px 34px rgba(13, 60, 90, .10);
  --shadow-lg: 0 24px 60px rgba(13, 60, 90, .14);
  --shadow-glow: 0 10px 40px rgba(14, 155, 196, .22);
  /* 渐变 */
  --grad-brand: linear-gradient(120deg, #0E9BC4 0%, #2E6FE8 55%, #7C5CFC 100%);
  --grad-health: linear-gradient(120deg, #0FA36B 0%, #0E9BC4 60%, #2E6FE8 100%);
  --grad-hero: linear-gradient(118deg, #EAFBFF 0%, #EEF3FF 42%, #F4F0FF 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow: hidden; }
body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  overflow: hidden;
  height: 100vh;
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#app { position: relative; z-index: 1; min-height: 100vh; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }
a { color: var(--primary); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(13, 110, 150, .18); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(13, 110, 150, .32); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 2. 背景氛围层（index.html 注入） ---------- */
#bg-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(120% 90% at 8% -10%, rgba(120, 210, 255, .55), transparent 55%),
    radial-gradient(100% 80% at 100% 0%, rgba(196, 181, 253, .45), transparent 55%),
    radial-gradient(90% 70% at 50% 110%, rgba(125, 235, 200, .35), transparent 60%),
    linear-gradient(160deg, #E9F7FD 0%, #EFF3FF 45%, #F3EFFE 100%);
}
#bg-layer .bg-grid { position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(13, 110, 150, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 110, 150, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 30%, transparent 85%);
}
#bg-layer .bg-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
#bg-layer .blob-a { width: 420px; height: 420px; left: -120px; top: -120px;
  background: radial-gradient(circle, rgba(56, 189, 248, .55), transparent 70%);
  animation: blobFloat 18s ease-in-out infinite; }
#bg-layer .blob-b { width: 380px; height: 380px; right: -100px; top: 30%;
  background: radial-gradient(circle, rgba(167, 139, 250, .5), transparent 70%);
  animation: blobFloat 22s ease-in-out infinite reverse; }
#bg-layer .blob-c { width: 340px; height: 340px; left: 36%; bottom: -160px;
  background: radial-gradient(circle, rgba(52, 211, 153, .42), transparent 70%);
  animation: blobFloat 26s ease-in-out infinite; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.06); }
  66% { transform: translate(-28px, 24px) scale(.96); }
}
#bg-layer .bg-particles { position: absolute; inset: 0; opacity: .6; background-image:
  radial-gradient(1.6px 1.6px at 12% 22%, rgba(14, 155, 196, .7), transparent 60%),
  radial-gradient(1.4px 1.4px at 28% 68%, rgba(124, 92, 252, .6), transparent 60%),
  radial-gradient(1.8px 1.8px at 44% 34%, rgba(15, 163, 107, .55), transparent 60%),
  radial-gradient(1.4px 1.4px at 62% 82%, rgba(14, 155, 196, .6), transparent 60%),
  radial-gradient(1.6px 1.6px at 78% 18%, rgba(124, 92, 252, .6), transparent 60%),
  radial-gradient(1.4px 1.4px at 90% 58%, rgba(15, 163, 107, .5), transparent 60%),
  radial-gradient(1.6px 1.6px at 18% 90%, rgba(56, 189, 248, .65), transparent 60%);
  animation: bgPulse 5s ease-in-out infinite alternate;
}
@keyframes bgPulse { to { opacity: .35; } }
/* 顶部氛围条用到的极光细线 */
#bg-layer .bg-aurora { position: absolute; inset: 0; opacity: .5; mix-blend-mode: screen;
  background:
    linear-gradient(100deg, transparent 10%, rgba(125, 211, 252, .35) 38%, rgba(196, 181, 253, .35) 62%, transparent 90%);
  background-size: 220% 100%;
  animation: auroraSweep 14s linear infinite;
}
@keyframes auroraSweep { to { background-position: -220% 0; } }

/* 心电波形装饰线（登录页 / Hero） */
.ecg-line { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; opacity: .5; pointer-events: none; }
.ecg-line svg { width: 100%; height: 100%; display: block; }
.ecg-line path { stroke: url(#ecgGrad); stroke-width: 2; fill: none; stroke-linecap: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: ecgDraw 6s linear infinite; }
@keyframes ecgDraw { to { stroke-dashoffset: 0; } }

/* 医疗十字徽章 */
.med-cross { display: inline-grid; place-items: center; border-radius: 12px; position: relative;
  background: linear-gradient(135deg, #10B981, #0E9BC4); color: #fff; box-shadow: 0 8px 22px rgba(14, 155, 196, .35); }
.med-cross::before, .med-cross::after { content: ""; position: absolute; background: #fff; border-radius: 2px; }
.med-cross::before { width: 46%; height: 12%; }
.med-cross::after { width: 12%; height: 46%; }

/* ---------- 3. 登录页 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative;
  padding: 24px; }
.login-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .6; pointer-events: none; }
.login-orb.one { width: 480px; height: 480px; left: -140px; top: -160px;
  background: radial-gradient(circle, rgba(56, 189, 248, .5), transparent 70%); animation: blobFloat 20s ease-in-out infinite; }
.login-orb.two { width: 420px; height: 420px; right: -120px; bottom: -140px;
  background: radial-gradient(circle, rgba(167, 139, 250, .5), transparent 70%); animation: blobFloat 24s ease-in-out infinite reverse; }
.login-card { position: relative; width: 420px; max-width: 94vw; border-radius: 28px; overflow: hidden;
  background: var(--glass-strong); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .9);
  padding: 42px 40px 56px; }
.login-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: var(--grad-brand); }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.login-brand .brand-logo { width: auto; height: 58px; flex: none; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(14, 155, 196, .25)); }
.login-brand .lb-name { font-size: 23px; font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(120deg, #0B7FA6, #2E6FE8 60%, #7C5CFC); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.login-brand .lb-sub { font-size: 12px; color: var(--muted); margin-top: 3px; letter-spacing: 2px; }
.login-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; letter-spacing: .5px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; letter-spacing: .5px; }
.login-field input { width: 100%; padding: 13px 15px; border-radius: 12px; font-size: 14px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .7); transition: .2s; }
.login-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
/* 密码框眼睛切换 */
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 46px; }
.pwd-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: transparent;
  font-size: 16px; padding: 6px 8px; cursor: pointer; opacity: .55; transition: opacity .15s; line-height: 1; }
.pwd-eye:hover { opacity: 1; }
.login-card .btn-primary-x { width: 100%; margin-top: 8px; }
.login-tip { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.8;
  background: rgba(14, 155, 196, .06); padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border-soft);
  position: relative; z-index: 2; }
.err-msg { color: var(--err); font-size: 13px; margin-bottom: 10px; }

/* ---------- 4. 布局：悬浮玻璃胶囊侧边栏 ---------- */
.layout { display: contents; }
.sidebar {
  position: fixed; top: 16px; bottom: 16px; left: 16px;
  width: var(--sidebar-width);
  border-radius: 24px;
  display: flex; flex-direction: column;
  background: linear-gradient(178deg, rgba(10, 34, 52, .88), rgba(8, 26, 44, .92));
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(140, 200, 235, .16);
  box-shadow: 0 24px 60px rgba(6, 30, 48, .32), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #C4D7E6; z-index: 20;
}
.sidebar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 200px; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(56, 189, 248, .14), transparent 70%); }
.sidebar .brand { position: relative; padding: 24px 22px 18px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07); }
.sidebar .brand .brand-logo { width: auto; height: 46px; flex: none; object-fit: contain; filter: drop-shadow(0 3px 10px rgba(14, 155, 196, .35)); }
.sidebar .brand .b-name { font-size: 18px; font-weight: 800; letter-spacing: .5px; color: #fff; line-height: 1.2; }
.sidebar .brand small { display: block; font-weight: 500; font-size: 10.5px; color: #7FA6BF; margin-top: 3px; letter-spacing: .5px; }
.nav-scroll { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 10px; }
.nav-scroll::-webkit-scrollbar { width: 4px; }
.nav-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 13px; margin: 2px 0; border-radius: 13px;
  font-size: 14px; cursor: pointer; color: #C4D7E6;
  border: 1px solid transparent;
  transition: all .2s ease; position: relative;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(120deg, rgba(14, 155, 196, .32), rgba(124, 92, 252, .22));
  border-color: rgba(125, 211, 252, .28);
  color: #fff; box-shadow: 0 6px 18px rgba(14, 155, 196, .2);
}
.nav-item.active::after { content: ""; position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 22px; border-radius: 4px; background: var(--grad-brand); }
.nav-item.active { padding-left: 19px; }
.sidebar .foot { position: relative; margin: 0 12px 12px; padding: 14px; font-size: 12px; color: #7FA6BF;
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 16px; background: rgba(255, 255, 255, .04); }
.sidebar .foot .f-user { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sidebar .foot .f-user .avatar { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--grad-brand); flex: none; }
.sidebar .foot button { margin-top: 10px; width: 100%; padding: 9px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12); color: #C4D7E6; border-radius: 11px; font-size: 12.5px; transition: .2s; }
.sidebar .foot button:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.sidebar .foot .service-line { font-size: 11px; color: #7FA6BF; line-height: 1.6; }
.sidebar .foot .service-line b { color: #E8890C; font-weight: 700; }

/* 主内容区 */
.main-wrapper { position: fixed; top: 0; right: 0; bottom: 0;
  left: calc(var(--sidebar-width) + 40px);
  overflow-y: auto; padding-top: 22px; }
#main { padding: 0 36px 34px; max-width: 1720px; margin: 0 auto; }

/* 氛围条（AI 驾驶舱顶栏） */
.atmo-bar { position: sticky; top: 0; z-index: 12; margin: 0 36px 18px;
  display: flex; align-items: center; gap: 14px; padding: 12px 20px;
  border-radius: 18px;
  background: var(--glass-strong); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--shadow-sm);
  font-size: 13px; color: var(--muted); }
.atmo-bar .atmo-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--text); font-size: 14px; }
.atmo-bar .atmo-logo .brand-logo { width: auto; height: 27px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(14, 155, 196, .3)); }
.atmo-bar .atmo-divider { width: 1px; height: 18px; background: var(--border); }
.atmo-bar .atmo-crumb { color: var(--muted); font-size: 13px; }
.atmo-bar .atmo-ai { margin-left: auto; display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--ok); }
.atmo-bar .atmo-ai i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 6px rgba(15, 163, 107, .13), 0 0 14px var(--ok); animation: aiPing 2.2s ease-out infinite; }
@keyframes aiPing { 0% { box-shadow: 0 0 0 0 rgba(15, 163, 107, .4), 0 0 14px var(--ok); } 70% { box-shadow: 0 0 0 8px rgba(15, 163, 107, 0), 0 0 14px var(--ok); } 100% { box-shadow: 0 0 0 0 rgba(15, 163, 107, 0), 0 0 14px var(--ok); } }
.atmo-bar .atmo-time { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- 5. 导航（一级分组 + 二级收纳为右侧抽屉） ---------- */
.nav-group { display: flex; flex-direction: column; }
.nav-group-head { position: relative; margin: 2px 0; padding: 11px 13px; border-radius: 13px;
  display: flex; align-items: center; gap: 11px; }

/* 分组 Tab 栏 */
.group-tabs-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 18px; margin: 0 36px 6px; }
.group-tab-btn { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--glass-strong); color: #48647a; font-size: 13.5px; cursor: pointer;
  transition: all .2s ease; display: flex; align-items: center; gap: 7px; white-space: nowrap;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.group-tab-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.group-tab-btn.active { background: var(--grad-brand); border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgba(14, 155, 196, .3); }

/* ---------- 5.1 智能悬停子菜单（贴近分组头的浮层） ---------- */
/* 侧边栏分组头：› 图标表示可展开，悬停展开智能子菜单 */
.nav-group-head { position: relative; }
.nav-group-head .nav-group-caret { font-size: 11px; color: #7FA6BF; width: 12px; flex: none;
  transition: transform .18s ease; }
.nav-group-head:hover .nav-group-caret { transform: rotate(90deg); color: #8FD0EF; }
.nav-group-head .nav-group-dots { margin-left: auto; font-size: 13px; letter-spacing: 2px;
  color: #5F86A0; opacity: .8; transition: color .2s; }
.nav-group-head:hover .nav-group-dots { color: #8FD0EF; }
.nav-group-head.open { background: rgba(255, 255, 255, .09); color: #fff; }
.nav-group-head.open .nav-group-caret { transform: rotate(90deg); color: #8FD0EF; }

/* 智能子菜单浮层：贴在分组头右侧，轻量玻璃质感，无全屏遮罩 */
.smart-menu { position: fixed; z-index: 85; width: 264px; min-width: 264px;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(178deg, rgba(13, 38, 58, .96), rgba(9, 28, 47, .98));
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(140, 200, 235, .22);
  box-shadow: 0 18px 44px rgba(6, 30, 48, .42), 0 2px 10px rgba(6, 30, 48, .25),
    inset 0 1px 0 rgba(255, 255, 255, .07);
  opacity: 0; transform: translateY(6px) scale(.98);
  transition: opacity .16s ease, transform .18s cubic-bezier(.22, .9, .3, 1);
  pointer-events: none; }
.smart-menu.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.smart-menu .sm-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .08); }
.smart-menu .sm-title b { display: block; color: #fff; font-size: 14.5px; letter-spacing: .4px; }
.smart-menu .sm-title small { color: #7FA6BF; font-size: 11px; }
.smart-menu .sm-body { padding: 8px; max-height: 300px; overflow-y: auto; }
.smart-menu .sm-body::-webkit-scrollbar { width: 4px; }
.smart-menu .sm-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 2px; }
.sm-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; margin: 2px 0;
  border-radius: 11px; cursor: pointer; color: #C4D7E6; font-size: 13.5px;
  border: 1px solid transparent; transition: all .16s ease; }
.sm-item:hover, .sm-item.kbd { background: rgba(255, 255, 255, .08); color: #fff; transform: translateX(3px); }
.sm-item .si-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-item .si-go { color: #5F86A0; font-size: 15px; transition: .16s; opacity: 0; }
.sm-item:hover .si-go, .sm-item.kbd .si-go { opacity: 1; color: #8FD0EF; transform: translateX(2px); }
.sm-item.active { background: linear-gradient(120deg, rgba(14, 155, 196, .32), rgba(124, 92, 252, .22));
  border-color: rgba(125, 211, 252, .28); color: #fff; box-shadow: 0 6px 18px rgba(14, 155, 196, .2); }
.sm-item.active .si-check { color: #5EE6A8; font-weight: 800; }
.sm-item .sm-shortcut { font-size: 10px; color: #5F86A0; letter-spacing: .5px; }
.sm-item:hover .sm-shortcut { color: #8FD0EF; }
.smart-menu .sm-foot { padding: 9px 16px; font-size: 11px; color: #7FA6BF; letter-spacing: .3px;
  display: flex; align-items: center; gap: 7px; border-top: 1px solid rgba(255, 255, 255, .06); }
.smart-menu .sm-foot .ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 4px rgba(15, 163, 107, .13), 0 0 12px var(--ok); animation: aiPing 2.4s ease-out infinite; }
.smart-menu .sm-foot b { color: #8FD0EF; font-weight: 700; }

/* ---------- 未解锁功能页：内容虚化 + 悬浮提示卡 ---------- */
.lp-stage { position: relative; min-height: calc(100vh - 150px); border-radius: var(--r-lg); overflow: hidden; }
.lp-blur { filter: blur(14px) saturate(.75); opacity: .5; pointer-events: none; user-select: none;
  padding: 26px 10px; transform: scale(1.01); }
.lp-title { margin: 6px 0 22px 12px; }
.lp-bar { display: block; height: 14px; border-radius: 7px; margin: 9px 0;
  background: linear-gradient(90deg, rgba(13, 60, 90, .13), rgba(13, 60, 90, .05)); }
.lp-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.lp-metric { background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--r-md); padding: 16px 18px; }
.lp-card { background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 16px; }
.lp-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(ellipse at center, rgba(244, 248, 250, .25), rgba(244, 248, 250, .55)); }
.lp-panel { max-width: 400px; text-align: center; background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .95); border-radius: 20px; padding: 34px 36px 30px;
  box-shadow: 0 24px 60px rgba(6, 30, 48, .16), 0 4px 16px rgba(6, 30, 48, .08);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: lpRise .45s cubic-bezier(.22, .9, .3, 1.1); }
@keyframes lpRise { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.lp-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px;
  color: var(--primary); background: var(--primary-soft);
  box-shadow: 0 10px 24px rgba(8, 145, 178, .18); margin-bottom: 16px; }
.lp-icon svg { width: 28px; height: 28px; }
.lp-panel h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: .5px; }
.lp-panel p { color: var(--muted); font-size: 13px; line-height: 1.9; margin: 0 0 20px; }

/* 锁定页富面板：功能亮点介绍 + 7 天免费体验 */
.lp-panel-rich { max-width: 520px; text-align: left; padding: 30px 34px 26px; }
.lp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.lp-head .lp-icon { flex: none; width: 50px; height: 50px; border-radius: 15px; margin-bottom: 0; }
.lp-head .lp-icon svg { width: 25px; height: 25px; }
.lp-head-text h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.lp-badge { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .5px; color: #B45309;
  background: rgba(245, 158, 11, .13); border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 999px; padding: 2px 9px; }
.lp-tagline { margin: 5px 0 0 !important; font-size: 13px !important; color: var(--primary) !important; font-weight: 600; }
.lp-points { list-style: none; margin: 0 0 18px; padding: 14px 16px; display: grid; gap: 9px;
  background: rgba(8, 145, 178, .05); border: 1px solid rgba(8, 145, 178, .13); border-radius: 13px; }
.lp-points li { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.65; color: #1F3A4D; }
.lp-points li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--primary); font-weight: 800; font-size: 14px; }
.lp-actions { display: grid; gap: 12px; justify-items: stretch; }
.lp-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #33505F; cursor: pointer; line-height: 1.6; }
.lp-agree input { accent-color: var(--primary); width: 15px; height: 15px; margin-top: 2px; flex: none; cursor: pointer; }
.lp-cta { font-size: 15px; padding: 11px 20px; }
.lp-cta:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.lp-rule { margin: 0 !important; font-size: 12px !important; color: var(--muted) !important; line-height: 1.8 !important; text-align: center; }
.lp-trial-note { border-radius: 12px; padding: 13px 16px; font-size: 13.5px; text-align: center; line-height: 1.7; }
.lp-trial-note.active { color: var(--primary-deep, #0E7490); background: rgba(8, 145, 178, .09); border: 1px solid rgba(8, 145, 178, .25); font-weight: 600; }
.lp-trial-note.expired { color: #92400E; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .3); }

/* 超管功能矩阵：试用状态徽标 */
.fl-trial { margin-left: auto; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.fl-trial.active { color: var(--primary-deep, #0E7490); background: rgba(8, 145, 178, .1); border: 1px solid rgba(8, 145, 178, .3); }
.fl-trial.used { color: #92400E; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .3); }

/* ---------- 超管：功能权限矩阵弹窗 ---------- */
.fl-group { border: 1px solid var(--line, #E2E8F0); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.fl-group-head { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.fl-group-head small { color: var(--muted, #94A3B8); font-weight: 400; margin-left: auto; }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 6px 14px; margin-top: 10px; }
.fl-item { display: flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.fl-item:hover { background: var(--soft, #F1F5F9); }
.fl-item input, .fl-group-head input { accent-color: var(--primary, #0891B2); width: 15px; height: 15px; }

/* ---------- 6. 通用组件 ---------- */
/* 页面标题 */
.page-title { font-size: 22px; font-weight: 800; letter-spacing: .3px; margin-bottom: 4px;
  display: flex; align-items: center; gap: 10px; }
.page-title::before { content: ""; width: 6px; height: 22px; border-radius: 6px; background: var(--grad-brand); }
.page-desc { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

/* 卡片 */
.card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, .75);
  border-radius: var(--r-md); padding: 20px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card h3::before { content: ""; width: 4px; height: 15px; border-radius: 4px; background: var(--grad-brand); }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 11px 13px; color: var(--muted); font-weight: 600; font-size: 12px;
  border-bottom: 1px solid var(--border); white-space: nowrap; letter-spacing: .3px; }
td { padding: 12px 13px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
tr:hover td { background: rgba(14, 155, 196, .045); }
.quota-bar { width: 110px; height: 6px; background: rgba(13, 60, 90, .08); border-radius: 3px;
  overflow: hidden; display: inline-block; vertical-align: middle; }
.quota-bar i { display: block; height: 100%; background: var(--grad-brand); border-radius: 3px; }

/* 状态徽章 */
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px;
  font-weight: 600; white-space: nowrap; letter-spacing: .2px; }
.badge.pending    { background: rgba(100, 116, 139, .12); color: #56677A; }
.badge.collecting { background: rgba(232, 137, 12, .14); color: #B56A08; }
.badge.writing    { background: rgba(124, 92, 252, .13); color: #6A48E0; }
.badge.imaging    { background: rgba(46, 111, 232, .12); color: #2E6FE8; }
.badge.review     { background: rgba(224, 96, 60, .13); color: #CE5A1E; }
.badge.drafted    { background: rgba(15, 163, 107, .14); color: #0B8A5C; }
.badge.failed     { background: rgba(224, 68, 60, .13); color: #D03A32; }
.badge.active     { background: rgba(15, 163, 107, .14); color: #0B8A5C; }
.badge.disabled   { background: rgba(232, 137, 12, .15); color: #B56A08; }
.badge.cancelled  { background: rgba(224, 68, 60, .13); color: #D03A32; }
.badge.once       { background: rgba(100, 116, 139, .12); color: #56677A; }
.badge.yearly     { background: rgba(46, 111, 232, .12); color: #2E6FE8; }
.badge.done       { background: rgba(15, 163, 107, .14); color: #0B8A5C; }

/* 执行日志-操作账号 */
.log-op { display: flex; flex-direction: column; gap: 3px; min-width: 130px; }
.log-op-unit { font-size: 11px; color: var(--faint); line-height: 1.2; }
.log-op-person { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); font-weight: 600; line-height: 1.3; flex-wrap: wrap; }
.log-op-account { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--muted); font-weight: 400; }
.log-op-badge { padding: 1px 8px; font-size: 11px; }
.log-op-empty { color: var(--faint); }

/* 按钮 */
.btn { padding: 8px 17px; border-radius: 11px; border: 1px solid var(--border); background: var(--glass-strong);
  font-size: 13px; color: var(--text); transition: all .18s ease; font-weight: 600; }
.btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.primary { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(14, 155, 196, .28); }
.btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 9px 22px rgba(14, 155, 196, .36); color: #fff; }
.btn.success { background: linear-gradient(120deg, #0FA36B, #0E9BC4); color: #fff; border-color: transparent; }
.btn.danger { color: var(--err); }
.btn.danger:hover { background: rgba(224, 68, 60, .08); border-color: var(--err); }
.btn.sm { padding: 5px 11px; font-size: 12px; border-radius: 9px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 15px; }
.form-item label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: 11px;
  background: rgba(255, 255, 255, .75); transition: .2s; }
.form-item input:focus, .form-item textarea:focus, .form-item select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.form-item input[readonly] { background: rgba(13, 60, 90, .05); color: #52606D; cursor: not-allowed; }
.form-item small { font-size: 11px; color: var(--faint); display: block; margin-top: 5px; line-height: 1.6; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 26, 44, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: maskIn .2s ease; padding: 20px; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal { position: relative; background: var(--glass-strong); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px; padding: 28px;
  width: 560px; max-width: 94vw; max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg);
  animation: modalUp .26s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes modalUp { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal h3 { margin-bottom: 18px; }
.modal-close-x { position: absolute; top: 12px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  border: none; background: rgba(8, 26, 44, .12); color: var(--ink); font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s ease; z-index: 60; }
.modal-close-x:hover { background: var(--err); color: #fff; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* 统计卡 */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { position: relative; overflow: hidden; background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, .85); border-radius: var(--r-md); padding: 20px;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: .2s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%;
  right: -34px; bottom: -40px; background: radial-gradient(circle, rgba(56, 189, 248, .22), transparent 70%); }
.stat-card .num { font-size: 30px; font-weight: 800; margin-top: 8px; letter-spacing: -.5px; }
.stat-card .lbl { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 13px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.toast { position: fixed; top: 26px; left: 50%; transform: translateX(-50%); z-index: 999;
  background: rgba(10, 32, 50, .9); backdrop-filter: blur(12px); color: #fff;
  padding: 12px 24px; border-radius: 14px; font-size: 14px;
  box-shadow: 0 14px 40px rgba(6, 30, 48, .35); animation: toastIn .25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast.err { background: linear-gradient(120deg, rgba(224, 68, 60, .92), rgba(200, 60, 55, .92)); }
.skeleton { position: relative; overflow: hidden; background: rgba(13, 60, 90, .06); border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- 7. AI 驾驶舱 Hero ---------- */
/* Equal-weight hospital overview, isolated from the WeChat dashboard. */
.hospital-dashboard{color:#19394e;padding:8px 0 24px}
.hospital-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px;padding:26px 28px;border:1px solid #fff;border-radius:22px;background:linear-gradient(115deg,#e7f7fc,#edf2ff 60%,#f5efff);box-shadow:0 8px 32px #34567a08}
.hospital-head .eyebrow,.hospital-section-title .eyebrow{font-size:10px;letter-spacing:2px;color:#33859d}
.hospital-head h1{margin:10px 0 8px;font-size:30px;letter-spacing:1px;color:#173c52}.hospital-head p{color:#607e90;margin:0;font-size:13px}
.hospital-live{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px;color:#267b83;font-size:12px;min-width:145px}.hospital-live i{width:7px;height:7px;border-radius:50%;background:#16b5a3;box-shadow:0 0 0 4px #16b5a316}.hospital-live small{flex-basis:100%;text-align:right;color:#7c91a1;margin-top:5px}
.hospital-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;border:1px solid #fff;background:#dfeaf3;border-radius:18px;overflow:hidden;margin-bottom:30px}
.hospital-summary-item{display:flex;gap:14px;padding:20px 22px;background:#f7fbff}.hospital-summary-index{color:#5d9cb4;font:11px monospace;padding-top:4px}.hospital-summary-item div{display:flex;flex-direction:column;gap:7px}.hospital-summary-item div>span{font-size:12px;color:#668397}.hospital-summary-item strong{font-size:28px;line-height:1.2;font-weight:700;color:#1c4862}.hospital-summary-item small{font-size:11px;color:#8195a3}
.hospital-section-title{display:flex;justify-content:space-between;align-items:flex-end;margin:0 2px 18px;gap:12px}.hospital-section-title h2{margin:6px 0 0;font-size:20px;letter-spacing:.5px}.hospital-section-title>span{color:#7b90a2;font-size:12px}
.hospital-board-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.hospital-board{--board-color:#1699b0;--board-tint:#e6f8fb;position:relative;display:flex;flex-direction:column;min-width:0;min-height:276px;margin:0;padding:22px 22px 0;border:1px solid #fff;border-radius:20px;background:linear-gradient(150deg,#ffffffef 45%,var(--board-tint));box-shadow:0 5px 22px #24496b07;text-align:left;font:inherit;color:#19394e;cursor:pointer;transition:transform .18s,box-shadow .18s,border-color .18s;overflow:hidden}
.hospital-board:hover{transform:translateY(-3px);border-color:var(--board-color);box-shadow:0 10px 30px #24496b13}.hospital-board:focus-visible{outline:3px solid var(--board-color);outline-offset:3px}
.board-color-1{--board-color:#5483d7;--board-tint:#edf3ff}.board-color-2{--board-color:#18a792;--board-tint:#e6faf4}.board-color-3{--board-color:#8b71cb;--board-tint:#f3edff}.board-color-4{--board-color:#d79b3b;--board-tint:#fff6e4}.board-color-5{--board-color:#548fa9;--board-tint:#e9f6fb}
.hospital-board-top{display:flex;align-items:center;gap:9px}.hospital-board-symbol{width:31px;height:31px;display:grid;place-items:center;border-radius:10px;background:var(--board-tint);color:var(--board-color);font:12px monospace;border:1px solid #fff}.hospital-board-category{color:#7d94a4;font-size:11px}.hospital-board-arrow{margin-left:auto;font-size:19px;color:var(--board-color)}
.hospital-board-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:14px 0}.hospital-board-title h3{margin:0;font-size:16px;font-weight:650}.hospital-board-state{flex-shrink:0;font-size:10px;color:#8a9ca9;padding:3px 7px;border-radius:12px;background:#edf2f7}.hospital-board-state.has-data{color:var(--board-color);background:var(--board-tint)}
.hospital-board-primary{display:flex;align-items:baseline;gap:7px;margin-bottom:18px}.hospital-board-primary strong{font-size:34px;font-weight:700;letter-spacing:-1px;line-height:1.15}.hospital-board-primary>span{font-size:11px;color:#7792a5}.hospital-board-primary>small{margin-left:auto;font-size:11px;color:#8294a4}.hospital-board-primary .hospital-tool-label{font-size:24px;letter-spacing:0}
.hospital-board-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px;min-height:39px}.hospital-board-details>div{display:flex;flex-direction:column;gap:6px}.hospital-board-details span{color:#7c91a0;font-size:11px}.hospital-board-details b{font-size:17px;font-weight:600}.hospital-board-details b small{font-size:10px;font-weight:400;color:#8a9aa7;margin-left:5px}.hospital-board-details .hospital-board-hint{grid-column:1/-1;font-size:12px;color:#8195a3;justify-content:center}
.hospital-board-footer{display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;margin:auto -22px 0;padding:11px 22px;min-height:38px;border-top:1px solid #dae8f166;background:#ffffff55;font-size:10px;color:#8299aa}.hospital-board-footer>span:last-child{margin-left:auto;color:var(--board-color)}
.hospital-note{margin-top:20px;display:flex;gap:12px;padding:17px 20px;border:1px solid #fff;border-radius:15px;background:#f3f8fccc}.hospital-note-icon{display:grid;place-items:center;width:21px;height:21px;flex-shrink:0;background:#dfedf6;border-radius:50%;color:#5c87a4;font-size:12px}.hospital-note b{font-size:12px;color:#54748a}.hospital-note p{margin:6px 0 0;line-height:1.7;font-size:11px;color:#8194a1}
@media(min-width:1800px){.hospital-board-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){.hospital-board-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hospital-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.hospital-head{padding:20px;align-items:flex-start;flex-direction:column;gap:15px}.hospital-head h1{font-size:25px}.hospital-live{justify-content:flex-start}.hospital-live small{text-align:left;flex-basis:auto;margin:0}.hospital-summary-item{padding:16px 12px;gap:8px}.hospital-summary-item strong{font-size:24px}.hospital-summary-item small{font-size:10px}.hospital-board-grid{grid-template-columns:1fr}.hospital-section-title>span{display:none}.hospital-head .eyebrow{font-size:8px;letter-spacing:1px}.hospital-board{min-height:268px}}
.dashboard-hero, .ai-hero {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 30px 34px; margin-bottom: 22px;
  background: var(--grad-hero);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.dashboard-hero::before, .ai-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 155, 196, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 155, 196, .06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(110% 120% at 20% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(110% 120% at 20% 0%, #000, transparent 75%);
}
.dashboard-hero::after, .ai-hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); animation: heroSweep 7s ease-in-out infinite; }
@keyframes heroSweep { 0% { left: -20%; } 55% { left: 110%; } 100% { left: 110%; } }
.dashboard-hero h1, .ai-hero h1 {
  position: relative; z-index: 1; font-size: 29px; font-weight: 800; margin-bottom: 7px; letter-spacing: .3px;
  background: linear-gradient(120deg, #0B5370, #2E6FE8 65%, #6A48E0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dashboard-hero p, .ai-hero p { position: relative; z-index: 1; color: #4E6B7E; font-size: 13.5px; max-width: 640px; line-height: 1.7; }
.eyebrow { position: relative; z-index: 1; display: block; color: var(--primary); font-size: 10px;
  letter-spacing: 2.6px; font-weight: 800; margin-bottom: 10px; font-family: ui-monospace, monospace; }
.hero-orb { position: absolute; width: 220px; height: 220px; border-radius: 50%; right: 6%; top: -60px; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, rgba(103, 232, 249, .8), rgba(14, 155, 196, .28) 55%, transparent 70%);
  opacity: .5; box-shadow: 0 0 90px rgba(34, 211, 238, .45); animation: orbBreath 5s ease-in-out infinite; }
@keyframes orbBreath { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.12); opacity: .6; } }
.hero-med { position: absolute; right: 34px; bottom: 22px; display: flex; align-items: flex-end; gap: 12px; opacity: .85; pointer-events: none; }
.hero-med .med-cross { width: 46px; height: 46px; }
.hero-ecg { width: 170px; height: 34px; opacity: .65; }
.hero-ecg path { stroke: #0E9BC4; stroke-width: 2.4; fill: none; stroke-linecap: round;
  stroke-dasharray: 900; stroke-dashoffset: 900; animation: ecgDraw 5s linear infinite; }
.hero-tag { position: absolute; right: 34px; top: 26px; display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; color: var(--ok);
  background: rgba(255, 255, 255, .7); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .9);
  padding: 7px 13px; border-radius: 999px; box-shadow: var(--shadow-sm); z-index: 1; }
.hero-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 6px rgba(15, 163, 107, .13), 0 0 14px var(--ok); animation: aiPing 2.2s ease-out infinite; }
.ai-pulse { display: flex; align-items: center; gap: 8px; color: #0B8A5C; font-size: 10px; font-weight: 800;
  letter-spacing: 1.4px; position: relative; z-index: 1; }
.ai-pulse i { width: 12px; height: 12px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 8px rgba(15, 163, 107, .12), 0 0 26px var(--ok); animation: aiPing 2s ease-out infinite; }

/* 指标网格 */
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(140px, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric-card { position: relative; overflow: hidden; background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, .85); border-radius: var(--r-md); padding: 18px;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: .22s ease; }
.metric-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.metric-card:after { content: ""; position: absolute; width: 84px; height: 84px; border-radius: 50%;
  right: -30px; bottom: -38px; background: rgba(103, 232, 249, .3); }
.metric-icon { font: 800 10px ui-monospace; color: var(--primary); letter-spacing: 1.5px; }
.metric-value { font-size: 27px; font-weight: 800; margin: 10px 0 3px; letter-spacing: -.5px; }
.metric-label { font-size: 13px; font-weight: 700; }
.metric-card small { color: var(--faint); font-size: 10.5px; }
.tone-1:after { background: rgba(103, 232, 249, .32); }
.tone-2:after { background: rgba(196, 181, 253, .34); }
.tone-3:after { background: rgba(253, 230, 138, .34); }
.tone-4:after { background: rgba(110, 231, 183, .32); }
.tone-5:after { background: rgba(253, 200, 160, .32); }
.tone-6:after { background: rgba(147, 197, 253, .34); }

/* 全模块数据总台 */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 13px; }
.module-card { position: relative; overflow: hidden; cursor: pointer; border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, .85); background: rgba(250, 253, 254, .9);
  padding: 15px 16px 13px; transition: .2s ease; box-shadow: var(--shadow-sm); }
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: rgba(125, 211, 252, .6); background: #fff; }
.module-card:after { content: "→"; position: absolute; right: 13px; top: 13px; color: var(--faint);
  font-size: 13px; transition: .18s; opacity: 0; }
.module-card:hover:after { opacity: 1; color: var(--primary); transform: translateX(2px); }
.module-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .5px;
  color: var(--primary); background: var(--primary-soft); padding: 3px 9px; border-radius: 999px; }
.module-num { font-size: 25px; font-weight: 800; margin: 10px 0 2px; letter-spacing: -.5px; }
.module-name { font-size: 13px; font-weight: 700; }
.module-card small { display: block; color: var(--faint); font-size: 10.5px; margin-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dashboard-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h3 { margin: 0; }
.section-head p { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.section-head > span { font-size: 10px; color: var(--primary); background: var(--primary-soft);
  padding: 4px 11px; border-radius: 999px; font-weight: 700; letter-spacing: .5px; }
.trend-chart { height: 170px; display: flex; align-items: flex-end; gap: 10px; padding: 14px 5px 0; }
.trend-col { flex: 1; height: 150px; display: flex; align-items: center; justify-content: flex-end;
  flex-direction: column; gap: 4px; }
.trend-bar { position: relative; width: 62%; min-width: 10px; border-radius: 8px 8px 3px 3px;
  background: rgba(103, 232, 249, .4); overflow: hidden; transition: height .6s ease; }
.trend-bar i { position: absolute; bottom: 0; left: 0; right: 0; background: var(--grad-brand); }
.trend-col span, .trend-col b { font-size: 9.5px; color: var(--faint); }
.status-row { display: grid; grid-template-columns: 95px 1fr 28px; gap: 9px; align-items: center; margin: 11px 0; font-size: 12.5px; }
.status-row > div { height: 7px; background: rgba(13, 60, 90, .07); border-radius: 5px; overflow: hidden; }
.status-row em { display: block; height: 100%; background: var(--grad-brand); border-radius: 5px; transition: width .6s ease; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; margin-right: 7px; }
.status-dot.drafted { background: var(--ok); }
.status-dot.failed { background: var(--err); }
.status-dot.review { background: #E8890C; }
.status-dot.collecting { background: #E8890C; }
.status-dot.writing { background: var(--run); }
.status-dot.imaging { background: #2E6FE8; }
.status-dot.pending { background: #94A3B8; }

/* 能力卡 */
.ability-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 20px; }
.ability-card { position: relative; overflow: hidden; background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, .85); border-radius: var(--r-md); padding: 15px; cursor: pointer;
  transition: .22s ease; box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ability-card:hover { border-color: rgba(14, 155, 196, .4); background: rgba(255, 255, 255, .92);
  transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.ability-card span { font: 800 10px ui-monospace; color: var(--primary); letter-spacing: 1.2px; }
.ability-card b { display: block; font-size: 13.5px; margin: 9px 0 4px; }
.ability-card p { font-size: 10.5px; color: var(--muted); line-height: 1.55; }

/* 任务类型网格 */
.task-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.task-type { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px; background: var(--glass-strong);
  cursor: pointer; transition: .2s; }
.task-type:has(input:checked), .task-type.selected { border-color: var(--primary); background: rgba(236, 254, 255, .9);
  box-shadow: 0 0 0 3px var(--primary-soft); transform: translateY(-1px); }
.task-type input { display: none; }
.task-type b { display: block; font-size: 13.5px; }
.task-type span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* 细分项网格 */
.task-sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; margin: -6px 0 18px; }
.task-sub { border: 1px dashed var(--border); border-radius: var(--r-sm); padding: 10px 12px; background: var(--glass-strong);
  cursor: pointer; transition: .2s; }
.task-sub:has(input:checked), .task-sub.selected { border-style: solid; border-color: var(--primary); background: rgba(236, 254, 255, .9);
  box-shadow: 0 0 0 3px var(--primary-soft); transform: translateY(-1px); }
.task-sub input { display: none; }
.task-sub b { display: block; font-size: 12.5px; }
.task-sub span { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* ---------- 8. 日历 ---------- */
.cal-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cal-header .year { font-size: 16px; font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cal-month { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden;
  background: var(--glass-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: .2s; }
.cal-month:hover { box-shadow: var(--shadow-sm); }
.cal-month .m-title { background: linear-gradient(120deg, rgba(14, 155, 196, .08), rgba(124, 92, 252, .07));
  padding: 9px 13px; font-size: 13px; font-weight: 700; }
.cal-month .m-body { padding: 9px; min-height: 60px; }
.cal-event { font-size: 12px; padding: 4px 9px; border-radius: 8px; margin: 3px 0; cursor: default;
  background: rgba(46, 111, 232, .09); color: #2E6FE8; transition: .15s; }
.cal-event:hover { background: rgba(46, 111, 232, .16); }
.cal-event.run { background: rgba(15, 163, 107, .12); color: #0B8A5C; }
.cal-event.failed { background: rgba(224, 68, 60, .11); color: #D03A32; }
.cal-event .t { color: var(--muted); margin-left: 4px; }

/* 健康宣传日历 */
.health-month { padding: 16px 18px; }
.health-list { display: grid; gap: 10px; }
.health-item { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  border-top: 1px solid var(--border-soft); padding: 13px 0; transition: .15s; border-radius: 8px; }
.health-item:first-child { border-top: 0; }
.health-item:hover { background: rgba(14, 155, 196, .04); padding-left: 8px; padding-right: 8px; }
.health-date { font-size: 13px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.health-info b { font-size: 14px; margin-right: 8px; }
.health-info p { margin: 6px 0 3px; color: #4E6B7E; font-size: 13px; line-height: 1.6; }
.health-info small { color: var(--muted); font-size: 11px; }
.official-theme { display: inline-block; margin-left: 6px; color: #9A5B00; background: rgba(255, 245, 217, .9);
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.health-search { display: flex; gap: 5px; margin-left: 8px; }
.health-search input { width: 250px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--glass-strong); }
.health-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

/* 健康宣传日历 - 日历视图（单月大月历） */
.hc-view-switch { display: flex; gap: 6px; margin-left: 10px; }
.hc-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 2px 12px; font-size: 12px; color: var(--muted); }
.hc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.hc-legend .hc-dot { width: 8px; height: 8px; }
.hc-month { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden;
  background: var(--glass-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: .2s; }
.hc-month:hover { box-shadow: var(--shadow-sm); }
.hc-month .m-title { background: linear-gradient(120deg, rgba(14, 155, 196, .08), rgba(124, 92, 252, .07));
  padding: 10px 14px; font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.hc-month .m-title span:last-child { font-weight: 400; color: var(--muted); font-size: 12px; }
.hc-month-banner { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 7px 10px;
  border-radius: 8px; font-size: 12.5px; }
.hc-month-banner b { font-size: 13px; }
.hc-month-banner .hc-mb-tag { color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; flex: none; }
.hc-month-banner .hc-mb-range { color: var(--muted); font-size: 11.5px; margin-left: auto; flex: none; }
.hc-wd { display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px 10px 0; }
.hc-wd span { text-align: center; font-size: 11.5px; color: var(--muted); padding: 3px 0; font-weight: 600; }
.hc-wd span.wk { color: var(--primary-dark); }
.hc-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 8px 10px 12px; }
.hc-day.big { min-height: 96px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  gap: 2px; padding: 5px 6px; border-radius: 8px; cursor: pointer; font-size: 12px; transition: .15s;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .5); line-height: 1.25; }
.hc-day-head { display: flex; justify-content: space-between; align-items: center; min-height: 20px; }
.hc-day.big .d { font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 700; color: #23465a;
  width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; display: inline-block; }
.hc-flag { font-size: 9.5px; font-weight: 700; color: #fff; padding: 0 4px; border-radius: 3px; line-height: 15px; }
.hc-flag.xiu { background: #E8912D; }
.hc-flag.ban { background: #8A93A6; }
.hc-lunar { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.hc-day.big.wknd { background: rgba(14, 155, 196, .05); }
.hc-day.big.no-ev .d { color: #7b93a5; }
.hc-day.big.no-ev:hover { background: rgba(14, 155, 196, .08); }
.hc-day.big.has-ev { background: #fff; }
.hc-day.big.has-ev.wknd { background: #f4fbfe; }
.hc-day.big.has-ev:hover { background: rgba(14, 155, 196, .07); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.hc-day.big.today { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.hc-day.big.today .d { background: var(--primary); color: #fff; }
.hc-day.big.sel { border-color: var(--primary); background: rgba(14, 155, 196, .12); box-shadow: 0 0 0 1px var(--primary) inset; }
.hc-day.big.empty { border: none; background: transparent; cursor: default; box-shadow: none; }
.hc-day.big.empty:hover { transform: none; background: transparent; }
.hc-evts { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.hc-evt { display: block; font-size: 10.5px; font-weight: 600; padding: 1px 5px; border-radius: 4px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.hc-evt.cont { opacity: .62; font-weight: 500; }
.hc-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.hc-more { font-size: 9.5px; color: var(--muted); font-weight: 400; }
.hc-detail { margin-top: 16px; }
@media (max-width: 760px) {
  .hc-day.big { min-height: 64px; padding: 4px; }
  .hc-evt { font-size: 9px; padding: 1px 3px; }
  .hc-lunar { font-size: 8.5px; }
  .hc-month-banner .hc-mb-range { display: none; }
}

/* ---------- 9. AI 聊天 ---------- */
.chat-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px;
  height: calc(100vh - 150px); min-height: 640px; }
.chat-side, .chat-main { margin: 0; min-height: 0; }
.chat-side { overflow: auto; }
.chat-session { padding: 11px; border-radius: 12px; cursor: pointer; font-size: 13px; margin-bottom: 7px;
  border: 1px solid transparent; transition: .15s; }
.chat-session:hover { background: var(--primary-soft); color: var(--primary); }
.chat-session.active { background: linear-gradient(120deg, rgba(14, 155, 196, .12), rgba(124, 92, 252, .1));
  border-color: rgba(14, 155, 196, .25); color: var(--primary); font-weight: 600; }
.chat-session small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.chat-main { display: flex; flex-direction: column; padding: 16px; }
.quick-prompts { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 13px; border-bottom: 1px solid var(--border-soft); }
.chat-messages { flex: 1; overflow: auto; padding: 18px 8px; }
.chat-empty { text-align: center; color: var(--muted); margin-top: 100px; }
.chat-empty-icon { font-size: 30px; color: var(--primary); margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(14, 155, 196, .5)); }
.chat-empty b { display: block; color: var(--text); }
.chat-empty p { margin-top: 5px; }
.chat-msg { margin: 12px 0; display: flex; flex-direction: column; align-items: flex-start; }
.chat-msg.user { align-items: flex-end; }
.chat-msg .bubble { max-width: 82%; padding: 12px 15px; border-radius: 16px;
  background: rgba(240, 244, 248, .95); border: 1px solid var(--border-soft);
  font-size: 14px; line-height: 1.75; }
.chat-msg.user .bubble { background: var(--grad-brand); color: #fff; border: none;
  box-shadow: 0 6px 18px rgba(14, 155, 196, .3); }
.chat-msg.assistant .bubble { border-bottom-left-radius: 5px; }
.chat-msg.user .bubble { border-bottom-right-radius: 5px; }
.chat-sources { max-width: 82%; font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.chat-sources a { color: var(--primary); }

/* ---------- AI 回复 Markdown 排版（清爽豆包风） ---------- */
.md-body { font-size: 14px; line-height: 1.85; color: var(--text); word-break: break-word; }
.md-body > *:first-child { margin-top: 0; }
.md-body > *:last-child { margin-bottom: 0; }
.md-body p { margin: 9px 0; }
.md-h { font-weight: 700; line-height: 1.5; margin: 16px 0 8px; color: var(--text); }
.md-h1 { font-size: 17px; padding-bottom: 6px; border-bottom: 1px solid var(--border-soft); }
.md-h2 { font-size: 15.5px; }
.md-h3 { font-size: 14.5px; }
.md-h4 { font-size: 14px; }
.md-body strong { font-weight: 700; color: var(--text); }
.md-ul, .md-ol { margin: 8px 0; padding-left: 22px; }
.md-ul li, .md-ol li { margin: 5px 0; }
.md-ul li::marker { color: var(--primary); }
.md-ol li::marker { color: var(--primary); font-weight: 600; }
.md-code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12.5px;
  background: rgba(14, 155, 196, .1); color: #0b6e8f; padding: 1.5px 6px; border-radius: 6px; }
.md-pre { margin: 10px 0; padding: 12px 14px; background: rgba(15, 23, 42, .05);
  border: 1px solid var(--border-soft); border-radius: 10px; overflow: auto; }
.md-pre code { font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 12.5px; line-height: 1.7; white-space: pre; }
.md-quote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--primary);
  background: rgba(14, 155, 196, .06); border-radius: 0 10px 10px 0; color: var(--muted); }
.md-hr { border: none; border-top: 1px solid var(--border-soft); margin: 14px 0; }
.md-table-wrap { margin: 10px 0; overflow-x: auto; border: 1px solid var(--border-soft); border-radius: 10px; }
.md-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.md-table th { background: rgba(14, 155, 196, .08); font-weight: 600; text-align: left; }
.md-table th, .md-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-soft); }
.md-table tr:last-child td { border-bottom: none; }
.md-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.chat-input { display: grid; grid-template-columns: 1fr auto; gap: 10px; border-top: 1px solid var(--border-soft); padding-top: 13px; }
.chat-input textarea { min-height: 72px; max-height: 150px; resize: vertical; border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 13px; background: rgba(255, 255, 255, .75); }
.chat-input textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

/* ---------- 10. 富文本编辑器 ---------- */
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 9px;
  background: linear-gradient(180deg, rgba(248, 253, 255, .95), rgba(240, 249, 251, .9));
  border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; }
.editor-toolbar button { padding: 6px 10px; background: var(--glass-strong); border: 1px solid var(--border);
  border-radius: 8px; font-size: 12px; transition: .15s; }
.editor-toolbar button:hover { border-color: var(--primary); color: var(--primary); }
.editor-toolbar input[type=color] { width: 30px; height: 28px; border: 0; padding: 0; }
.toolbar-group { display: flex; align-items: center; gap: 4px; padding-right: 7px; margin-right: 4px;
  border-right: 1px solid rgba(13, 110, 150, .15); }
.toolbar-group:last-child { border: 0; }
.toolbar-group > span { font-size: 10px; color: var(--primary-dark); font-weight: 700; margin-right: 3px; }
.editor-toolbar .components button { border-color: rgba(186, 230, 253, .9); color: var(--primary-dark); }
.rich-editor { min-height: 360px; max-height: 600px; overflow: auto; border: 1px solid var(--border);
  border-radius: 0 0 12px 12px; padding: 18px; background: rgba(255, 255, 255, .85);
  font-size: 15px; line-height: 1.9; outline: none; }
.rich-editor:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.rich-editor h2 { font-size: 17px; color: #fff; background: var(--grad-brand); padding: 9px 15px; border-radius: 8px; margin: 22px 0 12px; }
/* 正文配图图片块：可在编辑器内直接拖拽移动位置 */
.editor-img-block { position: relative; display: block; margin: 14px 0; text-align: center; cursor: grab;
  border: 2px dashed transparent; border-radius: 10px; padding: 4px; transition: border-color .15s, box-shadow .15s, opacity .15s; }
.editor-img-block:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.editor-img-block.dragging { opacity: .45; }
.editor-img-block img { max-width: 100%; max-height: 340px; border-radius: 8px; display: inline-block; pointer-events: none; }
.editor-img-bar { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 6px;
  background: rgba(13, 110, 150, .08); border-radius: 8px; pointer-events: auto; }
.editor-img-tag { font-size: 11px; color: var(--primary-dark); font-weight: 700; margin-right: 4px; }
.editor-img-bar .btn { padding: 3px 9px; font-size: 12px; }
.footer-editor { min-height: 100px; max-height: 220px; border-radius: 8px; }
.footer-builder { min-height: 260px; max-height: 500px; }
.editor-bridge { border: 1px solid rgba(186, 230, 253, .9); background: linear-gradient(135deg, rgba(236, 254, 255, .9), rgba(240, 249, 255, .9));
  border-radius: 13px; padding: 12px 14px; margin-bottom: 10px; backdrop-filter: blur(8px); }
.editor-bridge-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.editor-bridge-head b { color: #155E75; font-size: 13px; }
.editor-bridge-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.editor-bridge-note { font-size: 11px; color: var(--muted); line-height: 1.65; margin-top: 7px; }
.editor-import-mask { z-index: 180; }
.editor-import-modal { width: 820px; }
.editor-import-steps { display: flex; gap: 8px; flex-wrap: wrap; background: rgba(240, 249, 255, .9); border-radius: 11px;
  padding: 10px 13px; margin-bottom: 12px; font-size: 12px; color: #475569; }
.editor-import-steps b { color: var(--primary-dark); }
.editor-paste-zone { min-height: 330px; max-height: 55vh; overflow: auto; border: 1.5px dashed rgba(56, 189, 248, .7);
  border-radius: 12px; padding: 18px; background: rgba(255, 255, 255, .9); font-size: 15px; line-height: 1.9; outline: none; }
.editor-paste-zone:focus { border-style: solid; box-shadow: 0 0 0 3px rgba(14, 165, 233, .12); }
.editor-paste-zone:empty:before { content: attr(data-placeholder); color: #94A3B8; }
.footer-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.footer-images > div { border: 1px solid var(--border); border-radius: 10px; padding: 8px; text-align: center; background: var(--glass-strong); }
.footer-images img { width: 100%; height: 110px; object-fit: contain; background: rgba(13, 60, 90, .04); border-radius: 6px; display: block; margin-bottom: 8px; }
.image-editor-card { background: rgba(248, 251, 252, .9); border: 1px solid var(--border); border-radius: 13px; padding: 11px; margin-bottom: 12px; }
.image-label { font-size: 11px; color: #527184; margin-bottom: 6px; font-weight: 600; }
.image-actions { display: flex; gap: 7px; }
.hidden-file { display: none; }
.article-image-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.article-image-slots > div { border: 1px solid var(--border); border-radius: 11px; padding: 8px; text-align: center; background: rgba(248, 251, 252, .9); }
.article-image-slots img { width: 100%; height: 88px; object-fit: cover; border-radius: 7px; background: rgba(13, 60, 90, .05); }
.article-image-slots b { display: block; font-size: 11px; margin: 5px; }

/* 稿件审核 */
.review-grid { display: grid; grid-template-columns: minmax(480px, 1fr) 430px; gap: 20px; }
@media (max-width: 1100px) { .review-grid { grid-template-columns: 1fr; } }
.article-preview { border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px;
  background: rgba(255, 255, 255, .9); max-width: 720px; box-shadow: var(--shadow-sm); }
.article-preview h1 { font-size: 20px; margin-bottom: 10px; }
.article-preview .meta { color: var(--muted); font-size: 12px; margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft); }
.article-preview .slogan { background: linear-gradient(120deg, rgba(240, 247, 255, .95), rgba(236, 254, 255, .9));
  border-left: 3px solid var(--primary); padding: 10px 15px; border-radius: 0 10px 10px 0; font-size: 14px;
  color: var(--primary-dark); margin-bottom: 18px; }
.article-content h2 { font-size: 16px; margin: 18px 0 8px; color: var(--primary-dark); }
.article-content p { font-size: 14px; line-height: 1.9; margin-bottom: 10px; }
.article-content img { max-width: 100%; border-radius: 9px; margin: 10px 0; }
.cover-img { width: 100%; border-radius: 12px; margin-bottom: 16px; }
.edit-area textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 11px;
  min-height: 90px; resize: vertical; background: rgba(255, 255, 255, .8); }
.edit-area .form-item { margin-bottom: 12px; }
/* 左侧原文区可直接编辑的视觉提示 */
.article-preview [contenteditable="true"] { cursor: text; outline: none; border-radius: 8px; padding: 4px 8px;
  margin-left: -8px; margin-right: -8px; transition: box-shadow .15s, background .15s; }
.article-preview [contenteditable="true"]:hover { box-shadow: 0 0 0 1px var(--border); background: rgba(255,255,255,.65); }
.article-preview [contenteditable="true"]:focus { box-shadow: 0 0 0 2px var(--primary); background: #fff; }
.article-preview [contenteditable="true"]:empty::before { content: attr(data-ph); color: var(--muted); }
#richEditor.article-content { min-height: 220px; max-height: none; overflow: visible; border: 1px dashed var(--border); border-radius: 10px; padding: 14px;
  background: rgba(255,255,255,.6); }
#richEditor.article-content:focus { border-style: solid; box-shadow: 0 0 0 2px var(--primary); background: #fff; }
.edit-hint { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
/* 审稿弹窗：右侧工具栏吸顶跟随滚动，始终保持完整可见 */
.review-grid { align-items: start; }
.review-grid > .edit-area { position: sticky; top: 0; max-height: calc(100vh - 140px); overflow: auto; padding-right: 4px; }
/* 摘要/封面提示词：自动撑高，去滚动条 */
.review-modal-mask textarea { overflow: hidden; resize: none; }

/* ---------- 11. 平台自定义中心 ---------- */
.customizer-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(300px, 1fr); gap: 20px; align-items: start; }
.customizer-preview { position: sticky; top: 76px; background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-md); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.preview-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.preview-title b { font-size: 14px; }
.preview-title span { font-size: 11px; color: var(--muted); }
.customizer-preview > .btn { width: 100%; margin-top: 12px; }
.custom-card { max-width: none; }
.preview-shell { height: 460px; border-radius: 18px; overflow: hidden; position: relative;
  border: 1px solid rgba(255, 255, 255, .6); box-shadow: var(--shadow-md); }
.preview-side { width: 200px; height: 100%; float: left; background: rgba(11, 35, 50, .95); color: #C4D7E6; padding: 16px; }
.preview-main { margin-left: 200px; padding: 18px; height: 100%; overflow: auto; background: rgba(248, 251, 253, .95); }
.preview-hero { border-radius: 14px; padding: 22px; margin-bottom: 14px;
  background: linear-gradient(120deg, rgba(234, 251, 255, .95), rgba(240, 243, 255, .95));
  border: 1px solid rgba(255, 255, 255, .9); }
.preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.preview-metrics div { background: #fff; border-radius: 10px; padding: 12px; border: 1px solid rgba(13, 110, 150, .1); }
.preview-table div { background: #fff; border-radius: 8px; padding: 10px; border: 1px solid rgba(13, 110, 150, .08); margin-bottom: 8px; font-size: 12px; }
.preview-empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 13px; }
.preview-side > b:first-child { font-size: 14px; color: #fff; }
.preview-side > b:not(:first-child) { font-size: 12px; font-weight: 700; letter-spacing: .3px; margin: 10px 0 0; padding: 2px 6px;
  border-radius: 5px; background: rgba(255, 255, 255, .06); display: block; }
.theme-presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px; }
.theme-chip { background: var(--glass-strong); border: 1px solid var(--border); border-radius: 12px; padding: 11px 6px;
  display: flex; align-items: center; gap: 7px; justify-content: center; color: #475569; transition: .18s; backdrop-filter: blur(8px); }
.theme-chip i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #CBD5E1; }
.theme-chip span { font-size: 11px; }
.theme-chip.active, .theme-chip:hover { border-color: var(--primary); color: var(--primary);
  background: var(--primary-soft); transform: translateY(-1px); }
.style-controls input[type=color] { height: 40px; padding: 4px; }
.config-list { display: grid; gap: 8px; }
.config-row { display: grid; grid-template-columns: 36px minmax(160px, 1fr) 46px 48px 48px; gap: 8px; align-items: center;
  padding: 8px; border: 1px solid var(--border-soft); border-radius: 12px; background: rgba(250, 252, 253, .9); }
.config-handle { font: 500 11px ui-monospace; color: #78909C; text-align: center; }
.config-label { height: 34px; border: 1px solid var(--border); border-radius: 9px; padding: 0 10px; background: #fff; }
.mini-btn { height: 30px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 11px; color: #526579; transition: .15s; }
.mini-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.mini-btn:disabled { opacity: .35; }
/* 菜单树形编辑器（平台设置） */
.nav-tree { gap: 10px; }
.nav-tree-group { display: grid; gap: 6px; }
.nav-tree .config-row { grid-template-columns: 30px minmax(140px, 1fr) 42px minmax(92px, 118px) 44px 44px; }
.nav-tree .nav-tree-grow { grid-template-columns: 30px minmax(140px, 1fr) 40px 44px 44px 48px; background: #EDF4F8; border-color: var(--border); }
.nav-tree-children { margin: 0 0 4px 22px; padding-left: 10px; border-left: 2px solid var(--border-soft); display: grid; gap: 6px; }
.config-moveto { height: 30px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 11px; color: #526579; padding: 0 4px; max-width: 100%; }
.nav-tree-tag { font-size: 11px; color: var(--muted); text-align: center; }
.nav-tree-empty { font-size: 12px; color: var(--muted); padding: 8px 10px; border: 1px dashed var(--border); border-radius: 10px; background: rgba(250, 252, 253, .6); }
.switch { position: relative; width: 38px; height: 22px; }
.switch input { display: none; }
.switch i { display: block; width: 38px; height: 22px; border-radius: 12px; background: #CBD5E1; transition: .2s; cursor: pointer; }
.switch i:after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transform: translate(3px, 3px); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: .2s; }
.switch input:checked + i { background: var(--grad-brand); }
.switch input:checked + i:after { transform: translate(19px, 3px); }

/* ---------- 12. 权威宣传素材库 ---------- */
.material-index-only { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 20px; color: var(--muted);
  background: repeating-linear-gradient(135deg, rgba(248, 250, 252, .9), rgba(248, 250, 252, .9) 12px, rgba(238, 243, 246, .9) 12px, rgba(238, 243, 246, .9) 24px); }
.material-index-only small { margin-top: 6px; }
.material-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.material-toolbar input { flex: 1; min-width: 240px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255, 255, 255, .8); }
.material-toolbar input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.material-toolbar select { min-width: 150px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255, 255, 255, .85); }
.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 16px; align-items: start; }
.material-grid.compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); max-height: 58vh; overflow: auto; padding: 4px; }
.material-card { background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, .85); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  min-width: 0; transition: .22s; }
.material-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.material-image { height: 230px; background: linear-gradient(160deg, rgba(238, 245, 247, .9), rgba(228, 240, 245, .9));
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.material-image img { width: 100%; height: 100%; object-fit: contain; transition: .3s; }
.material-card:hover .material-image img { transform: scale(1.03); }
.material-image > span { position: absolute; left: 10px; top: 10px; background: rgba(8, 51, 68, .85); color: #fff;
  padding: 4px 10px; border-radius: 999px; font-size: 10px; backdrop-filter: blur(6px); }
.material-body { padding: 15px; }
.material-body h3 { font-size: 14px; line-height: 1.55; margin: 5px 0 8px; color: var(--text); min-height: 43px; }
.material-meta { font-size: 10px; color: var(--faint); }
.material-note { font-size: 11px; color: #795548; line-height: 1.55; background: rgba(255, 248, 232, .9); border-radius: 9px;
  padding: 8px; margin-bottom: 8px; max-height: 58px; overflow: auto; }
.material-tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0; }
.material-tags i { font-style: normal; font-size: 10px; color: var(--primary-dark); background: var(--primary-soft); padding: 3px 8px; border-radius: 999px; }
.material-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.material-actions a { text-decoration: none; }
.material-picker { width: 1040px; }
.material-review-image { width: 100%; max-height: 350px; object-fit: contain; background: rgba(244, 248, 250, .9); border-radius: 11px; margin-bottom: 14px; }
.material-list { display: grid; gap: 7px; margin-bottom: 16px; }
.material-list > div { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px;
  padding: 10px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--glass-strong); }
.material-list small { color: var(--faint); font-size: 10px; }
.source-box { margin-top: 12px; padding: 11px; background: rgba(244, 248, 250, .9); border-radius: 10px; font-size: 11px;
  color: var(--muted); line-height: 1.7; word-break: break-all; }
.source-box a { color: var(--primary); }

/* ---------- 13. AI 视频号 ---------- */
.video-new-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.video-left, .video-right { min-width: 0; }
.ph-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-bottom: 12px; }
.ph-item { display: flex; align-items: flex-start; gap: 8px; border: 1px solid var(--border); border-radius: 11px;
  padding: 9px 10px; background: var(--glass-strong); cursor: pointer; text-align: left; transition: .18s;
  font-size: 12px; color: var(--text); width: 100%; }
.ph-item:hover { border-color: rgba(34, 211, 238, .7); background: rgba(236, 254, 255, .9); transform: translateY(-1px); }
.ph-item.active { border-color: var(--primary); background: rgba(236, 249, 255, .95);
  box-shadow: 0 0 0 3px var(--primary-soft); }
.ph-num { font: 800 13px ui-monospace; color: #fff; background: var(--grad-brand); border-radius: 8px;
  padding: 2px 8px; flex-shrink: 0; line-height: 1.6; }
.ph-label { line-height: 1.4; font-size: 11.5px; color: #334155; padding-top: 2px; }
.ph-item.active .ph-label { color: var(--primary-dark); }
.ph-brief { background: rgba(247, 252, 253, .9); border: 1px solid var(--border); border-radius: 11px;
  padding: 11px 13px; font-size: 12px; color: #527184; line-height: 1.7; min-height: 44px; }

/* 历史脚本 */
.vhist-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border-soft); }
.vhist-item:first-of-type { border-top: 0; }
.vhist-info { min-width: 0; flex: 1; }
.vhist-info b { display: block; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vhist-info small { font-size: 11px; color: var(--muted); display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vhist-btns { display: flex; gap: 5px; flex-shrink: 0; }

/* 日期选择 */
.video-date-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.video-date-input { flex: 1; min-width: 140px; font-size: 14px; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 11px; color: var(--text); background: rgba(255, 255, 255, .85); }
.video-date-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* 推荐结果 */
.rec-result { background: linear-gradient(120deg, rgba(240, 249, 251, .95), rgba(238, 245, 255, .9));
  border: 1px solid rgba(186, 230, 239, .8); border-radius: var(--r-md); padding: 16px; margin-top: 4px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rec-date-badge { font: 800 12px ui-monospace; color: var(--primary); background: rgba(224, 244, 248, .9);
  border-radius: 8px; padding: 3px 11px; display: inline-block; margin-bottom: 8px; }
.rec-events { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rec-tag { font-size: 11px; border-radius: 999px; padding: 3px 11px; display: inline-block; font-weight: 600; }
.rec-tag.health { background: rgba(255, 247, 237, .95); color: #C2410C; }
.rec-tag.term { background: rgba(240, 253, 244, .95); color: #15803D; }
.rec-month-svc { font-size: 11px; color: #527184; margin-bottom: 8px; }
.rec-main { border-top: 1px solid rgba(230, 243, 247, .9); padding-top: 10px; margin-bottom: 8px; }
.rec-topic { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 5px; line-height: 1.4; }
.rec-rationale { font-size: 12px; color: #527184; line-height: 1.7; }
.rec-details { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-badge { font-size: 11px; border-radius: 999px; padding: 3px 11px; font-weight: 600; }
.rec-badge.type { background: rgba(224, 244, 248, .9); color: var(--primary); }
.rec-badge.audience { background: rgba(243, 240, 255, .95); color: #6D28D9; }
.rec-points { font-size: 12px; color: #334155; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(230, 243, 247, .9); }
.rec-points b { color: var(--primary); }
.rec-points li { margin-left: 16px; line-height: 1.7; }

/* 脚本类型 */
.video-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.video-type { border: 1px solid var(--border); border-radius: 13px; padding: 11px; background: var(--glass-strong);
  cursor: pointer; transition: .2s; }
.video-type input { display: none; }
.video-type b { display: block; font-size: 12.5px; color: var(--text); }
.video-type span { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.video-type.active { border-color: var(--primary); background: rgba(236, 249, 255, .95); box-shadow: 0 0 0 3px var(--primary-soft); }

/* 脚本卡片 */
.video-welcome { text-align: center; padding: 50px 30px; }
.video-welcome .chat-empty-icon { font-size: 34px; }
.video-script-card h3 { font-size: 16px; color: var(--text); }
.video-script-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.video-script-head p { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.video-saved-badge { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .3px;
  color: #047857; background: rgba(209, 250, 229, .95); border: 1px solid rgba(167, 243, 208, .95); border-radius: 999px; padding: 2px 9px; }
.video-script-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.video-block { margin-bottom: 14px; }
.video-block label { display: block; font-size: 11px; color: #527184; font-weight: 700; margin-bottom: 6px; letter-spacing: .5px; }
.video-block p { font-size: 13px; color: #334155; line-height: 1.8; background: rgba(247, 252, 253, .9);
  border: 1px solid rgba(230, 238, 242, .9); border-radius: 11px; padding: 11px 13px; white-space: pre-wrap; }
.video-block p.quote { border-left: 3px solid #22D3EE; }
.video-scenes { display: grid; gap: 12px; margin: 6px 0 16px; }
.video-scene { border: 1px solid var(--border); border-radius: 14px; background: var(--glass-strong); overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: .2s; }
.video-scene:hover { box-shadow: var(--shadow-sm); }
.video-scene-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: linear-gradient(120deg, rgba(240, 249, 251, .95), rgba(238, 245, 255, .9)); border-bottom: 1px solid var(--border); }
.video-scene-head .scene-no { font: 800 11px ui-monospace; color: #fff; background: var(--grad-brand); border-radius: 8px; padding: 3px 8px; }
.video-scene-head b { font-size: 13px; color: var(--text); }
.video-scene-head small { margin-left: auto; font-size: 11px; color: var(--muted); }
.video-scene-block { padding: 11px 14px; border-top: 1px solid rgba(238, 243, 246, .9); }
.video-scene-block:first-of-type { border-top: 0; }
.video-scene-block label { display: block; font-size: 10px; color: var(--primary); font-weight: 700; margin-bottom: 5px; letter-spacing: .6px; }
.video-scene-block p { font-size: 13px; color: #334155; line-height: 1.8; }
.video-scene-block p.talkscript { color: var(--text); font-weight: 600; }
.video-scene-block p.subtitle { color: #526579; font-size: 12px; background: rgba(247, 252, 253, .9); border-radius: 9px; padding: 9px 11px; }
.video-scene-block p.tips { color: #7C5A0E; font-size: 12px; }
.video-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.video-compliance { list-style: none; padding: 0; margin: 0; }
.video-compliance li { font-size: 12px; color: #B45309; background: rgba(255, 251, 235, .95); border: 1px solid rgba(253, 230, 138, .9);
  border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; line-height: 1.6; }
.video-disclaimer { font-size: 11px; color: var(--muted); background: rgba(247, 252, 253, .9); border-radius: 10px;
  padding: 11px 13px; margin-top: 14px; line-height: 1.7; }

/* 违规词检测 */
.check-result { border: 2px solid var(--border); border-radius: var(--r-md); overflow: hidden; margin: 12px 0;
  background: var(--glass-strong); }
.check-head { font-size: 13px; font-weight: 700; padding: 11px 16px; }
.check-issue { border-top: 1px solid rgba(240, 240, 240, .9); padding: 13px 16px; }
.check-issue-type { font-size: 11px; font-weight: 800; color: #DC2626; text-transform: uppercase; margin-bottom: 5px; letter-spacing: 1px; }
.check-issue-words { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.check-word { background: rgba(254, 226, 226, .95); color: #DC2626; border-radius: 8px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.check-issue-suggestion { font-size: 12px; color: #334155; line-height: 1.7; }
.check-ai { background: linear-gradient(120deg, rgba(245, 243, 255, .95), rgba(240, 245, 255, .9));
  border-top: 1px solid rgba(237, 233, 254, .9); padding: 15px 16px; }
.check-ai-head { font-size: 12px; font-weight: 800; color: #6D28D9; margin-bottom: 6px; }
.check-ai-summary { font-size: 12px; color: #334155; margin-bottom: 8px; line-height: 1.7; }
.check-ai ul { font-size: 12px; color: #334155; margin: 0; padding-left: 16px; line-height: 1.9; }
.check-ai li b { color: #DC2626; }
.check-disclaimer { font-size: 11px; color: var(--muted); padding: 11px 16px; border-top: 1px solid rgba(240, 240, 240, .9); background: rgba(250, 250, 250, .9); }
.check-disclaimer::before { content: '⚠️ '; }

/* 视频编辑器 */
.video-editor-modal { width: 900px; max-height: 86vh; overflow: auto; }
.video-editor-scene { border: 1px solid var(--border); border-radius: 13px; padding: 13px; margin-bottom: 12px;
  background: rgba(250, 253, 254, .9); }

/* ---------- 14. AI 智能客服 ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.svc-layout .card { min-width: 0; }
.kv-item b { font-weight: 500; }
.svc-src.badge { font-size: 11px; padding: 1px 8px; border-radius: 10px; background: rgba(0, 0, 0, .05); }
.svc-src.badge:empty { display: none; }
#svcTestResult .chat-msg { margin: 8px 0; }
#svcTestResult .bubble { white-space: pre-wrap; word-break: break-word; }

/* ---------- 15. 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.contact-card { background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, .85); border-radius: var(--r-lg);
  padding: 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: .2s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: 19px; background: linear-gradient(135deg, #10B981, #059669); box-shadow: 0 8px 20px rgba(15, 163, 107, .3); }
.contact-icon.phone { background: linear-gradient(135deg, #22D3EE, #0891B2); box-shadow: 0 8px 20px rgba(14, 155, 196, .3); }
.contact-card span { font-size: 11px; color: var(--muted); }
.contact-card b { display: block; font-size: 22px; color: var(--text); margin: 3px 0; letter-spacing: .3px; }
.contact-card p { font-size: 11px; color: var(--faint); }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.support-grid div { padding: 14px; background: rgba(247, 252, 253, .9); border-radius: 11px; font-size: 13px;
  border: 1px solid var(--border-soft); transition: .15s; }
.support-grid div:hover { background: rgba(236, 254, 255, .9); transform: translateY(-1px); }
.support-grid i { font-style: normal; color: var(--ok); margin-right: 8px; font-weight: 800; }

/* 联系我们页：超管自定义内容展示（内容为内联样式富文本，这里只提供卡片容器与基础排版） */
.contact-view { border: 1px dashed var(--line, #E2E8F0); border-radius: var(--r-md); padding: 22px;
  background: rgba(250, 253, 254, .8); }
.contact-custom-card { max-width: 860px; margin: 0 auto; }
.contact-custom { font-size: 15px; line-height: 1.9; color: var(--text); word-break: break-word; }
.contact-custom a { color: var(--primary); }
.contact-custom img { max-width: 100%; }
/* 小标题与编辑器 .rich-editor h2 完全同款：保证编辑区 = 超管预览 = 医院端三端一致 */
.contact-custom h2 { font-size: 17px; color: #fff; background: var(--grad-brand); padding: 9px 15px; border-radius: 8px; margin: 22px 0 12px; }
.contact-custom blockquote { margin: 18px 0; }

/* 预留：任务卡片/号码/副标题等通用 */
.subtitle { font-size: 12px; color: var(--muted); }
.sync-result { font-size: 12px; }
.num { font-size: 26px; font-weight: 800; }
.lbl { font-size: 12px; color: var(--muted); }
.meta { font-size: 12px; color: var(--muted); }
.quote { border-left: 3px solid #22D3EE; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1200px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .ability-grid { grid-template-columns: repeat(3, 1fr); }
  .task-type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-side { max-height: 180px; }
  .chat-main { min-height: 650px; }
  .health-item { grid-template-columns: 70px 1fr; }
  .health-item > .btn { grid-column: 2; }
  .atmo-bar { margin: 0 16px 14px; }
  #main { padding: 0 16px 24px; }
  .main-wrapper { left: 0; }
  .sidebar { display: none; }
  .group-tabs-bar { margin: 0 16px 4px; padding: 8px 0 14px; }
}
@media (max-width: 1180px) {
  .customizer-layout { grid-template-columns: 1fr; }
  .customizer-preview { position: relative; top: 0; }
  .preview-shell { height: 400px; }
  .theme-presets { grid-template-columns: repeat(3, 1fr); }
  .video-new-layout { grid-template-columns: 1fr; }
  .video-type-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .theme-presets { grid-template-columns: repeat(2, 1fr); }
  .config-row { grid-template-columns: 30px 1fr 42px; }
  .config-row .mini-btn { display: none; }
  .video-type-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid-2 { grid-template-columns: 1fr; }
  .ph-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .contact-grid { grid-template-columns: 1fr; }
  .ability-grid { grid-template-columns: repeat(2, 1fr); }
  .article-image-slots { grid-template-columns: 1fr; }
  .health-search input { width: 150px; }
  .support-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-metrics { grid-template-columns: repeat(2, 1fr); }
  .lp-panel { padding: 26px 22px 22px; }
  .contact-card { grid-template-columns: auto 1fr; }
  .contact-card .btn { grid-column: 1/-1; }
  .review-grid { grid-template-columns: 1fr; }
  .material-grid, .material-grid.compact { grid-template-columns: 1fr; }
  .material-picker { width: 96vw; }
  .material-image { height: 280px; }
  .hero-orb, .hero-med { display: none; }
  .hero-tag { position: static; margin-top: 12px; display: inline-flex; }
  .dashboard-hero, .ai-hero { padding: 24px 22px; }
}
@media (max-width: 1100px) {
  .modal[style*="1100px"] { width: 96vw !important; }
  .rich-editor { max-height: 440px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ============================================================
   旧全屏特效已废弃：#aiFx 的黑色背景/定位规则已由 .fxpop-overlay（居中弹窗+背景虚化）取代。
   这里只保留动画关键帧，不再给 #aiFx 设背景色，避免 ID 选择器覆盖新弹窗样式。
   ============================================================ */
#aiFx.out { animation: aiFxOut .4s ease-in forwards; }
@keyframes aiFxIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes aiFxOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
#aiFx .ai-fx-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(56,189,248,.16), transparent 65%),
    radial-gradient(45% 40% at 22% 78%, rgba(168,85,247,.12), transparent 60%),
    radial-gradient(40% 40% at 82% 20%, rgba(34,211,238,.12), transparent 60%);
  animation: aiFxBgPulse 3.2s ease-in-out infinite;
}
@keyframes aiFxBgPulse { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
#aiFx .ai-fx-layer { position: absolute; inset: -20%; }
#aiFx .ai-fx-core {
  position: relative;
  text-align: center;
  color: #E6F7FF;
  z-index: 3;
  padding: 0 24px;
  max-width: 640px;
}
#aiFx .ai-fx-ring {
  position: absolute; left: 50%; top: 50%;
  width: 220px; height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  border: 1px solid rgba(125,211,252,.4);
  box-shadow: 0 0 40px rgba(56,189,248,.25), inset 0 0 30px rgba(56,189,248,.15);
  animation: aiFxRing 2.6s linear infinite;
}
#aiFx .ai-fx-ring::before, #aiFx .ai-fx-ring::after {
  content: ''; position: absolute; inset: 14px; border-radius: 50%;
  border: 1px dashed rgba(167,139,250,.5);
  animation: aiFxRingSpin 5s linear infinite;
}
#aiFx .ai-fx-ring::after { inset: 34px; border-color: rgba(34,211,238,.4); animation-direction: reverse; animation-duration: 3.5s; }
@keyframes aiFxRing { to { transform: rotate(360deg); } }
@keyframes aiFxRingSpin { to { transform: rotate(-360deg); } }
#aiFx .ai-fx-orb {
  font-size: 46px;
  line-height: 1;
  animation: aiFxOrb 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(56,189,248,.7));
}
@keyframes aiFxOrb { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-12px) scale(1.08); } }
#aiFx .ai-fx-title {
  margin-top: 18px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(90deg,#67E8F9,#A78BFA,#67E8F9);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aiFxTitle 3s linear infinite;
}
@keyframes aiFxTitle { to { background-position: 200% 0; } }
#aiFx .ai-fx-sub { margin-top: 10px; font-size: 14px; color: rgba(196,226,242,.85); letter-spacing: 1px; }
#aiFx .ai-fx-bar {
  width: min(420px, 74vw);
  height: 4px;
  margin: 26px auto 0;
  border-radius: 99px;
  background: rgba(148,197,222,.18);
  overflow: hidden;
}
#aiFx .ai-fx-bar i {
  display: block; height: 100%; width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg,#38BDF8,#A78BFA,#34D399);
  background-size: 200% 100%;
  animation: aiFxBarBg 1.6s linear infinite;
  transition: width .3s ease;
}
@keyframes aiFxBarBg { to { background-position: 200% 0; } }

/* --- 特效 1：星云流光 nebula --- */
.fx-nebula .fx-layer-a { background: radial-gradient(ellipse at 30% 35%, rgba(59,130,246,.28), transparent 55%); animation: aiNebA 9s ease-in-out infinite alternate; }
.fx-nebula .fx-layer-b { background: radial-gradient(ellipse at 75% 65%, rgba(168,85,247,.24), transparent 55%); animation: aiNebB 11s ease-in-out infinite alternate; }
@keyframes aiNebA { to { transform: translate(6%, 5%) scale(1.15); } }
@keyframes aiNebB { to { transform: translate(-6%, -5%) scale(1.18); } }
.fx-nebula .ai-fx-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 60% 25%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 80% 60%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 12% 85%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 50% 12%, rgba(255,255,255,.6), transparent 60%);
  animation: aiFxTwinkle 3s ease-in-out infinite alternate;
}
@keyframes aiFxTwinkle { to { opacity: .45; } }

/* --- 特效 2：粒子风暴 particles --- */
.fx-particles .fx-layer-a, .fx-particles .fx-layer-b { opacity: .8; }
.fx-particles .fx-layer-a { background-image: radial-gradient(2px 2px at 10% 20%,#67E8F9,transparent 60%),radial-gradient(2px 2px at 30% 60%,#A78BFA,transparent 60%),radial-gradient(2px 2px at 50% 15%,#67E8F9,transparent 60%),radial-gradient(2px 2px at 70% 50%,#A78BFA,transparent 60%),radial-gradient(2px 2px at 90% 30%,#67E8F9,transparent 60%),radial-gradient(2px 2px at 20% 85%,#A78BFA,transparent 60%),radial-gradient(2px 2px at 60% 78%,#67E8F9,transparent 60%); animation: aiPartA 2.4s linear infinite; }
.fx-particles .fx-layer-b { background-image: radial-gradient(2px 2px at 15% 45%,#A78BFA,transparent 60%),radial-gradient(2px 2px at 45% 30%,#67E8F9,transparent 60%),radial-gradient(2px 2px at 65% 72%,#A78BFA,transparent 60%),radial-gradient(2px 2px at 85% 55%,#67E8F9,transparent 60%),radial-gradient(2px 2px at 35% 90%,#A78BFA,transparent 60%); animation: aiPartB 3.1s linear infinite; }
@keyframes aiPartA { from { transform: translate(0,0); } to { transform: translate(-6%, 3%); } }
@keyframes aiPartB { from { transform: translate(0,0); } to { transform: translate(6%, -4%); } }

/* --- 特效 3：数字矩阵 matrix --- */
.fx-matrix .ai-fx-bg { background: #001407; }
.fx-matrix .fx-layer-a, .fx-matrix .fx-layer-b {
  inset: 0; opacity: .5;
  font-family: "Menlo", "Consolas", monospace;
  color: #22C55E;
  font-size: 18px;
  line-height: 1.6;
  white-space: pre;
  text-align: center;
}
.fx-matrix .ai-fx-ring { border-color: rgba(34,197,94,.45); box-shadow: 0 0 40px rgba(34,197,94,.2); }
.fx-matrix .ai-fx-orb { filter: drop-shadow(0 0 16px rgba(34,197,94,.7)); }
.fx-matrix .ai-fx-title { background: linear-gradient(90deg,#4ADE80,#A3E635,#4ADE80); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: aiFxTitle 3s linear infinite; }

/* --- 特效 4：能量脉冲 pulse --- */
.fx-pulse .ai-fx-bg { background: radial-gradient(50% 50% at 50% 50%, rgba(56,189,248,.22), transparent 70%); }
.fx-pulse .ai-fx-ring { animation: aiPulseRing 1.6s ease-out infinite; }
.fx-pulse .ai-fx-ring::before, .fx-pulse .ai-fx-ring::after { animation: aiPulseRing2 1.6s ease-out infinite; }
@keyframes aiPulseRing { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes aiPulseRing2 { 0% { transform: scale(.7); opacity: 0; } 50% { opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* --- 特效 5：电磁能量 energy --- */
.fx-energy .ai-fx-bg { background: radial-gradient(55% 55% at 50% 50%, rgba(99,102,241,.2), transparent 70%); }
.fx-energy .ai-fx-ring { border-style: double; border-width: 6px; animation: aiFxRing 1.4s linear infinite; }
.fx-energy .fx-layer-a, .fx-energy .fx-layer-b { opacity: .35; }
.fx-energy .fx-layer-a { background: repeating-conic-gradient(from 0deg, rgba(99,102,241,.5) 0deg 4deg, transparent 4deg 22deg); animation: aiFxRing 3.5s linear infinite; }
.fx-energy .fx-layer-b { background: repeating-conic-gradient(from 90deg, rgba(56,189,248,.4) 0deg 3deg, transparent 3deg 18deg); animation: aiFxRing 2.6s linear infinite reverse; }

/* --- 特效 6：空间跃迁 warp --- */
.fx-warp .ai-fx-bg { background: radial-gradient(60% 60% at 50% 50%, rgba(168,85,247,.2), transparent 75%); }
.fx-warp .fx-layer-a, .fx-warp .fx-layer-b {
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(125,211,252,.3) 46px 48px);
  animation: aiWarp 1.1s linear infinite;
}
.fx-warp .fx-layer-b { background: repeating-linear-gradient(0deg, transparent 0 60px, rgba(167,139,250,.28) 60px 62px); animation-duration: 1.4s; animation-direction: reverse; }
@keyframes aiWarp { from { transform: translate(0,0); } to { transform: translate(48px, 62px); } }
.fx-warp .ai-fx-orb { animation: aiFxOrb 1.2s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(168,85,247,.9)); }

/* ================= AI 办公助手 ================= */
.office-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); gap: 16px; align-items: start; }
.office-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.office-file-card, .office-preview-card { margin: 0; }
.office-drop { border: 2px dashed var(--border, #d5e2e8); border-radius: 12px; padding: 26px 16px; text-align: center; color: var(--muted); cursor: pointer; transition: all .2s; }
.office-drop b { color: var(--text, #17303c); }
.office-drop a { color: var(--primary, #0891B2); text-decoration: underline; cursor: pointer; margin-left: 4px; }
.office-drop.over { border-color: var(--primary, #0891B2); background: rgba(8,145,178,.06); }
.office-files { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.office-file-tag { display: inline-flex; align-items: center; gap: 4px; background: rgba(8,145,178,.08); color: var(--text, #17303c); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.office-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.office-table-wrap { overflow: auto; max-height: 480px; border: 1px solid var(--border, #d5e2e8); border-radius: 10px; }
.office-table { border-collapse: collapse; width: 100%; font-size: 12.5px; white-space: nowrap; }
.office-table th, .office-table td { border: 1px solid var(--border, #e3ecf1); padding: 5px 9px; text-align: left; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.office-table thead th { position: sticky; top: 0; background: var(--primary, #0891B2); color: #fff; z-index: 1; }
.office-table tbody tr:nth-child(even) { background: rgba(8,145,178,.03); }
.office-rowno { color: var(--muted); text-align: right !important; width: 36px; background: rgba(8,145,178,.05); }
.office-table thead th.office-rowno { background: var(--primary, #0891B2); }
.office-table-note { padding: 8px 10px; font-size: 12px; color: var(--muted); background: rgba(8,145,178,.05); position: sticky; bottom: 0; }
.office-chat { margin: 0; display: flex; flex-direction: column; height: fit-content; position: sticky; top: 12px; }
.office-msgs { min-height: 260px; max-height: 46vh; }
.office-steps { margin: 8px 0 4px; padding-left: 20px; font-size: 13px; line-height: 1.9; }
.office-note { font-size: 12px; color: #b45309; background: rgba(245,158,11,.1); border-radius: 8px; padding: 6px 9px; margin-top: 6px; }
.office-plan-btns { display: flex; gap: 8px; margin-top: 10px; }
.office-done { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.office-log { font-size: 12.5px; color: var(--ok, #0e9f6e); }
.office-thinking { color: var(--muted); font-size: 13px; animation: officePulse 1.2s ease-in-out infinite; }
@keyframes officePulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (max-width: 1080px) { .office-layout { grid-template-columns: 1fr; } .office-chat { position: static; } }

/* ---------- 办公助手：三模式分段切换（纯文字，避免 unicode 图标渲染成 emoji） ---------- */
.wmode-switch { display: inline-flex; gap: 0; margin: 2px 0 16px; border: 1px solid var(--border, #d5e2e8); border-radius: 10px; overflow: hidden; background: rgba(8,145,178,.04); }
.wmode-btn { border: 0; background: transparent; padding: 8px 22px; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: all .18s; border-right: 1px solid var(--border, #d5e2e8); }
.wmode-btn:last-child { border-right: 0; }
.wmode-btn:hover { color: var(--text, #17303c); background: rgba(8,145,178,.07); }
.wmode-btn.on { background: var(--primary, #0891B2); color: #fff; font-weight: 600; }
.office-chat-wide { max-width: 860px; margin: 0 auto; position: static; }
.office-msgs-tall { min-height: 340px; max-height: 56vh; }

/* ---------- Word：源文档预览 ---------- */
.docpv-src { max-height: 420px; overflow: auto; border: 1px solid var(--border, #d5e2e8); border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.9; color: var(--text, #17303c); }
.docpv-src p { margin: 0 0 4px; word-break: break-all; }

/* ---------- Word：文稿预览卡（聊天气泡内） ---------- */
.docpv { margin-top: 8px; border: 1px solid var(--border, #d5e2e8); border-radius: 10px; background: rgba(8,145,178,.02); max-height: 380px; overflow: auto; }
.docpv-title { text-align: center; font-weight: 700; font-size: 16px; color: var(--text, #17303c); padding: 14px 18px 8px; }
.docpv-body { padding: 4px 18px 14px; font-size: 13px; line-height: 2; color: var(--text, #17303c); }
.docpv-h1 { font-weight: 700; margin: 10px 0 2px; }
.docpv-h2 { font-weight: 600; margin: 8px 0 2px; }
.docpv-para { text-indent: 2em; margin: 2px 0; word-break: break-all; }
.docpv-list { margin: 2px 0; padding-left: 2.2em; }
.docpv-list li { margin: 2px 0; }
.docpv-sign { text-align: right; margin-top: 12px; white-space: pre-line; }

/* ---------- PPT：大纲预览卡（聊天气泡内） ---------- */
.deckpv { margin-top: 8px; border: 1px solid var(--border, #d5e2e8); border-radius: 10px; overflow: hidden; max-height: 420px; overflow-y: auto; }
.deckpv-cover { background: #16324F; color: #fff; padding: 18px 20px 14px; }
.deckpv-cover b { display: block; font-size: 16px; }
.deckpv-cover small { display: block; color: #35B5AC; margin-top: 4px; font-size: 12px; }
.deckpv-bar { width: 44px; height: 4px; border-radius: 2px; background: #35B5AC; margin-bottom: 10px; }
.deckpv-slide { padding: 10px 16px; border-bottom: 1px solid var(--border, #e3ecf1); }
.deckpv-st { font-weight: 600; font-size: 13px; color: #16324F; display: flex; align-items: center; gap: 8px; }
.deckpv-no { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 6px; background: rgba(53,181,172,.15); color: #0f766e; font-size: 11.5px; }
.deckpv-slide ul { margin: 6px 0 2px; padding-left: 2em; font-size: 12.5px; color: var(--text, #17303c); line-height: 1.8; }
.deckpv-thanks { background: #16324F; color: #fff; text-align: center; padding: 10px; font-size: 13px; letter-spacing: 2px; }
/* deckpv 主题皮肤（与后端 pptAssist THEMES 对齐） */
.deckpv-theme { float: right; font-size: 11px; font-weight: 400; padding: 2px 9px; border-radius: 10px; background: rgba(255,255,255,.16); color: rgba(255,255,255,.9); letter-spacing: 1px; }
.deckpv-t-medical .deckpv-cover, .deckpv-t-medical .deckpv-thanks { background: #0A3E3D; }
.deckpv-t-medical .deckpv-bar { background: #4DB6A0; }
.deckpv-t-medical .deckpv-cover small { color: #4DB6A0; }
.deckpv-t-medical .deckpv-st { color: #0E7C7B; }
.deckpv-t-medical .deckpv-no { background: rgba(77,182,160,.16); color: #0E7C7B; }
.deckpv-t-party .deckpv-cover, .deckpv-t-party .deckpv-thanks { background: #7E1616; }
.deckpv-t-party .deckpv-bar { background: #D9A441; }
.deckpv-t-party .deckpv-cover small { color: #D9A441; }
.deckpv-t-party .deckpv-st { color: #A52323; }
.deckpv-t-party .deckpv-no { background: rgba(217,164,65,.18); color: #A52323; }
.deckpv-t-education .deckpv-cover, .deckpv-t-education .deckpv-thanks { background: #262E6E; }
.deckpv-t-education .deckpv-bar { background: #8E7CF0; }
.deckpv-t-education .deckpv-cover small { color: #8E7CF0; }
.deckpv-t-education .deckpv-st { color: #3949AB; }
.deckpv-t-education .deckpv-no { background: rgba(142,124,240,.16); color: #3949AB; }
.deckpv-t-report .deckpv-cover, .deckpv-t-report .deckpv-thanks { background: #1A2640; }
.deckpv-t-report .deckpv-bar { background: #C9A227; }
.deckpv-t-report .deckpv-cover small { color: #C9A227; }
.deckpv-t-report .deckpv-st { color: #23395B; }
.deckpv-t-report .deckpv-no { background: rgba(201,162,39,.18); color: #23395B; }
.deckpv-t-festival .deckpv-cover, .deckpv-t-festival .deckpv-thanks { background: #8E2B23; }
.deckpv-t-festival .deckpv-bar { background: #F2A33C; }
.deckpv-t-festival .deckpv-cover small { color: #F2A33C; }
.deckpv-t-festival .deckpv-st { color: #C0453A; }
.deckpv-t-festival .deckpv-no { background: rgba(242,163,60,.18); color: #C0453A; }
/* deckpv 完整页型预览（目录/章节/徽标/表格/总结/导出中） */
.deckpv-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 8px; background: rgba(53,181,172,.14); color: #0f766e; font-size: 11px; font-weight: 400; }
.deckpv-badge.img { background: rgba(142,124,240,.14); color: #5b21b6; }
.deckpv-toc { padding: 10px 16px; border-bottom: 1px solid var(--border, #e3ecf1); background: rgba(22,50,79,.04); }
.deckpv-toc b { display: block; font-size: 13px; color: #16324F; margin-bottom: 6px; letter-spacing: 2px; }
.deckpv-toc span { display: block; font-size: 12.5px; color: var(--text, #17303c); line-height: 1.9; }
.deckpv-sec { padding: 8px 16px; border-bottom: 1px solid var(--border, #e3ecf1); background: rgba(22,50,79,.07); display: flex; align-items: baseline; gap: 10px; }
.deckpv-sec span { font-size: 10.5px; color: var(--muted, #7c8b96); letter-spacing: 1.5px; }
.deckpv-sec b { font-size: 13.5px; color: #16324F; }
.deckpv-table { width: calc(100% - 8px); margin: 8px 0 2px; border-collapse: collapse; font-size: 12px; }
.deckpv-table th { background: rgba(22,50,79,.08); color: #16324F; font-weight: 600; padding: 4px 8px; border: 1px solid var(--border, #e3ecf1); text-align: left; }
.deckpv-table td { padding: 4px 8px; border: 1px solid var(--border, #e3ecf1); color: var(--text, #17303c); }
.deckpv-more { font-size: 11.5px; color: var(--muted, #7c8b96); margin-top: 3px; }
.deckpv-sum { background: rgba(53,181,172,.05); }
.deckpv-doing { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: rgba(53,181,172,.1); color: #0f766e; font-size: 12.5px; line-height: 1.7; }

/* ================= 公卫AI工作台 ================= */
.phw-warn { position: sticky; top: 0; z-index: 30; margin: 0 0 14px; padding: 10px 16px; border-radius: 10px;
  background: linear-gradient(90deg, #fef2f2, #fff7ed); border: 1px solid #fca5a5; color: #b91c1c;
  font-weight: 600; font-size: 13.5px; letter-spacing: .02em; box-shadow: 0 4px 14px rgba(185,28,28,.08); }
.phw-pii { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px;
  background: rgba(8,145,178,.1); color: #0e7490; font-weight: 500; }
.phw-preview { margin-top: 12px; max-height: 180px; overflow: auto; border: 1px solid var(--border, #e3ecf1); border-radius: 8px; }
.phw-preview table { border-collapse: collapse; font-size: 12.5px; }
.phw-preview th, .phw-preview td { padding: 4px 10px; border: 1px solid var(--border, #e3ecf1); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.phw-preview th { background: rgba(8,145,178,.07); }
.phw-map-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.phw-map-actions input, .phw-map-actions select { padding: 7px 10px; border: 1px solid var(--border, #d4e2ea); border-radius: 8px; font-size: 13px; background: var(--bg, #fff); color: var(--text, #17303c); }
.phw-map-wrap { max-height: 430px; overflow: auto; border: 1px solid var(--border, #e3ecf1); border-radius: 10px; }
.phw-map-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.phw-map-table th { position: sticky; top: 0; background: var(--glass-strong, #f4f8fa); padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border, #e3ecf1); z-index: 1; }
.phw-map-table td { padding: 6px 12px; border-bottom: 1px solid var(--border, #eef3f6); }
.phw-map-table select { width: 100%; max-width: 340px; padding: 6px 8px; border: 1px solid var(--border, #d4e2ea); border-radius: 7px; font-size: 13px; background: var(--bg, #fff); color: var(--text, #17303c); }
.phw-map-empty { background: rgba(245,158,11,.06); }
.phw-tpl-group { margin-bottom: 18px; }
.phw-tpl-grp-name { font-weight: 700; font-size: 14px; margin: 12px 0 8px; color: var(--text, #17303c);
  padding-left: 10px; border-left: 3px solid var(--primary, #0891B2); }
.phw-tpl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.phw-tpl-btn { flex: 0 1 240px; text-align: left; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border, #d4e2ea); background: var(--glass, #fff); color: var(--text, #17303c); transition: all .15s; }
.phw-tpl-btn:hover:not(:disabled) { border-color: var(--primary, #0891B2); box-shadow: 0 4px 16px rgba(8,145,178,.15); transform: translateY(-1px); }
.phw-tpl-btn:disabled { opacity: .45; cursor: not-allowed; }
.phw-tpl-btn b { display: block; font-size: 14px; margin-bottom: 4px; }
.phw-tpl-btn span { display: block; font-size: 12px; color: var(--muted, #7c8b96); line-height: 1.5; }
.phw-tpl-btn em { display: block; margin-top: 6px; font-size: 11.5px; color: #b45309; font-style: normal; }
.phw-adv { margin-top: 14px; border-top: 1px dashed var(--border, #e3ecf1); padding-top: 10px; }
.phw-adv summary { cursor: pointer; font-size: 13.5px; color: var(--muted, #7c8b96); user-select: none; }
.phw-adv summary:hover { color: var(--primary, #0891B2); }
.phw-adv-body { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; }
.phw-adv-body textarea { flex: 1; padding: 10px 12px; border: 1px solid var(--border, #d4e2ea); border-radius: 10px; font-size: 13.5px; resize: vertical; background: var(--bg, #fff); color: var(--text, #17303c); }
.phw-progress { position: relative; height: 22px; border-radius: 999px; background: rgba(8,145,178,.08); overflow: hidden; margin: 6px 0; }
.phw-progress i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #0891B2, #35b5ac); border-radius: 999px; transition: width .5s; }
.phw-progress span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 22px; color: var(--text, #17303c); font-weight: 600; }
.phw-err { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: rgba(220,38,38,.07); color: #b91c1c; font-size: 13px; line-height: 1.7; }
.phw-result-wrap { max-height: 560px; overflow: auto; border: 1px solid var(--border, #e3ecf1); border-radius: 10px; }
.phw-result-table { border-collapse: collapse; font-size: 12.5px; min-width: 100%; }
.phw-result-table th { position: sticky; top: 0; background: var(--glass-strong, #f4f8fa); padding: 7px 10px; border: 1px solid var(--border, #e3ecf1); text-align: left; white-space: nowrap; z-index: 1; }
.phw-result-table td { padding: 6px 10px; border: 1px solid var(--border, #eef3f6); vertical-align: top; max-width: 260px; }
.phw-result-table th.phw-ai-col { background: rgba(8,145,178,.1); color: #0e7490; }
.phw-ai-cell { min-width: 220px; white-space: pre-wrap; outline: none; cursor: text; background: rgba(8,145,178,.03); }
.phw-ai-cell:focus { background: rgba(8,145,178,.08); box-shadow: inset 0 0 0 2px rgba(8,145,178,.35); }
.phw-copy-col { white-space: nowrap; }
.phw-copy-col .btn { margin: 2px 4px 2px 0; }
.phw-tpl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.phw-tpl-card { margin: 0; }
.phw-tpl-off { opacity: .6; }
.phw-tpl-desc { font-size: 13px; color: var(--muted, #7c8b96); margin: 4px 0 6px; }
.phw-tpl-meta { font-size: 12px; color: #0e7490; margin-bottom: 8px; }
.phw-tpl-prompt { font-size: 12px; color: var(--muted, #7c8b96); background: rgba(8,145,178,.04); border-radius: 8px; padding: 8px 10px; line-height: 1.6; max-height: 90px; overflow: hidden; }
.phw-map-detail { padding: 8px 0; font-size: 12.5px; line-height: 1.9; }

/* ================= 居民健康积分 · 智能科技感专区 ================= */
/* 设计语言与全局一致：玻璃拟态 + 极光渐变 + 网格扫描 + 脉搏脉冲；全部 pts- 前缀纯追加 */

/* ---------- 数据驾驶舱 Hero ---------- */
.pts-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 26px 30px 22px;
  margin-bottom: 18px; background: var(--grad-hero);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .95); }
.pts-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 155, 196, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 155, 196, .07) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(115% 130% at 18% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(115% 130% at 18% 0%, #000, transparent 72%); }
.pts-hero::after { content: ""; position: absolute; top: 0; bottom: 0; width: 110px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg); animation: heroSweep 8s ease-in-out infinite; }
.pts-hero-orb { position: absolute; width: 190px; height: 190px; border-radius: 50%; right: 4%; top: -58px;
  pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 35% 35%, rgba(110, 231, 183, .85), rgba(14, 155, 196, .26) 55%, transparent 70%);
  box-shadow: 0 0 80px rgba(52, 211, 153, .4); animation: orbBreath 5.5s ease-in-out infinite; }
.pts-hero-eyebrow { position: relative; z-index: 1; display: block; color: var(--primary);
  font: 800 10px ui-monospace, monospace; letter-spacing: 2.6px; margin-bottom: 8px; }
.pts-hero h2 { position: relative; z-index: 1; font-size: 25px; font-weight: 800; letter-spacing: .3px; margin-bottom: 6px;
  background: linear-gradient(120deg, #0B5370, #0E9BC4 45%, #2E6FE8 80%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pts-hero p { position: relative; z-index: 1; color: #4E6B7E; font-size: 12.5px; line-height: 1.7; max-width: 620px; }
.pts-hero-tag { position: absolute; right: 26px; top: 22px; z-index: 2; display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; color: var(--ok);
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .9); padding: 7px 13px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.pts-hero-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 6px rgba(15, 163, 107, .13), 0 0 14px var(--ok); animation: aiPing 2.2s ease-out infinite; }

/* ---------- 指标卡矩阵 ---------- */
.pts-metric-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 13px;
  position: relative; z-index: 1; margin-top: 18px; }
.pts-metric { position: relative; overflow: hidden; background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, .88); border-radius: var(--r-md); padding: 15px 16px 13px;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: .22s ease; }
.pts-metric::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand); opacity: .85; }
.pts-metric::after { content: ""; position: absolute; width: 76px; height: 76px; border-radius: 50%;
  right: -28px; bottom: -34px; background: rgba(103, 232, 249, .3); pointer-events: none; }
.pts-metric:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.pts-metric .k { font: 800 9.5px ui-monospace, monospace; color: var(--primary); letter-spacing: 1.5px; }
.pts-metric .v { font-size: 25px; font-weight: 800; margin: 9px 0 2px; letter-spacing: -.5px;
  font-variant-numeric: tabular-nums; }
.pts-metric .l { font-size: 12.5px; font-weight: 700; }
.pts-metric small { color: var(--faint); font-size: 10px; display: block; margin-top: 3px; }
.pts-metric.tone-1::after { background: rgba(103, 232, 249, .32); }
.pts-metric.tone-2::after { background: rgba(110, 231, 183, .32); }
.pts-metric.tone-3::after { background: rgba(196, 181, 253, .34); }
.pts-metric.tone-4::after { background: rgba(253, 230, 138, .34); }
.pts-metric.tone-5::after { background: rgba(253, 200, 160, .32); }
.pts-metric.tone-6::after { background: rgba(147, 197, 253, .34); }
.pts-metric.tone-2::before { background: var(--grad-health); }

/* ---------- 实时动态滚动条 ---------- */
.pts-live { position: relative; z-index: 1; margin-top: 16px; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .85); border-radius: 999px;
  padding: 8px 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; }
.pts-live-label { flex: none; display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800;
  letter-spacing: 1.2px; color: #0B8A5C; }
.pts-live-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 5px rgba(15, 163, 107, .13), 0 0 12px var(--ok); animation: aiPing 2s ease-out infinite; }
.pts-live-track { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.pts-live-inner { display: flex; gap: 26px; white-space: nowrap; animation: ptsLiveScroll 26s linear infinite; will-change: transform; }
.pts-live-inner:hover { animation-play-state: paused; }
@keyframes ptsLiveScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.pts-live-item { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.pts-live-item b { color: var(--text); font-weight: 700; }
.pts-live-item em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.pts-live-item em.plus { color: var(--ok); }
.pts-live-item em.minus { color: var(--err); }
.pts-live-item time { color: var(--faint); font-size: 10.5px; }

/* ---------- 迷你趋势图（14 天双柱） ---------- */
.pts-trend { display: flex; align-items: flex-end; gap: 7px; height: 120px; padding: 10px 2px 0; }
.pts-trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 3px; height: 100%; }
.pts-trend-bars { display: flex; align-items: flex-end; gap: 2px; height: 84px; }
.pts-trend-bars i { display: block; width: 7px; min-height: 2px; border-radius: 3px 3px 1px 1px;
  transition: height .7s cubic-bezier(.22, .9, .32, 1.2); }
.pts-trend-bars .earn { background: var(--grad-health); box-shadow: 0 0 8px rgba(15, 163, 107, .35); }
.pts-trend-bars .spend { background: linear-gradient(180deg, #FDA4AF, #F43F5E); opacity: .8; }
.pts-trend-col span { font-size: 9px; color: var(--faint); transform: scale(.92); }
.pts-trend-legend { display: flex; gap: 16px; font-size: 10.5px; color: var(--muted); margin-top: 8px; }
.pts-trend-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.pts-trend-legend .lg-earn { background: var(--grad-health); }
.pts-trend-legend .lg-spend { background: linear-gradient(180deg, #FDA4AF, #F43F5E); }

/* ---------- 大类热度条 ---------- */
.pts-heat-row { display: grid; grid-template-columns: 118px 1fr 52px; gap: 10px; align-items: center; margin: 9px 0; font-size: 12px; }
.pts-heat-row > span { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pts-heat-row > div { height: 8px; background: rgba(13, 60, 90, .07); border-radius: 6px; overflow: hidden; }
.pts-heat-row em { display: block; height: 100%; border-radius: 6px; background: var(--grad-brand);
  box-shadow: 0 0 10px rgba(14, 155, 196, .35); transition: width .7s ease; }
.pts-heat-row > b { font-size: 11.5px; color: var(--primary); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 发光大类胶囊 tab ---------- */
.pts-cat-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.pts-cat-pill { position: relative; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--glass-strong); color: #48647a; font-size: 12.5px;
  transition: all .2s ease; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pts-cat-pill:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 155, 196, .18); }
.pts-cat-pill.active { background: var(--grad-brand); border-color: transparent; color: #fff; font-weight: 700;
  box-shadow: 0 6px 20px rgba(14, 155, 196, .38), 0 0 0 4px rgba(14, 155, 196, .12); }
.pts-cat-pill .n { font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 999px;
  background: rgba(14, 155, 196, .12); color: var(--primary); font-variant-numeric: tabular-nums; }
.pts-cat-pill.active .n { background: rgba(255, 255, 255, .24); color: #fff; }

/* ---------- 玻璃操作面板 ---------- */
.pts-panel { position: relative; overflow: hidden; background: var(--card); border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); margin-bottom: 18px; }
.pts-panel::before { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 2px;
  background: var(--grad-brand); opacity: .7; border-radius: 2px; }
.pts-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pts-panel-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; }
.pts-panel-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--grad-brand);
  box-shadow: 0 0 8px rgba(14, 155, 196, .5); }
.pts-panel-title small { font-size: 11px; color: var(--faint); font-weight: 500; margin-left: 2px; }
.pts-panel .section-head > span, .pts-panel-head > span { font-size: 10px; color: var(--primary);
  background: var(--primary-soft); padding: 4px 11px; border-radius: 999px; font-weight: 700; letter-spacing: .5px; }

/* ---------- 表格发光增强（积分页容器内） ---------- */
.pts-glow-table { border-radius: 14px; overflow: hidden; border: 1px solid var(--border-soft); }
.pts-glow-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pts-glow-table thead th { background: linear-gradient(180deg, rgba(14, 155, 196, .09), rgba(14, 155, 196, .04));
  color: #2A5B75; font-weight: 700; font-size: 12px; letter-spacing: .5px; padding: 10px 12px;
  border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.pts-glow-table tbody td { padding: 9px 12px; border-bottom: 1px solid rgba(13, 110, 150, .06); }
.pts-glow-table tbody tr { transition: background .18s ease, box-shadow .18s ease; }
.pts-glow-table tbody tr:hover { background: rgba(14, 155, 196, .06);
  box-shadow: inset 3px 0 0 var(--primary), inset 0 0 18px rgba(14, 155, 196, .07); }

/* ---------- 徽章发光 ---------- */
.pts-glow-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pts-glow-badge.b-service { background: rgba(15, 163, 107, .12); color: #0B8A5C; box-shadow: 0 0 8px rgba(15, 163, 107, .18); }
.pts-glow-badge.b-reading { background: rgba(46, 111, 232, .12); color: #2E6FE8; box-shadow: 0 0 8px rgba(46, 111, 232, .16); }
.pts-glow-badge.b-redeem { background: rgba(232, 137, 12, .12); color: #B45309; box-shadow: 0 0 8px rgba(232, 137, 12, .16); }
.pts-glow-badge.b-manual { background: rgba(124, 92, 252, .12); color: #6A48E0; box-shadow: 0 0 8px rgba(124, 92, 252, .16); }

/* ---------- 礼品智能卡 ---------- */
.pts-gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pts-gift-card { position: relative; overflow: hidden; border-radius: var(--r-md); padding: 16px;
  background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, .88); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: .22s ease; }
.pts-gift-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-health); opacity: .8; }
.pts-gift-card::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%;
  right: -34px; top: -38px; background: rgba(110, 231, 183, .2); pointer-events: none; }
.pts-gift-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.pts-gift-card.off { opacity: .55; }
.pts-gift-name { font-size: 14.5px; font-weight: 800; margin-bottom: 5px; }
.pts-gift-cat { display: inline-block; font-size: 10px; color: var(--primary); background: var(--primary-soft);
  padding: 2px 8px; border-radius: 999px; font-weight: 700; margin-bottom: 9px; }
.pts-gift-pts { font-size: 21px; font-weight: 800; color: #0B8A5C; font-variant-numeric: tabular-nums; }
.pts-gift-pts small { font-size: 11px; color: var(--faint); font-weight: 500; margin-left: 3px; }
.pts-stock { margin-top: 10px; }
.pts-stock-label { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-bottom: 5px; }
.pts-stock-bar { position: relative; height: 7px; border-radius: 6px; background: rgba(13, 60, 90, .08); overflow: hidden; }
.pts-stock-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--grad-health);
  transition: width .7s ease; }
.pts-stock-bar i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
  animation: ptsStockFlow 2.4s linear infinite; }
@keyframes ptsStockFlow { 0% { left: -30%; } 100% { left: 110%; } }
.pts-stock-bar.low i { background: linear-gradient(90deg, #F59E0B, #EF4444); }
.pts-gift-actions { display: flex; gap: 7px; margin-top: 13px; }

/* ---------- 操作人智能卡 ---------- */
.pts-op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 13px; }
.pts-op-card { display: flex; align-items: center; gap: 13px; border-radius: var(--r-md); padding: 14px 15px;
  background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, .88); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: .22s ease; }
.pts-op-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); border-color: rgba(14, 155, 196, .35); }
.pts-op-card.off { opacity: .55; }
.pts-op-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 16px; font-weight: 800; color: #fff; background: var(--grad-brand);
  box-shadow: 0 4px 14px rgba(14, 155, 196, .35), inset 0 1px 0 rgba(255, 255, 255, .4); }
.pts-op-avatar.r-doctor { background: linear-gradient(135deg, #0FA36B, #0E9BC4); box-shadow: 0 4px 14px rgba(15, 163, 107, .35), inset 0 1px 0 rgba(255, 255, 255, .4); }
.pts-op-avatar.r-other { background: linear-gradient(135deg, #7C5CFC, #2E6FE8); box-shadow: 0 4px 14px rgba(124, 92, 252, .35), inset 0 1px 0 rgba(255, 255, 255, .4); }
.pts-op-info { flex: 1; min-width: 0; }
.pts-op-info b { display: block; font-size: 14px; }
.pts-op-info span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pts-op-role { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); }
.pts-op-card .ops { display: flex; flex-direction: column; gap: 5px; }

/* ---------- 活动智能卡 ---------- */
.pts-camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pts-camp-card { position: relative; overflow: hidden; border-radius: var(--r-md); padding: 17px;
  background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, .88); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: .22s ease; }
.pts-camp-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-brand); opacity: .8; }
.pts-camp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.pts-camp-card.off { opacity: .55; }
.pts-camp-title { font-size: 14.5px; font-weight: 800; margin-bottom: 7px; }
.pts-camp-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.pts-camp-meta span { font-size: 10.5px; color: var(--primary); background: var(--primary-soft);
  padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.pts-camp-reads { font-size: 11.5px; color: var(--muted); margin-bottom: 11px; }
.pts-camp-reads b { color: #2E6FE8; font-size: 16px; font-variant-numeric: tabular-nums; }
.pts-camp-actions { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- 数字滚动 / 空态 / 骨架 ---------- */
.pts-num { font-variant-numeric: tabular-nums; }
.pts-empty { text-align: center; padding: 34px 10px; color: var(--faint); font-size: 12.5px; }
.pts-empty::before { content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 14px;
  background: var(--grad-hero); border: 1px solid var(--border-soft);
  box-shadow: inset 0 0 18px rgba(14, 155, 196, .12); }
.pts-skel { position: relative; overflow: hidden; background: rgba(13, 60, 90, .06); border-radius: 8px; min-height: 14px; }
.pts-skel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: ptsStockFlow 1.4s linear infinite; }

/* ---------- 积分弹层：玻璃拟态 + 渐变光边 ---------- */
.pts-modal-card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(244,250,253,.94));
  border-radius: 18px; max-width: 560px; width: 100%; max-height: 88vh; overflow: auto; padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 24px 60px rgba(8, 51, 68, .32), 0 0 0 1px rgba(14, 155, 196, .08), 0 0 40px rgba(14, 155, 196, .12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: ptsModalIn .24s cubic-bezier(.2, .9, .3, 1.2); }
.pts-modal-card::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 3px; border-radius: 3px;
  background: var(--grad-brand); box-shadow: 0 0 14px rgba(14, 155, 196, .5); }
@keyframes ptsModalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- 积分成功全息卡：右侧滑入（记分/兑换/调整/建档成功反馈） ---------- */
.pts-fx-stack { position: fixed; right: 22px; top: 86px; z-index: 1200; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.pts-fx { pointer-events: auto; cursor: pointer; position: relative; width: 322px; border-radius: 18px; padding: 16px 18px 15px; overflow: hidden;
  background: linear-gradient(150deg, rgba(6, 38, 54, .95), rgba(8, 74, 88, .93));
  border: 1px solid rgba(45, 212, 191, .38); color: #E6FFFA;
  box-shadow: 0 18px 50px rgba(4, 32, 44, .45), 0 0 30px rgba(45, 212, 191, .16), inset 0 0 24px rgba(45, 212, 191, .06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: ptsFxIn .45s cubic-bezier(.18, .9, .26, 1.18); }
.pts-fx.leaving { animation: ptsFxOut .3s ease forwards; }
@keyframes ptsFxIn { from { opacity: 0; transform: translateX(64px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes ptsFxOut { to { opacity: 0; transform: translateX(72px) scale(.94); } }
.pts-fx::before { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; left: -90px;
  background: linear-gradient(100deg, transparent, rgba(94, 234, 212, .14), transparent);
  animation: ptsFxScan 2.2s ease .35s; }
@keyframes ptsFxScan { to { left: 110%; } }
.pts-fx-head { display: flex; align-items: center; gap: 12px; }
.pts-fx-ring { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 35% 30%, rgba(45, 212, 191, .38), rgba(45, 212, 191, .08));
  border: 1px solid rgba(45, 212, 191, .65);
  box-shadow: 0 0 18px rgba(45, 212, 191, .45), inset 0 0 12px rgba(45, 212, 191, .28); }
.pts-fx-ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(45, 212, 191, .4);
  animation: ptsFxPulse 1.6s ease-out infinite; }
@keyframes ptsFxPulse { 0% { transform: scale(.8); opacity: .95; } 100% { transform: scale(1.4); opacity: 0; } }
.pts-fx-check { font-size: 21px; font-weight: 700; color: #5EEAD4; text-shadow: 0 0 12px rgba(45, 212, 191, .8);
  animation: ptsFxPop .42s cubic-bezier(.2, 1.4, .4, 1) .08s backwards; }
@keyframes ptsFxPop { from { transform: scale(0); } to { transform: scale(1); } }
.pts-fx-title { font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.pts-fx-sub { font-size: 12px; color: rgba(204, 251, 241, .72); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pts-fx-points { margin-top: 13px; display: flex; align-items: baseline; gap: 7px; }
.pts-fx-delta { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; color: #5EEAD4;
  text-shadow: 0 0 18px rgba(45, 212, 191, .55);
  animation: ptsFxPop .5s cubic-bezier(.2, 1.5, .4, 1) .16s backwards; }
.pts-fx-delta.minus { color: #FDA4AF; text-shadow: 0 0 18px rgba(251, 113, 133, .5); }
.pts-fx-unit { font-size: 12px; color: rgba(204, 251, 241, .7); }
.pts-fx-balance { margin-left: auto; font-size: 12px; color: rgba(204, 251, 241, .78); }
.pts-fx-balance b { font-size: 16px; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.pts-fx-bar { margin-top: 13px; height: 3px; border-radius: 3px; background: rgba(45, 212, 191, .16); overflow: hidden; }
.pts-fx-bar i { display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #2DD4BF, #5EEAD4); box-shadow: 0 0 8px rgba(45, 212, 191, .8);
  animation: ptsFxBar linear forwards; }
@keyframes ptsFxBar { from { width: 100%; } to { width: 0; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1500px) { .pts-metric-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .pts-metric-grid { grid-template-columns: repeat(2, 1fr); } .pts-hero p { max-width: 100%; } }
.phw-map-detail span { color: var(--muted, #7c8b96); }

/* ---------- 运营账号 ---------- */
.impersonate-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 18px; background: linear-gradient(90deg, #0B7FA6, #0E9BC4); color: #fff; font-size: 13px; box-shadow: 0 -4px 18px rgba(11,127,166,.35); }
.impersonate-bar .btn { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; padding: 5px 14px; cursor: pointer; font-size: 13px; }
.impersonate-bar .btn:hover { background: rgba(255,255,255,.30); }
.op-card { display: flex; flex-direction: column; gap: 6px; }
.op-card .op-name { font-size: 16px; font-weight: 700; color: var(--ink, #1d2b33); }
.op-card .btn { margin-top: 8px; align-self: flex-start; }

/* 运营账号：切换医院弹层 */
.op-switch-mask { position: fixed; inset: 0; z-index: 950; background: rgba(15,35,45,.45); display: flex; align-items: center; justify-content: center; }
.op-switch-panel { background: #fff; border-radius: 14px; width: 420px; max-width: 92vw; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 18px 60px rgba(11,80,105,.35); overflow: hidden; }
.op-switch-title { padding: 16px 20px 10px; font-size: 16px; font-weight: 700; color: #1d2b33; display: flex; flex-direction: column; gap: 2px; }
.op-switch-sub { font-size: 12px; font-weight: 400; color: #7c8b96; }
.op-switch-list { overflow-y: auto; padding: 4px 12px; }
.op-switch-item { padding: 11px 12px; border-radius: 9px; cursor: pointer; font-size: 14px; color: #1d2b33; display: flex; justify-content: space-between; align-items: center; }
.op-switch-item:hover { background: rgba(14,155,196,.09); }
.op-switch-item.cur { background: rgba(14,155,196,.13); font-weight: 600; }
.op-switch-item .muted { color: #9aa9b3; font-size: 12px; }
.op-switch-foot { padding: 12px 20px 16px; display: flex; justify-content: flex-end; border-top: 1px solid #eef2f4; }

/* ---------- 行政物资管理 ---------- */
.inv-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.inv-toolbar input[type="text"], .inv-toolbar input[type="search"], .inv-toolbar input[type="date"], .inv-toolbar select {
  padding: 7px 10px; border: 1px solid #d8e2e8; border-radius: 8px; font-size: 13px; background: #fff; color: #1d2b33; }
.inv-toolbar .spacer { flex: 1; }
.inv-tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.inv-tbl th, .inv-tbl td { padding: 9px 10px; border-bottom: 1px solid #eef2f4; text-align: left; color: #1d2b33; vertical-align: middle; }
.inv-tbl th { background: #f5f8fa; font-weight: 600; color: #44555f; white-space: nowrap; }
.inv-tbl tr:hover td { background: #f8fbfc; }
.inv-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.inv-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.inv-badge.ok { background: rgba(16,185,129,.12); color: #0a8f63; }
.inv-badge.err { background: rgba(239,68,68,.12); color: #c53030; }
.inv-badge.warn { background: rgba(245,158,11,.14); color: #b45309; }
.inv-badge.muted { background: rgba(124,139,150,.14); color: #66788a; }
.inv-badge.info { background: rgba(14,155,196,.12); color: #0B7FA6; }
tr.inv-low td { background: rgba(245,158,11,.08); }
tr.inv-low td .inv-low-flag { color: #b45309; font-weight: 600; }
.inv-check { width: 15px; height: 15px; accent-color: #0E9BC4; cursor: pointer; }
.inv-form { display: flex; flex-direction: column; gap: 12px; }
.inv-form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.inv-form .row > label { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #66788a; }
.inv-form input, .inv-form select, .inv-form textarea { padding: 7px 10px; border: 1px solid #d8e2e8; border-radius: 8px; font-size: 13px; background: #fff; color: #1d2b33; }
.inv-form textarea { resize: vertical; min-height: 56px; }
.inv-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; padding: 12px; background: #f5f8fa; border-radius: 10px; font-size: 13px; margin-bottom: 12px; }
.inv-meta .k { color: #66788a; font-size: 12px; }
.inv-meta .v { color: #1d2b33; font-weight: 500; }
.inv-quick { display: flex; gap: 8px; margin: 10px 0 6px; }
.inv-quick input { flex: 1; padding: 8px 12px; border: 1px dashed #9fc6d8; border-radius: 8px; font-size: 13px; background: #f8fbfc; }
.inv-line { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed #eef2f4; }
.inv-line select, .inv-line input { padding: 6px 9px; border: 1px solid #d8e2e8; border-radius: 7px; font-size: 13px; }
.inv-line .inv-line-item { flex: 2; min-width: 180px; }
.inv-line .inv-line-qty { width: 90px; }
.inv-line .inv-line-price { width: 110px; }
.inv-line .inv-line-note { flex: 1; min-width: 120px; }
.inv-line .btn-del { border: none; background: none; color: #c53030; cursor: pointer; font-size: 15px; padding: 2px 6px; }
.inv-pd-scroll { max-height: 55vh; overflow-y: auto; border: 1px solid #eef2f4; border-radius: 10px; }
.ok-text { color: #0a8f63; font-weight: 600; }
.err-text { color: #c53030; font-weight: 600; }
@media print {
  body * { visibility: hidden; }
  .inv-print-area, .inv-print-area * { visibility: visible; }
  .inv-print-area { position: absolute; left: 0; top: 0; width: 100%; }
}

/* ============================================================
   科室抽屉导航布局（医院端 v20261016m）
   顶栏 + 左侧抽屉（2/3 屏、科室横线分区、条目强制单横排）+ 右上账号菜单
   ============================================================ */
.dept-layout { min-height: 100vh; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

/* 顶栏 */
.dept-topbar { height: 56px; flex-shrink: 0; background: var(--glass-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; padding: 0 20px; gap: 14px;
  position: sticky; top: 0; z-index: 50; }
.dept-switch { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #fff;
  background: var(--grad-brand); border: none; border-radius: 12px; padding: 8px 16px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(14,155,196,.28); transition: .15s; font-family: inherit; }
.dept-switch:hover { filter: brightness(1.06); transform: translateY(-1px); }
.dept-logo { font-size: 16.5px; font-weight: 700; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dept-crumb { font-size: 12.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dept-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.dept-hosp { font-size: 13px; color: var(--muted); }
.dept-acct { position: relative; }
.dept-acct-btn { display: flex; align-items: center; gap: 8px; cursor: pointer; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 6px 12px 6px 6px; font-size: 13px; color: var(--text); transition: .15s; }
.dept-acct-btn:hover { box-shadow: var(--shadow-md); }
.dept-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; }
.dept-caret { color: #c3cad6; font-size: 11px; }
.dept-acct-menu { display: none; position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 170px; overflow: hidden; z-index: 60; }
.dept-acct-menu.open { display: block; }
.dept-acct-menu .mi { padding: 12px 18px; font-size: 13.5px; cursor: pointer; display: flex; gap: 10px; align-items: center; color: var(--text); }
.dept-acct-menu .mi:hover { background: var(--primary-soft); color: var(--primary-dark); }
.dept-acct-menu .mi.danger { color: var(--err); border-top: 1px solid var(--border-soft); }
.dept-acct-menu .mi.danger:hover { background: #fdf0ef; }

/* 抽屉：占屏约 2/3，渐变底 + 玻璃描边 */
.dept-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 66vw; min-width: 520px; z-index: 100;
  background: var(--grad-hero); border-right: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateX(0); transition: transform .38s cubic-bezier(.32,.72,.35,1);
  display: flex; flex-direction: column; }
.dept-drawer.hide { transform: translateX(-102%); }
.dept-drawer-head { padding: 34px 40px 6px; position: relative; }
.dept-drawer-head h2 { font-size: 21px; margin: 0; color: var(--text); }
.dept-drawer-head .hint { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.dept-exit { position: absolute; top: 32px; right: 32px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--faint); background: var(--glass); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: all .18s ease; font-family: inherit; }
.dept-exit:hover { color: var(--text); border-color: var(--brand); }
.dept-drawer-body { flex: 1; overflow: auto; padding: 20px 40px 60px; }

/* 科室区块：横线标开 */
.dept-sec { margin-bottom: 32px; }
.dept-sec + .dept-sec { border-top: 1px solid var(--border); padding-top: 26px; }
.dept-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dept-sec-head h3 { font-size: 16.5px; margin: 0; color: var(--text); }
.dept-sec-head .tag, .dept-fn-head .tag { font-size: 12px; color: var(--primary-dark); background: var(--primary-soft); padding: 3px 10px; border-radius: 9px; }
.dept-sec-head::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--border), transparent); border-radius: 2px; }

/* 条目/功能：强制一横排，超出横向滑动 */
.dept-rows { display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.dept-rows::-webkit-scrollbar { height: 6px; }
.dept-rows::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.dept-row { flex-shrink: 0; background: rgba(255,255,255,.9); border: 1px solid var(--border); border-radius: 14px;
  padding: 15px 22px; cursor: pointer; font-size: 14px; color: var(--text);
  display: flex; align-items: center; gap: 10px; transition: .15s; white-space: nowrap; }
.dept-row:hover { border-color: var(--primary); color: var(--primary-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.dept-row .desc { font-size: 12px; color: var(--faint); }
.dept-row .arrow { color: var(--faint); font-size: 13px; }
.dept-row .dept-lock { font-size: 11px; color: var(--warn); background: rgba(232,137,12,.12); padding: 2px 8px; border-radius: 8px; }

/* 抽屉顶部「智能运行中心」快捷入口 */
.dept-home-entry { padding: 8px 40px 12px; border-bottom: 1px solid var(--border); }
.dept-row-home { background: linear-gradient(135deg, rgba(59,130,246,.10), rgba(16,185,129,.08)); border-color: rgba(59,130,246,.35); font-weight: 600; }
.dept-row-home:hover { border-color: var(--primary); }
@media (max-width: 720px) { .dept-home-entry { padding: 6px 20px 10px; } }
.video-suggest-list { margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.video-suggest-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 14px; transition: background .15s; }
.video-suggest-item:last-child { border-bottom: none; }
.video-suggest-item:hover { background: rgba(59,130,246,.08); }
.video-suggest-item .arrow { color: var(--muted); }

/* ================= AI 操作弹窗特效（居中弹窗 + 背景虚化，按动作分配） ================= */
.fxpop-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.28); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1);
  animation: fxpopIn .25s ease; }
.fxpop-overlay.out { animation: fxpopOut .3s ease forwards; }
@keyframes fxpopIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fxpopOut { to { opacity: 0; } }
.fxpop-card { position: relative; overflow: hidden; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px; box-shadow: 0 24px 64px rgba(2,32,44,.28); padding: 30px 40px 26px; text-align: center;
  min-width: 310px; max-width: 400px; animation: fxpopPop .32s cubic-bezier(.2,.9,.3,1.15); }
@keyframes fxpopPop { from { transform: scale(.85) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.fxpop-title { font-size: 17px; font-weight: 700; margin-top: 14px; }
.fxpop-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.fxpop-bar { margin-top: 16px; height: 5px; border-radius: 99px; background: #E6EFF3; overflow: hidden; }
.fxpop-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--primary), #22D3EE); transition: width .3s; }

/* aurora 极光夜航（生成类，深色卡） */
.fxpop-aurora { background: linear-gradient(160deg, #0B2530, #10384A); border: 1px solid rgba(103,232,249,.25); }
.fxpop-aurora .fxpop-title { color: #ECFEFF; } .fxpop-aurora .fxpop-sub { color: #A5D8E6; }
.fxpop-aurora .fxpop-bar { background: rgba(255,255,255,.14); }
.fxpop-aurora-bg { position: absolute; inset: -40%; pointer-events: none; background:
  radial-gradient(ellipse 40% 55% at 30% 40%, rgba(34,211,238,.35), transparent 60%),
  radial-gradient(ellipse 40% 55% at 70% 60%, rgba(8,145,178,.45), transparent 60%),
  radial-gradient(ellipse 30% 40% at 50% 30%, rgba(167,139,250,.25), transparent 60%);
  animation: fxpopFlow 5s ease-in-out infinite alternate; }
@keyframes fxpopFlow { from { transform: rotate(0deg) scale(1); } to { transform: rotate(8deg) scale(1.1); } }
.fxpop-moon { position: relative; width: 46px; height: 46px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #CFFAFE, #22D3EE 55%, #0E7490);
  box-shadow: 0 0 26px rgba(34,211,238,.7); animation: fxpopBreath 1.8s ease-in-out infinite; }
@keyframes fxpopBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* wave 声波频谱（推送类） */
.fxpop-wave { display: flex; gap: 4px; height: 44px; align-items: center; justify-content: center; }
.fxpop-wave i { width: 5px; border-radius: 4px; background: linear-gradient(180deg, #22D3EE, var(--primary)); animation: fxpopW 1.1s ease-in-out infinite; }
.fxpop-wave i:nth-child(1) { height: 14px; animation-delay: 0s; } .fxpop-wave i:nth-child(2) { height: 26px; animation-delay: .1s; }
.fxpop-wave i:nth-child(3) { height: 38px; animation-delay: .2s; } .fxpop-wave i:nth-child(4) { height: 26px; animation-delay: .3s; }
.fxpop-wave i:nth-child(5) { height: 38px; animation-delay: .4s; } .fxpop-wave i:nth-child(6) { height: 26px; animation-delay: .5s; }
.fxpop-wave i:nth-child(7) { height: 14px; animation-delay: .6s; }
@keyframes fxpopW { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

/* scan 赛博扫描（检测类，深色卡） */
.fxpop-scan { background: linear-gradient(165deg, #08222E, #0C3547); border: 1px solid rgba(34,211,238,.3); }
.fxpop-scan .fxpop-title { color: #ECFEFF; font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 1px; }
.fxpop-scan .fxpop-sub { color: #7DD3FC; } .fxpop-scan .fxpop-bar { background: rgba(255,255,255,.14); }
.fxpop-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(34,211,238,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(34,211,238,.08) 1px, transparent 1px);
  background-size: 22px 22px; }
.fxpop-scanline { position: absolute; left: 0; right: 0; height: 60px; top: -60px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(34,211,238,.18), transparent); animation: fxpopScan 2.2s linear infinite; }
@keyframes fxpopScan { to { top: 110%; } }
.fxpop-hex { position: relative; font-size: 30px; color: #22D3EE; animation: fxpopBlink 1s steps(2) infinite; }
@keyframes fxpopBlink { 50% { opacity: .35; } }

/* stream 流光边框（改写/润色类） */
.fxpop-stream::before { content: ''; position: absolute; inset: -2px; border-radius: 20px; padding: 2px;
  background: conic-gradient(from var(--fxs-a, 0deg), transparent 0%, #22D3EE 12%, var(--primary) 22%, transparent 34%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: fxpopSpinA 2.2s linear infinite; }
@property --fxs-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes fxpopSpinA { to { --fxs-a: 360deg; } }
.fxpop-gem { font-size: 34px; display: inline-block; animation: fxpopFloat 2s ease-in-out infinite; }
@keyframes fxpopFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* liquid 液体灌注（分析/选题类） */
.fxpop-ball { width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; border: 2px solid rgba(8,145,178,.3);
  position: relative; overflow: hidden; background: #F0F9FB; }
.fxpop-liquid { position: absolute; left: 0; bottom: 0; width: 100%; height: 10%;
  background: linear-gradient(180deg, #22D3EE, var(--primary)); transition: height .3s; }
.fxpop-liquid::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 12px;
  background: radial-gradient(circle at 8px -3px, transparent 10px, #22D3EE 11px); background-size: 16px 12px;
  animation: fxpopWaveX 1.6s linear infinite; }
@keyframes fxpopWaveX { from { background-position-x: 0; } to { background-position-x: 16px; } }

/* steps 思维步骤（客服/问答类） */
.fxpop-brain { font-size: 34px; display: inline-block; animation: fxpopPulse 1.4s ease-in-out infinite; }
@keyframes fxpopPulse { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(8,145,178,0)); } 50% { transform: scale(1.12); filter: drop-shadow(0 0 10px rgba(8,145,178,.5)); } }
.fxpop-steps { height: 20px; overflow: hidden; margin-top: 6px; }
.fxpop-steps ul { list-style: none; margin: 0; padding: 0; animation: fxpopRoll 6s cubic-bezier(.7,0,.3,1) infinite; }
.fxpop-steps li { height: 20px; font-size: 12.5px; color: var(--muted); }
@keyframes fxpopRoll { 0%,18% { transform: translateY(0); } 25%,43% { transform: translateY(-20px); } 50%,68% { transform: translateY(-40px); } 75%,93% { transform: translateY(-60px); } 100% { transform: translateY(-80px); } }

/* 主区 */
.dept-main { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 30px 24px 80px; }
.dept-main #main { max-width: 1400px; margin: 0 auto; }
.dept-empty { padding: 80px 0; text-align: center; color: var(--faint); font-size: 14px; line-height: 2; }
.dept-empty .big { font-size: 40px; margin-bottom: 14px; }
.dept-empty .sub { font-size: 12.5px; }
.dept-fn-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dept-fn-head h1 { font-size: 19px; margin: 0; color: var(--text); }
.dept-fn-rows { margin-bottom: 20px; }
.dept-panel { background: var(--glass-strong); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px;
  color: var(--faint); font-size: 13.5px; }
/* 条目内功能横向切换条（一横排，超出横滑） */
.dept-tabs { display: flex; gap: 8px; overflow-x: auto; white-space: nowrap; padding: 4px 2px 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border); scrollbar-width: thin; }
.dept-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--border); color: var(--faint); font-size: 13px; cursor: pointer;
  transition: all .18s ease; }
.dept-tab:hover { border-color: var(--brand); color: var(--text); }
.dept-tab.active { background: linear-gradient(135deg, var(--brand), #0b7ba0); border-color: transparent; color: #fff;
  font-weight: 600; box-shadow: 0 4px 14px rgba(14,155,196,.28); }
.dept-tab .dept-lock { font-size: 11px; color: var(--warn); background: rgba(232,137,12,.12); padding: 1px 7px; border-radius: 8px; }
.dept-tab.active .dept-lock { color: #ffe9c2; background: rgba(255,255,255,.16); }
.dept-profile .pr { display: flex; justify-content: space-between; gap: 18px; padding: 9px 2px; border-bottom: 1px dashed var(--border-soft); font-size: 13.5px; }
.dept-profile .pr:last-child { border-bottom: none; }
.dept-profile .pk { color: var(--faint); }
.dept-profile .pv { color: var(--text); font-weight: 600; text-align: right; }

/* 移动端：抽屉全宽 */
@media (max-width: 720px) {
  .dept-drawer { width: 100vw; min-width: 0; }
  .dept-drawer-head { padding: 24px 20px 4px; }
  .dept-drawer-body { padding: 16px 20px 48px; }
  .dept-hosp { display: none; }
  .dept-main { padding: 20px 14px 60px; }
}

.menu-admin{max-width:1500px;margin:auto}.menu-admin-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px;border:1px solid var(--border);background:var(--card,#fff);border-radius:22px;margin-bottom:18px}.menu-admin-head h1{margin:8px 0;font-size:28px}.menu-admin-head p,.menu-admin-preview p{color:var(--muted);line-height:1.8}.menu-admin-tip{padding:15px 20px;border-radius:14px;background:#eaf5ff;color:#245679;margin-bottom:22px;font-size:13px}.menu-admin-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.menu-admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px;flex-wrap:wrap}.menu-admin-toolbar span{color:var(--muted);font-size:12px}.menu-admin-group{background:var(--card,#fff);border:1px solid var(--border);border-radius:18px;padding:20px;margin-bottom:18px;box-shadow:0 4px 16px #173e5b06}.menu-admin-group header,.menu-item-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.menu-admin input:not([type=checkbox]){min-width:100px;max-width:100%;border:1px solid var(--border);border-radius:9px;padding:9px 10px;background:var(--card,#fff);color:var(--text,#172b42)}.menu-admin-group header>input,.menu-item-head>input{flex:1;font-weight:600}.menu-admin label{font-size:12px;white-space:nowrap}.menu-level{font-size:11px;color:#22749c;background:#e9f5fd;padding:5px 8px;border-radius:6px}.menu-desc{width:100%;margin-top:12px}.menu-admin-items{margin:16px 0;padding-left:14px;border-left:2px solid #dbeaf3}.menu-admin-item{border:1px solid var(--border);border-radius:12px;padding:14px;margin-bottom:12px;background:var(--bg,#f8fbfd)}.menu-item-meta{display:flex;gap:10px;margin:12px 0;flex-wrap:wrap}.menu-item-meta input{flex:1}.menu-admin details summary{cursor:pointer;font-size:13px;line-height:1.8}.menu-fn-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:14px}.menu-fn-picker label{white-space:normal;display:flex;gap:6px;align-items:center}.menu-admin-preview{position:sticky;top:20px;border:1px solid var(--border);border-radius:18px;background:var(--card,#fff);padding:20px;max-height:80vh;overflow:auto}.menu-preview-group{margin:18px 0}.menu-preview-group>b{display:block;border-bottom:1px solid var(--border);padding-bottom:8px;color:#24719b}.menu-preview-group>div{padding:10px 0 4px 12px}.menu-preview-group strong{font-size:13px}.menu-preview-group small{display:block;color:var(--muted);line-height:1.8;margin-top:4px}.menu-function-row{display:grid;grid-template-columns:140px 1fr auto;gap:10px;align-items:center;margin:10px 0}.menu-function-row code{font-size:11px;overflow-wrap:anywhere}@media(max-width:1150px){.menu-admin-layout{grid-template-columns:minmax(0,1fr)}.menu-admin-preview{position:static;max-height:450px}}@media(max-width:640px){.menu-admin-head{padding:18px;flex-direction:column;align-items:stretch}.menu-admin-group{padding:12px}.menu-admin-items{padding-left:7px}.menu-function-row{grid-template-columns:1fr auto}.menu-function-row code{grid-column:1/-1}.menu-fn-picker{grid-template-columns:1fr}}
