/* ===== 慧诚OA系统 主样式 ===== */
/* 品牌色彩：慧诚深蓝 #001383 | 慧诚橙红 #FF4C00 */

:root {
  --primary: #001383;
  --primary-light: #0033CC;
  --primary-pale: #E8EBF8;
  --accent: #FF4C00;
  --accent-light: #FF8040;
  --text-dark: #1a1a2e;
  --text-main: #333333;
  --text-muted: #666666;
  --text-light: #999999;
  --bg-page: #F0F2F8;
  --bg-card: #FFFFFF;
  --bg-pale: #F5F5F5;
  --border: #E0E4F0;
  --shadow: 0 2px 12px rgba(0,19,131,0.08);
  --shadow-md: 0 4px 24px rgba(0,19,131,0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --sidebar-w: 240px;
  --topbar-h: 58px;
  --font: 'Microsoft YaHei', 'PingFang SC', '微软雅黑', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-page);
  height: 100%;
  overflow: hidden;
}

#app { width: 100%; height: 100vh; position: relative; }

/* ===== 登录页 ===== */
.login-page {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #001383 0%, #0033CC 40%, #001383 100%);
  z-index: 1000;
}

.login-bg {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.login-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 420px;
  max-width: 95vw;
  overflow: hidden;
}

.login-logo {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 32px 36px 28px;
  display: flex; align-items: center; gap: 16px;
}

.logo-blocks {
  display: flex; gap: 4px;
}

.logo-b1 {
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: 4px;
}

.logo-b2 {
  width: 30px; height: 30px;
  background: var(--accent);
  border-radius: 4px;
  margin-top: -8px;
}

.login-title h1 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.login-title p {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 2px;
}

.login-form-wrap {
  padding: 32px 36px 36px;
}

.login-form-wrap h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.login-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-main);
  background: #fafbff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,19,131,0.08);
  background: #fff;
}

.role-select-wrap select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.btn-login:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,19,131,0.3);
}

.login-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ===== 主应用布局 ===== */
.main-app {
  display: flex;
  height: 100vh;
  width: 100%;
  position: relative;
}

.main-app.hidden { display: none !important; }
.hidden { display: none !important; }

/* ===== 侧边栏 ===== */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, var(--primary) 0%, #000e60 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, width 0.3s ease;
  position: relative;
  z-index: 200;
  flex-shrink: 0;
}

.sidebar.collapsed {
  width: 0;
  min-width: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.logo-blocks-sm { display: flex; gap: 2px; }
.logo-b1-sm {
  width: 16px; height: 16px;
  background: rgba(255,255,255,0.9);
  border-radius: 3px;
}
.logo-b2-sm {
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 3px;
  margin-top: -5px;
}

.sidebar-brand { display: flex; flex-direction: column; }
.brand-name {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}
.brand-sub {
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.nav-section { margin-bottom: 6px; }
.nav-section-title {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
  padding: 8px 18px 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  white-space: nowrap;
  font-size: 13.5px;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.nav-item.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-left-color: var(--accent);
}

.nav-item .icon {
  font-style: normal;
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-avatar {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-info span {
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info span:last-child {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

.btn-logout {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.btn-logout:hover { color: var(--accent); }

/* ===== 主内容区 ===== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ===== 顶栏 ===== */
.top-bar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  box-shadow: 0 1px 6px rgba(0,19,131,0.04);
}

.top-bar-left { display: flex; align-items: center; gap: 12px; }
.top-bar-right { display: flex; align-items: center; gap: 16px; }

.btn-menu {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.btn-menu:hover { background: var(--primary-pale); color: var(--primary); }

.breadcrumb {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.notify-btn {
  position: relative;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.notify-btn:hover { background: var(--primary-pale); }
.notify-icon { font-size: 18px; }
.notify-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

.top-user {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 12px;
  background: var(--primary-pale);
  border-radius: 20px;
  color: var(--primary);
  font-weight: 500;
}

/* ===== 页面容器 ===== */
.page-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.page-container::-webkit-scrollbar { width: 5px; }
.page-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.card-body { padding: 20px; }

/* ===== 统计卡片 ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.blue { background: var(--primary-pale); }
.stat-icon.orange { background: #FFF0EA; }
.stat-icon.green { background: #E8F5E9; }
.stat-icon.purple { background: #F3E5F5; }

.stat-info { flex: 1; }
.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}
.stat-change {
  font-size: 12px;
  margin-top: 4px;
}
.stat-change.up { color: #e74c3c; }
.stat-change.down { color: #27ae60; }

/* ===== 按钮 ===== */
.btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-light); border-color: var(--accent-light); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-pale); }

.btn-ghost {
  background: var(--bg-pale);
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--border); color: var(--text-main); }

.btn-danger {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}
.btn-danger:hover { background: #c0392b; }

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* ===== 表格 ===== */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

/* 工程造价登记表：固定比例铺满、不横向滚动 */
.proj-tbl { font-size: 12.5px; }
.proj-tbl thead th { padding: 9px 8px; font-size: 12px; }
.proj-tbl td { padding: 8px 8px; vertical-align: middle; }
.proj-tbl .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-tbl .btn-sm { padding: 3px 7px; font-size: 11.5px; margin: 1px 2px; }

thead th {
  background: var(--primary-pale);
  color: var(--primary);
  font-weight: 600;
  padding: 11px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
  font-size: 12.5px;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

tbody tr:hover { background: #fafbff; }

tbody td {
  padding: 11px 14px;
  color: var(--text-main);
  vertical-align: middle;
}

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
}

.tag-blue { background: var(--primary-pale); color: var(--primary); }
.tag-orange { background: #FFF0EA; color: var(--accent); }
.tag-green { background: #E8F5E9; color: #2e7d32; }
.tag-red { background: #FFEBEE; color: #c62828; }
.tag-gray { background: var(--bg-pale); color: var(--text-muted); }
.tag-purple { background: #F3E5F5; color: #7b1fa2; }
.tag-yellow { background: #FFFDE7; color: #f57f17; }

/* ===== 搜索/过滤栏 ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #fafbff;
  border-bottom: 1px solid var(--border);
}

.search-input {
  padding: 8px 12px 8px 32px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 10px center;
  outline: none;
  min-width: 200px;
  flex: 1;
  max-width: 280px;
}
.search-input:focus { border-color: var(--primary); }

.filter-select {
  padding: 8px 28px 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  outline: none;
  color: var(--text-main);
}
.filter-select:focus { border-color: var(--primary); }

/* ===== 进度条 ===== */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.progress-fill.blue { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.progress-fill.orange { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.progress-fill.green { background: linear-gradient(90deg, #27ae60, #2ecc71); }

/* ===== 通知面板 ===== */
.notify-panel {
  position: fixed;
  top: var(--topbar-h);
  right: 0;
  width: 360px;
  max-height: calc(100vh - var(--topbar-h));
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,19,131,0.15);
  z-index: 500;
  display: flex;
  flex-direction: column;
}

.notify-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.notify-header button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
}

.notify-list { overflow-y: auto; flex: 1; }

.notify-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}
.notify-item:hover { background: var(--primary-pale); }
.notify-clickable { border-left: 3px solid var(--primary); }
.notify-item-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 4px;
}
.notify-item-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.notify-item-time {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}
.notify-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* ===== 遮罩 ===== */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 400;
}

/* ===== 模态框 ===== */
.modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 600;
  padding: 20px;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}
.modal-header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px 6px;
}
.modal-header button:hover { color: var(--text-dark); }

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

/* ===== 移动端底部导航 ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 300;
  box-shadow: 0 -2px 10px rgba(0,19,131,0.08);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s;
  padding: 6px 0;
}

.mobile-nav-item span { font-size: 20px; }
.mobile-nav-item label { font-size: 10px; cursor: pointer; }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item.active label { font-weight: 600; }

/* ===== 页面内容区 ===== */
.page-header {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.page-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 看板样式 ===== */
.kanban-wrap {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.kanban-col {
  min-width: 240px;
  flex: 1;
  background: var(--bg-pale);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.kanban-col-header {
  padding: 12px 16px;
  background: var(--primary-pale);
  border-bottom: 2px solid var(--accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-count {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 11px;
}

.kanban-cards {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100px;
}

.kanban-card {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,19,131,0.12);
}

.kanban-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.kanban-card-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ===== 图表容器 ===== */
.chart-container {
  position: relative;
  height: 260px;
  width: 100%;
}

/* ===== 环形进度 ===== */
.ring-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state-text {
  font-size: 14px;
  margin-bottom: 16px;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.page-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Timeline ===== */
.timeline { padding: 8px 0; }
.timeline-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  position: relative;
}
.timeline-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.timeline-dot.orange { background: var(--accent); }
.timeline-dot.green { background: #27ae60; }
.timeline-dot.gray { background: var(--text-light); }
.timeline-line {
  position: absolute;
  left: 5px; top: 20px;
  width: 2px;
  height: calc(100% - 8px);
  background: var(--border);
}
.timeline-content {
  flex: 1;
  padding-bottom: 16px;
}
.timeline-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
}
.timeline-time {
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ===== 文档卡片网格 ===== */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.doc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.doc-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.doc-card-icon { font-size: 36px; margin-bottom: 10px; }
.doc-card-name { font-size: 13px; font-weight: 500; color: var(--text-main); word-break: break-all; }
.doc-card-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ===== 风险预警 ===== */
.risk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  margin-bottom: 10px;
}
.risk-item.high { background: #FFF5F5; border-color: #ffcdd2; }
.risk-item.medium { background: #FFFDE7; border-color: #fff176; }
.risk-item.low { background: #E8F5E9; border-color: #c8e6c9; }
.risk-icon { font-size: 20px; flex-shrink: 0; }
.risk-content { flex: 1; }
.risk-title { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.risk-item.high .risk-title { color: #c62828; }
.risk-item.medium .risk-title { color: #e65100; }
.risk-item.low .risk-title { color: #2e7d32; }
.risk-desc { font-size: 12.5px; color: var(--text-muted); }

/* ===== 费率计算器 ===== */
.calc-result {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  text-align: center;
  margin-top: 16px;
}
.calc-result-label { font-size: 13px; opacity: 0.8; margin-bottom: 8px; }
.calc-result-value { font-size: 32px; font-weight: 700; }
.calc-result-sub { font-size: 12px; opacity: 0.7; margin-top: 6px; }

/* ===== 绩效表格 ===== */
.perf-bar-wrap { display: flex; align-items: center; gap: 8px; }
.perf-bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.perf-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }

/* ===== 利润看板 ===== */
.profit-summary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #0055ff 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.profit-summary::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.profit-summary-title { font-size: 13px; opacity: 0.75; margin-bottom: 6px; }
.profit-summary-value { font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.profit-summary-sub { font-size: 12.5px; opacity: 0.65; }

/* ===== 指标库 ===== */
.indicator-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: box-shadow 0.15s;
}
.indicator-card:hover { box-shadow: var(--shadow-md); }
.indicator-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0;
}
.indicator-unit { font-size: 14px; font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.indicator-type { font-size: 12px; color: var(--text-muted); }
.indicator-name { font-size: 14px; font-weight: 600; color: var(--text-main); }

/* ===== 询价库 ===== */
.price-badge {
  background: #FFF0EA;
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== 合规检查 ===== */
.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.check-item.pass { border-color: #c8e6c9; background: #F1F8F2; }
.check-item.fail { border-color: #ffcdd2; background: #FFF5F5; }
.check-item.warn { border-color: #fff176; background: #FFFDE7; }
.check-status { font-size: 18px; flex-shrink: 0; }
.check-desc { flex: 1; font-size: 13px; }
.check-item.pass .check-desc { color: #2e7d32; }
.check-item.fail .check-desc { color: #c62828; }
.check-item.warn .check-desc { color: #e65100; }
