/* =========================================================================
 * site.css · 财税智能体 · 客户前端演示系统（虚拟演示）v2
 * 浅色主题 · 中文界面 · 纯静态 · 无外部依赖
 * 第 2 版：去顶部水印条 / 登录页醒目提示 / 内页右下角合规指纹
 * ========================================================================= */

:root {
  --primary: #1677ff;
  --primary-dark: #0e5fd8;
  --primary-soft: #e8f3ff;
  --primary-softer: #f0f7ff;
  --bg: #f7f8fa;
  --bg-side: #ffffff;
  --surface: #ffffff;
  --border: #e5e6eb;
  --border-strong: #d0d3d9;
  --text: #1d2129;
  --text-2: #4e5969;
  --text-3: #86909c;
  --success: #00b42a;
  --success-soft: #e8ffea;
  --warning: #ff7d00;
  --warning-soft: #fff7e8;
  --danger: #f53f3f;
  --danger-soft: #ffece8;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.12);
  --nav-w: 232px;
  --topbar-h: 56px;
  font-size: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { text-decoration: underline; }

/* ===================== 全内页统一缩放 10%（登录页除外） ===================== */
/* 用户 2026-08-25 拍板：除登录页外所有内页统一缩放 10%，防止内容自动折行错位
   zoom 是 CSS 缩放属性（Chrome/Edge/Safari/FF 95+ 都支持），缩放后浏览器自动调整滚动条
   登录页（data-mode="login"）保留 100% 显示 */
body:not([data-mode="login"]):not([data-page="login"]) { zoom: 0.9; }

/* ===================== 页面切换渐入 ===================== */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
body { animation: pageFadeIn .25s ease-out; }
h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 600; color: var(--text); }
p { margin: 0 0 10px; line-height: 1.6; color: var(--text-2); }

/* ===================== 应用骨架（已去 banner） ===================== */
.app { display: flex; min-height: 100vh; }
.app-nav {
  width: var(--nav-w); flex: 0 0 var(--nav-w);
  background: var(--bg-side); border-right: 1px solid var(--border);
  position: fixed; top: 0; bottom: 0; left: 0;
  overflow-y: auto; padding: 14px 10px 40px;
}
.app-main { flex: 1; margin-left: var(--nav-w); min-width: 0; display: flex; flex-direction: column; }

/* 收票专员单角色登录：满屏直达收票上传页（无左侧导航，仅极简顶栏） */
body.role-receipt .app-nav { display: none !important; }
body.role-receipt .app-main { margin-left: 0 !important; }

/* 账号下拉遮罩：菜单展开时铺一层全屏透明层，点击任意空白即关闭（最稳，不依赖全局监听/transform） */
/* z-index 低于顶栏(50)，故顶栏按钮仍可被点击用于切换；菜单(user-dropdown) z-index 高于顶层，浮于遮罩之上 */
.user-menu-mask { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 40; }

/* 老板角色：全局查看模式 —— 内容区控件禁用（左导航/顶栏仍可操作，便于切换页面浏览） */
#view-only-banner { background:#e8f3ff; border-bottom:1px solid #bcdcff; color:#0e5fd8; font-size:13px; font-weight:600; text-align:center; padding:8px 16px; line-height:1.5; }
body.view-only .app-main button,
body.view-only .app-main input,
body.view-only .app-main select,
body.view-only .app-main textarea,
body.view-only .app-main .btn,
body.view-only .app-main a.btn { pointer-events:none !important; opacity:.55 !important; filter:grayscale(.25); cursor:not-allowed !important; }
/* 页内分区/Tab 切换链接保留可点，便于老板浏览不同板块（仅禁用操作型控件） */
body.view-only .app-main button.tab,
body.view-only .app-main .tab-btn,
body.view-only .app-main a.tab { pointer-events:auto !important; opacity:1 !important; filter:none !important; cursor:pointer !important; }

/* 通用页面标题（灰 13px，对齐工作台板块标题风格；禁大号深色 h2，见 UI 规范） */
.page-head { margin-bottom: 16px; }
.page-head h2 { font-size: 13px; margin: 0 0 4px; color: #86909c; font-weight: 600; }
.page-head .sub { font-size: 13px; color: #86909c; }

/* 账号下拉菜单（替代原弹窗；所有客户侧页顶栏账号按钮共用） */
/* 用 absolute 相对账号按钮容器(acts)定位，避免 fixed 在预览/代理容器被 transform 影响导致偏移 */
.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 128px;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(31, 41, 55, .14);
  padding: 6px;
  z-index: 200;
  font-family: inherit;
}
.user-dropdown .ud-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #1d2129;
  cursor: pointer;
  white-space: nowrap;
}
.user-dropdown .ud-item:hover { background: #f2f3f5; }
.user-dropdown .ud-item svg { width: 15px; height: 15px; color: #4e5969; flex-shrink: 0; }
.user-dropdown .ud-item.danger { color: #f53f3f; }
.user-dropdown .ud-item.danger svg { color: #f53f3f; }
.user-dropdown .ud-item.danger:hover { background: #fff1f0; }
.user-dropdown .ud-divider { height: 1px; background: #f2f3f5; margin: 6px 4px; }

/* 品牌区 */
.nav-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 14px; }
.nav-brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #1677ff, #2a8cff);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: 0 0 30px;
}
.nav-brand .t { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; }

/* 导航分组 */
.nav-group { margin-top: 10px; }
.nav-group > .label {
  font-size: 11px; color: var(--text-3); font-weight: 600;
  padding: 6px 12px; letter-spacing: .5px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin: 2px 6px; border-radius: 6px;
  color: var(--text-2); font-size: 14px; cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; width: 3px; height: 20px;
  background: var(--primary); border-radius: 2px; margin-left: -6px;
}
.nav-item .ico { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; opacity: .85; flex: 0 0 18px; color: currentColor; }
.nav-item .ico svg { width: 18px; height: 18px; display: block; }
.nav-item .badge {
  margin-left: auto; background: var(--danger); color: #fff;
  font-size: 11px; border-radius: 10px; padding: 1px 7px; font-weight: 600;
}

/* ===================== 顶栏（精简·单行） ===================== */
:root { --topbar-h: 52px; }
.app-topbar {
  height: var(--topbar-h); flex: 0 0 var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: stretch; gap: 0;
  position: sticky; top: 0; z-index: 50;
}

/* 品牌区（占左侧，与右侧内容用 border-right 分隔） */
.tb-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; height: 100%;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
  border-right: 1px solid var(--border);
  text-decoration: none; color: inherit; cursor: pointer;
  transition: background .15s;
}
.tb-brand:hover { background: var(--primary-soft); }
.tb-brand .tb-logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, #1677ff, #2a8cff);
  color: #fff; display: flex; align-items: center; justify-content: center;
  flex: 0 0 28px;
}
.tb-brand .tb-logo svg { width: 16px; height: 16px; color: #fff; }
.tb-brand .tb-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.tb-brand .tb-brand-text .tb-product { font-size: 14px; font-weight: 700; color: var(--text); }
.tb-brand .tb-brand-text .tb-mode { font-size: 11px; color: var(--primary); margin-top: 1px; font-weight: 500; letter-spacing: .2px; }

/* 中间面包屑 */
.tb-nav {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3);
  margin-left: 18px;
}
.tb-nav .tb-crumb-home {
  color: var(--text-3); text-decoration: none; transition: color .15s;
}
.tb-nav .tb-crumb-home:hover { color: var(--primary); }
.tb-nav .tb-crumb { color: var(--text-2); }
.tb-nav .tb-cur {
  font-size: 15px; color: var(--text); font-weight: 600;
}
.tb-nav .tb-sep { color: #cbd0d9; font-size: 12px; }

/* 帮助按钮（右上圆按钮） */
.tb-help {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); cursor: pointer; transition: all .15s;
  border: 1px solid var(--border);
}
.tb-help:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.tb-help svg { width: 16px; height: 16px; }

/* 右侧 actions 组（弹性容器，规定一整块） */
.tb-actions {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; height: 100%;
  border-left: 1px solid var(--border);
  background: var(--surface);
  margin-left: auto;  /* 推到最右边 */
}

.topbar-spacer { flex: 1; min-width: 8px; display: none; } /* 兼容旧调用 */
.topbar-title { font-size: 17px; font-weight: 600; color: var(--text); }
.topbar-crumb { font-size: 12px; color: var(--text-3); }

/* 账套切换器（紧凑胶囊） */
.acct-switch { position: relative; }
.acct-switch .trigger {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--primary-softer); border: 1px solid #cfe3ff;
  border-radius: 16px; padding: 4px 12px; font-size: 13px; color: var(--text);
  white-space: nowrap;
}
.acct-switch .trigger:hover { border-color: var(--primary); }
.acct-switch .trigger .caret { font-size: 10px; color: var(--text-3); }
.acct-menu {
  position: absolute; top: 42px; right: 0; width: 280px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 60;
}
.acct-menu.open { display: block; }
.acct-menu .opt {
  padding: 10px 12px; border-radius: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
}
.acct-menu .opt:hover { background: var(--bg); }
.acct-menu .opt.active { background: var(--primary-soft); }
.acct-menu .opt .n { font-size: 14px; color: var(--text); font-weight: 500; }
.acct-menu .opt .m { font-size: 12px; color: var(--text-3); }

/* 用户菜单（单行：头像 + caret，不再显示长姓名） */
.user-chip {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 6px 4px 4px;
  border-radius: 16px; cursor: pointer;
  border: 1px solid transparent; transition: all .15s;
}
.user-chip:hover { border-color: var(--border); background: var(--bg); }
.user-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #1677ff, #2a8cff);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
.user-chip .caret { color: var(--text-3); display: flex; }
.user-chip .caret svg { width: 14px; height: 14px; }

/* ===================== 内容区 ===================== */
.app-content { padding: 24px 22px 32px; flex: 1; }

/* ===================== 板块标题（统一规范 · 13px 600 灰） ===================== */
/* 全站所有页面的板块标题（快捷入口 / 全账套总览 / 账套列表 / 核心指标 / 数据可视化 / 代账进度等）
   统一使用 13px / 600 / #86909c，去掉 letter-spacing 和 uppercase（适合中文，不显笨重） */
.sec-h { font-size: 13px; font-weight: 600; color: #86909c; margin: 18px 0 12px; letter-spacing: normal; text-transform: none; }
.sec-h .sec-sub { font-size: 12px; font-weight: 400; color: #86909c; margin-left: 8px; }
.sec-h:first-child { margin-top: 0; }

.page-head { display: block; margin-bottom: 18px; }
.page-head h2 { margin: 0 0 4px; font-size: 13px; color: #86909c; font-weight: 600; }
.page-head .sub { color: var(--text-3); font-size: 13px; }
/* 带右侧操作区（10/11/12 等）的页头：保留“标题左 + 操作右” */
.page-head:has(.page-actions) { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.page-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
/* 08 申报：标题左 + 税款所属期右 */
.filing-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.filing-head .period-pick { margin-left: auto; }
/* 有账套指向的业务页：当前账套名展示在副标题行内（<span class="acct-name"> 由 app.js 填充） */
.ph-left { flex: 1 1 auto; min-width: 0; }

/* ===== 统一标准：自定义下拉选择器（所属期 / 账期 / 年度 等带 ▾ 的框）=====
   全站所有此类控件【必须】套用本 .period-pick 类，禁止各页自创写法、各做各的。
   规范：容器高 32px、字 13px/字重 500（与全站 .btn 完全一致）、圆角 6px、边框 var(--border)、文字 var(--text-2)、
   自适应 min-width:132px（内容超出自动撑开不折叠）、三角紧贴文字 margin-left:2px。
   子元素类：.pp-lbl(标签色=按钮文字色 var(--text-2)) .pp-val(值·同按钮文字色) .pp-caret(三角) .pp-menu(下拉菜单) */
.period-pick {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 10px; box-sizing: border-box;
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; user-select: none;
  min-width: 132px;
}
.period-pick:hover { border-color: #c9cdd4; }
.period-pick .pp-lbl { color: var(--text-2); font-size: 13px; font-weight: 500; } /* 标签：色=按钮文字色 #4e5969；字号13px/字重500 与全站 .btn 完全一致 */
.period-pick .pp-val { color: var(--text-2); font-size: 13px; font-weight: 500; } /* 日期值：色=按钮文字色 #4e5969；字号13px/字重500 与全站 .btn 完全一致 */
.pp-caret { font-size: 10px; color: var(--text-3); margin-left: 2px; transition: transform .15s; }

/* ===== 统一标准：搜索框（全站唯一标准；禁止各页自创 .inv-search/.vch-search/.sal-search/.ast-search/.rpt-search/.soc-search 等写法）
   结构：<div class="search-box"><svg class="s-ico">…</svg><input class="s-input" placeholder="…"></div>
   高 32px、字 13px、圆角 6px、边框 var(--border)、白底。
   宽度规则（最高优先）：由 app.js autoSizeSearchBoxes() 按占位提示自动伸缩——框宽 = 占位提示文字实测宽 + 42px（左内边距10 + 放大镜图标14 + 间距6 + 右内边距10 + 边框2），保证左右留白严格相等，无额外尾随空白，不长不短。
   页面上禁止写死 w-200/w-240 等固定宽度类；JS 未生效前以 width:200px 兜底。
   位置标准（最高优先）：搜索框必须置于页头工具栏【最右】、整体【右对齐】——见下方 margin-left:auto；
   任何页不得把搜索框放左边或左中，违者以本规则为准。 */
.search-box {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px; box-sizing: border-box;
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; color: var(--text-3);
  width: 200px; min-width: 160px; max-width: none; flex: 0 1 auto;
  margin-left: auto; /* 位置标准：吸工具栏最右、右对齐；仅当父容器为 flex 时生效 */
}
.search-box .s-ico { width: 14px; height: 14px; flex: 0 0 14px; color: var(--text-3); }
.search-box .s-input {
  flex: 1 1 auto; min-width: 0; width: 100%;
  border: none; outline: none; background: transparent;
  font-size: 13px; line-height: 1.2; color: var(--text); padding: 0;
}
.search-box .s-input::placeholder { color: var(--text-3); }
/* 搜索框宽度由 JS 自动伸缩，禁止在页面 HTML 中写死 w-200/w-240 等固定宽度类。
   若 JS 未生效，回退到上方 .search-box 的 width:200px；动态新增搜索框后须调用 DemoUI.autoSizeSearchBoxes(container)。 */
/* ===== 统一标准：工具栏右侧分组（最高优先） =====
   用途：把"日期/期间下拉 + 搜索框"等右区控件打包成一个分组，整体吸到工具栏最右、且彼此紧挨。
   规则：分组内控件之间不留大空隙（gap:10px 与工具栏一致）；分组本身 margin-left:auto 吸右。
   禁止：给分组内单个控件再写 margin-left:auto（会导致剩余空间被平分、下拉被挤到中间，正是历史返工根因）。
   用法：<div class="toolbar-right"><span class="period-pick …">…</span><div class="search-box">…</div></div> */
.toolbar-right { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.period-pick.open .pp-caret { transform: rotate(180deg); }
.period-pick .pp-menu {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 4px 0; margin: 0; list-style: none; z-index: 20;
}
.period-pick .pp-menu li { padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.period-pick .pp-menu li:hover { background: #f2f3f5; color: var(--text); }
.period-pick .pp-menu li.active { color: var(--primary); background: #e8f3ff; }

/* 卡片 */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow);
}
.card + .card, .card.mt { margin-top: 16px; }
.card-title { font-size: 13px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* ===================== 横幅标准类（信息 / 警告）· 全站复用，禁止各页自创写法 =====================
   信息横幅：浅蓝底 #e8f3ff / 边 #bcdcff / 文字 #165dff（与顶栏账套切换器、侧栏激活态同源色系）
   警告横幅：浅黄底 #fff7e8 / 边 #ffe0b0 / 文字 #a85a00（与 SVG 橙色警告横幅一致）
   用法：<div class="info-banner"><svg class="ib-ico">…</svg><div>…正文…</div></div> */
.info-banner {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary-soft); border: 1px solid #bcdcff;
  border-radius: var(--radius); padding: 11px 14px; font-size: 13px; color: #165dff; line-height: 1.6;
}
.info-banner .ib-ico { flex: 0 0 auto; color: var(--primary); }
.info-banner .ib-body > div + div { margin-top: 2px; }
.warn-banner {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--warning-soft); border: 1px solid #ffe0b0;
  border-radius: var(--radius); padding: 11px 14px; font-size: 13px; color: #a85a00; line-height: 1.6;
}
.warn-banner .wb-ico { flex: 0 0 auto; margin-top: 1px; color: var(--warning); }
.warn-banner .wb-body > div + div { margin-top: 2px; }
.err-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #ffece8; border: 1px solid #f53f3f; border-radius: var(--radius); padding: 10px 14px; font-size: 13px; color: #f53f3f; font-weight: 500; }
.err-banner .btn { margin-left: auto; }
.mute-banner { display: flex; align-items: center; gap: 8px; background: #f2f3f5; border: 1px solid #e5e6eb; border-radius: var(--radius); padding: 9px 14px; font-size: 12px; color: #4e5969; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* 统计卡 */
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.stat .k { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.stat .v { font-size: 26px; font-weight: 700; color: var(--text); font-family: 'DIN', -apple-system, sans-serif; }
.stat .v small { font-size: 14px; color: var(--text-3); font-weight: 500; }
.stat .trend { font-size: 12px; margin-top: 6px; }
.trend.up { color: var(--success); } .trend.down { color: var(--danger); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  border-radius: 6px; padding: 7px 16px; font-size: 13px; font-weight: 500;
  transition: all .15s; line-height: 1.2;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(22,119,255,0.2); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; box-shadow: 0 4px 14px rgba(22,119,255,0.32); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(22,119,255,0.2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-danger { background: #fff; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.tbl th, table.tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.tbl th { background: #fafbfc; color: var(--text-3); font-weight: 600; font-size: 12.5px; }
table.tbl tr:hover td { background: #fafcff; }
table.tbl tr:last-child td { border-bottom: none; }
.money { font-variant-numeric: tabular-nums; font-family: 'DIN', sans-serif; }

/* 标签 */
.tag { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 500; }
.tag-green { background: var(--success-soft); color: var(--success); }
.tag-blue { background: var(--primary-soft); color: var(--primary); }
.tag-orange { background: var(--warning-soft); color: var(--warning); }
.tag-gray { background: #f2f3f5; color: var(--text-3); }
.tag-red { background: var(--danger-soft); color: var(--danger); }

/* 表单 */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.form-row .req, .inv-fld .req, .req { color: var(--danger); margin-left: 2px; font-weight: 700; }
input.fld, select.fld, textarea.fld {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-strong);
  border-radius: 6px; font-size: 14px; color: var(--text); background: #fff; font-family: inherit;
}
input.fld:focus, select.fld:focus, textarea.fld:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-row .hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab {
  padding: 9px 16px; cursor: pointer; font-size: 14px; color: var(--text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===================== SVG 嵌入容器（v2：可缩放不掉图） ===================== */
.svg-stage {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; padding: 0; position: relative;
}
.svg-stage .stage-head {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.svg-stage .stage-head .ih { font-size: 14px; font-weight: 600; color: var(--text); }
.svg-stage .stage-head .im { font-size: 12.5px; color: var(--text-3); }
.svg-stage .stage-body {
  background: #f6f8fb;
  padding: 24px;
  display: flex; justify-content: center;
  min-height: 540px;
}
.svg-stage .stage-body svg,
.svg-stage .stage-body img {
  display: block; width: 100%; max-width: 1280px; height: auto;
  background: #fff; border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* ===================== 弹窗（modal） ===================== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20, 24, 35, 0.45);
  display: none; align-items: center; justify-content: center; z-index: 900; padding: 24px;
}
.modal-mask.open { display: flex; }

/* ===================== 锁屏（全局·所有客户侧页 + 引擎三域后台共用） ===================== */
.lock-screen {
  position: fixed; inset: 0; z-index: 1200;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s ease;
}
.lock-screen.show { display: flex; opacity: 1; }  /* 修复首次点击不显示：show 类必须同时恢复 display（2026-09-10 第五批#9） */
.lock-card {
  width: 320px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 14px; padding: 30px 26px 26px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.32);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transform: translateY(8px); transition: transform .18s ease;
}
.lock-screen.show .lock-card { transform: translateY(0); }
.lock-ico {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 14px;
}
.lock-ico svg { width: 26px; height: 26px; }
.lock-title { font-size: 18px; font-weight: 600; color: #1d2129; }
.lock-sub { font-size: 13px; color: var(--text-3); margin: 6px 0 16px; }
.lock-user { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.lock-user b { color: #1d2129; }
.lock-input {
  width: 100%; height: 38px; padding: 0 12px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 8px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lock-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.lock-input.err { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.lock-err { color: var(--danger); font-size: 12px; min-height: 16px; margin-top: 6px; }
.lock-actions { display: flex; gap: 12px; margin-top: 14px; width: 100%; }
.lock-actions .lock-btn { width: auto; flex: 1 1 0; height: 38px; margin-top: 0; justify-content: center; }
.modal {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 520px; max-width: 100%; max-height: 88vh; display: flex; flex-direction: column;
}
.modal.wide { width: 760px; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head .x { margin-left: auto; cursor: pointer; color: var(--text-3); font-size: 20px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.modal-head .x:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* 弹窗类独立页面（视觉上像浮层） */
.popup-page { padding: 40px 24px 60px; }
.popup-card {
  width: 720px; max-width: 94vw; margin: 0 auto; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.popup-card .pc-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.popup-card .pc-head h3 { margin: 0; font-size: 16px; }
.popup-card .pc-head .x { margin-left: auto; cursor: pointer; color: var(--text-3); font-size: 20px; }
.popup-card .pc-body { padding: 8px; }
.popup-card .pc-foot { padding: 12px 18px; border-top: 1px solid var(--border); text-align: right; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; margin-bottom: 14px; cursor: pointer; }
.back-link:hover { color: var(--primary); text-decoration: none; }

/* ===================== Toast ===================== */
.toast-wrap { position: fixed; top: 16px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 8px; box-shadow: var(--shadow-lg); padding: 12px 16px; min-width: 240px; max-width: 360px;
  font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 10px;
  animation: toastIn .2s ease;
}
.toast.ok { border-left-color: var(--success); }
.toast.warn { border-left-color: var(--warning); }
.toast.err { border-left-color: var(--danger); }
.toast .ti { font-weight: 700; }
.toast .tc { flex: 1; min-width: 0; word-break: break-word; }
.toast .tx { cursor: pointer; opacity: .55; font-size: 16px; line-height: 1; padding: 0 4px; margin-left: 4px; user-select: none; transition: opacity .15s; }
.toast .tx:hover { opacity: 1; color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ===================== 留言入口 ===================== */
.fb-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  background: var(--primary); color: #fff; border: none; border-radius: 28px;
  padding: 12px 18px; font-size: 14px; font-weight: 500; cursor: pointer;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
}
.fb-fab:hover { background: var(--primary-dark); }
.fb-panel {
  position: fixed; right: 22px; bottom: 76px; width: 320px; z-index: 801;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 16px; display: none;
}
.fb-panel.open { display: block; }
.fb-panel h4 { margin: 0 0 8px; font-size: 14px; }
.fb-panel .fb-tip { font-size: 12px; color: var(--text-3); margin: 0 0 10px; line-height: 1.5; }
.fb-panel textarea { width: 100%; height: 80px; resize: none; }
.fb-list { margin-top: 10px; max-height: 160px; overflow-y: auto; border-top: 1px dashed var(--border); padding-top: 8px; }
.fb-item { font-size: 12.5px; color: var(--text-2); padding: 6px 0; border-bottom: 1px dashed #f0f0f0; }
.fb-item .t { color: var(--text-3); font-size: 11px; }

/* ===================== 首页（双模式入口·v2 品牌化） ===================== */
.landing { padding: 48px 24px 80px; max-width: 1120px; margin: 0 auto; }
.landing-hero {
  text-align: center; padding: 36px 0 30px;
  border-bottom: 1px solid var(--border); margin-bottom: 36px;
}
.landing-hero .lh-tag {
  display: inline-block; padding: 5px 14px; border-radius: 18px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 12.5px; font-weight: 600; margin-bottom: 16px;
}
.landing-hero h1 {
  font-size: 36px; margin: 0 0 12px; letter-spacing: -.5px;
  background: linear-gradient(135deg, #1677ff 0%, #6e45e2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing-hero .lead {
  color: var(--text-2); font-size: 16px; line-height: 1.8;
  max-width: 720px; margin: 0 auto 22px;
}
.landing-hero .lh-stats {
  display: inline-flex; gap: 36px;
  padding-top: 18px; border-top: 1px dashed var(--border);
}
.landing-hero .lh-stats .kv .v { font-size: 22px; font-weight: 700; color: var(--text); }
.landing-hero .lh-stats .kv .l { font-size: 12px; color: var(--text-3); }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mode-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 30px 28px; box-shadow: var(--shadow);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  position: relative; overflow: hidden;
}
.mode-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mode-card .mc-ico {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.mode-card .mc-ico svg { width: 30px; height: 30px; }
.mode-card.cust .mc-ico { background: var(--primary-soft); color: var(--primary); }
.mode-card.inv .mc-ico { background: #fff1e8; color: var(--warning); }
.mode-card h3 { font-size: 20px; margin-bottom: 8px; }
.mode-card p { font-size: 14px; color: var(--text-2); margin-bottom: 18px; min-height: 44px; line-height: 1.6; }
.mode-card .mc-features {
  margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; color: var(--text-2);
}
.mode-card .mc-features li {
  padding: 5px 0;
  display: flex; align-items: center; gap: 8px;
}
.mode-card .mc-features li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary); flex: 0 0 5px;
}
.mode-card.inv .mc-features li::before { background: var(--warning); }
.mode-card .mc-go {
  color: var(--primary); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.mode-card.inv .mc-go { color: var(--warning); }
.mode-card .mc-go::after {
  content: '→'; font-size: 16px; transition: transform .15s;
}
.mode-card:hover .mc-go::after { transform: translateX(4px); }

.landing-bottom {
  margin-top: 50px; padding-top: 30px; border-top: 1px dashed var(--border);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.landing-bottom .lb-item .lb-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary-softer); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.landing-bottom .lb-item h4 { font-size: 14.5px; margin: 0 0 6px; }
.landing-bottom .lb-item p { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

/* ===================== 登录页（v2·去 banner·底部醒目提示） ===================== */
.login-page { min-height: 100vh; display: flex; background: var(--bg); }
.login-aside {
  flex: 0 0 480px; color: #fff; padding: 48px 48px 100px;
  display: flex; flex-direction: column; justify-content: flex-start;
  background: linear-gradient(135deg, #1677ff 0%, #2a8cff 50%, #6e45e2 100%);
  position: relative; overflow: hidden;
}
.login-aside::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.login-aside::after {
  content: ''; position: absolute; bottom: -160px; left: -160px;
  width: 440px; height: 440px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.login-aside > * { position: relative; z-index: 1; }
.login-aside .la-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 76px; }
.login-aside .la-logo .lg {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-size: 16px;
}
.login-aside .la-logo .lt { display: inline-block; min-width: 130px; }
.login-aside .la-logo .lt .t { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.login-aside .la-logo .lt .s { color: #d2e3ff; font-size: 10.8px; font-weight: 500; line-height: 1.4; margin-top: 4px; letter-spacing: 0; white-space: nowrap; }
.login-aside h2 { color: #fff; font-size: 32px; margin-bottom: 14px; line-height: 1.3; }
.login-aside p { color: #d6e8ff; font-size: 15px; line-height: 1.7; max-width: 360px; }
.login-aside .la-points { margin-top: 36px; }
.login-aside .la-points div {
  padding: 11px 0; border-top: 1px solid rgba(255,255,255,.18);
  color: #eaf3ff; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.login-aside .la-points div:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.login-aside .la-points .lp-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.2); flex: 0 0 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.login-aside .la-foot {
  position: absolute; left: 48px; right: 48px; bottom: 28px;
}
.login-aside .la-foot .lf-name { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .3px; }
.login-main {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px;
}
.login-box { width: 400px; max-width: 100%; }
.login-box h2 { font-size: 24px; margin-bottom: 8px; }
.login-box .lb-sub { color: var(--text-3); font-size: 13px; margin-bottom: 28px; }
.login-box .btn-primary { width: 100%; justify-content: center; padding: 11px; font-size: 15px; }
.login-box .lb-modes { margin-top: 18px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.login-disclaimer {
  margin-top: 24px; padding: 12px 16px;
  background: #fff8e1; border: 1px solid #ffe9a8; border-radius: 8px;
  color: #8a6d00; font-size: 12.5px; text-align: center;
}

/* ===================== 内页右下角合规指纹（极小灰字） ===================== */
.fp {
  position: fixed; right: 12px; bottom: 8px; z-index: 70;
  font-size: 11px; color: #b8bcc4; letter-spacing: .5px;
  font-family: 'DIN', sans-serif;
  pointer-events: none;
  user-select: none;
}

/* ===================== 投资人页 ===================== */
.inv-hero { background: linear-gradient(135deg, #1677ff, #2a8cff); color: #fff; border-radius: var(--radius-lg); padding: 34px 30px; margin-bottom: 22px; }
.inv-hero h1 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.inv-hero p { color: #e6f0ff; font-size: 15px; margin: 0; }
.arch-layer { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fff; }
.arch-layer .al-title { font-weight: 600; font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.arch-layer .al-items { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-layer .al-items span { background: var(--primary-softer); color: var(--primary); padding: 5px 12px; border-radius: 16px; font-size: 13px; }
.arch-arrow { text-align: center; color: var(--text-3); font-size: 22px; padding: 6px 0; }
.iso-note { background: var(--warning-soft); border: 1px solid #ffe0b0; border-radius: var(--radius); padding: 14px 16px; color: #8a5a00; font-size: 13.5px; margin-top: 16px; }

.va-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fff; box-shadow: var(--shadow); }
.va-card .va-name { font-weight: 600; font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.va-card .va-idx { width: 24px; height: 24px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.va-card .va-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }

.tier-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: #fff; }
.tier-card .tier { font-weight: 600; font-size: 16px; color: var(--text); }
.tier-card .phase { float: right; font-size: 12px; color: var(--primary); background: var(--primary-soft); padding: 2px 10px; border-radius: 10px; }
.tier-card p { font-size: 13px; margin-top: 10px; }

.road-card { border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.road-card .ph { font-size: 13px; font-weight: 700; color: var(--primary); }
.road-card h3 { font-size: 17px; margin: 6px 0 12px; }
.road-card ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; line-height: 1.9; }

/* 相关页面链接 */
.related { margin-top: 18px; padding: 14px 16px; background: var(--primary-softer); border: 1px dashed #bcdcff; border-radius: var(--radius); }
.related .rl { font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 8px; }
.related a { display: inline-block; margin: 0 10px 6px 0; font-size: 13px; }

/* 进度条 */
.progress { height: 8px; background: #eef0f3; border-radius: 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--primary); width: 0; transition: width .2s; }

/* 加载态 */
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

.empty { text-align: center; color: var(--text-3); padding: 40px 0; }

.muted { color: var(--text-3); }
.right { text-align: right; }
.center { text-align: center; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb0 { margin-bottom: 0; }

/* 滑动开关（全局·从 14-settings 提升） */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background: #c9cdd4; border-radius: 12px; transition: .2s; }
.switch .slider:before { content: ""; position: absolute; height: 20px; width: 20px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: #00b42a; }
.switch input:checked + .slider:before { transform: translateX(20px); }
/* 弹窗表单内联开关不被 .form-row label 的 display:block 影响 */
.form-row .switch { display: inline-block; }

/* ===================== 列表筛选下拉 + 分页器（发票页 / 银行流水页共用） ===================== */
/* 筛选下拉：原生 select 分组（optgroup），置于标题右侧按钮之后 */
.filter-select {
  height: 32px; padding: 0 10px; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 6px;
  background: #fff; font-size: 13px; font-weight: 500; color: var(--text-2);
  cursor: pointer; margin-left: 8px;
}
.filter-select:hover { border-color: #1677ff; }
.filter-select:focus { outline: none; border-color: #1677ff; }
/* 标题行右侧按钮组容器（按钮 + 搜索框 + 筛选下拉） */
.sec-h-right { display: inline-flex; align-items: center; gap: 8px; }
.inv-head-actions { display: inline-flex; align-items: center; gap: 8px; }
/* 表格底部分页器（全站统一标准，外观对齐「发票风控页」；由 assets/js/app.js 的 DemoUI.bindTablePager 渲染） */
.tbl-pager { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 4px; font-size:13px; color:#4e5969; }
.tbl-pager .pp-wrap { display:inline-flex; align-items:center; gap:6px; }
.tbl-pager .pp-select { appearance:none; -webkit-appearance:none; padding:5px 30px 5px 10px; background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386909c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 10px center; border:1px solid #e5e6eb; border-radius:6px; font-size:13px; color:#4e5969; cursor:pointer; }
.tbl-pager .pp-info { color:#4e5969; }
.tbl-pager .pg-btn { padding:5px 12px; border:1px solid #e5e6eb; border-radius:6px; background:#fff; cursor:pointer; font-size:13px; color:#4e5969; }
.tbl-pager .pg-btn:hover:not(:disabled) { border-color:#1677ff; color:#1677ff; }
.tbl-pager .pg-btn:disabled { color:#bbb; cursor:not-allowed; }

/* 标题行：标题居左、右侧按钮组（含筛选下拉）居右，单行对齐 */
.sec-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bnk-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
