/* ===== 变量与基础 ===== */
:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #3b82f6;
  --brand-soft: #eff6ff;
  --brand-dark: #2563eb;
  --bad: #ef4444;
  --warn: #f59e0b;
  --good: #10b981;
  --sidebar: #111827;
  --sidebar-text: #d1d5db;
  --sidebar-active: #1f2937;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
input, select, textarea { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
a { color: var(--brand); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { width: 100%; border-collapse: collapse; }

/* ===== 登录页（动态线框地球 + 深海军蓝渐变 + 居中卡片） ===== */
.login-screen {
  min-height: 100vh; display: flex;
  background:
    radial-gradient(1100px 620px at 10% 8%, rgba(90,150,230,.08), transparent 52%),
    linear-gradient(152deg, #050d1c 0%, #081729 40%, #0b1f37 74%, #10263f 100%);
  position: relative; overflow: hidden;
}
.login-screen[hidden] { display: none; }
/* 顶部微光（极淡，仅给上半屏一点透气感） */
.login-screen::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 50% 6%, rgba(150,205,255,.10), transparent 42%);
  animation: deco-glow 11s ease-in-out infinite;
}
@keyframes deco-glow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
/* 四角压暗：聚焦中心登录卡（背景已提亮，压暗同步减弱） */
.login-screen::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 80% 72% at 50% 46%, transparent 44%, rgba(3,18,40,.40) 100%);
}

/* --- 全球业务装饰层 --- */
.login-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* AI 企业级背景图（国际知产资产管理）：WebP 优先、JPG 自动回退；缓慢漂移保持微动感 */
.deco-photo {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../img/login-bg.webp'), url('../img/login-bg.jpg');
  background-size: cover; background-position: 68% 46%; background-repeat: no-repeat;
  transform: scale(1.06);
  animation: deco-drift 52s ease-in-out infinite alternate;
}
/* 左缘轻压暗：保证登录卡区域对比度 */
.deco-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(102deg, rgba(8,22,44,.34) 0%, rgba(8,22,44,.10) 40%, rgba(8,22,44,0) 64%);
}
@keyframes deco-drift {
  from { transform: scale(1.06) translate3d(-1.1%, .5%, 0); }
  to   { transform: scale(1.13) translate3d(1%, -.7%, 0); }
}

/* 等距网格层改作「极光氛围层」：两团冷暖光斑缓慢漂移，给动态地球打底 */
.deco-grid {
  display: block; position: absolute; inset: -18%; z-index: 0;
  background:
    radial-gradient(620px 400px at 20% 32%, rgba(64,140,255,.16), transparent 62%),
    radial-gradient(560px 360px at 80% 64%, rgba(240,200,130,.11), transparent 62%);
  filter: blur(12px);
  animation: aurora-shift 17s ease-in-out infinite alternate;
}
@keyframes aurora-shift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); opacity: .78; }
  to   { transform: translate3d(2%, 1.6%, 0) scale(1.08); opacity: 1; }
}

/* ===== 动态背景（v74）：弃用静态 AI 底图，改用「自转地球 + 全球航线」SVG 动画 =====
   静态底图保留 DOM 与样式定义，便于随时回退。 */
.deco-photo { display: none; }
.deco-map {
  display: block; position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  animation: map-float 15s ease-in-out infinite;
}
@keyframes map-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
/* 自转大陆：等距圆柱两份无缝拼接（2000px 一循环），横向匀速滚动 */
.globe-spin { animation: globe-rotate 150s linear infinite; }
@keyframes globe-rotate {
  from { transform: translateX(0); }
  to   { transform: translateX(-2000px); }
}

/* 全球航线：知产业务枢纽间的光流（深圳→日内瓦/纽约/伦敦/东京/慕尼黑 示意） */
.deco-routes .route {
  stroke: rgba(255,232,178,.5); stroke-width: 1.6;
  stroke-dasharray: 7 15; stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(255,232,178,.5));
  animation: route-flow 2.8s linear infinite;
}
.deco-routes .route.r2 { stroke: rgba(160,214,255,.46); animation-duration: 3.4s; animation-delay: -1.2s; filter: drop-shadow(0 0 4px rgba(160,214,255,.45)); }
.deco-routes .route.r3 { stroke: rgba(255,232,178,.36); animation-duration: 4.1s; animation-delay: -2.3s; }
.deco-routes .route.r4 { stroke: rgba(160,214,255,.34); animation-duration: 3.7s; animation-delay: -0.7s; }
@keyframes route-flow { to { stroke-dashoffset: -44; } }
/* 枢纽光点：呼吸脉冲，示意全球网点 */
.deco-hubs .hub {
  transform-box: fill-box; transform-origin: center;
  animation: hub-pulse 2.6s ease-in-out infinite;
}
.deco-hubs .hub:nth-child(2n) { animation-delay: -0.9s; }
.deco-hubs .hub:nth-child(3n) { animation-delay: -1.7s; }
@keyframes hub-pulse {
  0%, 100% { opacity: .45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}
/* 航线掠过的流光点（SVG animateMotion 驱动，无需 CSS） */
.deco-tracer { filter: drop-shadow(0 0 5px rgba(255,240,200,.95)); }

/* 大气层辉光呼吸 */
.deco-atmo { animation: deco-breathe 7s ease-in-out infinite; }
@keyframes deco-breathe { 0%, 100% { opacity: .40; } 50% { opacity: .85; } }
/* 沿轨运行的光点 */
.deco-orbiter { filter: drop-shadow(0 0 6px rgba(255,234,182,.9)); }

/* 星尘：全球业务网络数据点，错峰明灭 */
.deco-stars circle { animation: star-twinkle 7s ease-in-out infinite; }
@keyframes star-twinkle { 0%, 100% { opacity: .16; } 50% { opacity: .78; } }

/* 刻度环（专利图纸风格）：外环 36 格正转、内环 72 格反转（圆心=地球圆心 1000,394） */
.deco-dial { transform-box: view-box; transform-origin: 1000px 394px; }
.deco-dial-a { animation: dial-spin 170s linear infinite; }
.deco-dial-b { animation: dial-spin 240s linear infinite reverse; }
@keyframes dial-spin { to { transform: rotate(360deg); } }

/* 保护弧：极缓慢的呼吸，示意保护范围 */
.deco-arc { animation: deco-breathe 13s ease-in-out infinite; }

/* 降低动效偏好：关闭全部装饰动画（动态背景静态化） */
@media (prefers-reduced-motion: reduce) {
  .login-screen::before { animation: none; }
  .deco-grid, .deco-map, .globe-spin, .deco-routes .route, .deco-hubs .hub { animation: none; }
  .deco-hubs .hub { opacity: .8; }
}

/* 噪点质感层：消除渐变色带 */
.deco-noise {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .05; mix-blend-mode: overlay;
}

/* 竖排英文标语（国际化排版细节，金色） */
.deco-tagline {
  position: absolute; left: 38px; bottom: 42px;
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 10.5px; font-weight: 500; letter-spacing: .44em;
  text-transform: uppercase; color: rgba(255,246,222,.52);
  padding-left: 14px; white-space: nowrap;
}
.deco-tagline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, rgba(255,246,222,.6), rgba(255,246,222,0));
}

/* 窄屏：地球整体淡化保卡片可读，隐藏标语 */
@media (max-width: 900px) {
  .deco-map { opacity: .5; }
  .deco-tagline { display: none; }
}

/* --- 居中表单区 --- */
.login-main { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; padding: 40px 24px; position: relative; z-index: 2; }
/* 玻璃拟态卡片：半透明白底 + 背景模糊，让身后的动态地球透出来 */
.login-panel, .login-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  /* 以下为版式属性（不在给定样式内，沿用原卡片规格） */
  padding: 30px 38px 24px; width: 100%; max-width: 420px;
}
/* 玻璃底变透后灰色辅助文字对比度不足，登录卡内次要文字加深一档 */
.login-panel .login-brand p,
.login-panel .login-switch,
.login-panel .login-foot { color: #5c6b80; }
/* 品牌区：整体水平居中、顶部留白收紧 */
.login-brand-compact { display: flex; justify-content: center; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 0; }
.login-brand-text { text-align: center; }
.brand-logo {
  width: 48px; height: 48px; border-radius: 12px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
  overflow: hidden;
}
.brand-logo img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.login-brand h1 { font-size: 20px; font-weight: 700; margin: 0; color: #1d2129; }
.login-brand p { margin: 4px 0 0; font-size: 13px; color: #86909c; }
/* 「账号登录」总标题：品牌区下方居中，拉开层级 */
.login-title { font-size: 24px; font-weight: 700; color: #1d2129; text-align: center; margin: 32px 0 24px; }
.login-desc { font-size: 13px; color: #86909c; margin: -14px 0 22px; text-align: center; }
/* 无副标题时的标题（下面不再跟 .login-desc，需自行撑开间距） */
.login-title-solo { margin-bottom: 24px; }
.login-field { display: block; margin-bottom: 16px; }
.login-label { display: block; font-size: 14px; font-weight: 500; color: #1d2129; margin-bottom: 8px; }
/* 输入框统一规格：高 44px、圆角 8px、边框 #DCDFE6，灰色占位提示 */
.login-field input { height: 44px; border-radius: 8px; border-color: #dcdfe6; }
.login-field input::placeholder { color: #a8abb2; }
.login-pwd { position: relative; }
.login-pwd input { width: 100%; padding-right: 40px; }
.login-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  height: 100%; display: inline-flex; align-items: center;
  background: transparent; font-size: 16px; opacity: .65;
}
/* 记住我：与输入框左边缘对齐、复选框和文字垂直居中，与密码框间距 16px */
.login-row { display: flex; justify-content: space-between; align-items: center; margin: 16px 0; font-size: 13px; }
.login-remember { display: inline-flex; align-items: center; gap: 7px; color: #4e5969; cursor: pointer; }
.login-remember input { width: 15px; height: 15px; margin: 0; padding: 0; accent-color: #165dff; cursor: pointer; }
.login-caps { color: var(--warn); font-size: 12px; }
.login-msg { min-height: 22px; font-size: 13px; color: var(--bad); margin-bottom: 10px; }
/* 登录按钮：与输入框同宽同高、圆角一致，文字加粗，hover 轻微加深 */
.login-btn {
  width: 100%; height: 44px; padding: 0; border-radius: 8px; background: #165dff; color: #fff;
  font-weight: 700; font-size: 15px; transition: background .15s;
}
.login-btn:hover { background: #0e4ce8; }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }
/* 辅助文案：居中，仅注册链接为蓝色可点击，其余浅灰 */
.login-switch { text-align: center; margin-top: 16px; font-size: 13px; color: #86909c; }
.login-switch button { color: #165dff; font-weight: 600; }
.login-demo { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.login-demo-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.login-demo-list button {
  padding: 4px 10px; border-radius: 6px; background: #f3f4f6; color: var(--text); font-size: 12px;
}
.login-demo-tip { margin-top: 10px; font-size: 11px; color: #9ca3af; }
/* 版权 + 版本合并单行居中：字号最小、浅灰，弱化视觉 */
.login-foot { margin-top: 22px; text-align: center; color: #86909c; font-size: 12px; }
.req { color: var(--bad); }
.field-hint { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.field-hint.ok { color: var(--good); }
.field-hint.bad { color: var(--bad); }
/* 弹窗内的校验提示：比 hint 醒目，用于「保存被拒」这类必须立刻改的情况 */
.field-warn { font-size: 12px; font-weight: 600; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; padding: 6px 10px; margin: 8px 0 0; }
.field-invalid { border-color: var(--bad) !important; }
.pwd-strength-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pwd-strength-row[hidden] { display: none; }
.pwd-strength { display: flex; gap: 4px; }
.pwd-strength i { width: 32px; height: 6px; border-radius: 3px; background: #e5e7eb; }
.pwd-strength i.on { background: var(--warn); }
.pwd-strength[data-level="strong"] i.on,
.pwd-strength[data-level="very-strong"] i.on { background: var(--good); }
.pwd-strength[data-level="weak"] i:nth-child(1).on { background: var(--warn); }
.pwd-strength-text { font-size: 12px; color: var(--muted); }

/* ===== 应用布局 ===== */
.app { display: flex; min-height: 100vh; }
.app[hidden] { display: none; }
.sidebar {
  width: 240px; background: var(--sidebar); color: var(--sidebar-text);
  display: flex; flex-direction: column; flex-shrink: 0; position: fixed; left: 0; top: 0; bottom: 0;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 20px; }
.brand-logo { background: var(--brand); }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { color: #fff; font-size: 16px; }
.brand-text span { color: #9ca3af; font-size: 12px; }
.nav { flex: 1; overflow-y: auto; padding: 0 12px 16px; }
.nav-group { margin-bottom: 2px; }
.nav-label {
  font-size: 10px; font-weight: 700; color: #7e8ca3;
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 14px 12px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px;
  color: var(--sidebar-text); font-size: 13px; cursor: pointer; transition: .15s;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: #fff; }
.nav-item .i { width: 18px; text-align: center; font-size: 13px; opacity: .85; flex-shrink: 0; }

/* ---- 侧边栏：收藏星标 ---- */
.nav-item { position: relative; }
.nav-fav {
  margin-left: auto; font-size: 13px; line-height: 1; padding: 2px 3px; border-radius: 4px;
  color: #6b7280; opacity: 0; transition: .15s; flex-shrink: 0;
}
.nav-item:hover .nav-fav { opacity: 1; }
.nav-fav:hover { background: rgba(255,255,255,.12); color: #fcd34d; }
.nav-fav.on { opacity: 1; color: #fbbf24; }
.nav-item.active .nav-fav { opacity: 1; }
/* 收藏分组：置顶、与其他分组区分 */
.nav-fav-group { border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 6px; margin-bottom: 6px; }
.nav-fav-group .nav-label { color: #d9a916; padding-top: 12px; }
.nav-fav-group .nav-fav { opacity: .8; }
.nav-fav-empty { font-size: 12px; color: #6b7280; padding: 4px 12px 8px; }
/* ---- 侧边栏：分组折叠 ---- */
.nav-label-toggle {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none; border-radius: 6px; transition: .15s;
}
.nav-label-toggle:hover { color: #a8b3c5; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-caret { font-size: 9px; transition: transform .18s; opacity: .55; }
.nav-group.collapsed .nav-caret { transform: rotate(-90deg); }
.nav-count {
  font-size: 10px; line-height: 1; color: #93a0b5;
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 2px 6px;
  display: none; font-weight: 600;
}
.nav-group.collapsed .nav-count { display: inline; }
.nav-group.collapsed .nav-item { display: none; }
.user-card {
  padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center;
  gap: 10px; cursor: pointer;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px;
}
.user-info { flex: 1; min-width: 0; }
.user-info strong { color: #fff; font-size: 13px; display: block; }
.user-info span { color: #9ca3af; font-size: 11px; }
.user-caret { color: #9ca3af; transform: rotate(180deg); }
.user-menu {
  position: absolute; left: 16px; bottom: 70px; width: 200px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; z-index: 50;
}
.user-menu[hidden] { display: none; }
.user-menu-head { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu-item { width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--text); }
.user-menu-item:hover { background: #f3f4f6; }
.user-menu-item.danger { color: var(--bad); }

/* ===== 主区 ===== */
.main { flex: 1; margin-left: 240px; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 20px; margin: 0; }
.topbar p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.topbar-right { display: flex; gap: 10px; align-items: center; }
/* 后端不可用时的醒目提示：避免用户把示例数据误当成真实台账 */
.offline-banner {
  font-size: 12px; font-weight: 600; color: #92400e;
  background: #fef3c7; border: 1px solid #fcd34d;
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
}
.content { flex: 1; padding: 22px 24px; overflow-y: auto; }
.loading { color: var(--muted); padding: 40px; text-align: center; }

/* ===== 通用组件 ===== */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; margin-bottom: 16px;
}
.section-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.grid { display: grid; gap: 16px; }
.kpi-grid-3 { grid-template-columns: repeat(3, 1fr); }
.kpi-grid-4 { grid-template-columns: repeat(4, 1fr); }
.kpi-grid-5 { grid-template-columns: repeat(5, 1fr); }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  border-left: 4px solid var(--brand);
}
.stat-card .value { font-size: 28px; font-weight: 700; color: var(--brand); }
.stat-card .label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat-card.c-blue { border-left-color: #3b82f6; }
.stat-card.c-blue .value { color: #3b82f6; }
.stat-card.c-teal { border-left-color: #14b8a6; }
.stat-card.c-teal .value { color: #14b8a6; }
.stat-card.c-purple { border-left-color: #8b5cf6; }
.stat-card.c-purple .value { color: #8b5cf6; }
.stat-card.c-orange { border-left-color: #f59e0b; }
.stat-card.c-orange .value { color: #f59e0b; }
.stat-card.c-green { border-left-color: #10b981; }
.stat-card.c-green .value { color: #10b981; }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.input { min-width: 220px; }
.select { min-width: 140px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  color: var(--text); font-size: 13px; font-weight: 500; transition: .13s; white-space: nowrap;
}
.btn:hover { border-color: #d1d5db; background: #f9fafb; }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-dark); }
.btn.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn.btn-danger { color: var(--bad); border-color: #fecaca; background: #fef2f2; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.tag {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 5px;
  font-size: 12px; font-weight: 500; background: #f3f4f6; color: #374151;
}
.s-new { background: #dbeafe; color: #1e40af; }
.s-following { background: #fef3c7; color: #92400e; }
.s-deal { background: #d1fae5; color: #065f46; }
.s-pending { background: #ede9fe; color: #5b21b6; }
.s-warn { background: #ffedd5; color: #9a3412; }
.s-overdue { background: #fee2e2; color: #991b1b; }
.s-lost { background: #f3f4f6; color: #6b7280; }
.s-normal { background: #f0f9ff; color: #0369a1; }

.table-wrap { overflow-x: auto; }
table th, table td { padding: 10px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--line); }
table th { font-weight: 600; color: #4b5563; background: #f9fafb; }
table tbody tr:hover { background: #f9fafb; }
table .empty { color: var(--muted); text-align: center; padding: 36px; }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select { width: 100%; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 520px; max-height: 90vh;
  display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.modal-lg { max-width: 760px; }
.modal-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close { font-size: 22px; color: var(--muted); line-height: 1; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ---- 商标详情：类别明细 + 状态流水 ---- */
.tm-detail-head { margin-bottom: 6px; }
.tm-detail-name { font-size: 16px; font-weight: 600; color: var(--text); }
.tm-detail-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.sec-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin: 22px 0 8px; padding-left: 9px; border-left: 3px solid var(--brand);
}
.sec-sub { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.tm-sub-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tm-sub-table th, .tm-sub-table td {
  padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle;
}
.tm-sub-table th { color: var(--muted); font-weight: 500; font-size: 12px; }
.tm-sub-table td .input, .tm-sub-table td .select { width: 100%; padding: 5px 8px; font-size: 13px; }
.tm-add-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.tm-add-row .input, .tm-add-row .select { flex: 1 1 auto; min-width: 90px; }
.tm-sub-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.tm-days { color: var(--muted); }

.import-ok {
  background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; padding: 10px 14px; border-radius: 8px; margin-bottom: 10px;
}
.import-error {
  background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; padding: 10px 14px; border-radius: 8px; margin-bottom: 10px;
}
.import-loading { color: var(--muted); padding: 20px; text-align: center; }
.import-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.import-stat {
  background: #f9fafb; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 13px;
}
.import-stat b { font-size: 18px; color: var(--text); margin-right: 4px; }
.import-stat.c-green b { color: var(--good); }
.import-stat.c-orange b { color: var(--warn); }

/* ===== 尼斯分类 ===== */
.nice-src-badge {
  display: inline-flex; align-items: center; font-size: 11px; color: #047857; background: #d1fae5;
  padding: 2px 8px; border-radius: 5px; margin-left: 8px; font-weight: 500; cursor: help;
}
.nice-class-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.nice-tab {
  width: 42px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 500; color: #374151; position: relative;
}
.nice-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.nice-tab-dot {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 50%;
  background: var(--bad); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center;
}
.nice-info { display: flex; gap: 16px; align-items: flex-start; }
.nice-info-icon { font-size: 36px; line-height: 1; }
.nice-info-main { flex: 1; }
.nice-info-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.nice-info-scope { color: var(--muted); font-size: 13px; line-height: 1.6; }
.nice-info-note { margin-top: 10px; font-size: 13px; color: var(--text); }
.nice-info-note summary { color: var(--brand); cursor: pointer; font-weight: 500; }
.nice-info-count { white-space: nowrap; font-size: 13px; color: var(--muted); }
.nice-info-count b { color: var(--brand); font-size: 18px; }
.nice-pending {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 14px 16px; border-radius: 8px;
}
.nice-pending b { display: block; margin-bottom: 4px; }
.nice-pending span { font-size: 13px; }
.nice-workspace { display: flex; gap: 16px; }
.nice-sidebar { width: 260px; flex-shrink: 0; }
.nice-sidebar-head { font-weight: 700; margin-bottom: 10px; }
.nice-group-list { background: #fff; border-radius: 10px; border: 1px solid var(--line); max-height: 520px; overflow-y: auto; }
.nice-group-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line);
  cursor: pointer; text-align: left; width: 100%; font-size: 13px;
}
.nice-group-item:hover { background: #f9fafb; }
.nice-group-item.active { background: var(--brand-soft); color: var(--brand-dark); }
.nice-group-code { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); min-width: 42px; }
.nice-group-name { flex: 1; }
.nice-group-dot {
  min-width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.nice-main { flex: 1; min-width: 0; }
.nice-group-note { background: #f0f9ff; border-left: 3px solid var(--brand); padding: 10px 12px; border-radius: 0 8px 8px 0; font-size: 12px; color: #0369a1; margin-bottom: 12px; }
.nice-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.nice-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; font-size: 13px; transition: .13s;
}
.nice-item:hover { border-color: #bfdbfe; background: #f8fafc; }
.nice-item.checked { background: var(--brand-soft); border-color: var(--brand); }
.nice-item input { width: 16px; height: 16px; accent-color: var(--brand); }
.nice-item-code { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); background: #f3f4f6; padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.nice-item-name { flex: 1; }
.nice-item-part { color: var(--muted); font-size: 11px; margin-left: 4px; font-style: normal; }
/* 全库搜索（跨 45 类直接查商品/服务） */
.nice-global-bar { display: flex; gap: 8px; margin-top: 12px; }
.nice-global-bar .input { flex: 1; }
.nice-global-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 8px; margin-top: 12px; }
.nice-global-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fff; transition: .13s;
}
.nice-global-row:hover { border-color: #bfdbfe; background: #f8fafc; }
.nice-global-row.checked { background: var(--brand-soft); border-color: var(--brand); }
.nice-global-main { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; cursor: pointer; }
.nice-global-main input { width: 15px; height: 15px; accent-color: var(--brand); flex-shrink: 0; }
.nice-global-cls {
  font-size: 11px; color: var(--brand); background: var(--brand-soft);
  border: 1px solid var(--brand); border-radius: 4px; padding: 1px 5px; white-space: nowrap; flex-shrink: 0;
}
.nice-global-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nice-global-name mark, .nice-item-code mark { background: #fef08a; padding: 0; border-radius: 2px; }
.nice-global-group { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 900px) {
  .nice-global-list { grid-template-columns: 1fr; }
  .nice-global-group { display: none; }
}
.sub-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 6px;
  background: #e0e7ff; color: #3730a3; font-size: 12px;
}
.sub-tag-del { width: 16px; height: 16px; border-radius: 50%; background: transparent; color: #4338ca; font-size: 12px; line-height: 1; }
.sub-tag-del:hover { background: #c7d2fe; }
.nice-docs { margin-bottom: 16px; }
.nice-docs summary { font-weight: 600; cursor: pointer; }
.nice-doc-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.nice-doc-name { flex: 1; }
.nice-doc-meta { color: var(--muted); font-size: 12px; }
.pdf-drop {
  border: 2px dashed var(--line); border-radius: 12px; padding: 28px; text-align: center; cursor: pointer;
  transition: .15s; background: #f9fafb;
}
.pdf-drop.dragover { border-color: var(--brand); background: var(--brand-soft); }
.pdf-drop .big-icon { font-size: 36px; color: var(--muted); margin-bottom: 8px; }
.pdf-drop p { margin: 0 0 6px; font-weight: 600; }
.pdf-drop small { color: var(--muted); font-size: 12px; }
.pdf-tip { margin-top: 14px; padding: 12px; background: #f0f9ff; border-radius: 8px; font-size: 12px; color: #0369a1; }
.pdf-tip b { display: block; margin-bottom: 4px; }
.pdf-tip code { background: #fff; padding: 1px 4px; border-radius: 4px; }
.dup-toggle { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); cursor: pointer; }

/* ===== 报价 ===== */
.quote-head { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.quote-head input { flex: 1; min-width: 180px; }
.quote-total { text-align: right; padding: 14px 18px; background: #f9fafb; border-radius: 8px; }
.quote-total .big { font-size: 22px; font-weight: 700; color: var(--brand); }

/* ===== 变更监测 ===== */
.tm-toast { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.tm-toast.has { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.tm-toast.none { background: #f3f4f6; color: var(--muted); border: 1px solid var(--line); }
.tm-timeline { position: relative; padding-left: 18px; }
.tm-timeline::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line);
}
.tm-tl-item { position: relative; margin-bottom: 14px; }
.tm-tl-dot {
  position: absolute; left: -18px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #d1d5db; border: 2px solid #fff;
}
.tm-tl-item.sev-high .tm-tl-dot { background: var(--bad); }
.tm-tl-item.sev-mid .tm-tl-dot { background: var(--warn); }
.tm-tl-item.sev-normal .tm-tl-dot { background: var(--brand); }
.tm-tl-item.sev-low .tm-tl-dot { background: #9ca3af; }
.tm-tl-body { border-left: 3px solid var(--line); padding-left: 14px; }
.tm-tl-item.sev-high .tm-tl-body { border-left-color: var(--bad); }
.tm-tl-item.sev-mid .tm-tl-body { border-left-color: var(--warn); }
.tm-tl-item.sev-normal .tm-tl-body { border-left-color: var(--brand); }
.tm-tl-item.sev-low .tm-tl-body { border-left-color: #9ca3af; }
.tm-tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.tm-tl-name { font-weight: 700; }
.tm-tl-reg { font-size: 12px; color: var(--muted); }
.tm-tl-type { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #f3f4f6; color: #374151; }
.tm-tl-time { font-size: 11px; color: #9ca3af; }
.tm-tl-flow { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 6px 0; }
.tm-tl-from { background: #f3f4f6; padding: 2px 8px; border-radius: 4px; }
.tm-tl-arrow { color: var(--muted); }
.tm-tl-to { background: var(--brand-soft); color: var(--brand-dark); padding: 2px 8px; border-radius: 4px; }
.tm-tl-field { font-size: 11.5px; color: #94a3b8; margin-left: 4px; }
.tm-tl-meta { margin-top: 7px; font-size: 12px; color: #94a3b8; }
.chg-badge {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 11.5px;
  padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: #f8fafc; color: var(--muted); transition: .13s;
}
.chg-badge:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.chg-badge.has { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.chg-badge.has:hover { background: #ffedd5; }
.chg-badge b { font-weight: 700; }

/* ===== 资金拨付 ===== */
.fund-bar { height: 14px; border-radius: 7px; background: #e5e7eb; overflow: hidden; }
.fund-bar-fill { height: 100%; border-radius: 7px; background: linear-gradient(90deg, #3b82f6, #10b981); }
.mini-bar { width: 60px; height: 8px; border-radius: 4px; background: #e5e7eb; display: inline-block; }
.mini-bar-fill { height: 100%; border-radius: 4px; background: var(--brand); }

/* ===== 全球国家/注册体系 ===== */
.geo-cell { white-space: nowrap; }
.geo-sub { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.hint-line { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); padding: 8px 12px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--line); }
.hint-line b { color: var(--brand); font-weight: 700; }
.tm-tl-geo { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; white-space: nowrap; }

/* ===== 尼斯分类数据源标签 ===== */
.nice-info-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nice-src-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 500; white-space: nowrap; }
.nice-src-tag.src-official { background: #dcfce7; color: #166534; }
.nice-src-tag.src-imported { background: #dbeafe; color: #1e40af; }
.nice-src-tag.src-pdf { background: #ffedd5; color: #9a3412; }

/* 导入预览警告/提示 */
.import-warn { margin-top: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 10px 14px; border-radius: 8px; font-size: 12.5px; }
.import-warn b { font-weight: 700; }
.import-warn ul { margin: 6px 0 0 18px; }

/* ===== 仪表盘（专业国际化版） ===== */
.dash-banner {
  background: linear-gradient(135deg, #0f2b6b 0%, #1d4ed8 55%, #2563eb 100%);
  border-radius: 14px; padding: 26px 30px; margin-bottom: 16px;
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  box-shadow: 0 10px 30px rgba(29, 78, 216, .25);
}
.dash-banner h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .2px; }
.dash-banner .dash-date { margin-top: 7px; font-size: 13px; color: rgba(255,255,255,.82); }
.dash-banner .dash-en { text-align: right; }
.dash-banner .dash-en b { display: block; font-size: 15px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.95); }
.dash-banner .dash-en span { display: block; margin-top: 5px; font-size: 12px; color: rgba(255,255,255,.65); }

.dash-kpi-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; margin-bottom: 16px; }
.dash-kpi {
  background: var(--card); border-radius: 12px; padding: 16px 16px 14px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.dash-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dash-kpi-icon {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; flex-shrink: 0;
}
.dash-kpi-icon.i-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.dash-kpi-icon.i-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.dash-kpi-icon.i-teal   { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.dash-kpi-icon.i-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.dash-kpi-icon.i-green  { background: linear-gradient(135deg, #10b981, #047857); }
.dash-kpi-icon.i-red    { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.dash-kpi-icon.i-cyan   { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.dash-kpi-en { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-kpi .value { font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-kpi .label { font-size: 12.5px; color: var(--muted); }
.dash-kpi .sub { font-size: 11px; color: #94a3b8; }
.dash-kpi .sub.warn { color: #d97706; }

.dash-grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.dash-grid-2b { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: start; }
.dash-card {
  background: var(--card); border-radius: 12px; padding: 18px 20px;
  box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 0;
}
.dash-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dash-card-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.dash-card-head h3 small { margin-left: 8px; font-size: 10.5px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: #94a3b8; }
.dash-card-head .head-side { font-size: 12px; color: var(--muted); }

.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.legend-list { list-style: none; margin: 0; padding: 0; }
.legend-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.legend-list li:last-child { border-bottom: none; }
.legend-list i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend-list .lg-name { flex: 1; color: var(--text); }
.legend-list .lg-val { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.legend-list .lg-pct { width: 52px; text-align: right; color: var(--muted); font-size: 12px; }

.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-card {
  display: flex; align-items: center; gap: 12px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; cursor: pointer; transition: .15s; user-select: none;
}
.quick-card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(47,107,255,.12); transform: translateY(-2px); }
.quick-icon {
  width: 38px; height: 38px; border-radius: 10px; color: #fff; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.quick-blue .quick-icon   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.quick-orange .quick-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.quick-teal .quick-icon   { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.quick-purple .quick-icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.quick-cyan .quick-icon   { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.quick-green .quick-icon  { background: linear-gradient(135deg, #10b981, #047857); }
.quick-card span { font-size: 13.5px; font-weight: 600; color: var(--text); }
.quick-card small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; font-weight: 400; }

.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.feed-list li:last-child { border-bottom: none; }
.feed-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex-shrink: 0;
}
.feed-body { min-width: 0; flex: 1; }
.feed-title { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-title b { font-weight: 600; }
.feed-time { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
.feed-empty { color: var(--muted); font-size: 13px; padding: 18px 0; text-align: center; }

@media (max-width: 1250px) {
  .dash-kpi-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .dash-grid-2, .dash-grid-2b { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-banner { flex-direction: column; align-items: flex-start; }
  .dash-banner .dash-en { text-align: left; }
}

/* —— 国际化细节增强 —— */
.dash-banner { position: relative; overflow: hidden; }
.dash-banner::after {
  content: ''; position: absolute; right: -40px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 70%);
}
.dash-brand { display: flex; align-items: center; gap: 14px; z-index: 1; }
.dash-monogram {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; letter-spacing: .5px; color: #fff;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(2px); overflow: hidden;
}
.dash-monogram img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.dash-en { z-index: 1; }
.dash-meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dash-meta .pill {
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.26);
  color: rgba(255,255,255,.92); letter-spacing: .3px;
}
.dash-updated { font-size: 11px; color: rgba(255,255,255,.7); align-self: center; }

.dash-card-head h3 { position: relative; padding-left: 13px; }
.dash-card-head h3::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}

.dash-kpi-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kpi-delta {
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.kpi-delta i { font-style: normal; font-weight: 500; opacity: .7; margin-left: 2px; }
.kpi-delta.up   { color: #047857; background: #ecfdf5; }
.kpi-delta.down { color: #b91c1c; background: #fef2f2; }

.geo-split {
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px;
  padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted);
}
.geo-split b { color: var(--text); font-size: 14px; margin-left: 2px; font-variant-numeric: tabular-nums; }
.geo-split .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.geo-split .dot.cn { background: #1d4ed8; }
.geo-split .dot.ov { background: #14b8a6; }

/* ===== 品牌设置 ===== */
.brand-settings { max-width: 760px; margin: 0 auto; }
.brand-settings-head { margin-bottom: 20px; }
.brand-settings-head h2 { margin: 0 0 6px; font-size: 20px; }
.brand-settings-head p { margin: 0; color: var(--muted); font-size: 13px; }
.brand-form { display: flex; flex-direction: column; gap: 18px; }
.brand-form-group { display: flex; flex-direction: column; gap: 6px; }
.brand-form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.brand-form-group .hint { font-size: 12px; color: var(--muted); }
.brand-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brand-logo-preview { display: flex; align-items: center; gap: 12px; }
.brand-logo-preview .brand-logo { width: 64px; height: 64px; border-radius: 14px; font-size: 28px; }
.brand-logo-preview .brand-logo:has(> img) {
  width: auto; max-width: 210px; background: #fff;
  border: 1px dashed var(--line);
}
.brand-actions { display: flex; gap: 12px; margin-top: 8px; }

/* ===== 报价单 ===== */
.quote-header {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 24px 26px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.quote-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote-logo {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; overflow: hidden;
}
.quote-logo img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}

/* --- 图片 LOGO（上传了图片时）：等比完整显示，不再方形裁切 ---
   横版 LOGO 在固定方框里会被缩得极小；改为高度固定、宽度按比例自适应。
   :has(> img) 仅命中「图片模式」，文字模式（V 徽标）保持原方形样式。 */
.brand-logo:has(> img),
.quote-logo:has(> img),
.dash-monogram:has(> img) {
  width: auto; min-width: 46px; max-width: 210px; padding: 0 2px;
  background: transparent; border: none; backdrop-filter: none; overflow: visible;
}
.brand-logo:has(> img) > img,
.quote-logo:has(> img) > img,
.dash-monogram:has(> img) > img {
  width: auto; height: 100%; object-fit: contain;
}
.quote-company { line-height: 1.3; }
.quote-company b { font-size: 16px; color: var(--text); }
.quote-company span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.quote-title-block { text-align: right; }
.quote-title-block h2 { font-size: 22px; margin: 0 0 6px; color: var(--text); }
.quote-title-block span { font-size: 12px; color: var(--muted); }

.quote-meta {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 18px 22px 20px;
  margin-bottom: 16px;
}
.quote-meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.quote-meta-row .form-row { margin: 0; }
.quote-meta-row .form-row label { font-size: 12px; margin-bottom: 5px; color: var(--muted); }
.quote-meta-row input,
.quote-meta textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 13.5px;
  background: #fff; color: var(--text); width: 100%; box-sizing: border-box;
}
.quote-meta-row input:focus,
.quote-meta textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.quote-meta-row input[type="date"] { padding: 7px 10px; }
.quote-meta .form-row-full { grid-column: 1 / -1; margin-top: 12px; }
.quote-meta textarea { resize: vertical; min-height: 54px; }

.quote-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  align-items: start;
}
.quote-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 18px 20px 20px;
}
.quote-card-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
/* 业务目录项的「每增加一小类加收」标签 */
.quote-sub-price {
  font-size: 11px; color: #b45309; background: #fef3c7; border: 1px solid #fde68a;
  border-radius: 999px; padding: 1px 8px; white-space: nowrap; flex-shrink: 0;
}
/* 类别阶梯价标签（首类 / 次类 / 第三类起） */
.quote-sub-price.tier {
  color: #1d4ed8; background: #dbeafe; border-color: #bfdbfe;
}
.q-unit-sfx { font-size: 11px; color: var(--muted); margin-left: 2px; }
.q-tier-hint {
  font-size: 11px; color: #1d4ed8; margin-top: 2px; white-space: nowrap;
}
.q-tier-badge {
  display: inline-block; font-size: 11px; color: #1d4ed8; background: #eff6ff;
  border: 1px solid #bfdbfe; border-radius: 4px; padding: 1px 6px;
}
.q-mode-tag {
  display: inline-block; font-size: 11px; margin-left: 6px; padding: 1px 6px;
  border-radius: 4px; background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0;
}
.q-mode-tag.tier { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.q-tier-inline { color: #1d4ed8; }
/* 版本号显示（侧边栏底部）：用于确认前端是否已更新到最新版本 */
.sidebar-ver {
  font-size: 11px; color: #94a3b8; text-align: left; letter-spacing: .3px;
  user-select: text; padding: 8px 12px 4px; opacity: .75;
}

/* 业务目录 */
.quote-catalog { min-height: 320px; }
.quote-catalog-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.quote-catalog-head span { font-size: 15px; font-weight: 700; color: var(--text); }
.quote-group { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.quote-group-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  transition: background .12s;
}
.quote-group-title:hover { background: #f1f5f9; }
.quote-group-title span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.quote-group-title .arrow { font-size: 12px; color: var(--muted); transition: transform .15s; }
.quote-group.open .quote-group-title .arrow { transform: rotate(90deg); }
.quote-group-title .count { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.quote-group-body { max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.quote-group.open .quote-group-body { max-height: 600px; overflow-y: auto; }
.quote-service-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background .1s;
}
.quote-service-row:last-child { border-bottom: none; }
.quote-service-row:hover { background: #f8fafc; }
.quote-service-info { min-width: 0; flex: 1; }
.quote-service-name { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-service-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 8px; margin-top: 3px; min-width: 0;
}
.quote-service-unit { font-size: 11px; color: var(--muted); margin-top: 2px; }
.quote-service-side { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.quote-service-price { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.quote-service-add {
  width: 24px; height: 24px; border-radius: 6px;
  border: 1px solid var(--brand); background: #fff; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; cursor: pointer; transition: .12s; flex-shrink: 0;
}
.quote-service-row:hover .quote-service-add { background: var(--brand); color: #fff; }
.quote-service-actions {
  display: flex; align-items: center; gap: 6px;
  opacity: 0; transform: translateX(4px); transition: .15s; flex-shrink: 0;
}
.quote-service-row:hover .quote-service-actions { opacity: 1; transform: translateX(0); }
.quote-service-actions button {
  width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: 12px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; padding: 0;
}
.quote-service-actions button:hover { border-color: var(--brand); color: var(--brand); }
.quote-service-actions button.danger:hover { border-color: var(--bad); color: var(--bad); }

/* 报价明细 */
.quote-detail { min-width: 0; }
.quote-detail .table-wrap { border-radius: 8px; border: 1px solid var(--line); overflow: hidden; }
.quote-detail table { width: 100%; border-collapse: collapse; font-size: 13px; }
.quote-detail th,
.quote-detail td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.quote-detail th { background: #f8fafc; font-weight: 700; color: var(--text); font-size: 12.5px; }
.quote-detail td { color: var(--text); }
.quote-detail tr:last-child td { border-bottom: none; }
.quote-detail .q-input {
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; font-size: 13px;
  width: 100%; box-sizing: border-box;
}
.quote-detail .q-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.quote-detail .q-qty { width: 72px; }
.quote-sub { font-weight: 600; color: var(--text); white-space: nowrap; }

.quote-total-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 14px 16px; margin-top: 14px;
  background: #f8fafc; border-radius: 10px; border: 1px solid var(--line);
}
.quote-totals { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.quote-total-item { text-align: right; }
.quote-total-item span { display: block; font-size: 12px; color: var(--muted); }
.quote-total-item b { display: block; font-size: 16px; font-weight: 700; color: var(--text); }
.quote-total-item.grand b { color: var(--brand); font-size: 20px; }
.quote-detail-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-top: 14px;
}
.quote-detail-foot .left { display: flex; gap: 8px; }
.quote-detail-foot .right { display: flex; gap: 8px; }

@media (max-width: 1100px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-meta-row { grid-template-columns: repeat(2, 1fr); }
  .quote-header { flex-direction: column; align-items: flex-start; }
  .quote-title-block { text-align: left; width: 100%; }
}
@media (max-width: 760px) {
  .quote-meta-row { grid-template-columns: 1fr; }
  .quote-total-bar { flex-direction: column; align-items: flex-start; }
  .quote-detail-foot { flex-direction: column; align-items: flex-start; }
  .quote-detail-foot .right { width: 100%; justify-content: flex-end; }
}

/* ===== 响应式 ===== */
/* 登录页：窄屏微调 */
@media (max-width: 900px) {
  .login-main { padding: 24px 16px; }
}
@media (max-width: 1100px) {
  .kpi-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nice-workspace { flex-direction: column; }
  .nice-sidebar { width: 100%; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); }
  .main { margin-left: 0; }
  .kpi-grid-4 { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .input, .select { width: 100%; }
}
@media (max-width: 480px) {
  .login-panel { padding: 26px 22px 20px; border-radius: 16px; }
  .login-foot { display: none; }
  .pwd-strength i { width: 26px; }
}

/* ===== 用户管理页 ===== */
.ua-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ua-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ua-policy {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #f7f9fc;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 20px;
}
.ua-policy label { font-size: 13px; font-weight: 600; color: var(--muted); }
.ua-policy .select { max-width: 320px; }
.ua-block { margin-bottom: 26px; }
.ua-block h3 { font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.ua-req { padding: 14px 16px; border: 1px solid #fcd34d; background: #fffbeb; border-radius: 10px; }
.pill-warn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 7px; border-radius: 10px; background: #f59e0b; color: #fff; font-size: 12px; font-weight: 700;
}
.ua-note {
  margin-top: 4px; padding: 12px 16px; background: #f1f5f9; border-left: 3px solid #94a3b8;
  border-radius: 6px; font-size: 12.5px; color: #64748b; line-height: 1.7;
}
.invite-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px;
  background: #eef2ff; color: #3730a3; padding: 3px 8px; border-radius: 6px; letter-spacing: .5px;
}
.role-badge {
  display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600;
}
.role-badge.adm { background: #fee2e2; color: #b91c1c; }
.role-badge.lead { background: #fef3c7; color: #b45309; }
.role-badge.staff { background: #e0e7ff; color: #3730a3; }
.state-on { color: var(--good); font-size: 13px; }
.state-off { color: #9ca3af; font-size: 13px; }
/* 账号被锁：属于「需要管理员介入」的状态，必须比普通停用更醒目 */
.state-locked { color: #b45309; background: #fef3c7; border: 1px solid #fcd34d; padding: 1px 6px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.tag-inline {
  font-size: 11px; background: #e2e8f0; color: #64748b; padding: 1px 6px; border-radius: 6px; margin-left: 4px;
}
.btn.danger { background: #fee2e2; color: #b91c1c; }
.btn.danger:hover { background: #fecaca; }


/* ============ 客户资产汇总（打通视图） ============ */
.assets-summary {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px;
}
.assets-chip {
  flex: 1 1 120px; min-width: 110px;
  background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; display: flex; flex-direction: column; gap: 2px;
}
.assets-chip b { font-size: 16px; color: var(--brand-dark); }
.assets-chip span { font-size: 12px; color: var(--muted); }
.assets-note { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.assets-block { margin-bottom: 14px; }
.assets-block-head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 13px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.assets-block-head span {
  font-weight: 500; font-size: 12px; color: var(--brand-dark);
  background: var(--brand-soft); border-radius: 999px; padding: 1px 8px;
}
.assets-block table { font-size: 12px; }
.assets-block th, .assets-block td { padding: 5px 8px; }

/* 客户字段：提示「未匹配到客户」 */
.form-row .field-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--warn); }


/* ============ 文档中心：上传/拖拽 ============ */
.doc-dropzone {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  background: var(--brand-soft);
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.doc-dropzone.drag {
  border-color: var(--brand-dark);
  background: rgba(47, 107, 255, .12);
}
.dz-inner { display: flex; align-items: center; gap: 14px; }
.dz-icon { font-size: 30px; line-height: 1; }
.dz-text { display: flex; flex-direction: column; gap: 3px; }
.dz-text b { font-size: 14px; color: var(--text, #1c2333); }
.dz-text span { font-size: 12px; color: var(--muted); }
.doc-file { font-size: 12px; color: var(--brand-dark); word-break: break-all; }
.doc-nofile { font-size: 12px; color: var(--muted); }

/* ============ 客户 360 · 业务全景 ============ */
.c360-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.c360-title { font-size: 20px; font-weight: 700; color: var(--text); margin: 8px 0 6px; }
.c360-cid { font-size: 12px; color: var(--muted); font-weight: 400; margin: 0 8px; }
.c360-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.c360-meta .warn { color: #d97706; }
.c360-head-right { display: flex; gap: 8px; flex-wrap: wrap; }
.c360-kpis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-bottom: 14px; }
.c360-kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.c360-kpi b { font-size: 20px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.2; }
.c360-kpi span { font-size: 12px; color: var(--muted); }
.c360-kpi i { font-size: 11px; color: #94a3b8; font-style: normal; }
.c360-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.c360-panel { padding: 14px 16px; }
.c360-panel-head { font-size: 14px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.c360-badge { font-size: 11px; background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; border-radius: 20px; padding: 1px 8px; font-weight: 500; }
.c360-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12.5px; }
.c360-bar-label { width: 56px; flex: none; color: var(--muted); }
.c360-bar { flex: 1; height: 10px; background: #f1f5f9; border-radius: 6px; overflow: hidden; }
.c360-bar i { display: block; height: 100%; border-radius: 6px; }
.c360-bar-row b { width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.c360-scroll { max-height: 330px; overflow: auto; }
.c360-timeline { padding-left: 4px; }
.c360-tl-item { position: relative; padding: 0 0 12px 16px; border-left: 2px solid var(--line); }
.c360-tl-item:last-child { border-left-color: transparent; }
.c360-tl-dot { position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; }
.c360-tl-date { font-size: 11.5px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.c360-tl-body { font-size: 12.5px; color: var(--text); }
.c360-tl-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.c360-urgent { font-size: 11px; background: #fef2f2; color: #b91c1c; border-radius: 4px; padding: 1px 6px; margin-left: 4px; }
.c360-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 16px; overflow-x: auto; }
.c360-tab { padding: 10px 14px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.c360-tab:hover { color: var(--brand-dark); }
.c360-tab.on { color: var(--brand-dark); border-bottom-color: var(--brand); font-weight: 600; }
.c360-tab b { font-size: 11px; background: #f1f5f9; border-radius: 10px; padding: 0 6px; font-weight: 600; }
.c360-tab.on b { background: var(--brand-soft); color: var(--brand-dark); }
.c360-tab-body { padding: 12px 16px 0; }
.c360-note { font-size: 11.5px; color: #94a3b8; padding: 8px 16px 14px; line-height: 1.6; }
.c360-kind { font-size: 11px; border-radius: 4px; padding: 1px 6px; }
.c360-kind.fuzzy { background: #fffbeb; color: #b45309; }
.c360-kind.link { background: var(--brand-soft); color: var(--brand-dark); }
.c360-kind.id { background: #f0fdf4; color: #15803d; }
.c360-unlinked { margin-top: 14px; border-top: 1px dashed var(--line); padding: 12px 16px 16px; background: #fffdf7; }
.c360-unlinked-head { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.c360-unlinked-head span { font-weight: 400; font-size: 11.5px; color: var(--muted); margin-left: 8px; }
.c360-zero { color: #cbd5e1; }
.c360-matrix th, .c360-matrix td { white-space: nowrap; font-size: 12.5px; }
.c360-matrix tfoot td { background: #f9fafb; font-weight: 600; }
.c360-cust span { display: block; font-size: 11px; color: #94a3b8; }
.c360-sub { display: block; font-size: 11px; color: #94a3b8; }
.c360-due { color: #b91c1c; font-weight: 600; }
.biz-badge { display: inline-block; font-size: 11.5px; line-height: 18px; border: 1px solid #cbd5e1; border-radius: 4px; padding: 0 6px; margin: 1px 3px 1px 0; cursor: pointer; }
.biz-badge:hover { background: #f8fafc; }
.biz-badge.money { border-color: #cbd5e1; color: var(--text); }
@media (max-width: 1280px) {
  .c360-kpis { grid-template-columns: repeat(4, 1fr); }
  .c360-panels { grid-template-columns: 1fr; }
}
/* ===== 业务进度自动更新 ===== */
.prog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
.prog-bar-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.prog-bar-r { display: flex; gap: 8px; flex-wrap: wrap; }
.prog-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.prog-dot.on { background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.prog-dot.off { background: #94a3b8; }
.prog-muted { color: var(--muted, #64748b); font-size: 12.5px; }
.prog-cards { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.prog-card { background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; padding: 10px 8px; text-align: center; cursor: pointer; transition: .15s; }
.prog-card:hover { border-color: var(--brand, #1d4ed8); transform: translateY(-1px); }
.prog-card.active { border-color: var(--brand, #1d4ed8); box-shadow: 0 0 0 2px rgba(29,78,216,.12); }
.prog-card .v { font-size: 20px; font-weight: 700; color: var(--brand-dark, #1e40af); }
.prog-card .l { font-size: 12px; color: var(--muted, #64748b); margin-top: 2px; }
.prog-act { font-size: 12.5px; color: #334155; max-width: 260px; }
.prog-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.prog-tl-head { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.prog-tl-now { background: #f8fafc; border: 1px solid var(--line, #e2e8f0); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.prog-tl { max-height: 320px; overflow: auto; border-left: 2px solid var(--line, #e2e8f0); padding-left: 12px; }
.prog-tl-item { position: relative; padding: 8px 0; border-bottom: 1px dashed var(--line, #e2e8f0); font-size: 13px; }
.prog-tl-item:last-child { border-bottom: none; }
.prog-tl-dot { position: absolute; left: -17px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.prog-tl-dot.overdue, .prog-tl-dot.blocked { background: #dc2626; }
.prog-tl-dot.urgent { background: #f59e0b; }
.prog-tl-dot.due { background: #f59e0b; }
.prog-tl-dot.normal, .prog-tl-dot.done { background: #16a34a; }
.prog-empty { font-size: 12.5px; color: var(--muted, #64748b); background: #f8fafc; border-radius: 8px; padding: 10px 12px; margin-top: 10px; line-height: 1.6; }
@media (max-width: 1100px) { .prog-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ===== 客户查重合并 ===== */
.dup-group { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #fff; }
.dup-head { font-weight: 600; font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dup-n { font-weight: 400; font-size: 12px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 999px; padding: 1px 8px; }
.dup-actions { margin-top: 10px; display: flex; justify-content: flex-end; }
.dup-group .table-wrap { margin: 0; }

@media (max-width: 900px) { .c360-kpis { grid-template-columns: repeat(2, 1fr); } }
@media print {
  #nav, .topbar, .toolbar, .c360-head-right, .c360-tabs, .c360-unlinked, .sidebar { display: none !important; }
  .c360-kpi, .card { box-shadow: none; }
}

/* ================= 商标分类检索（区分表三层） ================= */
.clsx-ver { font-size: 12px; font-weight: 500; color: var(--muted, #6b7280); background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.25); border-radius: 999px; padding: 2px 10px; margin-left: 8px; }
.clsx-meta { font-size: 12px; color: var(--muted, #6b7280); }
.clsx-disc { color: #b45309; font-weight: 600; }
.clsx-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.clsx-cn { display: inline-block; font-size: 10px; font-weight: 700; color: #fff; background: #d97706; border-radius: 4px; padding: 0 5px; line-height: 16px; vertical-align: middle; cursor: help; }
.clsx-kind { font-size: 10px; color: #2563eb; background: rgba(37,99,235,.08); border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.clsx-kind.svc { color: #059669; background: rgba(5,150,105,.08); }
.clsx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.clsx-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: all .15s; background: #fff; }
.clsx-card:hover { border-color: #6366f1; box-shadow: 0 2px 10px rgba(99,102,241,.15); transform: translateY(-1px); }
.clsx-num { font-size: 20px; font-weight: 800; color: #6366f1; }
.clsx-num.svc { color: #059669; }
.clsx-nm { font-size: 13px; font-weight: 600; margin-top: 4px; }
.clsx-sub { font-size: 11px; color: var(--muted, #6b7280); margin-top: 3px; }
.clsx-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 12px; flex-wrap: wrap; }
.clsx-crumb a { color: #6366f1; text-decoration: none; }
.clsx-crumb a:hover { text-decoration: underline; }
.clsx-muted { color: var(--muted, #6b7280); font-size: 12px; }
.clsx-code { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 13px; color: #4338ca; background: rgba(99,102,241,.08); border-radius: 6px; padding: 2px 8px; }
.clsx-code.sm { font-size: 11px; padding: 1px 6px; }
.clsx-grp-list { display: flex; flex-direction: column; gap: 8px; }
.clsx-grp { border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 14px; cursor: pointer; transition: border-color .15s; }
.clsx-grp:hover { border-color: #6366f1; }
.clsx-grp-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.clsx-grp-nm { font-weight: 600; font-size: 13px; flex: 1; }
.clsx-cnt { font-size: 12px; color: var(--muted, #6b7280); white-space: nowrap; }
.clsx-preview { font-size: 12px; color: var(--muted, #6b7280); margin-top: 6px; line-height: 1.7; }
.clsx-item-code { font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.clsx-foot-note { margin-top: 10px; color: var(--muted, #6b7280); }
.clsx-pager { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 12px; font-size: 13px; }
.clsx-hit { cursor: pointer; }
.clsx-hit:hover td { background: rgba(99,102,241,.04); }
/* 勾选器弹层 */
.clsx-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.clsx-box { background: #fff; border-radius: 14px; width: min(860px, 96vw); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.clsx-box-hd { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e5e7eb; font-size: 15px; }
.clsx-box-hd .modal-close { margin-left: auto; }
.clsx-box-bar { display: flex; gap: 8px; padding: 12px 18px; border-bottom: 1px solid #f1f5f9; }
.clsx-box-body { overflow: auto; padding: 10px 18px; flex: 1; }
.clsx-pick-hint { font-size: 12px; color: var(--muted, #6b7280); margin: 4px 0 8px; }
.clsx-pick-hint a { color: #6366f1; text-decoration: none; }
.clsx-pick-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.clsx-pick-row:hover { background: #f8fafc; }
.clsx-pick-row.on { background: rgba(99,102,241,.06); }
.clsx-pick-nm { flex: 1; }
.clsx-box-ft { border-top: 1px solid #e5e7eb; padding: 10px 18px; display: flex; flex-direction: column; gap: 8px; }
.clsx-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 18px; }
.clsx-chip { font-size: 11px; background: #eef2ff; color: #4338ca; border-radius: 999px; padding: 2px 9px; cursor: pointer; }
.clsx-ft-btns { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }

/* ---- 商品分类检索（v63）：维护工具栏 / 已选小类 / 群组注释 / 类别部分标记 ---- */
.clsx-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 2px; }
.clsx-selmeta { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--muted, #6b7280); font-size: 13px; }
.clsx-selmeta b { color: #165dff; }
.clsx-part { color: var(--muted, #6b7280); font-size: 12px; margin-left: 6px; }
.clsx-note { color: #8a6a2c; background: #f6efe1; border: 1px solid #e8d9b8; border-radius: 8px; padding: 6px 10px; margin: 8px 0; }
.clsx-sel { cursor: pointer; }
.clsx-tip { color: #b45309; font-size: 13px; margin-left: 6px; }
.shake-once { animation: shake-once .45s ease; }
@keyframes shake-once {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
