/* 开海控股管理平台 - 工业实用风 */
:root {
  --ink: #1a1d21;
  --steel-900: #16324f;
  --steel-700: #1d4e79;
  --steel-600: #2e6da4;
  --steel-100: #dbe6f0;
  --amber: #b8860b;
  --amber-soft: #f5e9cf;
  --bg: #f4f2ed;
  --panel: #ffffff;
  --line: #e2ded4;
  --muted: #6b6f76;
  --ok: #1d7a46;
  --ok-soft: #e3f2e9;
  --warn: #b8860b;
  --danger: #b0342e;
  --danger-soft: #f8e4e2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  /* v1094（元海 10/09）：更圆润、更细的黑体方向——苹方/思源黑体优先（圆润现代），微软雅黑 UI 兜底；
     全部系统本地字体，零外部加载。若本机已装思源黑体（Noto Sans SC）会自动更圆润，未装则回退雅黑呈细体观感 */
  font-family: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh;
  background: var(--steel-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* 装饰圆环（深蓝背景上的两条金色光晕圆） */
.login-wrap::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 420px;
  height: 420px;
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(255,255,255,0.05), 0 0 0 1px rgba(184,134,11,0.35), 0 0 70px rgba(184,134,11,0.12);
  z-index: 0;
}
.login-wrap::before {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 260px;
  height: 260px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255,255,255,0.08);
  z-index: 0;
}
/* v353：左右布局（左侧品牌内容 + 右侧浮白卡） */
.login-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  min-height: 100vh;
  padding: 60px 80px;
  align-items: center;
}
.login-brand-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.login-logo img {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto 14px;  /* v355：logo 离主标 14px（更紧凑）*/
}
.login-card-floating {
  width: 420px;
  background: #fff;
  border-radius: 16px;  /* v355：14→16，更柔和 */
  padding: 44px 40px;  /* v355：40×36→44×40，更舒展 */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  color: var(--steel-900);
  border-top: 3px solid var(--amber);  /* v356：顶部金色线，点亮白色卡片 */
}
.brand-mark {
  font-size: 16px;
  letter-spacing: 2px;
  color: #d4a85a;  /* v355：更亮的金色，沉稳但更醒目 */
  font-weight: 600;
}
.login-logo img {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 30, 62, 0.25);
  display: block;
  margin: 0 auto 20px;
}
.brand-sub { color: #a9c0d6; margin-top: 8px; font-size: 15px; letter-spacing: 1px; }  /* 大标题已删，定位语上移紧跟品牌名 */
.brand-modules {
  display: flex;
  gap: 12px;  /* v355：10→12 */
  margin-top: 24px;
  flex-wrap: wrap;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;  /* v355：6×14→7×16 */
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  font-size: 13px;
  color: #cbd8e4;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}
.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  box-shadow: 0 0 6px rgba(184,134,11,0.6);
}
/* 北极星：登录页左上角，夜空指路意境（纯装饰，无文字） */
.polaris-corner {
  position: absolute;
  top: 40px;
  left: 50px;
  width: 104px;
  height: 128px;
  z-index: 1;
  pointer-events: none;
}
.polaris-corner .polaris-star {
  width: 104px;
  height: 104px;
  display: block;
  filter: drop-shadow(0 0 16px rgba(212,168,90,0.6));
  animation: polarisTwinkle 3.2s ease-in-out infinite;
}
.polaris-dot {
  position: absolute;
  border-radius: 50%;
  background: #e8d5a8;
  opacity: 0.55;
}
.polaris-dot.pd1 { width: 4px; height: 4px; top: 114px; left: 24px; animation: polarisTwinkle 2.8s ease-in-out 0.6s infinite; }
.polaris-dot.pd2 { width: 3px; height: 3px; top: 82px; left: 72px; opacity: 0.4; animation: polarisTwinkle 3.6s ease-in-out 1.4s infinite; }
.polaris-dot.pd3 { width: 3px; height: 3px; top: 124px; left: 58px; opacity: 0.35; animation: polarisTwinkle 3.2s ease-in-out 2.1s infinite; }
.polaris-dot.pd4 { width: 3px; height: 3px; top: 100px; left: 92px; opacity: 0.3; animation: polarisTwinkle 4.2s ease-in-out 2.8s infinite; }
@keyframes polarisTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.28); }
}
@media (prefers-reduced-motion: reduce) {
  .polaris-corner .polaris-star, .polaris-dot { animation: none; }
}
/* 夜晚的大海：登录页底部装饰带（海浪 + 开海之船，轻微动） */
.sea-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.sea-band svg {
  width: 100%;
  height: 100%;
  display: block;
}
.sea-wave { animation: seaSway 7s ease-in-out infinite; }
.sea-wave1 { animation-duration: 8s; }
.sea-wave2 { animation-duration: 6.5s; animation-delay: 0.6s; }
.sea-wave3 { animation-duration: 5.5s; animation-delay: 1.1s; }
@keyframes seaSway {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.sea-boat {
  animation: boatBob 5s ease-in-out infinite;
  transform-origin: 62px 72px;
}
@keyframes boatBob {
  0%, 100% { transform: translate(290px, 4px) rotate(0deg); }
  50% { transform: translate(290px, 4px) rotate(-1.8deg) translateY(-2px); }
}
.sea-glint, .sea-glow { animation: glintPulse 5s ease-in-out infinite; }
.sea-glow { animation-duration: 6s; }
@keyframes glintPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
  .sea-wave, .sea-boat, .sea-glint, .sea-glow { animation: none; }
}
.brand-slogan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 40px 0 0;  /* v355：28→40，离 chip 远一点 */
  position: relative;
  z-index: 1;
}
.slogan-text {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 44px;  /* v355：40→44 */
  font-weight: 600;
  letter-spacing: 8px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.22);
}
.slogan-divider {
  width: 1px;
  height: 44px;  /* v355：42→44 */
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5), transparent);
}
.slogan-sub {
  font-size: 11px;
  letter-spacing: 4px;
  color: #7d96ac;
}
.brand-foot { color: #7d96ac; font-size: 12px; }
.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px;
  background: linear-gradient(135deg, #f4f2ed 0%, #eae6dc 100%);
}
/* v342：右侧三段式（welcome / login-card / footer）均分空间 */
.login-welcome { text-align: center; }
.welcome-title { font-size: 26px; font-weight: 600; color: var(--steel-900); margin-bottom: 8px; letter-spacing: 1px; }
.welcome-sub { font-size: 13px; color: var(--muted); letter-spacing: 2px; }
.login-footer { text-align: center; }
.footer-slogan { font-size: 15px; color: var(--steel-700); letter-spacing: 6px; margin-bottom: 8px; font-weight: 500; }
.footer-copy { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.login-logo { margin-bottom: 48px; }
.login-logo img { width: 120px; height: auto; border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 30, 62, 0.18); display: block; }
/* v341：logo 移到品牌区主标右侧（横向排列） */
.brand-head-row { display: flex; align-items: center; gap: 28px; }
.login-logo-inline { margin-bottom: 0; flex-shrink: 0; }
.login-logo-inline img { width: 132px; box-shadow: 0 6px 18px rgba(0, 30, 62, 0.18); }
/* v347：logo 移到主标正上方居中 */
.login-logo-topright { align-self: center; margin-bottom: 20px; }
/* v533：深蓝 LOGO 嵌深蓝背景会糊掉，给它包个白底"印章框"浮起来——边缘可见、与右侧白卡呼应 */
.login-logo-topright {
  background: #fff;
  padding: 10px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(184, 134, 11, 0.28), 0 2px 6px rgba(0, 30, 62, 0.15);
  border: 1px solid rgba(212, 168, 90, 0.35);
}
.login-logo-topright img { width: 96px; height: 96px; border-radius: 12px; display: block; box-shadow: none; }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 14px; padding: 34px 30px 30px; box-shadow: 0 12px 40px rgba(0, 30, 62, 0.1), 0 2px 8px rgba(0, 30, 62, 0.04); }
/* v353：嵌套在 .login-card-floating 内的 .login-card 取消自带的背景/阴影/圆角/最大宽度（由外层承担） */
.login-card-floating .login-card { background: transparent; padding: 0; box-shadow: none; border-radius: 0; max-width: none; width: auto; }
.login-card h2 { font-size: 26px; font-weight: 600; letter-spacing: 1px; border-left: 4px solid var(--amber); padding-left: 12px; }  /* v356：标题左侧金色竖条 */
.login-card .tip { color: var(--muted); margin: 8px 0 26px; font-size: 13px; }
/* v356：登录卡输入框聚焦金色 + 登录按钮金色渐变 */
.login-card .field input:focus, .login-card .field select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.12); }
.login-card .btn-primary { background: linear-gradient(135deg, #B8860B, #D4A85A); color: #fff; }
.login-card .btn-ghost { border-color: var(--amber); color: #B8860B; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--steel-600); }
.btn {
  display: inline-block;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; background: var(--line, #ccc); color: var(--muted); }
.btn:disabled:hover, .btn[disabled]:hover { opacity: 0.45; }
.btn-primary { background: linear-gradient(180deg, #2a6bd8, #1e5fd0); color: #fff; box-shadow: 0 1px 2px rgba(30, 95, 208, 0.22); }
.btn-primary:hover { opacity: 1; background: linear-gradient(180deg, #245fc4, #1a53b8); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.login-demo { margin-top: 24px; padding: 14px; background: var(--amber-soft); border-radius: 8px; font-size: 12px; color: #6b4e0a; }
.login-demo b { display: block; margin-bottom: 6px; }
.login-switch { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.login-switch a { color: var(--steel-700); text-decoration: none; font-weight: 500; }
.login-switch a:hover { text-decoration: underline; }

/* 多选框组 */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; cursor: pointer; background: #fff;
}
.check-item:hover { border-color: var(--steel-600); }
.check-item input { accent-color: var(--steel-900); }

/* ---------- 主框架 ---------- */
/* v1093（元海 10/09）：侧栏字号再放大一档，栅格 252→282px 防换行 */
.app { display: none; min-height: 100vh; grid-template-columns: 282px 1fr; }
.app.active { display: grid; }
.sidebar {
  background: var(--steel-900);
  color: #cbd8e4;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}
.sidebar .logo {
  padding: 0 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar .logo .t1 { color: #fff; font-weight: 400; font-size: 20px; letter-spacing: 1px; }
.sidebar .logo .t2 { font-size: 14px; color: #7d96ac; margin-top: 2px; }
.nav { flex: 1; padding: 14px 0; overflow-y: auto; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  cursor: pointer;
  color: #cbd8e4;
  font-size: 18px;
  letter-spacing: 0.2px;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,0.06); }
.nav-item.active { background: rgba(255,255,255,0.10); color: #fff; border-left-color: var(--amber); }
.nav-item i { width: 22px; text-align: center; color: #8fb0cc; }
.nav-item.active i { color: var(--amber-soft); }

/* 组织架构树 */
.nav-section {
  padding: 14px 22px 6px;
  font-size: 13px;
  color: #7d96ac;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-org-parent { font-weight: 400; color: #dce6ef; }
.nav-org-parent .org-arrow { width: 14px; font-size: 13px; color: #7d96ac; }
/* v486：6 家公司唯一视觉标记（左侧色条 + 圆形首字母徽标 + 业务图标 + 业务标签）*/
.nav-org-company { padding: 7px 8px 7px 6px !important; margin: 2px 8px !important; border-radius: 0 6px 6px 0 !important; transition: background 0.15s; display: flex !important; align-items: center !important; gap: 7px; }
.nav-org-company:hover { background: rgba(255,255,255,0.08) !important; }
.nav-org-company.active { background: rgba(255,255,255,0.12) !important; color: #fff; }
.nav-org-company .org-avatar { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 30px; padding: 0 7px; border-radius: 5px; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; box-shadow: 0 1px 2px rgba(0,0,0,0.15); flex-shrink: 0; }
.nav-org-company .org-icon { width: 20px !important; font-size: 16px; color: #8fb0cc; flex-shrink: 0; }
.nav-org-company .org-name { display: inline-flex; align-items: center; gap: 6px; flex: 1; font-size: 17px; font-weight: 400; }
.nav-org-company .org-tag { font-size: 12px; padding: 1px 6px; border-radius: 3px; background: rgba(255,255,255,0.12); color: #d0dce8; font-weight: 500; letter-spacing: 0.3px; }
.nav-org {
  padding-left: 56px;
  font-size: 17px;
  color: #a9c0d6;
}
.nav-org:hover { color: #fff; }
.nav-org.active { color: #fff; background: rgba(255,255,255,0.08); }
.sidebar .user-box {
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.user-box .u-name { color: #fff; font-size: 18px; }
.user-box .u-scope { font-size: 14px; color: #8fb0cc; margin: 4px 0 10px; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .page-title { font-size: 18px; font-weight: 500; color: var(--steel-900); }
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--steel-900);
  cursor: pointer;
  padding: 4px 8px;
  margin-right: 6px;
}
.topbar .scope-tag {
  font-size: 12px;
  background: var(--steel-100);
  color: var(--steel-900);
  padding: 4px 12px;
  border-radius: 20px;
}
.content { padding: 24px 28px; overflow-y: auto; }

/* ============ 企业文化标语条 ============ */
.culture-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 28px;
  background: linear-gradient(90deg, rgba(184,134,11,0.10), rgba(22,50,79,0.04) 60%, transparent);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: #46586a;
  min-height: 20px;
}
.cb-icon { color: var(--amber); opacity: 0.65; font-size: 11px; flex-shrink: 0; }
.cb-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--amber);
  border: 1px solid rgba(184,134,11,0.35);
  border-radius: 4px;
  padding: 1px 7px;
}
.cb-text {
  transition: opacity .4s ease;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cb-idx { margin-left: auto; font-size: 11px; color: #9aa8b5; flex-shrink: 0; }
@media (max-width: 768px) { .cb-idx, .cb-tag { display: none; } }

/* 部门视图头部 */
.org-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.org-view-title { font-size: 17px; font-weight: 600; }
.org-view-title i { color: var(--steel-600); margin-right: 8px; }

/* 财务管理部页面顶部快捷入口（5 个锚点跳转按钮） */
.org-quick-jumps { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.quick-jump {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border: 1px solid var(--steel-100);
  background: var(--steel-100); color: var(--steel-900);
  border-radius: 16px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.15s ease;
  white-space: nowrap;
}
.quick-jump:hover { background: var(--steel-200); transform: translateY(-1px); box-shadow: 0 2px 6px rgba(22,50,79,0.12); }
.quick-jump i { font-size: 11px; color: var(--steel-600); }

/* ---------- 卡片与统计 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  position: relative;
}.stat-card .label { font-size: 12px; color: var(--muted); }
.stat-card .value { font-size: 26px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-card .unit { font-size: 13px; color: var(--muted); margin-left: 2px; }
.stat-card .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 10px 0 0 10px; }

/* 集团总览：合并式指标条（一个框、竖线分界，简洁仪表盘风格） */
.metric-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 0;
  display: flex;
  align-items: stretch;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(22,50,79,0.04);
}
.metric-cell {
  flex: 1;
  padding: 0 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  justify-content: center;
}
.metric-cell + .metric-cell { border-left: 1px solid var(--line); }
.metric-cell .label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.metric-cell .value {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.metric-cell .value .unit {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}
.metric-cell.clickable { cursor: pointer; transition: background 0.12s; }
.metric-cell.clickable:hover { background: #f8f6f0; }
.metric-cell .edit-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  opacity: 0.5;
  transition: opacity 0.12s;
}
.metric-cell.clickable:hover .edit-icon { opacity: 1; color: var(--amber); }
.metric-cell .value.is-empty { color: var(--muted); font-weight: 500; font-size: 22px; }
.metric-cell .value.is-warn { color: var(--amber); }
/* v1098（元海 10/10）：总览核心指标「希望绿 + 金边」——数字用品牌绿（希望/增长），下缀琥珀金渐变饰线 + 微光晕 */
.metric-cell .value.hope-gold {
  color: var(--ok);
  text-shadow: 0 1px 0 rgba(184, 134, 11, 0.18);
  padding-bottom: 8px;
  position: relative;
}
.metric-cell .value.hope-gold::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #b8860b, #f0d488);
}



/* 集团总览滚动语录横幅 */
.slogan-banner {
  position: relative;
  background: linear-gradient(120deg, #16324f 0%, #1d4e79 55%, #2e6da4 100%);
  border-radius: 12px;
  padding: 26px 48px 22px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(22, 50, 79, 0.16);
}
.slogan-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
}
.slogan-quote {
  position: absolute;
  left: 22px;
  top: 18px;
  font-size: 26px;
  color: rgba(184, 134, 11, 0.55);
}
.slogan-text {
  font-size: 17px;
  line-height: 1.7;
  color: #f5f1e8;
  letter-spacing: 1px;
  font-weight: 500;
  min-height: 2.6em;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.slogan-dots {
  margin-top: 14px;
  display: flex;
  gap: 6px;
}
.slogan-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  transition: all 0.3s ease;
}
.slogan-dot.active {
  background: var(--amber);
  box-shadow: 0 0 6px rgba(184,134,11,0.7);
  transform: scale(1.35);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}
/* v965：项目详情顶部左右布局——左项目信息 / 右管理思路概述 */
.ov-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 920px) {
  .ov-two-col { grid-template-columns: 1fr !important; }
}
/* v966：项目详情 预付款 | 工程款付款周期 平行两栏 */
.ov-pay-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr);
  gap: 14px 20px;
  align-items: start;
  font-size: 13px;
  margin-top: 14px;
}
@media (max-width: 768px) {
  .ov-pay-row { grid-template-columns: 1fr; }
}
.panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-head h3 { font-size: 15px; font-weight: 500; color: var(--steel-900); }  /* v1095（元海 10/09）：标题降字重 600→500 + 近黑→深钢蓝，缓解"又粗又黑刺眼" */
.panel-body { padding: 18px; }

/* ---------- 开工前事项清单 v529 重构：分组卡片化 ---------- */
.checklist-wrap { font-size: 13px; }
.cl-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc;
  gap: 12px; flex-wrap: wrap;
}
.cl-topbar-left { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 240px; }
.cl-topbar-right { display: flex; align-items: center; gap: 8px; }
.cl-progress-info {
  font-size: 14px; color: var(--steel-900); font-weight: 500; white-space: nowrap;
}
.cl-progress-bar {
  flex: 1 1 240px; height: 8px; background: var(--line-soft); border-radius: 4px;
  overflow: hidden; min-width: 200px; max-width: 480px;
}
.cl-progress-fill { height: 100%; background: var(--steel-900); transition: width 0.3s; }
.cl-summary-tips { font-size: 12px; color: var(--muted); margin-right: 10px; }

.cl-group { display: flex; align-items: flex-start; gap: 12px; padding: 8px 12px; }
.cl-group + .cl-group { border-top: 1px dashed var(--line-soft); }
.cl-group-head {
  flex: 0 0 auto; width: 56px;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  margin-bottom: 0; padding: 2px 0;
  line-height: 1.2;
}
/* v975：标题竖排左侧窄栏——head 竖排 + 卡片横向，合并成一行 */
.cl-group-head .btn-sm { padding: 1px 6px; font-size: 11px; line-height: 1.3; }
.cl-group-head h4 {
  font-size: 12px; font-weight: 600; color: #1e5fd0;
  display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0;
}
.cl-group-head h4 > i { font-size: 12px; color: #1e5fd0; }
.cl-vtitle { writing-mode: vertical-rl; letter-spacing: 1px; line-height: 1.25; }
.cl-group-count {
  font-size: 10px; font-weight: 500; padding: 0 6px;
  border-radius: 9px; background: #e8f5ed; color: #1d7a46;
  white-space: nowrap; line-height: 1.5;
}
.cl-group-count.partial { background: #fff1d6; color: #b8800a; }
.cl-group-count.cl-empty { background: #fee; color: #b0342e; }

.cl-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: start;
  flex: 1 1 auto;
  min-width: 0;
}
.cl-cards-row .cl-card { margin-bottom: 0; }
.cl-cards-row.col2 { grid-template-columns: repeat(2, 1fr); }
.cl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.cl-card:last-child { margin-bottom: 0; }
.cl-card-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px;
}
.cl-card-row + .cl-card-row { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-soft); }
.cl-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--steel-100); color: var(--steel-900);
  font-weight: 600; font-size: 13px;
  flex-shrink: 0;
}
.cl-title {
  font-weight: 500; color: var(--steel-900);
  min-width: 140px;
}
.cl-state { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; }
.cl-action { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.cl-input {
  padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px;
  font-size: 13px; outline: none; background: #fff;
}
.cl-input:focus { border-color: var(--steel-600); box-shadow: 0 0 0 2px rgba(24,95,165,.15); }
.cl-input-mini { width: 80px; }
.cl-input-num { width: 130px; }
.cl-input-text { width: 200px; }
.cl-input-text-wide { width: 280px; max-width: 100%; }
.cl-cn-display { font-size: 12px; color: var(--muted); margin-left: 6px; }
.cl-field-label { color: var(--muted); font-size: 12px; }
.cl-helper-text { font-size: 11px; color: var(--muted); margin-left: 4px; }
.cl-divider { color: var(--line); margin: 0 4px; user-select: none; }
.cl-rate-wrap { display: inline-flex; align-items: center; gap: 4px; background: #fafbfc; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line-soft); }
.cl-rate-wrap input { width: 60px; border: none; background: transparent; padding: 4px 0; font-size: 13px; text-align: center; }
.cl-rate-wrap input:focus { outline: none; }
.cl-rate-suffix { font-size: 12px; color: var(--muted); }

.cl-list-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; margin-top: 8px; }
.cl-list-card {
  background: #f9fafb; border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px; font-size: 12px; display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.cl-list-card-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-list-card-actions { position: absolute; top: 8px; right: 8px; }

.cl-empty-hint {
  padding: 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 6px; font-size: 13px;
}

@media (max-width: 768px) {
  .cl-topbar-left { gap: 8px; }
  .cl-progress-bar { min-width: 140px; }
  .cl-title { min-width: auto; }
  .cl-cards-row { grid-template-columns: 1fr; }
  .cl-group { flex-direction: column; }
  .cl-group-head { flex-direction: row; width: auto; align-items: center; gap: 8px; padding: 0; }
  .cl-group-head h4 { flex-direction: row; gap: 6px; }
  .cl-vtitle { writing-mode: horizontal-tb; letter-spacing: normal; }
}

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: var(--muted); font-weight: 500; background: #faf9f6; }
tbody tr:hover { background: #faf9f6; }
/* 表格列组分界线（如全职/兼职之间） */
.hr-split { border-left: 2px solid var(--steel-300, #9db4c8) !important; } /* v291 保留全职/兼职之间竖线 */
.money { font-variant-numeric: tabular-nums; }
.mono { font-family: "SFMono-Regular", Consolas, "Courier New", monospace; font-variant-numeric: tabular-nums; }
.accounts-total {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--steel-100);
  border-radius: 8px;
  font-size: 13px;
  color: var(--steel-900);
}
.accounts-total b { color: var(--steel-700); font-size: 15px; }
.funds-date {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
}

/* 集团部门入口卡片 */
.group-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.group-entry {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  cursor: pointer;
  transition: all 0.15s;
}
.group-entry:hover { border-color: var(--steel-600); box-shadow: 0 4px 14px rgba(22,50,79,0.10); }
.group-entry i {
  font-size: 26px;
  color: var(--steel-600);
  margin-bottom: 12px;
}
.group-entry .t { font-size: 16px; font-weight: 600; color: var(--ink); }
.group-entry .s { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 外部平台跳转入口（工作室·成本测算分析） */
.ext-platform-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.15s;
}
.ext-platform-entry:hover { border-color: var(--amber); box-shadow: 0 4px 14px rgba(184,134,11,0.12); background: #fffdf6; }
.ext-platform-entry > i {
  font-size: 26px;
  color: var(--amber);
}

/* 方案编制（工作室·按类别归档） */
.proposal-cat-block { margin-bottom: 20px; }
.proposal-cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--steel-900);
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.proposal-cat-head i { color: var(--amber); }
.proposal-cat-count {
  display: inline-block;
  background: var(--steel-100);
  color: var(--steel-900);
  font-size: 12px;
  border-radius: 20px;
  padding: 0 8px;
}

/* 表格汇总脚注 */
tfoot td { background: #faf9f6; font-weight: 500; border-top: 2px solid var(--line); }
.funds-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.won-summary {
  margin: 0 0 20px;
  padding: 12px 16px;
  background: var(--steel-100);
  border-radius: 8px;
  font-size: 13px;
  color: var(--steel-900);
}
.won-summary b { font-size: 15px; }
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.map-cell {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #faf9f6;
}
.map-cell select { width: 100%; margin-top: 4px; }
.won-pending-tip {
  margin: 0 0 20px;
  padding: 10px 16px;
  background: var(--amber-soft);
  border-radius: 8px;
  font-size: 13px;
  color: #6b4e0a;
}

/* 待核定提醒条（集团总览顶部） */
.todo-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 18px;
  background: linear-gradient(90deg, #f5e9cf, #fbf3df);
  border: 1px solid var(--amber);
  border-left: 5px solid var(--amber);
  border-radius: 10px;
  font-size: 15px;
  color: #6b4e0a;
  cursor: pointer;
  transition: box-shadow .15s;
}
.todo-alert:hover { box-shadow: 0 4px 14px rgba(184,134,11,.18); }
.todo-alert i:first-child { color: var(--amber); font-size: 18px; }
.todo-alert b { font-size: 18px; color: #8a6104; }
.todo-alert i:last-child { margin-left: auto; color: var(--amber); }

/* 提醒中心卡片 */
.reminder-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: box-shadow .15s;
}
.reminder-card:hover { box-shadow: 0 4px 14px rgba(22,50,79,.12); }
.reminder-card .rc-icon { font-size: 22px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 10px; }
.reminder-card .rc-main { flex: 1; }
.reminder-card .rc-title { font-size: 15px; font-weight: 600; }
.reminder-card .rc-count { display: inline-block; background: var(--danger); color: #fff; border-radius: 20px; padding: 0 9px; font-size: 12px; margin-left: 6px; }
.reminder-card .rc-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 财务分类汇总饼图 */
.cat-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cat-col h4 { font-size: 14px; margin-bottom: 12px; }
.pie-chart { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 14px; flex-shrink: 0; }
.pie-legend { font-size: 13px; }
.pie-legend-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.pie-legend-item .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pie-legend-item .cat { flex: 1; color: var(--ink); }
.pie-legend-item b { color: var(--steel-900); }
.pie-legend-item .pct { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .cat-summary { grid-template-columns: 1fr; } }

/* 经营分析柱状图 */
.bar-chart { display: flex; align-items: flex-end; gap: 18px; padding: 10px 4px 0; min-height: 190px; }
.bar-col { display: flex; flex-direction: column; align-items: center; flex: 1; }
.bar-val { font-size: 13px; font-weight: 600; color: var(--steel-900); margin-bottom: 4px; }
.bar-val-amount { font-size: 15px; font-weight: 700; color: #b8860b; margin-bottom: 6px; letter-spacing: 0.3px; }
.bar-stack { display: flex; flex-direction: column; justify-content: flex-end; height: 150px; width: 100%; max-width: 56px; }
.bar-seg { width: 100%; border-radius: 4px 4px 0 0; transition: height .3s; }
.seg-won { background: var(--ok); }
.seg-lost { background: var(--danger); }
.bar-label { font-size: 12px; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.bar-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.bar-legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* 预览更多链接 */
.more-link { text-align: center; padding: 12px 0 4px; font-size: 13px; color: var(--steel-600); cursor: pointer; }
.more-link:hover { color: var(--steel-900); text-decoration: underline; }

/* ---------- 徽标 ---------- */
.tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--amber-soft); color: var(--warn); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.tag-gray { background: #eeece6; color: var(--muted); }
.tag-blue { background: var(--steel-100); color: var(--steel-900); }
.tag-amber { background: #fff1d6; color: #b8800a; }
.tag-teal { background: #d9f0ea; color: #166e5e; }

/* 基本户行：整行加粗 + 淡琥珀背景（公司账户一览表里凸显主账户） */
tr.account-primary { background: linear-gradient(90deg, #fff8e1 0%, #fffbf0 100%); font-weight: 600; }
tr.account-primary td { font-weight: 600; }
tr.account-primary td.money { color: #b8800a !important; }

/* ---------- 模态框 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(22,50,79,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-mask.show { display: flex; }
.modal {
  position: relative; /* v949：拖拽偏移（left/top）基于 flex 居中位置叠加 */
  background: #fff;
  border-radius: 12px;
  width: 92%;
  max-width: 520px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 24px;
}
.modal h3 { font-size: 17px; margin-bottom: 18px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.modal h3:active { cursor: grabbing; }
.modal h3::before { content: "⠿"; margin-right: 8px; color: #b6c2d1; font-size: 13px; vertical-align: 1px; }
body.modal-dragging { user-select: none !important; -webkit-user-select: none !important; }
body.modal-dragging * { cursor: grabbing !important; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.modal.modal-wide { max-width: 1100px; width: 96vw; }
.modal.modal-wide .charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* v1070：全站弹框右上角统一关闭按钮（openModal 注入） */
.modal-x {
  position: absolute; top: 10px; right: 12px; z-index: 6;
  width: 30px; height: 30px; padding: 0; border: none; border-radius: 8px;
  background: transparent; color: #8fa3b8; font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-x:hover { background: #eef2f7; color: #b0342e; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row .full { grid-column: 1 / -1; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; color: var(--muted); padding: 40px; }

/* ---------- 公司切换胶囊 ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
}
.chip.active { background: var(--steel-900); color: #fff; border-color: var(--steel-900); }

@media (max-width: 900px) {
  .login-content { grid-template-columns: 1fr; padding: 40px 24px; }
  .login-brand-content { display: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .25s ease;
    display: flex;
  }
  .app.nav-open .sidebar { transform: translateX(0); }
  .menu-btn { display: inline-block; }
  .topbar { padding: 12px 16px; }
  .content { padding: 16px 12px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .panel-head { flex-wrap: wrap; gap: 8px; }
  .panel-body { overflow-x: auto; }
  .modal { width: 94%; max-width: 480px; padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr !important; }
  .org-view-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  table { min-width: 640px; }
}

/* ---------- 集团总览顶部两栏 + 常用工具栏 ---------- */
.dash-top {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  margin-bottom: 20px;
  align-items: stretch;
}
.dash-top-slogan { min-width: 0; }
.dash-top-slogan .slogan-banner { margin-bottom: 0; height: 100%; box-sizing: border-box; }

.quick-tools {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 4px 16px rgba(22, 50, 79, 0.06);
  display: flex;
  flex-direction: column;
}
.quick-tools-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--steel-900);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.quick-tools-title i { color: var(--amber); }
.quick-tools-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.quick-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--steel-900);
  transition: background 0.18s ease, transform 0.18s ease;
}
.quick-tool:hover {
  background: #faf9f6;
  transform: translateX(2px);
}
.quick-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  overflow: hidden;
}
.quick-tool-icon svg { display: block; }
.quick-tool-name {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
}
.quick-tool-arrow {
  font-size: 11px;
  color: var(--muted);
}
.quick-tool:hover .quick-tool-arrow { color: var(--steel-700); }

/* 轻量 toast（协议唤起提示） */
.qt-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(22, 50, 79, 0.94);
  color: #fff;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: 88vw;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  text-align: center;
}
.qt-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  .dash-top { grid-template-columns: 1fr; }
}

/* v916：中标清单分析表卡（材料汇总/分部分项）details 折叠，箭头随开合旋转 */
details.bidfold > summary::-webkit-details-marker { display: none; }
details.bidfold > summary::marker { content: ''; }
details.bidfold[open] > summary .bid-chev { transform: rotate(90deg); }

/* v1008：admin 防误编辑——全局只读模式（默认只读，输入框禁用灰显；按钮由 store.js 写入口兜底拦截） */
body.khh-readonly input:not([type="checkbox"]):not([type="radio"]),
body.khh-readonly textarea,
body.khh-readonly select,
body.khh-readonly [contenteditable="true"] {
  pointer-events: none !important;
  background: #f3f4f6 !important;
  color: #9ca3af !important;
}
.ro-pill { font-size: 12px; padding: 4px 12px; border-radius: 20px; font-weight: 500; white-space: nowrap; }
.ro-pill.ro-readonly { background: #eef2f7; color: #5f6b7a; }
.ro-pill.ro-editing { background: #e1f5ee; color: #0f6e56; }
.ro-switch { font-size: 12px; cursor: pointer; white-space: nowrap; color: #155eef; }
