/* ========== 青绿 Design System v1.0（Qinglv）========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ===== 品牌主色：青绿 Qinglv（brand 50-950）===== */
  --brand-50:  #ECFBF7;
  --brand-100: #CFF3EA;
  --brand-200: #A2E7D8;
  --brand-300: #6BD5C3;
  --brand-400: #35BCA8;
  --brand-500: #12A08C;
  --brand-600: #0B8271;
  --brand-700: #0A685C;
  --brand-800: #0A524A;
  --brand-900: #0A443E;
  --brand-950: #042825;
  /* 主色别名（沿用旧变量名，全站 var() 自动继承） */
  --primary: #12A08C;
  --primary-hover: #0B8271;
  --primary-active: #0A685C;
  --primary-light: #ECFBF7;
  --primary-bg: #ECFBF7;
  /* ===== 中性灰阶（neutral 0-950）===== */
  --neutral-0:   #FFFFFF;
  --neutral-50:  #F6F8FA;
  --neutral-100: #EDF1F4;
  --neutral-200: #E3E8ED;
  --neutral-300: #D6DDE4;
  --neutral-400: #BCC7D1;
  --neutral-500: #94A3B1;
  --neutral-600: #55636F;
  --neutral-700: #3F4A54;
  --neutral-800: #2B333A;
  --neutral-900: #1B2126;
  --neutral-950: #10141A;
  /* ===== 语义色（4 族 x subtle/default/strong）===== */
  --success: #16A34A;  --success-bg: #E7F6EE;  --success-strong: #0F7A36;
  --warning: #D97706;  --warning-bg: #FDF3E3;  --warning-strong: #A85A05;
  --danger:  #DC2626;  --danger-bg:  #FDECEC;  --danger-strong:  #A81C1C;
  --info:    #2563EB;  --info-bg:    #EEF1FE;  --info-strong:    #104ED8;
  /* 行情语义：A 股习惯 红涨绿跌 */
  --quote-up: #DC2626;
  --quote-down: #16A34A;
  /* ===== 文本层级 ===== */
  --text-1: #1B2126;
  --text-2: #55636F;
  --text-3: #94A3B1;
  --text-4: #BCC7D1;
  /* ===== 边框与背景 ===== */
  --border: #E3E8ED;
  --border-strong: #D6DDE4;
  --border-light: #EDF1F4;
  --bg-page: #F6F8FA;
  --bg-canvas: #F6F8FA;
  --bg-card: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EDF1F4;
  --bg-hover: #EDF1F4;
  --bg-brand-subtle: #ECFBF7;
  --sidebar-bg: #FFFFFF;
  --sidebar-width: 240px;
  --header-height: 64px;
  /* ===== 圆角阶梯 ===== */
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-xxl: 16px;
  --radius-full: 999px;
  /* ===== 间距阶梯（4px 基）===== */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px; --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px; --space-32: 128px;
  /* ===== 阴影层级 elevation 1-4 ===== */
  --elevation-1: 0 1px 2px rgba(16,20,26,0.08);
  --elevation-2: 0 2px 8px rgba(16,20,26,0.10);
  --elevation-3: 0 8px 24px rgba(16,20,26,0.14);
  --elevation-4: 0 16px 40px rgba(16,20,26,0.20);
  --shadow: var(--elevation-1);
  --shadow-md: var(--elevation-2);
  --shadow-lg: var(--elevation-3);
  --shadow-primary: 0 4px 12px rgba(18,160,140,0.16);
  /* ===== 焦点环 ===== */
  --focus-ring: #35BCA8;
  /* ===== 字体族 ===== */
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-num: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  /* ===== 动效 ===== */
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
  --dur: 150ms;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-1);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 数字统一等宽对齐，避免跳动 */
.stat-value, .stat-num, [class*="-value"] { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ========== 登录页 ========== */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #12A08C 0%, #35BCA8 100%);
  position: relative;
  overflow: hidden;
}
.login-body::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -200px; right: -150px;
}
.login-body::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  bottom: -100px; left: -100px;
}
.login-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--elevation-4);
  padding: 48px 40px;
  width: 400px;
  position: relative;
  z-index: 1;
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo h1 {
  font-size: 24px;
  color: var(--text-1);
  font-weight: 600;
  margin-top: 12px;
}
.login-logo p {
  color: var(--text-3);
  font-size: 13px;
  margin-top: 6px;
}
.login-logo .logo-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #12A08C, #35BCA8);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-1);
  transition: all 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(53,188,168,0.40);
}
textarea.form-control {
  height: auto;
  padding: 8px 12px;
  resize: vertical;
  min-height: 80px;
}
select.form-control {
  cursor: pointer;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  gap: 6px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-default {
  background: #fff;
  color: var(--text-1);
  border-color: var(--border);
}
.btn-default:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #A81C1C; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-block { width: 100%; height: 42px; font-size: 15px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.login-tip {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-3);
}

/* ========== 主布局 ========== */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}
.sidebar-logo {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  flex-shrink: 0;
}
.sidebar-logo .logo-icon {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(18,160,140,0.24);
}
.sidebar-logo span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-nav {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item {
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 40px;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  gap: 10px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-1); }
.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}
.nav-item .nav-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.nav-item .nav-icon svg { width: 18px; height: 18px; display: block; }

.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.header {
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
/* 顶栏欢迎语（跟随页面标题，格式：欢迎，用户名） */
.header-welcome {
  font-size: 14px;
  color: var(--text-2);
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.header-user:hover { background: var(--bg-hover); }
.avatar, .user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.user-name { font-size: 13px; color: var(--text-2); }

/* ===== 自定义头像：顶栏头像与侧栏 logo 位置同步显示同一张图片 ===== */
.user-avatar { cursor: pointer; overflow: hidden; transition: box-shadow 150ms var(--ease-out); }
.user-avatar:hover { box-shadow: 0 0 0 2px var(--focus-ring); }
.sidebar-logo .logo-icon { overflow: hidden; }
/* 未设置自定义头像时隐藏侧栏 logo 位（取消「模」字） */
.logo-icon.is-empty { display: none; }
.user-avatar.has-avatar,
.logo-icon.has-avatar { background: var(--bg-subtle); padding: 0; }
.user-avatar.has-avatar img,
.logo-icon.has-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.user-dropdown {
  position: absolute;
  top: 48px;
  right: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  padding: 6px 0;
  display: none;
  z-index: 200;
}
.user-dropdown.show { display: block; }
.user-dropdown-item {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
}
.user-dropdown-item:hover { background: var(--bg-hover); color: var(--primary); }
.user-dropdown-item.danger { color: var(--danger); }

.content {
  flex: 1;
  padding: 20px 24px;
}

/* ========== 卡片 ========== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-header-pad { padding: 12px 20px; }
.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
}

/* ========== 统计卡片 ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 1400px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; display: block; }
.stat-icon.blue   { background: var(--primary-light); color: var(--primary); }
.stat-icon.green  { background: var(--success-bg);    color: var(--success); }
.stat-icon.orange { background: var(--warning-bg);    color: var(--warning); }
.stat-icon.red    { background: var(--danger-bg);     color: var(--danger); }
.stat-icon.purple { background: var(--info-bg); color: var(--info); }
.stat-info { min-width: 0; display: flex; flex-direction: column; }
.stat-info .stat-label {
  font-size: 13px;
  color: var(--text-3);
}
.stat-info .stat-value {
  font-size: 30px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
}
.stat-info .stat-sub {
  font-size: 12px;
  color: var(--text-4);
}


/* ========== 表格 ========== */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
thead th {
  background: #F6F8FA;
  color: var(--text-2);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-1);
}
tbody tr:hover { background: var(--bg-hover); }
tbody tr:last-child td { border-bottom: none; }

/* ========== 标签 ========== */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}
.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-green { background: #E7F6EE; color: #16A34A; }
.tag-orange { background: #FDF3E3; color: #D97706; }
.tag-red { background: #FDECEC; color: #DC2626; }
.tag-gray { background: #EDF1F4; color: #94A3B1; }
.tag-purple { background: var(--info-bg); color: var(--info); }
.tag-cyan { background: #ECFBF7; color: #12A08C; }

/* ========== 进度条 ========== */
.progress-bar {
  width: 100%;
  height: 6px;
  background: #EDF1F4;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s;
}
.progress-bar .fill.blue { background: var(--primary); }
.progress-bar .fill.green { background: #16A34A; }
.progress-bar .fill.orange { background: #D97706; }
.progress-bar .fill.red { background: #DC2626; }

/* ========== 工具栏 ========== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.search-input {
  width: 240px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(53,188,168,0.40); }

/* ========== 模态框 ========== */
.modal-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 560px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--elevation-4);
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 16px; font-weight: 600; }
.modal-close {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-3);
  border-radius: var(--radius-sm);
  font-size: 18px;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-1); }
.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row.full { grid-template-columns: 1fr; }

/* ========== 提醒列表 ========== */
.reminder-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border-left: 3px solid;
}
.reminder-item.danger { background: #FDECEC; border-color: var(--danger); }
.reminder-item.warning { background: #FDF3E3; border-color: var(--warning); }
.reminder-item.info { background: #EEF1FE; border-color: var(--primary); }
.reminder-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.reminder-item.danger .reminder-dot { background: var(--danger); }
.reminder-item.warning .reminder-dot { background: var(--warning); }
.reminder-item.info .reminder-dot { background: var(--primary); }
.reminder-content .reminder-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.reminder-content .reminder-detail {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

/* ========== 空状态 ========== */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* ========== Toast ========== */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 分页 ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ========== 项目详情页签 ========== */
.detail-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  gap: 4px;
}
.detail-tab {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.detail-tab:hover { color: var(--primary); }
.detail-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 500;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-3); cursor: pointer; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--text-1); font-weight: 500; }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #BCC7D1; border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: #94A3B1; }
::-webkit-scrollbar-track { background: transparent; }


/* ==================================================================
   飞书风格视觉增强 v2
   ================================================================== */

/* 卡片：极淡描边 + 柔和阴影 */
.card {
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

/* 主按钮：悬浮加品牌色阴影 */
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-primary);
}
.btn-primary:active { background: var(--primary-active); }
.btn { font-weight: 500; }

/* 空状态：圆形浅底图标居中 */
.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-3);
}
.empty-icon {
  width: 88px; height: 88px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.empty-icon svg { width: 40px; height: 40px; }

/* 工作台 Tab：覆盖 app.js 的内联样式 */
.dashboard-tab {
  color: var(--text-3);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, font-weight 0.15s;
}
.dashboard-tab:hover { color: var(--text-1); }
.dashboard-tab.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

/* 工作台列表行（待办 / 风险 / 动态） */
.dash-row {
  display: flex;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.dash-row:hover { background: var(--bg-hover); }
.dash-row:last-child { border-bottom: none; }
.dash-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}
.dash-main { flex: 1; min-width: 0; }
.dash-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* 快捷操作按钮 */
.quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  font-size: 13px;
  border-radius: var(--radius);
}
.quick-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* 项目状态分布条 */
.dist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.dist-label {
  width: 56px;
  font-size: 12px;
  color: var(--text-2);
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dist-bar {
  flex: 1;
  height: 8px;
  background: var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.dist-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transition: width 0.4s ease;
}
.dist-count {
  width: 24px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
}

/* 表格：飞书风格表头与行高 */
thead th {
  background: var(--bg-page);
  font-weight: 500;
  color: var(--text-2);
  padding: 12px;
  font-size: 13px;
}
tbody td { padding: 12px; }

/* 内容区留白更舒展 */
.content { padding: 24px 32px; }

/* ==========================================================
   逐页重构组件层  v20260908b
   目标：把散落在 app.js 里的内联样式收敛为可复用语义类
   ========================================================== */

/* ---------- 页面头（标题 + 副标题 + 操作区） ---------- */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.page-head-main { min-width: 0; }
.page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.page-desc {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}
.page-head-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- 分区标题 ---------- */
.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
}
.section-desc { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ---------- 结果计数 / 筛选提示 ---------- */
.result-count { font-size: 13px; color: var(--text-3); }
.filter-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-3);
}
.filter-hint a { color: var(--primary); cursor: pointer; }
.filter-hint a:hover { text-decoration: underline; }

/* ---------- 项目卡片 ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.proj-card {
  padding: 16px 16px 16px 19px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
/* 左侧状态色条：由内联 --accent 传入 */
.proj-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent, var(--primary));
}
.proj-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}
.proj-card-seq { font-size: 11px; color: var(--text-3); }
.proj-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 12px;
}
.proj-card-meta .k { color: var(--text-3); }
.proj-card-meta .v {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-card-progress { margin-bottom: 12px; }
.proj-card-progress .prow {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.proj-card-actions { display: flex; gap: 8px; }
.proj-card-actions .btn { flex: 1; justify-content: center; }

/* ---------- 详情页信息栅格 ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px 24px;
}
.info-item { min-width: 0; }
.info-item .k {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 4px;
}
.info-item .v {
  font-size: 14px;
  color: var(--text-1);
  word-break: break-all;
}
.info-item .v a { color: var(--primary); cursor: pointer; text-decoration: none; }
.info-item .v a:hover { text-decoration: underline; }

/* ---------- 详情分区 ---------- */
.detail-section { margin-bottom: 24px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section > .section-title { margin-bottom: 12px; }

/* ---------- 表格增强 ---------- */
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: var(--bg-hover); }
tbody td { vertical-align: middle; }
.link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}
.link:hover { text-decoration: underline; }
.link-plain { color: var(--primary); cursor: pointer; }
.link-plain:hover { text-decoration: underline; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.strong { font-weight: 600; color: var(--text-1); }
.nowrap { white-space: nowrap; }

/* ---------- 空状态增强 ---------- */
.empty-title { font-size: 14px; color: var(--text-2); margin-bottom: 4px; }
.empty-desc { font-size: 13px; color: var(--text-3); }
.empty-action { margin-top: 16px; }
.empty .filter-hint { margin-top: 8px; }

/* ---------- 模态框 ---------- */
.modal { border-radius: var(--radius-xl); overflow: hidden; }
.modal-header { padding: 18px 24px; }
.modal-title { font-size: 16px; font-weight: 600; }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 14px 24px; background: var(--bg-page); }

/* ---------- 精简工具类 ---------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.flex-1 { flex: 1; min-width: 0; }
.flex-shrink-0 { flex-shrink: 0; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-11 { font-size: 11px; } .text-12 { font-size: 12px; }
.text-13 { font-size: 13px; } .text-14 { font-size: 14px; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ---------- 详情标题 ---------- */
.cust-name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

/* ---------- 详情页顶部统计条 ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.stat-strip-item { text-align: center; }
.stat-big {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 卡片内 Tab 导航 ---------- */
.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  gap: 4px;
}
.tab-nav-item {
  padding: 14px 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.tab-nav-item:hover { color: var(--text-1); }
.tab-nav-item.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

/* ---------- 高频字段样式（详情页批量收敛用） ---------- */
.k-sm { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.v-sm { font-size: 14px; color: var(--text-1); }
.card-pad { padding: 16px 20px; }
.loading-box { text-align: center; padding: 20px; color: var(--text-3); }
.cell-label { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); font-weight: 600; }

/* ==========================================================
   逐页重构组件层  v20260908c
   覆盖：产品履历 / 系统管理 / 项目详情子 Tab / 图纸管理
   新增：子页面表格列宽拖拽 + 持久化
   ========================================================== */

/* ---------- 表格列宽拖拽 ---------- */
table.resizable thead th { position: relative; cursor: default; user-select: none; }
table.resizable thead th:not(:last-child) { border-right: 1px solid var(--border); }
.col-dragger {
  position: absolute; top: 0; right: -4px; width: 8px; height: 100%;
  cursor: col-resize; z-index: 50; background: rgba(0,0,0,0.08);
  border-radius: 2px;
}
.col-dragger:hover, .col-dragger.hover { background: rgba(18,160,140,0.35); }
th { position: relative; }
/* 产品履历列宽保存按钮 */
.toolbar-right .btn.btn-default.btn-sm { margin-right: 8px; }

/* ---------- 卡片 flush（去内边距） ---------- */
.card-flush { padding: 0; }

/* ---------- 宽度工具 ---------- */
.w-full { width: 100%; }
.w-50  { width: 50px; }
.w-100 { width: 100px; }
.w-120 { width: 120px; }
.w-160 { width: 160px; }
.w-250 { width: 250px; }

/* ---------- 表格细节 ---------- */
.table-min-1100 { min-width: 1100px; }
.th-sortable { cursor: pointer; user-select: none; }
.sort-arrow { display: inline-flex; align-items: center; gap: 2px; vertical-align: -1px; color: var(--text-3); }
.sort-arrow svg { width: 11px; height: 11px; display: block; }
.sort-arrow .sort-pos { font-family: var(--font-num); font-size: 10px; font-weight: 600; line-height: 1; }
.ph { color: var(--text-4); }
.remark { margin-top: 10px; font-size: 13px; color: var(--text-2); }
.expand-cell { background: var(--bg-hover); padding: 12px 20px; }
.table-foot-hint {
  padding: 12px 20px; font-size: 12px; color: var(--text-3);
  background: var(--bg-hover); border-top: 1px solid var(--border-light);
}
.pagination-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-top: 1px solid var(--border-light);
}
.overflow-x { overflow-x: auto; }

/* ---------- 详情页头部栅格 ---------- */
.detail-head-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .detail-head-grid { grid-template-columns: repeat(2, 1fr); } }
.detail-head-v { font-weight: 600; margin-top: 2px; }
.mt-2 { margin-top: 2px; }
/* 产品履历：表单校验红框 */
.input-error { border-color: #DC2626 !important; box-shadow: 0 0 0 2px rgba(220,38,38,.15); }
/* 产品履历：标签（仅可下载等） */
.tag { display:inline-block; padding:1px 6px; border-radius:4px; font-size:11px; line-height:1.4; }
.tag-gray { background:#EDF1F4; color:#55636F; border:1px solid rgba(16,20,26,.08); }
.text-11 { font-size:11px; }

/* ---------- 模具进度：模具选择 + 信息条 ---------- */
.mold-list { display: flex; flex-direction: column; gap: 6px; }
.mold-btn {
  width: 100%; text-align: left; padding: 8px 12px; border-radius: var(--radius-xs);
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  cursor: pointer; font-size: 13px; transition: all 0.15s;
}
.mold-btn:hover { border-color: var(--primary); color: var(--primary); }
.mold-btn.active {
  border-color: var(--primary); background: var(--primary-light); color: var(--primary);
}
.mold-meta-bar {
  padding: 12px 20px; background: var(--bg-hover); border-top: 1px solid var(--border);
  display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px;
}

/* ---------- 版本徽章 / 行内操作链接 ---------- */
.ver-badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius-xs);
  background: var(--primary-light); color: var(--primary); font-size: 12px;
}
.act-link { cursor: pointer; margin-right: 8px; color: var(--primary); }
.act-link:hover { text-decoration: underline; }
.act-link.warn { color: var(--warning); }
.act-link.danger { color: var(--danger); }
.progress-inline { display: flex; align-items: center; gap: 4px; }
.progress-inline .progress-bar { width: 60px; }
.progress-inline .pct { font-size: 11px; color: var(--text-2); }

/* ---------- 系统管理：权限矩阵表 ---------- */
.perm-wrap { margin-top: 12px; border-top: 1px solid var(--border-light); padding-top: 12px; }
.perm-label { font-weight: 600; margin-bottom: 8px; display: block; }
.perm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.perm-table th, .perm-table td { padding: 8px; border: 1px solid var(--border-light); }
.perm-table th { text-align: left; background: var(--bg-page); }
.perm-table th:first-child { width: 40%; }
.perm-table th.c, .perm-table td.c { text-align: center; }
.perm-hint { color: var(--text-3); font-size: 12px; margin-top: 6px; }

/* ---------- 空状态错误变体 ---------- */
.empty.error { color: var(--danger); }
.empty-action-link { display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.empty-action { display: flex; gap: 8px; justify-content: center; }

/* ---------- 工具栏内联筛选控件 ---------- */
.filter-select { height: 34px; }
.h-34 { height: 34px; }
.hidden { display: none; }
.file-input { width: 100%; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-xs); }
.modal-scroll { max-height: 60vh; overflow-y: auto; }
.cur-tag { color: var(--success); font-weight: 600; }

/* ==========================================================
   逐页重构组件层  v20260908d
   覆盖：工作台 / 客户管理 / 产品报价 / 材质库 / 操作日志 / 各弹窗表单
   目标：全站内联样式清零
   ========================================================== */

/* ---------- 图标基类（替代 SVG 内联 width/height） ---------- */
.icon { width: 1em; height: 1em; vertical-align: -0.12em; }

/* ---------- 无权限提示 ---------- */
.no-access { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 60vh; color: var(--danger); }
.no-access-big { font-size: 72px; font-weight: 900; letter-spacing: 8px; margin-bottom: 20px; }
.no-access-sub { font-size: 20px; color: var(--text-3); }

/* ---------- 工作台 ---------- */
.stat-card { cursor: pointer; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-head { padding: 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.dash-tabs { display: flex; gap: 24px; }
.dash-tab-content { padding: 8px 12px; max-height: 400px; overflow-y: auto; }
.quick-title { font-size: 15px; font-weight: 600; }
.quick-stack { display: flex; flex-direction: column; gap: 10px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 待办/风险圆点 */
.dash-dot.high { background: var(--danger); }
.dash-dot.mid { background: var(--warning); }
.dash-dot.low { background: var(--success); }
.dash-dot.blue { background: var(--primary); }
.dash-dot.sm { width: 6px; height: 6px; margin-top: 6px; }
.dash-row.top { align-items: flex-start; cursor: default; }

/* 待办状态小标签 */
.todo-status { font-size: 11px; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--warning-bg); color: var(--warning); flex-shrink: 0; }

/* 动态正文 */
.act-text { font-size: 13px; color: var(--text-1); }
.act-user { color: var(--primary); font-weight: 500; }

/* ---------- 上传表单 ---------- */
.upload-hint { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.upload-progress { display: none; margin-top: 12px; }
.upload-progress-label { font-size: 13px; margin-bottom: 6px; }
.upload-progress-bar { height: 8px; background: var(--border-light); border-radius: var(--radius-sm); overflow: hidden; }
.upload-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), #35BCA8); transition: width 0.3s; }

/* 图纸预览 */
.preview-wrap { width: 100%; height: 70vh; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.preview-frame { width: 100%; height: 100%; border: none; }
.preview-tip { text-align: center; margin-top: 8px; font-size: 12px; color: var(--text-3); }

/* 视图切换 */
.view-toggle { display: flex; gap: 4px; margin-right: 12px; }

/* 项目表格进度单元格 */
.progress-cell { min-width: 120px; }
.progress-cell .progress-bar { flex: 1; }
.progress-pct { font-size: 12px; color: var(--text-3); width: 32px; }

/* 客户链接 / 地址单元格 */
.cell-address { font-size: 12px; color: var(--text-2); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 客户等级标签 */
.level-tag { display: inline-block; padding: 3px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; }
.level-tag.a { background: #FDECEC; color: var(--danger); }
.level-tag.b { background: var(--warning-bg); color: var(--warning); }
.level-tag.c { background: var(--border-light); color: var(--text-3); font-weight: 400; }

/* 文本语义色 */
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-purple { color: var(--info); }

/* 分区工具条 */
.section-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-bar-sm { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-title-bar { font-weight: 600; color: var(--text-1); margin-bottom: 16px; }

/* 跨列 / 换行 */
.full-span { grid-column: 1 / -1; }
.pre-wrap { white-space: pre-wrap; }

/* 主联系人徽章 */
.primary-tag { display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--primary-light); color: var(--primary); font-size: 11px; }

/* 跟进时间轴 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 20px; }
.tl-dot { position: absolute; left: -21px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.tl-card { padding: 14px; margin: 0; }
.tl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tl-meta { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.tl-body { font-size: 13px; color: var(--text-2); white-space: pre-wrap; }

/* 只读输入 */
.input-readonly { background: var(--bg-hover); }

/* 报价表 */
.quote-no { font-weight: 600; color: var(--primary); cursor: pointer; }
.price-cell { font-weight: 600; color: var(--danger); }

/* 报价表单 */
.form-section { border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 16px; }
.form-section-title { font-weight: 600; margin-bottom: 12px; color: var(--text-1); }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; }
.form-field-hint { font-size: 11px; color: var(--text-3); font-weight: normal; }
.material-shortcut { margin-top: 6px; }
.input-price { font-size: 18px; font-weight: 700; }
.input-price-danger { background: #fff; font-size: 18px; font-weight: 700; color: var(--danger); border: 2px solid var(--danger); }
.result-panel { border-top: 1px solid var(--border); padding: 16px; margin-bottom: 16px; background: var(--bg-hover); border-radius: var(--radius); }

/* 材质库 */
.material-name { font-weight: 600; color: var(--primary); }
.material-file-link { color: var(--primary); cursor: pointer; font-size: 12px; }
.ph-nodata { color: var(--text-4); }

/* 材质选择列表 */
.material-opt { padding: 10px 16px; border-bottom: 1px solid var(--border-light); cursor: pointer; }
.material-opt:hover { background: var(--bg-hover); }
.material-opt-brand { color: var(--text-3); font-size: 12px; margin-left: 8px; }
.material-opt-price { color: var(--danger); font-weight: 600; }
.material-opt-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.scroll-400 { max-height: 400px; overflow-y: auto; }

/* 产品履历图纸上传区 */
.upload-row { display: flex; gap: 10px; align-items: center; }
.upload-input { padding: 6px; flex: 1; }
.draw-list-empty { text-align: center; color: var(--text-3); font-size: 12px; padding: 10px; }
.draw-list-empty.error { color: var(--danger); }

/* 图纸历史列表 */
.ph-draw-list { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.ph-draw-scroll { max-height: 200px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.ph-draw-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.ph-draw-table th { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--border); background: var(--bg-hover); color: var(--text-2); font-weight: 500; }
.ph-draw-table td { padding: 6px 8px; border-bottom: 1px solid var(--border-light); color: var(--text-1); }
.ph-draw-table tr.latest { background: var(--primary-light); }
.ph-draw-table .latest-tag { color: var(--primary); font-size: 10px; }
.ph-draw-table .fname { color: var(--primary); cursor: pointer; }
.ph-draw-table td.center { text-align: center; }
.ph-draw-table a { color: var(--primary); cursor: pointer; }
.ph-draw-table a.del { color: var(--danger); }

/* 操作日志分页 */
.log-pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 16px; border-top: 1px solid var(--border-light); }

/* 空状态紧凑变体 */
.empty-sm { padding: 20px; }

/* ---------- 宽度 / 边距工具补充 ---------- */
.w-60  { width: 60px; }
.w-80  { width: 80px; }
.w-140 { width: 140px; }
.w-280 { width: 280px; }
.mt-6 { margin-top: 6px; }
.ml-8 { margin-left: 8px; }
.mr-6 { margin-right: 6px; }
.mr-8 { margin-right: 8px; }

/* ========== 报价单组件 ========== */
.quote-sheet { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.quote-sheet-header {
  border-bottom: 2px solid var(--text-1);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.quote-company { font-size: 18px; font-weight: 700; color: var(--text-1); }
.quote-company-en { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.quote-title { font-size: 24px; letter-spacing: 12px; font-weight: 700; text-align: center; margin: 8px 0; color: var(--text-1); }
.quote-contact { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.quote-contact-label { color: var(--text-1); font-weight: 600; }
.quote-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.quote-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.quote-meta-label { color: var(--text-2); white-space: nowrap; }
.quote-meta-input { flex: 1; border: none; border-bottom: 1px solid var(--border); padding: 2px 4px; font-size: 13px; background: transparent; min-width: 0; }
.quote-meta-input:focus { outline: none; border-bottom-color: var(--primary); }
.quote-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.quote-table {
  width: 100%;
  min-width: 1600px;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.quote-table th,
.quote-table td {
  border: 1px solid var(--border);
  padding: 4px 2px;
  text-align: center;
  vertical-align: middle;
}
.quote-table th {
  background: #F6F8FA;
  color: var(--text-2);
  font-weight: 600;
  line-height: 1.3;
}
.quote-table td { background: #fff; }
.quote-table input.q-input,
.quote-table select.q-input {
  width: 100%;
  border: none;
  padding: 2px 4px;
  font-size: 12px;
  text-align: center;
  background: transparent;
}
.quote-table input.q-input:focus,
.quote-table select.q-input:focus { outline: none; background: var(--primary-light); }
.quote-table .q-input-sm { width: 56px; }
.quote-table .q-input-md { width: 80px; }
.quote-table .q-input-lg { width: 120px; }
.quote-table .q-img-cell { width: 70px; }
.quote-table .q-img-thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid var(--border);
  display: block; margin: 0 auto;
}
.quote-table .q-img-placeholder {
  width: 56px; height: 56px; border: 1px dashed var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; color: var(--text-3);
  font-size: 11px; cursor: pointer; margin: 0 auto;
}
.quote-notes { font-size: 12px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.quote-notes-title { font-weight: 600; color: var(--text-1); }
.quote-terms { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px; }
.quote-terms-title { font-weight: 600; color: var(--text-1); margin-bottom: 8px; font-size: 13px; }
.quote-terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote-sign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
  text-align: center;
  margin-top: 24px;
}
.quote-sign-cell { border-top: 1px solid var(--border); padding-top: 8px; }
.quote-sign-label { font-size: 12px; color: var(--text-2); }
.quote-sign-input {
  border: none; border-bottom: 1px solid var(--border); text-align: center;
  font-size: 13px; padding: 2px; width: 100%; background: transparent;
}
.quote-sign-input:focus { outline: none; border-bottom-color: var(--primary); }
.quote-section-title {
  font-size: 13px; font-weight: 600; color: var(--text-1);
  margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border-light);
}
.quote-result-row {
  display: flex; gap: 16px; align-items: center; justify-content: flex-end;
  margin-top: 16px; padding: 12px 16px; background: var(--bg-page); border-radius: var(--radius-sm);
}
.quote-result-item { font-size: 13px; }
.quote-result-item .val { font-size: 18px; font-weight: 700; color: var(--danger); margin-left: 6px; }
.quote-img-input { display: none; }
.q-row-action { color: var(--danger); cursor: pointer; font-size: 12px; }
.q-row-action:hover { text-decoration: underline; }

/* 报价单表格列宽优化（v6） */
.quote-table .col-no { width: 36px; min-width: 36px; text-align: center; }
.quote-table .col-img { width: 64px; }
.quote-table th { font-size: 11px; line-height: 1.2; padding: 4px 3px; }
.quote-table td { padding: 2px 2px; }
.quote-table td .q-input { padding: 4px 4px; font-size: 12px; }
.quote-table td.col-no { color: var(--text-2); font-weight: 600; }
.quote-table .q-input-plain {
  width: 100%; border: 1px solid transparent; background: transparent;
  padding: 4px; font-size: 12px; color: var(--text-1); font-weight: 600;
  text-align: right; pointer-events: none;
}
.quote-notes-textarea { width: 100%; min-height: 80px; }
.quote-meta-attn-row { display: flex; gap: 8px; align-items: center; }
.quote-meta-attn-row .quote-meta-input { flex: 1; }
.quote-sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.quote-contact-block { text-align: right; }
.quote-salutation-row { margin-top: 8px; }

/* 报价单多行物料（v7） */
.quote-items-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 8px; }
.quote-items-title { font-size: 13px; color: var(--text-2); }
.quote-items-title b { color: var(--primary); font-weight: 600; margin: 0 2px; }
.quote-table .col-op { width: 44px; text-align: center; }
.quote-row-del { width: 24px; height: 24px; border: 1px solid var(--border); background: #fff; color: var(--danger); border-radius: var(--radius-sm); cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.quote-row-del:hover { background: var(--danger-bg); border-color: var(--danger); }
.quote-result-item .val { color: var(--danger); }
.quote-row-num { color: var(--text-3); font-weight: 600; }

/* 通用：行内 SVG 图标（用户下拉、登录页等） */
.icon-inline { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }

/* 登录页：注册提示框 */
.register-tip { font-size: 12px; color: #94A3B1; margin-bottom: 12px; padding: 8px; background: #F6F8FA; border-radius: var(--radius-sm); }

/* 报价单列表多行物料计数 */
.quote-item-count { margin-left: 4px; }

/* ===== 模具设计分析（MoldDesigner 嵌入页） ===== */
