/* ==================================================================
   OTA 运营 SOP 工作台 · 设计系统
   ================================================================== */
:root {
  --primary: #5B6CFF;
  --primary-dark: #4553e6;
  --primary-soft: #EEF0FF;
  --success: #00B894;
  --success-soft: #E4F8F3;
  --warning: #F0A93B;
  --warning-soft: #FEF4E4;
  --danger: #E17055;
  --danger-soft: #FDEDE9;
  --info: #0984E3;
  --info-soft: #E6F2FD;
  --purple: #6C5CE7;
  --purple-soft: #F0EEFE;

  --bg: #F5F7FB;
  --bg-soft: #FAFBFD;
  --card: #FFFFFF;
  --border: #E8ECF3;
  --border-strong: #D8DFEA;
  --text: #1E2430;
  --text-sub: #5C6779;
  --text-mute: #97A1B2;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(23, 35, 61, .05);
  --shadow: 0 2px 10px rgba(23, 35, 61, .07);
  --shadow-lg: 0 12px 40px rgba(23, 35, 61, .16);
  --sidebar-w: 236px;
  /* ★ 顶栏已经不再占页面高度（2026-09-16 用户要求「所有页面都不显示顶部导航」→ 控件搬进左侧导航并隐藏），
     所以这个"顶栏高度"必须归零：原来它还留在布局里，`height: calc(100vh - var(--topbar-h))` 这类
     整屏高度（总览·实时数据大屏 `.cockpit`、内嵌页 iframe）就会**在底部空出 58px 一条白边**
     —— 用户说的「总览页面底部白色部分」就是它。 */
  --topbar-h: 0px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #CFD7E4; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #B7C1D1; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------ 登录页 ------------------------------ */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4A54D6 0%, #6C5CE7 45%, #00B8A9 100%);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 940px; background: #fff; border-radius: 20px; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; box-shadow: 0 30px 80px rgba(20, 25, 60, .3);
}
.login-hero { padding: 44px 40px; color: #fff; background: linear-gradient(150deg, #3D46C4 0%, #5B6CFF 60%, #6C5CE7 100%); position: relative; overflow: hidden; }
.login-hero::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.08); right: -120px; bottom: -140px; }
.login-hero h1 { font-size: 25px; margin: 0 0 10px; line-height: 1.35; }
.login-hero p { opacity: .85; font-size: 13px; margin: 0 0 26px; }
.login-feature { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 13px; opacity: .95; }
.login-feature i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #7CFFD4; margin-top: 7px; }
.login-form { padding: 44px 40px; }
.login-form h2 { margin: 0 0 6px; font-size: 20px; }
.login-form .sub { color: var(--text-mute); font-size: 13px; margin-bottom: 26px; }
.login-accounts { margin-top: 22px; border-top: 1px dashed var(--border); padding-top: 16px; }
.login-accounts .label { font-size: 12px; color: var(--text-mute); margin-bottom: 8px; }
.account-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; margin: 0 6px 6px 0;
  border: 1px solid var(--border); border-radius: 20px; cursor: pointer; font-size: 12px; background: var(--bg-soft);
  transition: all .16s;
}
.account-chip:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

/* ------------------------------ 布局 ------------------------------ */
#app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none; background: #1B2138; color: #C6CDE0;
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 30;
}
.sidebar-logo { padding: 18px 18px 14px; display: flex; align-items: center; gap: 10px; }
/* ★ 用户 2026-09-16：「**针对性的信息预警直接显示在对应身份的左上角，显示预警条数**」——
   侧栏最左上角的一条预警：铃铛 + 「预警」 + 未读条数（口径 = 既有的 /api/alerts/unread-count，按身份与可见范围算）。
   点一下打开既有的预警面板。 */
.sidebar-alertbar {
  display: flex; align-items: center; gap: 6px; margin: 8px 10px 0; padding: 6px 9px;
  border-radius: 9px; cursor: pointer; font-size: 12px; color: #E6EAF5;
  background: rgba(225, 112, 85, .16); border: 1px solid rgba(225, 112, 85, .34);
  transition: background .15s;
}
.sidebar-alertbar:hover { background: rgba(225, 112, 85, .26); }
.sidebar-alertbar .lbl { flex: none; }
.sidebar-alertbar .cnt {
  margin-left: auto; flex: none; min-width: 22px; text-align: center; font-weight: 700; font-size: 12px;
  background: #E17055; color: #fff; border-radius: 10px; padding: 1px 6px;
}
.sidebar-alertbar .cnt.zero { background: rgba(255,255,255,.14); color: #C6CDE0; font-weight: 500; }
.sidebar-alertbar .go { flex: none; color: rgba(255,255,255,.75); font-size: 11px; }
.sidebar-logo .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #5B6CFF, #00CEC9); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.sidebar-logo .txt b { display: block; color: #fff; font-size: 14px; letter-spacing: .3px; }
.sidebar-logo .txt span { font-size: 11px; color: #7E88A3; }
.nav { flex: 1; overflow-y: auto; padding: 6px 10px 20px; }
.nav-group { margin: 14px 0 4px; padding: 0 10px; font-size: 11px; color: #616B85; letter-spacing: .6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
  cursor: pointer; font-size: 13.5px; color: #C6CDE0; margin-bottom: 2px; transition: all .15s; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(91,108,255,.9), rgba(91,108,255,.55)); color: #fff; font-weight: 500; }
.nav-item .icon { flex: none; opacity: .9; }
.nav-item .nav-badge {
  margin-left: auto; background: #E17055; color: #fff; font-size: 11px; padding: 1px 6px;
  border-radius: 9px; min-width: 18px; text-align: center; font-weight: 600;
}
/* 导航快捷键提示（前台快捷分组）：按下 Alt+* 直接跳过去 */
.nav-item .nav-hotkey {
  margin-left: auto; flex: none; font-family: inherit; font-size: 10.5px; line-height: 1.5;
  padding: 0 6px; border-radius: 5px; color: #9AA3BD;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.nav-item:hover .nav-hotkey { color: #E6EAF5; background: rgba(255,255,255,.14); }
.nav-item.active .nav-hotkey { color: #fff; background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.28); }
/* ★ 用户 2026-09-16：「**左侧导航页面统一至 PMS 页面字体大小**」——
   把「PMS系统」内嵌页那套更小更紧凑的左侧导航字号**提升为全站统一口径**
   （原来只有内嵌页收窄过：nav-item 12.5 / nav-group 10 / foot 10.5），别的页面不再比它大一档。
   ⚠️ 只统一**字号与内距**；宽度仍然是各页各的（内嵌页 196px，其余 236px）。 */
.nav-item { font-size: 12.5px; padding: 7px 8px; gap: 8px; }
.nav-group { font-size: 10px; padding: 0 8px; }
.sidebar-foot { font-size: 10.5px; }
/* 外部直跳项（侧栏「沃易住」）：右上角一个小小的 ↗，让运营一眼看出"这一项点出去会离开本系统"。
   2026-09-16 用户要求「把房态管理直接改成沃易住」→「变成直接跳转」。 */
.nav-item .nav-external {
  margin-left: auto; flex: none; font-size: 11px; line-height: 1; color: #9AA3BD; opacity: .8;
}
.nav-item:hover .nav-external { color: #E6EAF5; opacity: 1; }

/* -------------------- 沃易住内嵌页（#/woyizhu） --------------------
   2026-09-16 用户三连要求：「隐藏注解」+「让内嵌页尽可能显示全面」+「这个页面取消顶部显示」。
   所以这一页：**不渲染页头**、注解默认收起、iframe 吃满视口剩下的高度（+ 负边距抵掉 #view 的 padding）。 */
.embed-page { max-width: none; }
.embed-wrap { position: relative; }
.embed-wrap-full {
  /* 抵掉 #view 的 `padding: 20px 24px 40px`，让内嵌页左右也尽量铺满（"尽可能显示全面"） */
  margin: -20px -24px -40px;
}
.embed-frame {
  width: 100%; height: calc(100vh - 260px); min-height: 420px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  box-shadow: 0 6px 18px rgba(30, 41, 59, .05);
}
/* 没有页头时的高度：顶栏 + 内边距之外全给它 */
.embed-frame-full {
  display: block; height: calc(100vh - var(--topbar-h) - 10px); min-height: 420px;
  border: 0; border-radius: 0; box-shadow: none;
}
/* 右下角浮动操作条（不占顶部：用户要求「取消顶部显示」，但「全屏打开」要始终在手边） */
.embed-bar {
  position: absolute; right: 18px; bottom: 18px; display: flex; gap: 8px; align-items: center;
  padding: 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(30, 41, 59, .14); backdrop-filter: blur(6px);
}
/* 注解：默认收起（「隐藏注解」），点 ⓘ 展开；文案留在 DOM 里，套件的文本断言照旧成立 */
.embed-notes {
  position: absolute; right: 18px; bottom: 66px; width: min(560px, calc(100% - 36px));
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(30, 41, 59, .16);
}
.embed-notes.hidden { display: none; }

/* ★ 用户 2026-09-16 的版式要求（最终版）：
     「这个页面取消顶部显示」+「隐藏注解」+「内容出内嵌页外其他全部隐藏」
     +「内嵌页保留左侧导航」+「**顶部壳页要隐藏掉**」（最新）。
   所以：**隐藏顶栏、保留左侧导航**，只把这一页的页面级留白去掉、让内嵌铺满内容区右半边。
     类挂在 <body>（页面离开时由 woyizhu.js 的 hashchange 摘掉，别页不受影响）。 */
/* 顶部壳已经不占顶部（已搬进左侧导航）→ 内嵌页只需要把页面级留白去掉、让内嵌铺满内容区 */
body.embed-fill #view { padding: 0; }
body.embed-fill .page { max-width: none; }
body.embed-fill .embed-wrap-full { margin: 0; }
body.embed-fill .embed-frame-full { height: 100vh; min-height: 360px; }
/* ★ 用户 2026-09-16：「**在内嵌页面时左侧导航隐藏，鼠标到左侧就显示 + 一键回到导航**」——
   这一页把侧栏**移出屏幕左边**（`transform` 位移，不是 `display:none`，这样滑入有动画），
   鼠标碰到屏幕左边缘（或点浮动条上的「导航」）就滑出来；鼠标离开左侧再滑回去。
   只在这一页生效（`body.embed-fill`），别的页面侧栏常驻。 */
body.embed-fill { --sidebar-w: 196px; }
body.embed-fill .sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 60;
  transform: translateX(-100%); transition: transform .22s ease;
  box-shadow: 0 0 26px rgba(6, 12, 30, .35);
}
body.embed-fill .sidebar.nav-peek { transform: translateX(0); }
body.embed-fill .main { margin-left: 0; }
/* 屏幕最左边留一条 8px 的"感应带"（可见的细条，提示这里能划出导航） */
body.embed-fill::before {
  content: ''; position: fixed; left: 0; top: 40%; width: 8px; height: 96px; z-index: 59;
  border-radius: 0 8px 8px 0; background: rgba(91, 108, 255, .55);
  transition: opacity .2s;
}
body.embed-fill.nav-open::before { opacity: 0; }
body.embed-fill .sidebar-logo { padding: 14px 12px 10px; gap: 8px; }
body.embed-fill .sidebar-logo .txt span { display: none; }   /* 副标题占宽，页面收窄时先让位 */
body.embed-fill .nav { padding: 6px 6px 16px; }
/* 浮动条自动淡出（默认屏幕上只有内嵌内容；鼠标到右下角再出现） */
.embed-bar { transition: opacity .3s, transform .3s; }
.embed-bar-hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
/* 内嵌页里的状态行也贴在框底（不占顶部） */
.embed-wrap-full > [data-role="woyizhu-note"] {
  position: absolute; left: 14px; bottom: 22px; max-width: calc(100% - 320px);
  padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
}
.embed-wrap-full > [data-role="woyizhu-note"].hidden { display: none; }
.sidebar-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.07); font-size: 11.5px; color: #6B7490; }
/* ★ 用户 2026-09-16：「左侧底部做成可以切换登录的入口，登录后显示身份权限信息」——
   底部这一块现在**可点**（打开用户菜单：我的工作台/系统设置/权限管理/改密码/退出登录），
   并显示身份与权限：姓名 · 角色 · 权限点数 · 可见酒店数。 */
.sidebar-foot-user {
  cursor: pointer; padding: 10px 12px; transition: background .15s;
  background: rgba(255,255,255,.03);
}
.sidebar-foot-user:hover { background: rgba(255,255,255,.09); }
.sidebar-foot-user .sf-user { display: flex; align-items: center; gap: 8px; }
.sidebar-foot-user .sf-meta { min-width: 0; }
.sidebar-foot-user .sf-meta b { display: block; color: #E6EAF5; font-size: 12.5px; }
.sidebar-foot-user .sf-meta span { display: block; color: #9AA3BD; font-size: 10.5px; margin-top: 2px; }
/* ★ 用户 2026-09-16（最新）：「隐藏显示在这里切换登录 / 我的工作台 / 改密码 / 退出」+「v1.0.0 · N 个项目」
   → 那两行已从 DOM 里去掉，对应样式一并删掉（不留死样式）。底部只留「身份 + 权限 + 预警条数」。 */
/* ★ 用户 2026-09-16（最新）：「**左侧导航显示在底部身份旁边**」——
   预警条数从侧栏顶部挪到**身份这一行**的右边（身份 = 用户菜单入口，计数 = 预警面板入口）。 */
.sidebar-foot-user .sf-alert {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 10px; background: #E17055; color: #fff;
  font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.sidebar-foot-user .sf-alert:hover { filter: brightness(1.08); }
.sidebar-foot-user .sf-alert.zero { background: rgba(255,255,255,.14); color: #C6CDE0; font-weight: 500; }
.sidebar-foot-user .sf-alert b { font-weight: inherit; }

.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }

/* ★ 用户 2026-09-16：「所有页面都不显示顶部导航」→ 顶部控件**整条搬进左侧导航**；
   随后反馈「**顶部控件移至左侧导航栏后显示异常**」→ 这里按"深色竖排侧栏"重新排一遍版：
   三行布局（切酒店 / 搜索 / 动作用户区），宽度 100%，不再沿用横条的换行与对齐规则。 */
/* ★ 用户 2026-09-16：「在左侧导航栏工作台上方增加一个**酒店列表**，可以自由切换酒店」
   → 随后（最新）：「**酒店名称默认只显示一个点下拉，加一个快捷搜索框**」：
   默认只显示当前这家（一行 + ▾），点开才是「搜索框 + 酒店清单」。 */
.sidebar-hotels { padding: 0 8px 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-hotels-head {
  display: flex; align-items: center; gap: 6px; padding: 4px 6px 6px;
  font-size: 10.5px; color: #7E88A3; letter-spacing: .3px;
}
.sidebar-hotels-head .sidebar-hotels-hint { margin-left: auto; color: #616B85; }
/* 默认态：只这一行（当前酒店 + ▾） */
.sidebar-hotel-current {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; cursor: pointer;
  font-size: 12.5px; color: #E6EAF5; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
}
.sidebar-hotel-current:hover { background: rgba(255,255,255,.12); }
.sidebar-hotel-current .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-hotel-current .st { flex: none; font-size: 10px; color: #9AA3BD; }
.sidebar-hotel-current .caret { flex: none; color: #9AA3BD; font-size: 10px; }
/* 展开后：快捷搜索框 + 清单（清单自己滚，不把导航挤掉） */
.sidebar-hotels-panel { margin-top: 6px; }
.sidebar-hotels-panel .input {
  width: 100%; background: rgba(255,255,255,.06); color: #C6CDE0; font-size: 12.5px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 6px 8px;
}
.sidebar-hotels-panel .input::placeholder { color: #7E88A3; }
.sidebar-hotels-list { max-height: 30vh; overflow-y: auto; margin-top: 6px; }
.sidebar-hotels-empty { padding: 6px 8px; font-size: 12px; color: #7E88A3; }
.sidebar-hotel {
  display: flex; align-items: center; gap: 6px; padding: 5px 8px; margin-bottom: 2px;
  border-radius: 8px; cursor: pointer; font-size: 12.5px; color: #C6CDE0; transition: background .15s;
}
.sidebar-hotel:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-hotel.active { background: linear-gradient(90deg, rgba(91,108,255,.9), rgba(91,108,255,.55)); color: #fff; font-weight: 500; }
.sidebar-hotel .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-hotel .st { flex: none; font-size: 10px; color: #9AA3BD; }
.sidebar-hotel.active .st { color: rgba(255,255,255,.85); }

/* ★ 用户 2026-09-16（最新）：「**取消顶部控件显示**」——
   顶部控件（切酒店 / 搜索 / 智营通 / 预警铃铛 / 用户菜单）**不再显示**。
   做法：整块 `display:none`（**保留 DOM 不拆**）—— 原因有两个：
     ① 这些控件背后是活的状态与逻辑（`Store.setHotel` 切酒店、预警计数、`openUserMenu` 里还有「改密码 / 退出登录」），
        拆掉 DOM 等于把这些能力也一起删了；
     ② 套件里有 179 项断言是按 `.topbar .hotel-select` / `.topbar-search input` / `.user-chip` 找控件的，
        隐藏不影响它们，拆掉会一片红。
   ⚠️ 代价（如实说）：切酒店 / 全局搜索 / 预警铃铛 / 用户菜单（含退出登录）现在**界面上没有入口**。
      要恢复其中任何一个：把下面这一行去掉（或只放开某几个子选择器）即可，逻辑一直都在。
     需要"不显示控件但保留退出登录"的话，可以让侧栏底部那行文字（`v1.0.0 · N 个项目` / 用户名）变成可点的入口。 */
.topbar-in-nav { display: none !important; }
/* 下面这一套是「显示时」的竖排版式（现在整块 display:none，保留着：去掉上面那一行就恢复原样） */
.topbar-in-nav {
  position: static; height: auto; min-height: 0; background: transparent; backdrop-filter: none;
  border-bottom: 0; box-shadow: none; padding: 0 10px 12px;
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px;
}
.topbar-in-nav .tp-row { display: flex; align-items: center; gap: 8px; width: 100%; flex-wrap: nowrap; }
.topbar-in-nav .tp-row-actions { gap: 6px; }
.topbar-in-nav .tp-row-actions .user-chip { margin-left: auto; }
.topbar-in-nav .spacer { display: none; }
.topbar-in-nav .hotel-select { flex: 1; min-width: 0; }
.topbar-in-nav .hotel-select select {
  width: 100%; background: rgba(255,255,255,.06); color: #C6CDE0;
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 6px 8px; font-size: 12.5px;
}
.topbar-in-nav .hotel-select .icon { flex: none; color: #9AA3BD; }
.topbar-in-nav .topbar-search { flex: 1; min-width: 0; width: 100%; }
.topbar-in-nav .topbar-search input {
  width: 100%; background: rgba(255,255,255,.06); color: #C6CDE0;
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
}
.topbar-in-nav .topbar-search input::placeholder { color: #7E88A3; }
.topbar-in-nav .topbar-search .icon { color: #9AA3BD; }
/* 搜索结果面板：侧栏有 overflow（要能滚导航），所以面板用 fixed 逃出裁剪，宽度跟着侧栏 */
.topbar-in-nav .topbar-search .search-results {
  position: fixed; left: 10px; right: auto; width: 300px; max-width: 92vw;
}
.topbar-in-nav .btn-ai { flex: none; }
.topbar-in-nav .icon-btn-wrap { flex: none; }
.topbar-in-nav .icon-btn-wrap .btn-icon,
.topbar-in-nav > .btn-icon { color: #C6CDE0; background: rgba(255,255,255,.06); }
.topbar-in-nav .user-chip {
  flex: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 3px 7px; gap: 6px;
}
.topbar-in-nav .user-chip .meta b { color: #E6EAF5; font-size: 12.5px; }
.topbar-in-nav .user-chip .meta span { color: #9AA3BD; font-size: 11px; }
.topbar {
  height: var(--topbar-h); background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px;
  padding: 0 20px; position: sticky; top: 0; z-index: 20;
}
.topbar .hotel-select { display: flex; align-items: center; gap: 8px; }
.hotel-select select {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px;
  background: #fff; max-width: 260px; cursor: pointer; font-size: 13px;
}
.topbar .spacer { flex: 1; }
.topbar-search { position: relative; }
.topbar-search input {
  width: 240px; padding: 7px 12px 7px 32px; border: 1px solid var(--border);
  border-radius: 20px; background: var(--bg-soft); outline: none; transition: all .18s;
}
.topbar-search input:focus { width: 300px; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-soft); }
.topbar-search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-mute); }
.search-results {
  position: absolute; top: 42px; left: 0; width: 380px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 420px; overflow-y: auto; padding: 6px; z-index: 40;
}
.search-group-title { font-size: 11px; color: var(--text-mute); padding: 8px 10px 4px; }
.search-item { padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.search-item:hover { background: var(--primary-soft); }
.search-item small { color: var(--text-mute); margin-left: auto; }

.icon-btn-wrap { position: relative; }
.bell-dot {
  position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 20px; cursor: pointer; }
.user-chip:hover { background: var(--bg-soft); }
.user-chip .meta b { display: block; font-size: 13px; line-height: 1.2; }
.user-chip .meta span { font-size: 11px; color: var(--text-mute); }

#view { flex: 1; padding: 20px 24px 40px; min-width: 0; }

/* ------------------------------ 页面骨架 ------------------------------ */
.page { max-width: 1560px; margin: 0 auto; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title { font-size: 20px; margin: 0; font-weight: 650; letter-spacing: .2px; }
.page-subtitle { margin: 4px 0 0; color: var(--text-mute); font-size: 13px; }
.page-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-side { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 1360px) { .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-side { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4, .grid-5 { grid-template-columns: 1fr; } }

/* ------------------------------ 卡片 ------------------------------ */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 14.5px; margin: 0; font-weight: 620; display: flex; align-items: center; gap: 7px; }
.card-title .icon { color: var(--primary); }
.card-subtitle { margin: 3px 0 0; font-size: 12px; color: var(--text-mute); }
.card-extra { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-body { padding: 16px; }
.card-body.tight { padding: 0; }
.section-head { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; }
.section-head h2 { font-size: 15px; margin: 0; font-weight: 620; }
.section-head > :last-child { margin-left: auto; }

/* ------------------------------ 指标卡 ------------------------------ */
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--stat-color, var(--primary)); opacity: .85; }
.stat-top { display: flex; align-items: center; gap: 8px; }
.stat-label { font-size: 12.5px; color: var(--text-sub); }
.stat-icon { margin-left: auto; color: var(--stat-color, var(--primary)); opacity: .5; }
.stat-value { font-size: 25px; font-weight: 680; margin-top: 6px; letter-spacing: -.5px; line-height: 1.15; }
.stat-value small { font-size: 12px; font-weight: 500; color: var(--text-mute); margin-left: 3px; }
.stat-hint { font-size: 11.5px; color: var(--text-mute); margin-top: 4px; }

/* ------------------------------ 徽标 / 标签 ------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px;
  font-size: 12px; line-height: 1.7; white-space: nowrap;
  background: #EEF1F6; color: var(--text-sub); font-weight: 500;
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: #00926F; }
.badge-warning { background: var(--warning-soft); color: #B87513; }
.badge-danger { background: var(--danger-soft); color: #C4472A; }
.badge-info { background: var(--info-soft); color: #0A6FBD; }
.badge-purple { background: var(--purple-soft); color: #5546C9; }
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--border-strong); border-radius: 5px; font-size: 11.5px; color: var(--text-sub); background: #fff; }

/* ------------------------------ 按钮 ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: #fff; color: var(--text); cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all .16s; white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(91,108,255,.28); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #CE5F44; border-color: #CE5F44; color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #00a383; border-color: #00a383; color: #fff; }
.btn-ai { background: linear-gradient(120deg, var(--purple), var(--primary)); border: none; color: #fff; box-shadow: 0 2px 10px rgba(108,92,231,.3); }
.btn-ai:hover:not(:disabled) { filter: brightness(1.06); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--bg-soft); border-color: var(--border); }
.btn-icon {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: #fff; border-radius: 9px; cursor: pointer;
  color: var(--text-sub); transition: all .16s;
}
.btn-icon:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-icon:disabled { opacity: .5; cursor: not-allowed; }

/* ------------------------------ 表单 ------------------------------ */
.input {
  width: 100%; padding: 7px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; outline: none; transition: all .16s; color: var(--text);
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input:disabled { background: var(--bg-soft); color: var(--text-mute); }
.textarea { resize: vertical; min-height: 72px; line-height: 1.6; }
.select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2397A1B2'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; background-size: 18px; padding-right: 28px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.form-item.span-2 { grid-column: span 2; }
.form-item-check { flex-direction: row; align-items: center; gap: 8px; }
.form-label { font-size: 12.5px; color: var(--text-sub); font-weight: 500; }
.form-label em { color: var(--danger); font-style: normal; margin-left: 2px; }
.form-hint { font-size: 11.5px; color: var(--text-mute); }
.form-divider { grid-column: span 2; font-size: 12px; color: var(--text-mute); border-bottom: 1px dashed var(--border); padding-bottom: 6px; margin-top: 4px; }
.checkbox { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; }
.checkbox input { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
@media (max-width: 780px) { .form { grid-template-columns: 1fr; } .form-item.span-2 { grid-column: span 1; } }

/* ------------------------------ 表格 ------------------------------ */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 10px 12px; background: var(--bg-soft); color: var(--text-sub);
  font-weight: 560; font-size: 12.5px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr.clickable { cursor: pointer; transition: background .14s; }
.table tbody tr.clickable:hover { background: var(--primary-soft); }
.table.compact th, .table.compact td { padding: 7px 10px; }
.cell-strong { font-weight: 580; }
.cell-sub { font-size: 11.5px; color: var(--text-mute); }
.cell-actions { display: flex; gap: 6px; justify-content: flex-end; }
.md-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.md-table th, .md-table td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }

/* ------------------------------ 工具条 / 标签页 ------------------------------ */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-right { margin-left: auto; }
/* ★ 用户 2026-09-16：酒店档案页那一排（搜索 / 全部状态 / 全部负责人 / 卡片·列表视图 / 导出）
   要求**放一排**——不折行；搜索框吃掉剩余宽度，窄屏时靠内部滚动而不是换行。 */
.hotels-toolbar { flex-wrap: nowrap; }
.hotels-toolbar .toolbar-left { flex-wrap: nowrap !important; min-width: 0; }
.hotels-toolbar .toolbar-left > * { flex: none; }
.hotels-toolbar .toolbar-left > div:first-child { flex: 1 1 auto; min-width: 150px; }
@media (max-width: 720px) {
  /* 手机屏幕实在放不下：允许横向滚动，仍然保持"一排"的观感 */
  .hotels-toolbar { overflow-x: auto; padding-bottom: 2px; }
  .hotels-toolbar .toolbar-left { flex-wrap: nowrap !important; }
}
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.tab {
  padding: 8px 14px; border: none; background: transparent; cursor: pointer; font-size: 13.5px;
  color: var(--text-sub); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; transition: all .16s;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 580; }
.tab-badge { background: var(--danger-soft); color: var(--danger); border-radius: 9px; padding: 0 6px; font-size: 11px; font-weight: 600; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 4px 12px; border-radius: 18px; border: 1px solid var(--border-strong); background: #fff;
  cursor: pointer; font-size: 12.5px; color: var(--text-sub); transition: all .16s; display: inline-flex; gap: 6px; align-items: center;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-count { font-size: 11px; opacity: .85; }

/* ------------------------------ 进度条 ------------------------------ */
.progress-wrap { display: flex; align-items: center; gap: 8px; min-width: 90px; }
.progress { flex: 1; height: 6px; background: #EDF0F6; border-radius: 6px; overflow: hidden; min-width: 40px; }
.progress-bar { height: 100%; border-radius: 6px; transition: width .4s ease; }
.progress-label { font-size: 11.5px; color: var(--text-mute); min-width: 32px; text-align: right; }

/* ------------------------------ 头像 / KV / 空态 ------------------------------ */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  color: #fff; font-weight: 600; flex: none;
}
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 0; font-size: 13px; }
.kv dt { color: var(--text-mute); white-space: nowrap; }
.kv dd { margin: 0; color: var(--text); }
.desc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 20px; }
.desc-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.desc-label { font-size: 11.5px; color: var(--text-mute); }
.desc-value { font-size: 13px; word-break: break-word; }
.empty { padding: 40px 20px; text-align: center; color: var(--text-mute); }
.empty-icon { color: #D8DFEA; }
.empty-text { margin: 10px 0 4px; font-size: 13.5px; }
.empty-hint { font-size: 12px; margin: 0 0 12px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 44px; color: var(--text-mute); font-size: 13px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border-strong); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert-box {
  display: flex; gap: 9px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.6; background: var(--info-soft); color: #0A6FBD;
}
.alert-box .icon { flex: none; margin-top: 2px; }
.alert-error { background: var(--danger-soft); color: #C4472A; }
.alert-success { background: var(--success-soft); color: #00926F; }
.alert-warning { background: var(--warning-soft); color: #B87513; }

/* ------------- 手动/自动调价：房型 × 日期 价格日历（#/pricing/console） -------------
   （2026-09-15 参照美团商家后台做的价格台：格子紧凑、价格一眼可读、状态用底色说话） */
.pc-scroll { overflow-x: auto; }
.pc-grid { min-width: 100%; }
.pc-grid th, .pc-grid td { padding: 4px 6px; }
.pc-th { font-weight: 600; }
.pc-weekend { color: var(--danger); }
.pc-td { text-align: center; }
.pc-cell {
  display: block; min-width: 62px; padding: 4px 2px; border-radius: 6px; cursor: pointer;
  font-size: 12px; line-height: 1.35; background: var(--bg-soft, #F7F9FC); border: 1px solid transparent;
}
.pc-cell:hover { border-color: var(--primary); }
.pc-cell-empty { color: var(--text-mute); background: transparent; border: 1px dashed var(--border); }
.pc-cell-danger { background: var(--danger-soft); color: #C4472A; }
.pc-cell-warn { background: var(--warning-soft); color: #B87513; }
.pc-cell-stop { background: #EEF1F6; color: var(--text-mute); text-decoration: line-through; }

/* 日期段（可自由添加）：一行一个日期段，空段带「请输入日期段」提示 */
.pc-range { padding: 6px 8px; border: 1px dashed var(--border); border-radius: 8px; margin-bottom: 6px; }
.pc-range-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-range-no { font-size: 12px; color: var(--text-mute); min-width: 44px; }
.pc-range-hint { margin-top: 4px; }
.pc-range-empty { border-color: var(--border-strong); background: var(--bg-soft); }

/* ---------- 日期段：**连选**起止日期（2026-09-15 用户要求："直接连选起始日期至结束日期，
   不用分两次点不方便"） ----------
   原来这里并排两个原生日历框（要分别点开两个 picker）；现在合成**一个**触发框 + 一个内嵌连选日历：
   点开始日 → 再点结束日，中间整段实时高亮。 */
.pc-range-pick {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  min-width: 240px; padding: 5px 10px; font-size: 13px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
}
.pc-range-pick:hover { border-color: var(--primary); }
.pc-range-pick-open { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.pc-cal {
  margin-top: 8px; padding: 10px; width: 100%; max-width: 720px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  box-shadow: 0 6px 18px rgba(30, 41, 59, .06);
}
.pc-cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
/* **两个月并排在一排里**（用户 2026-09-15：先说「跨月的可以显示两排」，后改成「跨月一排显示」）：
   左＝本月、右＝下月，跨月的日期段在同一排里就连着选完；翻页时两个一起翻。
   窄屏放不下时 flex-wrap 折行只是兜底。 */
.pc-cal-months { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.pc-cal-block { flex: 1 1 300px; min-width: 280px; }
.pc-cal-block + .pc-cal-block { margin-top: 0; padding-top: 0; border-top: 0; }
.pc-cal-monthlabel { font-size: 12px; font-weight: 600; color: var(--text-sub); margin-bottom: 4px; }
.pc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pc-cal-dow { font-size: 12px; color: var(--text-mute); text-align: center; padding: 2px 0; }
.pc-cal-day {
  font-size: 12px; text-align: center; padding: 5px 0; border-radius: 6px;
  cursor: pointer; user-select: none; border: 1px solid transparent; background: var(--bg-soft);
}
.pc-cal-day:hover { border-color: var(--primary); }
/* 隔壁月的补位格：**只站位**（不带 role、不可点）——下一个月整块就在右边，不需要点它翻月 */
.pc-cal-pad { background: transparent; }
.pc-cal-weekend { color: var(--danger); }
.pc-cal-in { background: var(--primary-soft); color: var(--primary-dark); }
.pc-cal-edge { background: var(--primary); color: #fff; font-weight: 600; }
.pc-cal-today { outline: 1px dashed var(--border-strong); outline-offset: -2px; }

/* ---------- 「手动改价是否成功要有反馈」（2026-09-16 用户要求）----------
   每次「批量设置」的结果**留在页面上**（挂在 state 上，重画不丢），直到用户点「关掉这条反馈」。
   六种结果各自有自己的颜色：全部成功 / 部分成功 / 全部被拒 / 没有变化 / 已取消 / 没权限 / 正在提交。 */
.pc-result { padding: 8px 10px; border-radius: var(--radius-sm); border: 1px dashed var(--border); background: var(--bg-soft); }
.pc-result:empty { display: none; }
.pc-result[kind="ok"] { border-color: #BFE3C9; background: #F2FBF5; }
.pc-result[kind="partial"] { border-color: #F3D9A6; background: var(--warning-soft); }
.pc-result[kind="fail"] { border-color: #F0C4B8; background: var(--danger-soft); }
.pc-result[kind="denied"] { border-color: #F3D9A6; background: var(--warning-soft); }
.pc-result[kind="running"] { border-color: var(--primary); background: var(--primary-soft); }
.pc-result-err { color: #C4472A; }

/* -------------------- 版块注解：右上角的小字「详情」 --------------------
   2026-09-15 用户要求「将各版块注解在每个版块的右上角用小字号放在详情里面」：
   注解文案一个字没删，只是默认收起来（原生 <details>，点开才展开、再点收起）。
   小字号 + 右对齐 + 静音色：不抢版面，找得到、点得开、复制得走。 */
.note-details-row { margin: 0 0 6px; }
.note-details { display: block; text-align: right; }
.note-details-summary {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; user-select: none;
  font-size: 12px; line-height: 1.5; color: var(--text-mute);
  padding: 1px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--card, #fff);
}
.note-details-summary::-webkit-details-marker { display: none; }
.note-details-summary::before { content: 'ⓘ'; font-size: 12px; }
.note-details-summary:hover { color: var(--primary); border-color: var(--primary); }
.note-details[open] > .note-details-summary { color: var(--primary); border-color: var(--primary); }
.note-details[open] > .note-details-summary::before { content: '▾'; }
.note-details-body { margin-top: 6px; text-align: left; font-size: 12px; line-height: 1.7; color: var(--text-mute); }
.note-details-body .alert-box { text-align: left; margin: 0; }

/* ------------------------------ 时间线 ------------------------------ */
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; }
.timeline-item { position: relative; padding: 0 0 16px 20px; border-left: 1px solid var(--border); }
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot { position: absolute; left: -4.5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px #fff; }
.timeline-item.warn .timeline-dot { background: var(--warning); }
.timeline-item.danger .timeline-dot { background: var(--danger); }
.timeline-item.success .timeline-dot { background: var(--success); }
.timeline-title { font-size: 13px; font-weight: 520; }
.timeline-desc { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.timeline-time { font-size: 11.5px; color: var(--text-mute); margin-top: 3px; }

/* ------------------------------ 图表 ------------------------------ */
.chart-wrap { width: 100%; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .axis { fill: var(--text-mute); font-size: 10.5px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--text-sub); }
.legend-col { flex-direction: column; gap: 6px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut-svg { position: relative; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center strong { font-size: 21px; line-height: 1.1; }
.donut-center span { font-size: 11px; color: var(--text-mute); }
.spark { display: block; }
.hbar-list { display: flex; flex-direction: column; gap: 9px; }
.hbar-item { display: grid; grid-template-columns: 130px 1fr 62px; align-items: center; gap: 10px; font-size: 12.5px; }
.hbar-label { color: var(--text-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 8px; background: #EDF0F6; border-radius: 6px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 6px; transition: width .5s ease; }
.hbar-value { text-align: right; font-weight: 550; }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 82px 1fr 56px; align-items: center; gap: 10px; font-size: 12.5px; }
.funnel-label { color: var(--text-sub); }
.funnel-track { background: #EDF0F6; border-radius: 6px; height: 24px; overflow: hidden; }
.funnel-fill { height: 100%; border-radius: 6px; display: flex; align-items: center; padding: 0 8px; color: #fff; font-size: 11.5px; font-weight: 600; transition: width .5s; }
.funnel-rate { text-align: right; color: var(--text-mute); font-size: 11.5px; }
.word-cloud { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; line-height: 1.5; }
.cloud-word { cursor: default; }
.spark-empty { color: var(--text-mute); }

/* ------------------------------ 甘特图 ------------------------------ */
.gantt-wrap { overflow-x: auto; position: relative; padding-bottom: 8px; }
.gantt-scale, .gantt-row { min-width: 100%; }
.gantt-body { position: relative; }
.gantt-group { display: flex; align-items: center; gap: 12px; padding: 9px 0 5px; border-bottom: 1px solid var(--border); position: sticky; left: 0; }
.gantt-group-name { font-size: 12.5px; font-weight: 620; color: var(--text); flex: none; padding-left: 4px; }
.gantt-group-count { font-size: 11.5px; color: var(--text-mute); }
.gantt-row { display: flex; align-items: center; height: 30px; }
.gantt-task-name { display: flex; align-items: center; gap: 7px; flex: none; font-size: 12px; padding-left: 4px; overflow: hidden; }
.gantt-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.gantt-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-owner { color: var(--text-mute); font-size: 11px; flex: none; margin-left: 4px; }
.gantt-track { display: flex; position: relative; height: 30px; flex: none; }
.gantt-cell { flex: none; border-right: 1px dotted #EEF1F6; height: 100%; }
.gantt-bar { position: absolute; top: 8px; height: 14px; border-radius: 4px; opacity: .92; cursor: default; }
.gantt-bar.overdue { box-shadow: 0 0 0 2px rgba(225,112,85,.35); }
.gantt-bar i { display: block; height: 100%; background: rgba(255,255,255,.4); border-radius: 4px 0 0 4px; }
.gantt-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); opacity: .6; pointer-events: none; }
.gantt-today span { position: absolute; top: 0; left: 3px; font-size: 10px; color: var(--danger); background: #fff; padding: 0 3px; }

/* ------------------------------ 弹层 ------------------------------ */
.overlay {
  position: fixed; inset: 0; background: rgba(20, 26, 45, .45); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; z-index: 100; opacity: 0; transition: opacity .18s;
}
.overlay.show { opacity: 1; }
.overlay-right { justify-content: flex-end; align-items: stretch; }
.modal {
  background: #fff; border-radius: var(--radius-lg); max-width: 94vw; max-height: 90vh;
  display: flex; flex-direction: column; transform: translateY(12px) scale(.98); transition: transform .18s;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.overlay.show .modal { transform: none; }
.drawer {
  background: #fff; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  transform: translateX(24px); transition: transform .2s; max-width: 96vw;
}
.overlay.show .drawer { transform: none; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex: none; }
.modal-head h3 { margin: 0; font-size: 15px; font-weight: 620; flex: 1; }
.modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex: none; }
.confirm-text { margin: 0; font-size: 14px; line-height: 1.65; }

#toast-host { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px;
  background: #2A3247; color: #fff; font-size: 13px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-8px); transition: all .22s; max-width: 520px;
}
.toast.show { opacity: 1; transform: none; }
.toast-success { background: #0E9C7B; }
.toast-error { background: #D25C40; }

/* ------------------------------ AI 面板 ------------------------------ */
.ai-panel { border: 1px solid #DCD8FA; border-radius: var(--radius); background: linear-gradient(180deg, #FBFAFF, #fff); overflow: hidden; }
.ai-panel-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(90deg, rgba(108,92,231,.09), rgba(91,108,255,.05)); border-bottom: 1px solid #E8E4FA; flex-wrap: wrap; }
.ai-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--purple); }
.ai-meta { font-size: 11.5px; color: var(--text-mute); }
.ai-panel-actions { margin-left: auto; display: flex; gap: 7px; }
.ai-panel-body { padding: 14px; font-size: 13px; line-height: 1.72; max-height: 620px; overflow-y: auto; }
.ai-panel-body h3, .ai-panel-body h4, .ai-panel-body h5 { margin: 12px 0 6px; font-size: 14px; }
.ai-panel-body h3:first-child, .ai-panel-body h4:first-child { margin-top: 0; }
.ai-panel-body p { margin: 0 0 8px; }
.ai-panel-body ul { margin: 6px 0 10px; padding-left: 20px; }
.ai-panel-body li { margin-bottom: 4px; }
.ai-panel-body blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--purple); background: var(--purple-soft); color: var(--text-sub); font-size: 12.5px; }
.ai-panel-body hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.ai-panel-body .md-gap { height: 4px; }
.md-ordered { margin: 0 0 5px; }

/* ------------------------------ 智营通抽屉 ------------------------------ */
.advisor-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 60; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--primary)); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 8px 26px rgba(91,108,255,.42); display: flex; align-items: center; justify-content: center;
  transition: transform .18s;
}
.advisor-fab:hover { transform: scale(1.07) translateY(-2px); }
.advisor-fab .pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(108,92,231,.35); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.28); opacity: 0; } }

.chat { display: flex; flex-direction: column; height: 100%; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--bg-soft); }
.chat-msg { display: flex; gap: 10px; max-width: 100%; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-bubble { padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.68; max-width: 82%; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.chat-msg.user .chat-bubble { background: var(--primary); color: #fff; border-color: var(--primary); }
.chat-bubble h3, .chat-bubble h4 { margin: 10px 0 5px; font-size: 13.5px; }
.chat-bubble h3:first-child, .chat-bubble h4:first-child { margin-top: 0; }
.chat-bubble ul { margin: 6px 0; padding-left: 18px; }
.chat-bubble li { margin-bottom: 3px; }
.chat-bubble p { margin: 0 0 6px; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chat-ref { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px; font-size: 11.5px; }
.chat-ref b { color: var(--primary); margin-left: 3px; }
.chat-input { padding: 12px 14px; border-top: 1px solid var(--border); background: #fff; flex: none; }
.chat-input-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea { flex: 1; min-height: 42px; max-height: 130px; }
.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.chat-quick button {
  font-size: 11.5px; padding: 3px 10px; border-radius: 14px; border: 1px dashed var(--border-strong);
  background: #fff; cursor: pointer; color: var(--text-sub);
}
.chat-quick button:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-soft); }

/* ------------------------------ 预警 / 风险 ------------------------------ */
.alert-item { display: flex; gap: 11px; padding: 11px 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .14s; }
.alert-item:last-child { border-bottom: none; }
.alert-item:hover { background: var(--bg-soft); }
.alert-level { flex: none; width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; margin-top: 2px; }
.lv-1 { background: var(--info); }
.lv-2 { background: var(--warning); }
.lv-3 { background: var(--danger); }
.alert-item-body { flex: 1; min-width: 0; }
.alert-item-title { font-size: 13px; font-weight: 540; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.alert-item-desc { font-size: 12px; color: var(--text-sub); margin-top: 3px; }
.alert-item-meta { font-size: 11px; color: var(--text-mute); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }

.risk-card { border-left: 3px solid var(--border-strong); }
.risk-card.high { border-left-color: var(--danger); }
.risk-card.medium { border-left-color: var(--warning); }
.risk-card.low { border-left-color: var(--info); }

/* ------------------------------ 房源 / 方案卡片 ------------------------------ */
.tile {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: #fff;
  transition: all .16s; position: relative;
}
.tile:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.tile.selected { border-color: var(--primary); background: var(--primary-soft); }
.tile-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.tile-title { font-size: 14px; font-weight: 600; }
.tile-sub { font-size: 12px; color: var(--text-mute); margin-bottom: 10px; }

.price-tag { font-size: 19px; font-weight: 700; color: var(--primary); }
.price-tag small { font-size: 11px; font-weight: 500; color: var(--text-mute); }
.price-old { text-decoration: line-through; color: var(--text-mute); font-size: 12px; }

/* ------------------------------ 登录/杂项 ------------------------------ */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.text-mute { color: var(--text-mute); }
.text-sub { color: var(--text-sub); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.flex { display: flex; } .flex-1 { flex: 1; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.wrap { flex-wrap: wrap; }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.scroll-y { overflow-y: auto; }
.max-h-340 { max-height: 340px; }
.max-h-420 { max-height: 420px; }
.max-h-520 { max-height: 520px; }
.bg-soft { background: var(--bg-soft); }
.hidden { display: none !important; }

/* ★ 用户 2026-09-16（最新）：「**隐藏显示**」下面这一整块 ——
   ⚠️ 明文展示已开启：能打开这个页面的人都能直接看到密码（只读角色仍然只看掩码）。每次加载都会写一条审计（审计里不含明文）。
   想改成"只给掩码、点『显示』才看"，把系统参数 cloudaccounts_plaintext_display 改成 0
   当前登录人：X　当前时间：…　（截图外传也能看出是谁、什么时候）
   本次加载实际明文展示了 N 条；本次加载已写一条审计（审计里不含明文）。开关来源：…。只读角色仍然只看掩码。
   做法与顶栏那次一致：**CSS 隐藏、DOM 保留** ——
     · 明文展示这一支功能本身**没有改动**（谁能看、写不写审计、怎么关，全都照旧，接口层一个字没动）；
     · 套件里有大量断言是按这些文案/role 做文本比对的，隐藏不影响它们，删掉会一片红；
     · 想恢复：去掉下面这几行即可（`.hidden` 那条不要动，别的模块在用它）。 */
[data-role="cloudaccounts-plaintext-banner"],
[data-role="cloudaccounts-plaintext-banner-meta"],
[data-role="cloudaccounts-plaintext-audit"],
[data-role="cloud-hotel-account-audit-tag"] { display: none !important; }
.btn-block { width: 100%; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s; }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  #view { padding: 14px; }
  .topbar-search input { width: 150px; }
}

/* ------------------------------------------------------------------ *
 * 接口文档页（#/api-docs）：分组折叠 + 每条接口折叠 + 代码块
 * 只服务这一个页面，类名统一 doc- / code-block 前缀，不影响别处。
 * ------------------------------------------------------------------ */
.code-block {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; margin: 0 0 10px; font-size: 12.5px; line-height: 1.6;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  white-space: pre-wrap; word-break: break-all; overflow-x: auto;
}
.doc-group { border: 1px solid var(--border); border-radius: 10px; background: var(--card); margin-bottom: 12px; }
.doc-group-sum {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer;
  list-style: none; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.doc-group-sum::-webkit-details-marker { display: none; }
.doc-group-sum::before { content: '▸'; color: var(--text-mute); font-size: 12px; }
.doc-group[open] > .doc-group-sum::before { content: '▾'; }
.doc-group-body { padding: 10px 12px 4px; }
.doc-ep { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; background: var(--bg-soft); }
.doc-ep-sum {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer;
  list-style: none; flex-wrap: wrap;
}
.doc-ep-sum::-webkit-details-marker { display: none; }
.doc-ep-path { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 12.5px; }
.doc-ep-desc { flex: 1; min-width: 180px; font-size: 13px; color: var(--text-sub); }
.doc-ep-body { padding: 4px 12px 12px; background: var(--card); border-top: 1px solid var(--border); }
.doc-sec-title { font-size: 12.5px; font-weight: 600; color: var(--text-sub); margin: 12px 0 6px; }
.doc-notes { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-sub); }
.doc-notes li { margin: 3px 0; }
