body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Microsoft YaHei", sans-serif; background:#f6f7fb; color:#222; font-size:15px; line-height:1.4; }
.container { max-width: 1400px; margin: 24px auto; padding: 0 16px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 16px 0; }
h1 { margin: 0; font-size: 32px; line-height: 1.2; }
.header-logo { height: 48px; width: auto; object-fit: contain; vertical-align: middle; }
.panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px 20px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:12px; }
input, select { padding:8px 12px; height:36px; border:1px solid #d1d5db; border-radius:8px; font-size:14px; background:#fff; box-sizing:border-box; }
input[type="file"] { height:auto; padding:6px 12px; line-height:normal; }
textarea { padding:10px 12px; border:1px solid #d1d5db; border-radius:8px; font-size:14px; width:100%; box-sizing:border-box; }
/* 两列对称排版 */
.form-col { flex: 1 1 480px; min-width: 280px; }
button { padding:8px 14px; height:36px; border:1px solid #3b82f6; background:#3b82f6; color:#fff; border-radius:8px; cursor:pointer; }
button:hover { background:#2563eb; }
.message { margin-top:10px; color:#2563eb; }
.table-wrap { 
  overflow: auto; 
  max-height: 560px; 
  border: 1px solid #e5e7eb; 
  border-radius: 8px;
  display: block;
  position: relative;
}
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #e5e7eb; padding: 10px 12px; text-align: right; font-size:14px; line-height: 1.5; }
th:first-child, td:first-child { text-align:left; }
th { background:#f3f4f6; }

table th,
table td {
  padding: 10px 12px;
  line-height: 1.5;
  text-align: left;
  vertical-align: middle;
}

/* 数据标红样式 */
td.highlight-red {
  color: #d32f2f !important;
  font-weight: 600;
}

/* 年度汇总表底部说明样式 */
.table-note { margin-top: 8px; color:#6b7280; font-size:13px; }

/* 年度摘要下方展示历史走势图（宽度随容器自适应） */
.chart-wrap { background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:12px 12px; }
.chart-wrap canvas { width: 100% !important; height: 400px !important; }

/* 树形选择样式 - 美化版 */
.tree-container { 
  border: 1px solid #e5e7eb; 
  border-radius: 10px; 
  background: #fff; 
  padding: 12px; 
  max-height: 360px; 
  overflow: auto; 
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.tree-list { list-style: none; padding: 0; margin: 0; }
.tree-item { padding: 2px 0; }
.tree-row { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  border-radius: 8px; 
  padding: 8px 12px; 
  cursor: pointer; 
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.tree-row:hover { 
  background: #f8fafc; 
  border-color: #e5e7eb;
  transform: translateY(-1px);
}
.tree-item.hover .tree-row { background: #f1f5f9; }
.tree-row.focused { 
  outline: 2px solid #3b82f6; 
  outline-offset: 2px;
  background: #eff6ff;
}
.toggle { 
  width: 22px; 
  text-align: center; 
  color: #6b7280; 
  font-size: 14px;
  transition: transform 0.2s ease;
}
.toggle.expanded { transform: rotate(90deg); }
.toggle .placeholder { color: #d1d5db; }
.label { 
  color: #374151; 
  font-size: 14px;
  transition: color 0.15s ease;
}
.spacer { flex: 1; }
.checkbox { 
  width: 18px; 
  height: 18px; 
  border-radius: 4px;
  border: 2px solid #d1d5db;
  background: #fff;
  transition: all 0.15s ease;
  position: relative;
}
.checkbox:checked {
  background: #3b82f6;
  border-color: #3b82f6;
}
.checkbox:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}
.is-selected .tree-row { 
  background: #eff6ff; 
  border-color: #93c5fd;
}
.is-selected .label { 
  color: #1e40af; 
  font-weight: 600;
}
.depth-0 .tree-row { 
  font-weight: 600; 
  background: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
}
.depth-0 .label { color: #111827; }
.depth-1 .tree-row { padding-left: 32px; }
.depth-2 .tree-row { padding-left: 48px; }

/* 动画：展开/折叠 */
.tree-enter-active, .tree-leave-active { 
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
}
.tree-enter-from, .tree-leave-to { 
  opacity: 0; 
  transform: translateY(-8px); 
}

/* 选择统计区域美化 */
.merge-selection-stats {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
}
.merge-selection-stats .count {
  color: #3b82f6;
  font-weight: 600;
  font-size: 16px;
}
.merge-selection-stats .names {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 6px;
}

/* 模式切换按钮美化 */
.mode-toggle {
  display: flex;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 12px;
}
.mode-toggle button {
  flex: 1;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #6b7280;
  border-radius: 6px;
  font-size: 13px;
}
.mode-toggle button.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

/* 响应式优化：窄屏下增大点击区域 */
@media (max-width: 640px) {
  .tree-row { padding: 12px 16px; }
  .checkbox { width: 22px; height: 22px; }
  .tree-container { max-height: 300px; }
}

/* 月度摘要（#summary）首列加宽并防止中文竖排换行 */
#summary .annual-summary-table th:first-child,
#summary .annual-summary-table td:first-child {
  min-width: 140px;
  white-space: nowrap;
  word-break: keep-all;
}


/* 年度/当月摘要首列统一宽度与不换行（两者保持一致） */
.annual-summary-table th:first-child,
.annual-summary-table td:first-child {
  min-width: 140px;
  white-space: nowrap;
  word-break: keep-all;
}

/* 摘要表格固定表头和首列 */
#summary .annual-summary-table th,
#team-annual-summary .annual-summary-table th {
  position: sticky;
  top: 0;
  background: #f3f4f6;
  z-index: 10;
}

#summary .annual-summary-table th:first-child,
#team-annual-summary .annual-summary-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 15;
}

#summary .annual-summary-table td:first-child,
#team-annual-summary .annual-summary-table td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 5;
}

/* 摘要表格固定表头和首列 */
#summary table.annual-summary-table,
#team-annual-summary table.annual-summary-table {
  border-collapse: separate !important;
  border-spacing: 0;
}

/* 固定表头 - 所有表头单元格 */
#summary table.annual-summary-table thead th,
#team-annual-summary table.annual-summary-table thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f3f4f6 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 固定首列 - 数据行第一列 */
#summary table.annual-summary-table tbody td:first-child,
#team-annual-summary table.annual-summary-table tbody td:first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 5;
  background: #fff !important;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

/* 固定左上角单元格 - 表头第一列 */
#summary table.annual-summary-table thead th:first-child,
#team-annual-summary table.annual-summary-table thead th:first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  top: 0;
  z-index: 20;
  background: #f3f4f6 !important;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

/* 模态框样式 */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
}

.close-modal {
  width: 32px;
  height: 32px;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.close-modal:hover {
  color: #374151;
  background: #f3f4f6;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 12px;
  align-items: center;
}

.modal-close,
.close-btn {
  width: 32px;
  height: 32px;
  color: #9ca3af;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 0;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover,
.close-btn:hover {
  color: #374151;
  background: #f3f4f6;
}

.icon-x {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.close-modal .icon-x,
.modal-close .icon-x,
.close-btn .icon-x,
.tiger-chat-close .icon-x,
.profile-panel-close .icon-x,
.btn-link .icon-x,
.btn-remove-order .icon-x,
.recommendation-row .btn-remove .icon-x,
.btn-icon .icon-x {
  width: 16px;
  height: 16px;
}

.case-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-type {
  font-weight: 600;
  color: #6366f1;
}

.case-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.case-status.published {
  background: #d1fae5;
  color: #059669;
}

.case-status.draft {
  background: #fef3c7;
  color: #d97706;
}

.case-body {
  flex: 1;
}

.case-job {
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.case-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #6b7280;
}

.case-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9ca3af;
}

.case-actions {
  display: flex;
  gap: 8px;
}

.case-actions button {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
}

.cases-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.download-info {
  background: #f3f4f6;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #374151;
}

.download-info strong {
  color: #111827;
}

.download-files {
  margin-bottom: 20px;
}

.file-category {
  margin-bottom: 24px;
}

.file-category-title {
  font-weight: 600;
  font-size: 16px;
  color: #111827;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3b82f6;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  transition: all 0.2s;
}

.file-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.file-name {
  font-size: 14px;
  color: #374151;
  flex: 1;
}

.file-download-btn {
  padding: 6px 12px;
  height: auto;
  font-size: 13px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.file-download-btn:hover {
  background: #2563eb;
}

.download-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.download-actions button {
  flex: 1;
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
  border: 1px solid #3b82f6;
}

.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.btn-secondary {
  background: #fff;
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.btn-secondary:hover {
  background: #eff6ff;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  background: #f97316;
  color: #fff;
  border: none;
  cursor: pointer;
}

.btn-sm:hover {
  background: #ea580c;
}

.empty-message {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-size: 15px;
}

/* 下载区域分组样式 */
.download-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.download-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
}

.section-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.file-count {
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
}

.section-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.btn-action {
  padding: 10px 20px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-action:hover {
  background: #2563eb;
}

.btn-action-secondary {
  padding: 10px 20px;
  background: #fff;
  color: #3b82f6;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-action-secondary:hover {
  background: #eff6ff;
}

/* 业绩明细管理样式 */
.perf-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.perf-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.perf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.perf-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perf-card-upload .perf-card-header h3 {
  margin: 0;
}

.perf-upload-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.perf-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  align-items: center;
}

.perf-filter-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.perf-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 16px;
  margin-bottom: 0;
}

.perf-filter-grid-tight label {
  font-size: 14px;
  color: #111827;
}

.perf-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.perf-section:last-child {
  border-bottom: none;
}

/* 业绩筛选区域Grid布局 */
.perf-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 16px;
  margin-bottom: 12px;
}

.perf-filter-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #374151;
}

.perf-filter-grid select {
  flex: 1;
  min-width: 100px;
}

.perf-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.perf-filter-row-compact {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
}

.perf-filter-actions {
  display: flex;
  gap: 10px;
}

.perf-search-input {
  min-width: 220px;
  flex: 1;
  max-width: 320px;
}

.amount-range {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.amount-range input {
  width: 80px;
}

.perf-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.perf-action-row-tight {
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.perf-action-left {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.perf-stats-info {
  margin-left: auto;
  font-size: 14px;
  color: #6b7280;
}

.perf-table-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.01);
}

.perf-table-container {
  max-height: 600px;
  overflow: auto;
}

.perf-pagination-tight {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-warn {
  background: #f97316;
  color: #fff;
  border: none;
}

.btn-warn:hover {
  background: #ea580c;
}

/* 图标按钮样式 */
.icon-btn {
  padding: 4px 8px;
  min-width: auto;
  font-size: 14px;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.icon-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.icon-btn.btn-approve {
  color: #059669;
  border-color: #10b981;
}

.icon-btn.btn-approve:hover {
  background: #d1fae5;
}

.icon-btn.btn-reject {
  color: #dc2626;
  border-color: #ef4444;
}

.icon-btn.btn-reject:hover {
  background: #fee2e2;
}

.icon-btn.btn-delete {
  color: #dc2626;
}

.icon-btn.btn-delete:hover {
  background: #fee2e2;
  border-color: #ef4444;
}

/* 操作按钮行样式 */
.btn-primary {
  background: #3b82f6;
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-success {
  background: #10b981;
  color: white;
  border: none;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: #ef4444;
  color: white;
  border: none;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-secondary {
  background: #6b7280;
  color: white;
  border: none;
}

.btn-secondary:hover {
  background: #4b5563;
}

.section-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px 0;
}

.perf-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 12px;
}

.perf-pagination button {
  min-width: 80px;
}

#perf-page-info {
  font-size: 14px;
  color: #6b7280;
}

/* 表单网格布局 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.required {
  color: #ef4444;
  font-weight: bold;
}

.warning-msg {
  font-size: 13px;
  color: #f59e0b;
  margin-top: 4px;
}

.onboard-only {
  display: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.form-actions button {
  min-width: 100px;
  padding: 10px 20px;
}

/* 审核按钮和批量操作 */
.btn-approve {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  margin: 0 2px;
}

.btn-approve:hover {
  background-color: #45a049;
}

.btn-reject {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  margin: 0 2px;
}

.btn-reject:hover {
  background-color: #da190b;
}

.batch-audit-btns {
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.perf-table-header {
  margin-bottom: 10px;
}

.audit-actions {
  text-align: center;
}

/* 通知功能 */
.notification-bell {
  position: relative;
  cursor: pointer;
  font-size: 24px;
  margin-right: 15px;
  padding: 5px;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #f44336;
  color: white;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: bold;
  line-height: 18px;
  text-align: center;
  padding: 0 4px;
  box-sizing: border-box;
}

.header-right {
  display: flex;
  align-items: center;
}

.pending-badge {
  background-color: #ff9800;
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 13px;
  margin-left: 10px;
  font-weight: normal;
}

.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.audit-summary-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audit-summary-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.audit-summary-item span {
  font-size: 14px;
}

.audit-summary-item strong {
  font-size: 20px;
  color: #2563eb;
}

.audit-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.audit-filter-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #374151;
}

.audit-filter-row input,
.audit-filter-row select {
  min-width: 140px;
  height: 34px;
  padding: 6px 10px;
}

.audit-keyword-field {
  min-width: 260px;
  flex: 1 1 260px;
}

.audit-keyword-field input {
  width: 100%;
}

.audit-table-wrap {
  max-height: 420px;
}

.audit-table-wrap table {
  min-width: 980px;
}

.audit-pagination-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.audit-pagination-row span {
  color: #6b7280;
  font-size: 13px;
}

.audit-empty-message {
  padding: 16px;
  color: #6b7280;
  text-align: center;
}

.admin-tiger-log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-tiger-log-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
}

.admin-tiger-log-item:hover {
  border-color: #f97316;
  background: #fff7ed;
}

.admin-tiger-log-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #6b7280;
  flex-wrap: wrap;
}

.admin-tiger-log-time {
  font-weight: 500;
}

.admin-tiger-log-user {
  color: #111827;
  font-weight: 600;
}

.admin-tiger-log-source {
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.admin-tiger-log-question,
.admin-tiger-log-answer {
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

.admin-tiger-log-answer {
  color: #4b5563;
  margin-top: 4px;
}

.admin-tiger-log-detail-modal {
  max-width: 760px;
  width: 92%;
  max-height: 82vh;
}

.admin-tiger-log-detail-body {
  overflow-y: auto;
}

.admin-tiger-log-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 14px;
}

.admin-tiger-log-detail-section {
  margin-bottom: 14px;
}

.admin-tiger-log-detail-section h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #111827;
}

.admin-tiger-log-detail-text {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  color: #374151;
  line-height: 1.65;
}

.notification-modal {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

.notification-list {
  padding: 10px;
}

.notification-item {
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.notification-item.unread {
  background-color: #e3f2fd;
  border-left: 4px solid #2196F3;
}

.notification-item.read {
  background-color: #f9f9f9;
}

.notification-item:hover {
  background-color: #f0f0f0;
}

.notification-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.notification-content {
  color: #666;
  margin-bottom: 5px;
  font-size: 14px;
}

.notification-time {
  font-size: 12px;
  color: #999;
}

/* 审核状态标签 */
.audit-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.audit-pending {
  background: #fef3c7;
  color: #92400e;
}

.audit-approved {
  background: #d1fae5;
  color: #065f46;
}

.audit-rejected {
  background: #fee2e2;
  color: #991b1b;
}

/* 业绩表格特殊样式 */
#perf-table {
  max-height: 600px;
  overflow: auto;
}

#perf-table table {
  font-size: 14px;
  min-width: 2000px;
  white-space: nowrap;
}

#perf-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  padding: 5px 8px;
  line-height: 1.2;
  font-size: 12px;
  z-index: 10;
  font-weight: 600;
  padding: 10px 12px;
  line-height: 1.5;
  font-size: 14px;
  text-align: left;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

#perf-table td {
  padding: 4px 8px;
  line-height: 1.2;
  font-size: 12px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

#perf-table td:nth-child(1) {
  text-align: center;
  width: 40px;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 5;
}

#perf-table th:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 15;
  background: #f8fafc;
}

#perf-table td:nth-child(2),
#perf-table td:nth-child(3),
#perf-table td:nth-child(4),
#perf-table td:nth-child(5),
#perf-table td:nth-child(6),
#perf-table td:nth-child(7),
#perf-table td:nth-child(8),
#perf-table td:nth-child(9) {
  position: sticky;
  background: #fff;
  z-index: 5;
}
#perf-table td:nth-child(2) { left: 40px; }
#perf-table td:nth-child(3) { left: 130px; }
#perf-table td:nth-child(4) { left: 230px; }
#perf-table td:nth-child(5) { left: 310px; }
#perf-table td:nth-child(6) { left: 400px; }
#perf-table td:nth-child(7) { left: 520px; }
#perf-table td:nth-child(8) { left: 640px; }
#perf-table td:nth-child(9) { left: 700px; }

#perf-table th:nth-child(2),
#perf-table th:nth-child(3),
#perf-table th:nth-child(4),
#perf-table th:nth-child(5),
#perf-table th:nth-child(6),
#perf-table th:nth-child(7),
#perf-table th:nth-child(8),
#perf-table th:nth-child(9) {
  position: sticky;
  background: #f8fafc;
  z-index: 15;
}
#perf-table th:nth-child(2) { left: 40px; }
#perf-table th:nth-child(3) { left: 130px; }
#perf-table th:nth-child(4) { left: 230px; }
#perf-table th:nth-child(5) { left: 310px; }
#perf-table th:nth-child(6) { left: 400px; }
#perf-table th:nth-child(7) { left: 520px; }
#perf-table th:nth-child(8) { left: 640px; }
#perf-table th:nth-child(9) { left: 700px; }

#perf-table td:nth-child(10),
#perf-table td:nth-child(11) {
  position: sticky;
  background: #fff;
  z-index: 5;
}
#perf-table td:nth-child(10) { left: 780px; }
#perf-table td:nth-child(11) { left: 880px; }

#perf-table th:nth-child(10),
#perf-table th:nth-child(11) {
  position: sticky;
  background: #f8fafc;
  z-index: 15;
}
#perf-table th:nth-child(10) { left: 780px; }
#perf-table th:nth-child(11) { left: 880px; }

#perf-table .amount-cell {
  font-weight: 600;
  color: #059669;
  text-align: right;
}

#perf-table .amount-negative {
  color: #dc2626;
}

#perf-table tbody tr {
  border-bottom: 1px solid #eef2ff;
}

#perf-table tbody tr:hover {
  background: #f8fafc;
}


.action-pill {
  border: none;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  gap: 6px;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.action-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.action-pill .pill-icon {
  font-size: 13px;
  line-height: 1;
}

.action-pill-edit {
  background: #3b82f6;
  color: #fff;
}

.action-pill-edit:hover {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.action-pill-delete {
  background: #3b82f6;
  color: #fff;
}

.action-pill-delete:hover {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.action-pill-approve {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.action-pill-approve:hover {
  background: rgba(16, 185, 129, 0.22);
}

.action-pill-reject {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3);
}

.action-pill-reject:hover {
  background: rgba(245, 158, 11, 0.2);
}

/* 关键词高亮样式 */
.keyword-highlight {
  background-color: #fef08a;
  color: #854d0e;
  font-weight: 600;
  padding: 1px 2px;
  border-radius: 2px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== 新版V2样式 ==================== */

/* === 登录页样式 === */
.login-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: -1;
}

.login-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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.05'%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");
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.login-logo img {
  height: 80px;
  margin-bottom: 16px;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.login-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 32px 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #9ca3af;
  display: flex;
  align-items: center;
}

.input-group input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s;
  height: auto;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  height: auto;
  margin-top: 8px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-msg {
  font-size: 14px;
  color: #ef4444;
  margin: 8px 0 0 0;
  min-height: 20px;
}

/* === 主应用布局 === */
.main-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f3f4f6;
}

/* === 顶部导航栏 === */
.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  background: linear-gradient(135deg, #0066cc, #004499);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar-logo {
  height: 40px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #ffffff;
}

.navbar-nav {
  display: flex;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  background: #f3f4f6;
  color: #374151;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quote-bar {
  max-width: 400px;
  cursor: pointer;
}

.quote-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #6b7280;
  border-radius: 8px;
  transition: all 0.2s;
  height: auto;
}

.notification-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.help-btn {
  position: relative;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #6b7280;
  border-radius: 8px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.help-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

/* 手机端励志话语栏 */
.mobile-quote-bar {
  display: none;
  padding: 12px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.mobile-quote-bar .quote-text {
  color: white;
  font-size: 12px;
}

/* === 主内容区 === */
.main-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

/* === 频道面板 === */
.channel-panel {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-header h2 {
  margin: 0;
  font-size: 24px;
  color: #1f2937;
}

.panel-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.panel-tabs {
  display: flex;
  gap: 8px;
}

.panel-tab {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
  transition: all 0.2s;
  height: auto;
}

.panel-tab:hover {
  background: #f3f4f6;
}

.panel-tab.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* === 首页V2样式 === */
.home-v2-container {
  max-width: 1600px;
  margin: 0 auto;
}

.welcome-section-v2 {
  margin-bottom: 24px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
  border-left: 4px solid #4f46e5;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.welcome-section-v2::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(79, 70, 229, 0.03) 100%);
  border-radius: 0 16px 16px 0;
  pointer-events: none;
}

.welcome-text-v2 {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

#home-rank.rank-highlight {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

#home-rank.rank-basic {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.welcome-quote-v2 {
  font-size: 15px;
  color: #6b7280;
  font-weight: 400;
  margin-top: 8px;
  display: block;
}

.latest-announcement {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 10px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 16px;
  font-size: 13px;
  color: #92400e;
  transition: all 0.2s;
  max-width: 200px;
}
.latest-announcement:hover {
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  transform: translateY(-1px);
}
.latest-announcement .announcement-icon {
  flex-shrink: 0;
}
#latest-announcement-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.announcement-list-item:hover {
  background: #f9fafb;
  border-color: #3b82f6;
}
.announcement-list-title {
  font-weight: 500;
  color: #1f2937;
  font-size: 14px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}
.announcement-list-time {
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}

.announcement-split-layout {
  display: flex;
  gap: 16px;
  max-height: 55vh;
}
.announcement-left-panel {
  width: 40%;
  overflow-y: auto;
  border-right: 1px solid #e5e7eb;
  padding-right: 16px;
}
.announcement-right-panel {
  width: 60%;
  overflow-y: auto;
}
.announcement-list-item.active {
  background: #eff6ff;
  border-color: #3b82f6;
}

.btn-back {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}
.btn-back:hover {
  color: #3b82f6;
}
.btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 8px;
}
.btn-danger:hover {
  background: #dc2626;
}

.welcome-tiger-icon {
  height: 32px;
  vertical-align: middle;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.welcome-tiger-icon.show {
  opacity: 1;
}

.top-deals-section {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  z-index: 1;
}

.deal-card {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 260px;
  animation: dealSlideIn 0.5s ease forwards;
  opacity: 0;
}

.deal-card:nth-child(1) { animation-delay: 0.1s; }
.deal-card:nth-child(2) { animation-delay: 0.3s; }
.deal-card:nth-child(3) { animation-delay: 0.5s; }

@keyframes dealSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.normal-deal {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid #7dd3fc;
  color: #0369a1;
}

.normal-deal .deal-label { color: #0284c7; font-weight: 600; }

.gold-deal {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  color: #92400e;
  animation: dealSlideIn 0.5s ease forwards, goldGlow 1.5s ease-in-out infinite;
}

.gold-deal .deal-label {
  color: #d97706;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.gold-deal .deal-amount {
  font-weight: 700;
  color: #b45309;
  animation: amountPulse 1s ease-in-out infinite;
}

@keyframes goldGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }
  50% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.8); }
}

@keyframes amountPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.deal-amount { display: inline-block; }

.content-scroll-v2 {
  overflow: visible;
}

.dashboard-grid-v2 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.col-span-2-v2 { grid-column: span 2; }
.col-span-3-v2 { grid-column: span 3; }
.col-span-4-v2 { grid-column: span 4; }
.col-span-6-v2 { grid-column: span 6; }
.col-span-10-v2 { grid-column: span 10; }
.col-span-12-v2 { grid-column: span 12; }

.card-v2 {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* === 统计卡片 === */
.stat-card-v2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-header-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon-v2 {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon-v2.blue { background: #dbeafe; }
.stat-icon-v2.orange { background: #ffedd5; }
.stat-icon-v2.green { background: #dcfce7; }
.stat-icon-v2.purple { background: #f3e8ff; }

.status-badge-v2 {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.status-info-v2 { background: #dbeafe; color: #1e40af; }
.status-warning-v2 { background: #fef3c7; color: #92400e; }
.status-success-v2 { background: #dcfce7; color: #166534; }

.stat-value-v2 {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
}

.stat-trend-v2 {
  font-size: 13px;
  color: #6b7280;
}

.trend-up-v2 span { color: #10b981; }
.trend-down-v2 span { color: #ef4444; }

/* === 龙虎榜样式 === */
.rank-card-v2 {
  height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rank-title-v2 {
  margin: 0 0 16px 0;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rank-subtitle-v2 {
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}

.rank-list-v2 {
  flex: 1;
  overflow-y: auto;
}

.rank-table-v2 {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rank-table-v2 th,
.rank-table-v2 td {
  padding: 10px 8px;
  border: none;
  text-align: left;
}

.rank-table-v2 thead th {
  color: #6b7280;
  font-weight: 500;
  border-bottom: 1px solid #f3f4f6;
}

.rank-row-v2 {
  border-bottom: 1px solid #f9fafb;
}

.rank-row-v2:last-child {
  border-bottom: none;
}

.rank-cell-v2 {
  width: 50px;
  text-align: center;
}

.name-cell-v2 {
  font-weight: 500;
  color: #374151;
}

.rank-badge-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 600;
  color: #fff;
  font-size: 12px;
}

.rank-1-v2 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.rank-2-v2 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.rank-3-v2 { background: linear-gradient(135deg, #fb923c, #ea580c); }

.rank-num-v2 {
  display: inline-block;
  width: 26px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
}

/* === 日历样式 === */
.calendar-widget-v2 {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.calendar-header-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.calendar-title-v2 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.calendar-nav-v2 {
  display: flex;
  gap: 8px;
}

.calendar-nav-v2 button {
  width: 28px;
  height: 28px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #6b7280;
  transition: all 0.2s;
}

.calendar-nav-v2 button:hover {
  background: #f3f4f6;
  color: #374151;
}

.calendar-grid-v2 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  flex: 1;
  text-align: center;
  overflow: auto;
}

.cal-day-name-v2 {
  font-size: clamp(10px, 0.9vw, 12px);
  text-align: center;
  color: #9ca3af;
  padding: 0.5em 0;
  font-weight: 500;
}

.cal-date-v2 {
  min-height: 3.6em;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: clamp(12px, 1vw, 14px);
  border-radius: 6px;
  cursor: pointer;
  color: #374151;
  transition: all 0.2s;
  overflow: hidden;
}

.cal-date-v2:hover {
  background: #f3f4f6;
}

.cal-date-num-v2 {
  font-weight: 600;
  line-height: 1.1;
}

.cal-date-v2.has-event-v2 {
  background: #f8fafc;
}

.cal-date-event-v2 {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.15;
  color: #2563eb;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-date-more-v2 {
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.1;
  color: #6b7280;
}

.cal-date-v2.today-v2 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
}

.cal-date-v2.today-v2 .cal-date-event-v2,
.cal-date-v2.today-v2 .cal-date-more-v2 {
  color: #eef2ff;
}

.cal-date-v2.has-custom-event-v2 {
  background: #fffbeb;
}
.cal-date-v2.has-event-v2.has-custom-event-v2 {
  background: linear-gradient(135deg, #f8fafc 50%, #fffbeb 50%);
}
.cal-date-custom-event-v2 {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.15;
  color: #92400e;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-date-v2.today-v2.has-custom-event-v2 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.cal-date-v2.today-v2 .cal-date-custom-event-v2 {
  color: #fde68a;
}

.cal-event-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.cal-event-modal-box {
  background: #fff; border-radius: 12px;
  width: 380px; max-width: 92vw; max-height: 80vh;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.cal-event-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid #f3f4f6;
  font-weight: 600; font-size: 15px; color: #1f2937;
}
.cal-event-modal-close {
  background: none; border: none; font-size: 20px; cursor: pointer; color: #9ca3af; line-height: 1;
}
.cal-event-modal-close:hover { color: #374151; }
.cal-event-modal-body {
  padding: 14px 18px; overflow-y: auto; flex: 1;
}
.cal-event-section-title {
  font-size: 12px; font-weight: 600; color: #6b7280;
  margin: 10px 0 6px; text-transform: uppercase; letter-spacing: .5px;
}
.cal-event-section-title:first-child { margin-top: 0; }
.cal-event-item {
  padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; font-size: 13px;
}
.cal-event-item.anniv-item {
  background: #eff6ff; color: #2563eb;
}
.cal-event-item.custom-item {
  background: #fffbeb; color: #92400e;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.cal-event-item.editing {
  background: #f9fafb; border: 1px solid #e5e7eb;
}
.cal-event-item-text { flex: 1; word-break: break-all; }
.cal-evt-input {
  display: block; width: 100%; padding: 7px 10px;
  border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 13px; margin-bottom: 6px; outline: none;
  box-sizing: border-box;
}
.cal-evt-input:focus { border-color: #6366f1; }
.cal-evt-actions { display: flex; gap: 4px; flex-shrink: 0; }
.cal-evt-btn {
  padding: 4px 10px; border: none; border-radius: 5px;
  font-size: 12px; cursor: pointer; white-space: nowrap;
}
.cal-evt-btn.save { background: #6366f1; color: #fff; }
.cal-evt-btn.save:hover { background: #4f46e5; }
.cal-evt-btn.edit { background: #e0e7ff; color: #4338ca; }
.cal-evt-btn.edit:hover { background: #c7d2fe; }
.cal-evt-btn.del { background: #fee2e2; color: #dc2626; }
.cal-evt-btn.del:hover { background: #fecaca; }
.cal-evt-btn.cancel { background: #f3f4f6; color: #374151; }
.cal-evt-btn.cancel:hover { background: #e5e7eb; }

.cal-date-v2.empty-v2 {
  pointer-events: none;
  color: transparent;
  background: transparent;
}

/* === 木鱼样式 (design-v2.css 完整版) === */
.muyu-card-v2 {
  background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
  border: 1px solid #fed7aa;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.muyu-title-v2 {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 16px;
  font-weight: 600;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 8px;
}

.muyu-wrapper-v2 {
  position: relative;
  width: 160px;
  height: 140px;
  cursor: pointer;
  margin-top: 20px;
}

/* 木鱼主体 - 纯CSS绘制 */
.muyu-body-v2 {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 80px;
  background: radial-gradient(circle at 40% 30%, #b45309, #78350f);
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  box-shadow: 
    0 10px 20px rgba(120, 53, 15, 0.3),
    inset 0 5px 10px rgba(255,255,255,0.2),
    inset 0 -5px 15px rgba(0,0,0,0.3);
  z-index: 1;
  transition: transform 0.1s;
}

/* 木鱼开口 */
.muyu-body-v2::before {
  content: '';
  position: absolute;
  top: 55%;
  left: 10%;
  width: 80%;
  height: 12px;
  background: #451a03;
  border-radius: 20px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

/* 木鱼纹理 */
.muyu-body-v2::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 30%;
  border-radius: 50%;
  border-top: 2px solid rgba(255,255,255,0.1);
}

/* 木槌 - 纯CSS绘制 */
.muyu-mallet-v2 {
  position: absolute;
  top: 0px;
  right: -15px;
  width: 10px;
  height: 100px;
  background: #92400e;
  border-radius: 6px;
  transform-origin: 50% 100%;
  transform: rotate(-45deg);
  z-index: 2;
  transition: transform 0.1s;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* 木槌头部 */
.muyu-mallet-v2::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 30% 30%, #d97706, #92400e);
  border-radius: 50%;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

/* 敲击动画 - 向下敲击 */
.muyu-wrapper-v2.active .muyu-mallet-v2 {
  animation: strikeDown 0.2s cubic-bezier(0.1, 0.7, 1.0, 0.1) forwards;
}

.muyu-wrapper-v2.active .muyu-body-v2 {
  animation: shake 0.2s ease-out forwards;
  animation-delay: 0.1s;
}

@keyframes strikeDown {
  0% { transform: rotate(-45deg); }
  50% { transform: rotate(-60deg); }
  100% { transform: rotate(-80deg); }
}

@keyframes shake {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(0.98); }
  100% { transform: translateX(-50%) scale(1); }
}

.muyu-count-v2 {
  margin-top: 24px;
  font-size: 14px;
  color: #92400e;
  font-weight: 500;
  background: rgba(255,255,255,0.6);
  padding: 4px 12px;
  border-radius: 20px;
}

/* 功德+1 动画文字 */
.merit-text-v2 {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  color: #d97706;
  font-weight: bold;
  font-size: 20px;
  pointer-events: none;
  animation: floatUpMuyu 1s ease-out forwards;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(255,255,255,0.8);
  white-space: nowrap;
}

.merit-text-v2.tiger { color: #dc2626; font-size: 24px; text-shadow: 0 2px 10px rgba(220, 38, 38, 0.3); }
.merit-text-v2.offer { color: #d97706; }
.merit-text-v2.onboard { color: #059669; }
.merit-text-v2.interview { color: #2563eb; }
.merit-text-v2.merit { color: #92400e; }

@keyframes floatUpMuyu {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(1.2); }
}

/* === 便签样式 === */
.sticky-widget-v2 {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: none;
}

.sticky-textarea-v2 {
  width: 100%;
  border: none;
  background: transparent;
  resize: none;
  font-size: 14px;
  color: #92400e;
  line-height: 1.6;
}

.sticky-textarea-v2::placeholder {
  color: #b45309;
  opacity: 0.6;
}

.sticky-textarea-v2:focus {
  outline: none;
}

/* === 小虎助手样式 === */
.tiger-assistant {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.tiger-chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
  transition: all 0.3s;
  position: relative;
}

.tiger-chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(249, 115, 22, 0.5);
}

.tiger-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

video.tiger-avatar-small {
  pointer-events: none;
}

.tiger-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiger-chat-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  height: 480px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tiger-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
}

.tiger-chat-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.tiger-usage-display {
  font-size: 11px;
  font-weight: 400;
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
}

.tiger-avatar-header {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
}

.tiger-chat-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.tiger-chat-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.tiger-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tiger-message {
  display: flex;
  gap: 10px;
  max-width: 85%;
}

.tiger-message.bot {
  align-self: flex-start;
}

.tiger-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.tiger-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tiger-message-content {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.tiger-message.bot .tiger-message-content {
  background: #f3f4f6;
  color: #374151;
  border-bottom-left-radius: 4px;
}

.tiger-message.user .tiger-message-content {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.tiger-chat-input-area {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid #e5e7eb;
}

.tiger-chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 14px;
}

.tiger-chat-input-area input:focus {
  outline: none;
  border-color: #f97316;
}

#tiger-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.tiger-tab-buttons {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.tiger-tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.tiger-tab-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.tiger-tab-btn.active {
  color: #f97316;
  border-bottom-color: #f97316;
  background: white;
}

.tiger-chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tiger-history-date {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-align: center;
  margin: 8px 0;
  padding: 4px 0;
}

.tiger-history-item {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #e5e7eb;
}

.tiger-history-item:hover {
  background: #f3f4f6;
  border-color: #f97316;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.1);
}

.tiger-history-time {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 6px;
}

.tiger-history-question {
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
  line-height: 1.4;
}

.tiger-history-question strong {
  color: #f97316;
}

.tiger-history-answer {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.tiger-history-answer strong {
  color: #ea580c;
}

.tiger-loading,
.tiger-empty,
.tiger-error {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-size: 14px;
}

.tiger-error {
  color: #ef4444;
}

/* === 个人主页面板 === */
.profile-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

.profile-panel-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
}

.profile-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.profile-panel-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-panel-header h2 {
  margin: 0;
  font-size: 20px;
}

.profile-panel-back {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.profile-panel-back:hover {
  color: #374151;
  background: #f3f4f6;
}

.profile-panel-back .icon-arrow-left {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.profile-panel-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.profile-panel-close:hover {
  color: #374151;
  background: #f3f4f6;
}

.profile-panel-body {
  padding: 24px;
}

.profile-avatar-section {
  text-align: center;
  margin-bottom: 24px;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #f97316;
}

.profile-avatar-section h3 {
  margin: 0 0 4px 0;
  font-size: 22px;
  color: #1f2937;
}

.profile-role {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.profile-stat-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.profile-stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.profile-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.profile-info-section h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #374151;
}

.profile-info-item {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.profile-info-label {
  width: 80px;
  color: #6b7280;
  font-size: 14px;
}

.profile-info-item span:last-child {
  flex: 1;
  color: #1f2937;
  font-size: 14px;
}

.profile-panel-body {
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
}

.profile-name-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.profile-name-row h3 {
  margin: 0;
  font-size: 24px;
  color: #1f2937;
}

.profile-english-name-display {
  color: #6b7280;
  font-size: 14px;
}

.profile-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.profile-level-badge {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.profile-position-badge {
  background: #e0e7ff;
  color: #4338ca;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.profile-basic-info {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: #4b5563;
}

.profile-info-row i {
  color: #9ca3af;
  margin-right: 6px;
}

.profile-perf-section,
.profile-team-section,
.profile-subordinates-section,
.profile-coins-section,
.profile-bio-section,
.profile-expertise-section {
  margin-bottom: 20px;
}

.profile-perf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.profile-perf-header h4 {
  margin: 0;
  font-size: 16px;
  color: #374151;
}

.profile-perf-header select {
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

.profile-stat-rank {
  font-size: 12px;
  color: #f97316;
  margin-top: 4px;
}

.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.profile-section-header h4 {
  margin: 0;
  font-size: 16px;
  color: #374151;
}

.btn-link {
  background: none;
  border: none;
  color: #f97316;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.btn-link:hover {
  text-decoration: none;
  background: #f3f4f6;
}

.btn-link .icon-x {
  width: 12px;
  height: 12px;
  stroke-width: 2.6;
}

.profile-subordinates-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.subordinate-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.subordinate-item:hover {
  background: #f3f4f6;
}

.subordinate-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.subordinate-name {
  font-size: 12px;
  color: #4b5563;
  text-align: center;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subordinate-empty {
  width: 100%;
  color: #6b7280;
  font-size: 13px;
}

.subordinate-preview-modal {
  z-index: 3200;
}

.subordinate-preview-item {
  margin-bottom: 8px;
  font-size: 14px;
  color: #374151;
}

.subordinate-preview-performance {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.subordinate-preview-perf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: #111827;
  font-size: 14px;
}

.subordinate-preview-loading {
  color: #6b7280;
  font-size: 13px;
}

.subordinate-preview-error {
  color: #ef4444;
  font-size: 13px;
}

.profile-coins-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: 16px;
  border-radius: 12px;
}

.tiger-coin-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.profile-coins-display span {
  font-size: 24px;
  font-weight: 700;
  color: #92400e;
}

.profile-bio-text,
.profile-expertise-text {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  min-height: 40px;
}

.profile-inline-editor {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

.profile-inline-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.profile-logout-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.btn-logout {
  background: #ef4444;
  color: #fff;
  border: none;
  height: auto;
  padding: 12px 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-logout:hover {
  background: #dc2626;
}

/* === 欢迎视频样式 === */
.welcome-video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-video {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  --target-x: calc(100vw - 54px);
  --target-y: calc(100vh - 54px);
  transition: none !important;
}

@keyframes videoShrinkMove {
  0% {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 0;
  }
  100% {
    top: var(--target-y, calc(100vh - 54px));
    left: var(--target-x, calc(100vw - 54px));
    transform: translate(-50%, -50%) scale(0.1);
    border-radius: 50%;
  }
}

.video-shrinking {
  animation: videoShrinkMove 0.8s ease-in-out forwards;
}

/* === 响应式布局 === */
@media (max-width: 1200px) {
  .col-span-10-v2 { grid-column: span 12; }
  .col-span-2-v2 { grid-column: span 12; }
  .dashboard-grid-v2 { gap: 16px; }
}

@media (max-width: 768px) {
  .navbar-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .navbar-nav.show {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-quote-bar {
    display: block;
  }
  
  .quote-bar {
    display: none;
  }
  
  .col-span-3-v2,
  .col-span-4-v2 { grid-column: span 12; }
  
  .tiger-chat-window {
    width: 100%;
    right: -24px;
    bottom: 70px;
  }
  
  .welcome-text-v2 {
    font-size: 20px;
  }
}

.rank-highlight {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ==================== 业绩统计分析板块样式 ==================== */

/* 标签页切换按钮 */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
  width: fit-content;
}

.tab-btn {
  padding: 10px 24px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s ease;
  height: auto;
}

.tab-btn:hover {
  color: #334155;
  background: #f3f4f6;
}

.tab-btn.active {
  background: #fff;
  color: #1e40af;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 统计内容容器 */
.stats-content {
  display: none;
}

.stats-content.active {
  display: block;
  animation: statsSlideIn 0.3s ease;
}

@keyframes statsSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 统计卡片基础样式 */
.stats-card,
.stats-card-wide,
.stats-card-medium {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover,
.stats-card-wide:hover,
.stats-card-medium:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.stats-card h4,
.stats-card-wide h4,
.stats-card-medium h4 {
  margin: 0 0 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-card h4::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 2px;
}

/* 全宽卡片 */
.stats-card-wide {
  margin-bottom: 24px;
}

.stats-card-medium {
  display: flex;
  flex-direction: column;
}

.stats-card-medium .compact-table {
  flex: 1;
  max-height: none;
  min-height: 0;
  overflow-x: hidden;
}

/* 网格布局 */
.stats-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.stats-grid-2col-equal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.stats-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.stats-mixed-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* 响应式网格 */
@media (max-width: 1200px) {
  .stats-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .stats-grid-2col,
  .stats-grid-2col-equal,
  .stats-grid-3col,
  .stats-mixed-layout {
    grid-template-columns: 1fr;
  }
}

/* KPI展示区 */
.kpi-showcase {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.kpi-item {
  flex: 1 1 auto;
  min-width: 140px;
  max-width: none;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease;
}

.kpi-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
}

.kpi-label {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
}

.kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: #1e40af;
  line-height: 1.2;
}

/* KPI响应式调整 */
@media (max-width: 1200px) {
  .kpi-item {
    min-width: 120px;
    padding: 16px;
  }
  .kpi-value {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .kpi-row {
    gap: 12px;
  }
  .kpi-item {
    min-width: 100px;
    padding: 12px;
  }
  .kpi-label {
    font-size: 12px;
  }
  .kpi-value {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .kpi-row {
    gap: 8px;
    justify-content: center;
  }
  .kpi-item {
    min-width: 80px;
    flex: 1 1 45%;
    padding: 10px;
  }
  .kpi-label {
    font-size: 11px;
  }
  .kpi-value {
    font-size: 16px;
  }
}

/* 图表容器 */
.chart-container-small {
  height: 200px;
  position: relative;
  margin-bottom: 16px;
}

.chart-container-compact {
  height: 220px;
  position: relative;
}

.chart-container-medium {
  height: 280px;
  position: relative;
  margin-bottom: 16px;
}

.chart-half {
  flex: 1 1 45%;
  min-width: 250px;
  height: 320px;
  position: relative;
}

.table-half {
  flex: 1 1 45%;
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 水平布局：图表+表格 */
.horizontal-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .horizontal-layout {
    flex-direction: column;
  }
  .chart-half,
  .table-half {
    width: 100%;
    min-width: unset;
  }
}

/* 排名列表样式 */
.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rank-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #f8fafc;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.rank-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateX(4px);
}

.rank-item:last-child {
  margin-bottom: 0;
}

.rank-idx {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  margin-right: 14px;
  flex-shrink: 0;
}

/* 前三名特殊样式 */
.rank-item:nth-child(1) .rank-idx {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.rank-item:nth-child(2) .rank-idx {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.4);
}

.rank-item:nth-child(3) .rank-idx {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.4);
}

.rank-item:nth-child(n+4) .rank-idx {
  background: #e2e8f0;
  color: #64748b;
}

.rank-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}

.rank-name {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.rank-amount {
  font-weight: 600;
  font-size: 14px;
  color: #059669;
  margin-right: 12px;
}

.rank-ratio {
  font-size: 13px;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 20px;
}

/* 隐藏的更多排名 */
.hidden-ranks {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.hidden-ranks.show {
  max-height: 2000px;
}

.btn-show-more {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #3b82f6;
  font-weight: 500;
  transition: all 0.2s ease;
  height: auto;
}

.btn-show-more:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

/* 紧凑表格容器 */
.compact-table {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.mini-table-wrap {
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 平台图表布局 */
.platform-charts {
  display: flex;
  gap: 24px;
}

.platform-item {
  flex: 1;
  text-align: center;
}

.platform-item canvas {
  height: 180px !important;
}

.platform-label {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
}

.platform-tables {
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

/* 员工排行表格 */
#employee-ranking-table {
  border-radius: 12px;
  overflow: hidden;
}

#employee-ranking-table table {
  width: 100%;
  border-collapse: collapse;
}

#employee-ranking-table th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 14px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 5;
}

#employee-ranking-table td {
  padding: 14px 12px;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
}

#employee-ranking-table tr:hover {
  background: #f8fafc;
}

#employee-ranking-table tr:nth-child(1) td:first-child,
#employee-ranking-table tr:nth-child(2) td:first-child,
#employee-ranking-table tr:nth-child(3) td:first-child {
  font-weight: 700;
}

#employee-ranking-table tr:nth-child(1) {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
}

#employee-ranking-table tr:nth-child(2) {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.1) 0%, transparent 50%);
}

#employee-ranking-table tr:nth-child(3) {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.1) 0%, transparent 50%);
}

/* 筛选器表单行 */
#perf-stats-section .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

#perf-stats-section .form-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

#perf-stats-section .form-row select {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  min-width: 140px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

#perf-stats-section .form-row select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#perf-stats-section .form-row button {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  height: auto;
}

#perf-stats-section .form-row button:hover {
  transform: translateY(-1px);
}

/* 空状态消息 */
#perf-stats-section .empty-message {
  text-align: center;
  padding: 48px 24px;
  color: #94a3b8;
  font-size: 15px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
}

/* 统计面板标题 */
#perf-stats-section h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

/* 业绩明细页面使用标准财务页样式，无需额外自定义样式 */

/* ==================== JD上传与AI分析样式 ==================== */
.jd-dropzone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafafa;
  margin-bottom: 12px;
}

.jd-dropzone:hover,
.jd-dropzone.dragover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.jd-dropzone-content {
  color: #6b7280;
}

.jd-dropzone-content svg {
  margin-bottom: 8px;
  color: #9ca3af;
}

.jd-dropzone-content p {
  margin: 4px 0;
  font-size: 14px;
}

.jd-dropzone-content .hint {
  font-size: 12px;
  color: #9ca3af;
}

.ai-btns {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-ai {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  height: auto;
  border: none;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
}

.btn-ai:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-ai-secondary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.btn-ai-secondary:hover {
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.ai-result-panel {
  margin-top: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  max-height: 400px;
  overflow-y: auto;
}

.ai-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 12px 12px 0 0;
  position: sticky;
  top: 0;
  z-index: 5;
}

.ai-result-header button {
  padding: 4px 12px;
  font-size: 12px;
  background: #e5e7eb;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  height: auto;
  color: #374151;
}

.ai-result-body {
  padding: 16px;
}

.ai-section {
  margin-bottom: 20px;
}

.ai-section:last-child {
  margin-bottom: 0;
}

.ai-section h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-section h4::before {
  content: '';
  width: 3px;
  height: 14px;
  background: #6366f1;
  border-radius: 2px;
}

.ai-section dl {
  margin: 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 12px;
  font-size: 13px;
}

.ai-section dt {
  color: #6b7280;
  font-weight: 500;
}

.ai-section dt.inferred {
  color: #f59e0b;
}

.ai-section dt.inferred::after {
  content: ' (推测)';
  font-size: 11px;
}

.ai-section dd {
  margin: 0;
  color: #374151;
}

.ai-section ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #374151;
}

.ai-section li {
  margin-bottom: 4px;
}

.ai-missing {
  padding: 12px 16px;
  background: #fef3c7;
  border-radius: 8px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 16px;
}

.ai-error {
  padding: 16px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 8px;
  font-size: 14px;
}

/* ==================== 订单卡片V2样式 ==================== */
.case-card-v2 {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.case-card-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.case-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-card-badges {
  display: flex;
  gap: 8px;
}

.case-type-badge {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.case-status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.case-status-badge.published {
  background: #d1fae5;
  color: #059669;
}

.case-status-badge.draft {
  background: #fef3c7;
  color: #d97706;
}

.case-card-id {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.case-card-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 10px;
}

.case-info-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.case-info-row .label {
  color: #6b7280;
}

.case-info-row .value {
  color: #1f2937;
  font-weight: 500;
}

.case-card-job {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  background: #fafafa;
}

.job-preview,
.job-full {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.btn-expand-job {
  margin-top: 8px;
  padding: 4px 12px;
  font-size: 12px;
  background: #e5e7eb;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #374151;
  height: auto;
}

.btn-expand-job:hover {
  background: #d1d5db;
}

.case-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.case-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
}

.case-card-actions {
  display: flex;
  gap: 8px;
}

.case-card-actions button {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  height: auto;
  transition: all 0.2s;
}

.case-card-actions button:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.case-card-comments {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.comments-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.no-comments {
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

.comment-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  flex-wrap: wrap;
}

.comment-author {
  color: #6366f1;
  font-weight: 600;
}

.comment-text {
  flex: 1;
  color: #374151;
}

.comment-time {
  color: #9ca3af;
  font-size: 11px;
}

.comment-input-row {
  display: flex;
  gap: 8px;
}

.comment-input-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
}

.comment-input-row button {
  padding: 8px 16px;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  height: auto;
}

.comment-input-row button:hover {
  background: #4f46e5;
}

.case-card-v2.clickable {
  cursor: pointer;
}

.case-card-job-brief {
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

.view-detail-hint {
  font-size: 12px;
  color: #6366f1;
  font-weight: 500;
}

.order-detail-view {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back:hover {
  background: #e5e7eb;
}

.detail-actions {
  display: flex;
  gap: 8px;
}

.detail-actions .btn-edit,
.detail-actions .btn-delete {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.detail-actions .btn-edit {
  background: #eef2ff;
  border: 1px solid #6366f1;
  color: #6366f1;
}

.detail-actions .btn-edit:hover {
  background: #e0e7ff;
}

.detail-actions .btn-delete {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #ef4444;
}

.detail-actions .btn-delete:hover {
  background: #fee2e2;
}

.detail-content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

.detail-content-wrapper {
  display: flex;
  gap: 16px;
}

.detail-content-wrapper > .detail-main-area {
  flex: 1 1 50%;
  min-width: 0;
  max-width: 50%;
  overflow: hidden;
}

.detail-content-wrapper > .detail-sidebar {
  flex: 1 1 50%;
  min-width: 0;
  max-width: 50%;
}

@media (max-width: 1200px) {
  .detail-content-wrapper {
    flex-direction: column;
  }
  .detail-content-wrapper > .detail-main-area,
  .detail-content-wrapper > .detail-sidebar {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .detail-sidebar {
    order: -1;
  }
}

@media (max-width: 1024px) {
  .detail-content {
    grid-template-columns: 1fr;
  }
}

.detail-main-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-section {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.detail-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
}

.section-title svg {
  color: #6366f1;
}

.detail-info-grid-full {
  grid-template-columns: 1fr !important;
}

.detail-info-wide {
  grid-column: span 2;
}

.detail-info-wide .value {
  white-space: pre-wrap;
  line-height: 1.5;
}

.detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  border: 1px solid #e5e7eb;
}

.detail-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.detail-badges {
  display: flex;
  gap: 8px;
}

.detail-id {
  font-size: 14px;
  color: #9ca3af;
  font-weight: 600;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 8px;
  padding: 8px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 8px;
}

.detail-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-info-item .label {
  font-size: 13px;
  color: #6b7280;
}

.detail-info-item .value {
  font-size: 15px;
  color: #1f2937;
  font-weight: 500;
}

.detail-job-section h4 {
  font-size: 13px;
  color: #374151;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f3f4f6;
}

.detail-job-content {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
  white-space: pre-wrap;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.detail-comments-section {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  border: 1px solid #e5e7eb;
}

.detail-comments-section h4 {
  font-size: 13px;
  color: #374151;
  margin-bottom: 10px;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-analysis-section {
  background: linear-gradient(135deg, #fafaff 0%, #f0f0ff 100%);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
  border: 1px solid #e0e0f0;
  position: sticky;
  top: 20px;
}

.ai-analysis-section h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #4338ca;
  margin-bottom: 12px;
  font-weight: 600;
}

.ai-analysis-section h4::before {
  content: '✨';
  font-size: 18px;
}

.ai-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ai-btns button {
  flex: 1;
  padding: 10px 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-btns button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ai-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #fef3c7;
  border-radius: 8px;
  color: #92400e;
  font-size: 13px;
  margin-bottom: 12px;
}

.ai-hint svg {
  flex-shrink: 0;
}

.ai-result {
  font-size: 13px;
  line-height: 1.6;
}

.btn-ai {
  flex: 1;
  padding: 10px 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ai:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-ai.btn-ai-secondary {
  background: #f3f4f6;
  color: #4b5563;
}

.btn-ai.btn-ai-secondary:hover {
  background: #e5e7eb;
  box-shadow: none;
  transform: none;
}

.ai-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: #6366f1;
  font-size: 14px;
}

.ai-loading .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ai-result {
  overflow-y: auto;
}

.ai-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.ai-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ai-section h5 {
  font-size: 13px;
  color: #6366f1;
  margin-bottom: 10px;
  font-weight: 600;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ai-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: #f9fafb;
  border-radius: 6px;
}

.ai-item .label {
  font-size: 11px;
  color: #9ca3af;
}

.ai-item .value {
  font-size: 13px;
  color: #1f2937;
}

.ai-list {
  font-size: 13px;
  color: #4b5563;
  margin-top: 10px;
}

.ai-list strong {
  color: #374151;
}

.ai-list ul {
  margin: 6px 0 0 16px;
  padding: 0;
}

.ai-list li {
  margin-bottom: 4px;
  line-height: 1.5;
}

.ai-content {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

.ai-content p {
  margin-bottom: 6px;
}

.ai-tags {
  font-size: 13px;
  margin-top: 10px;
}

.ai-tags .tag {
  display: inline-block;
  padding: 3px 8px;
  background: #eef2ff;
  color: #6366f1;
  border-radius: 4px;
  font-size: 12px;
  margin: 2px 4px 2px 0;
}

.ai-warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 12px;
}

.ai-warning h5 {
  color: #d97706;
}

.ai-warning ul {
  margin: 6px 0 0 16px;
  padding: 0;
  font-size: 13px;
  color: #92400e;
}

.ai-error {
  padding: 16px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.ai-filled {
  color: #6366f1 !important;
  font-style: italic;
}

.ai-empty {
  padding: 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

.order-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.order-card-new {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.order-card-new:hover {
  border-color: #3b82f6;
  box-shadow: 0 6px 20px rgba(59,130,246,0.15);
  transform: translateY(-2px);
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px 10px;
  gap: 12px;
}
.order-company-name {
  font-size: 16px;
  font-weight: 700;
  color: #1e40af;
  flex-shrink: 0;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-positions-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}
.order-position-item {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  color: #1e40af;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #bfdbfe;
}
.order-position-more {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
}
.order-position-more:hover {
  background: #e2e8f0;
}
.order-info-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px 12px;
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
@media (max-width: 1400px) {
  .order-info-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .order-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.order-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.order-info-item .label {
  color: #64748b;
  flex-shrink: 0;
}
.order-info-item .value {
  color: #1e293b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-contacts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 10px 16px;
  font-size: 13px;
}
.order-contact-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.order-contact-item .label {
  color: #94a3b8;
}
.order-contact-item .value {
  color: #334155;
  font-weight: 500;
}
.order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  gap: 10px;
  flex-wrap: wrap;
}
.order-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.order-tag-type {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: #fff;
  color: #1e40af;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid #3b82f6;
}
.order-tag-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
}
.order-tag-status.cooperated {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.order-tag-status.bd-ing {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.order-tag-status.not-cooperated {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.order-tag-draft {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid #fcd34d;
}
.order-tag-published {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: #d1fae5;
  color: #065f46;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid #6ee7b7;
}
.order-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.order-footer-subject {
  font-size: 12px;
  color: #64748b;
}
.order-footer-subject .value {
  color: #334155;
  font-weight: 500;
}
.order-author-mini {
  display: flex;
  align-items: center;
  gap: 6px;
}
.order-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.order-author-mini .name {
  font-size: 12px;
  color: #334155;
  font-weight: 500;
}
.order-author-mini .time {
  font-size: 11px;
  color: #94a3b8;
}
.order-view-btn {
  padding: 6px 16px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.order-view-btn:hover {
  background: #2563eb;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 0;
}

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.section-divider {
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 8px;
}

.section-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.order-lead-note {
  font-size: 12px;
  color: #6b7280;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-lead-note-label {
  color: #9ca3af;
}

.case-status-badge.status-cooperated {
  background: #dcfce7;
  color: #166534;
}

.case-status-badge.status-bd-ing {
  background: #fef3c7;
  color: #92400e;
}

.order-tag-status.not-cooperated,
.case-status-badge.status-not-cooperated {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.order-tag-draft {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  border-radius: 3px;
  border: 1px solid #e2e8f0;
}

.order-tag-published {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 12px;
  font-weight: 500;
  border-radius: 3px;
  border: 1px solid #93c5fd;
}

.order-footer-subject {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #64748b;
}

.order-footer-subject-label {
  color: #94a3b8;
}

.order-footer-subject-value {
  color: #334155;
  font-weight: 500;
}

.order-view-btn {
  padding: 6px 14px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.order-view-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,130,246,0.35);
}

.order-update-time {
  font-size: 10px;
  color: #94a3b8;
  margin-left: auto;
  margin-right: 8px;
}

.case-industry-badge, .case-city-badge, .case-position-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.case-industry-badge {
  background: #dbeafe;
  color: #1e40af;
}

.case-city-badge {
  background: #e0e7ff;
  color: #3730a3;
}

.case-position-badge {
  background: #dbeafe;
  color: #1e40af;
}

.case-status-badge.status-active {
  background: #dcfce7;
  color: #166534;
}

.case-status-badge.status-inactive {
  background: #fef3c7;
  color: #92400e;
}

/* ==================== 文档中心样式 ==================== */
.doc-layout {
  display: flex;
  gap: 24px;
  min-height: 600px;
}

.doc-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 16px;
}

.doc-sidebar-header {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.doc-category-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-category-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
  transition: all 0.15s;
}

.doc-category-tab:hover {
  background: #f3f4f6;
  color: #374151;
}

.doc-category-tab.active {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #ea580c;
  font-weight: 500;
}

.doc-category-tab svg {
  flex-shrink: 0;
}

.doc-admin-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.doc-add-category {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.doc-add-category input {
  flex: 1;
  height: 32px;
  font-size: 13px;
}

.doc-add-category button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.doc-cat-manage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.doc-cat-manage-item:hover {
  background: #f3f4f6;
}

.doc-cat-manage-item button {
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

.doc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doc-upload-section {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px dashed #facc15;
}

.doc-upload-section h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #854d0e;
}

.doc-view-section {
  flex: 1;
}

.doc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.doc-toolbar h3 {
  margin: 0;
  font-size: 16px;
  color: #1f2937;
}

.doc-toolbar-right {
  display: flex;
  gap: 12px;
}

.doc-toolbar-right input {
  width: 200px;
}

.doc-file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-file-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.15s;
}

.doc-file-item:hover {
  border-color: #f97316;
  box-shadow: 0 2px 8px rgba(249,115,22,0.1);
}

.doc-file-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-file-info {
  flex: 1;
  min-width: 0;
}

.doc-file-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-file-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
}

.doc-file-category {
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  color: #6b7280;
}

.doc-file-desc {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

.doc-file-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-icon:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.btn-icon.btn-danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.btn-icon svg {
  stroke: #6b7280;
}

.btn-icon:hover svg {
  stroke: #374151;
}

.btn-icon.btn-danger:hover svg {
  stroke: #dc2626;
}

.doc-empty {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.doc-preview-modal .modal-content {
  max-width: 90vw;
  width: 900px;
  max-height: 90vh;
}

.doc-preview-modal .modal-body {
  min-height: 400px;
  max-height: calc(90vh - 80px);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-preview-modal .modal-body img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.doc-preview-modal .modal-body iframe {
  width: 100%;
  height: 80vh;
  border: none;
}

.doc-html-preview {
  padding: 20px;
  background: #fff;
  width: 100%;
}

.doc-download-hint {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

.doc-download-hint p {
  margin: 16px 0;
}

.doc-download-hint button {
  margin-top: 12px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
}

@media (max-width: 768px) {
  .doc-layout {
    flex-direction: column;
  }
  .doc-sidebar {
    width: 100%;
  }
  .doc-category-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .doc-category-tab {
    padding: 8px 12px;
  }
  .doc-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .doc-toolbar-right {
    flex-direction: column;
  }
  .doc-toolbar-right input {
    width: 100%;
  }
  .doc-file-item {
    flex-wrap: wrap;
  }
  .doc-file-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }
}

.att-list { display: flex; flex-direction: column; gap: 8px; }
.att-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #f9fafb; border-radius: 6px; flex-wrap: wrap; }
.att-item .att-name { flex: 1; font-size: 14px; color: #374151; word-break: break-all; }
.att-item .btn-link { font-size: 13px; color: #3b82f6; text-decoration: none; cursor: pointer; background: none; border: none; padding: 0; }
.att-item .btn-link:hover { text-decoration: none; background: #f3f4f6; }
.att-item .att-ai-result { width: 100%; margin-top: 8px; padding: 10px 12px; background: #f0fdf4; border-radius: 6px; font-size: 13px; color: #166534; line-height: 1.6; white-space: pre-wrap; }
.detail-attachments-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.detail-attachments-section h4 { margin: 0 0 12px 0; font-size: 15px; color: #374151; }
.detail-resumes-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.detail-resumes-section h4 { margin: 0 0 12px 0; font-size: 15px; color: #374151; }
.btn-upload-resume-mini { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; font-size: 12px; background: #3b82f6; color: #fff; border: none; border-radius: 6px; cursor: pointer; margin-left: auto; }
.btn-upload-resume-mini:hover { background: #2563eb; }
.case-resumes-list { display: flex; flex-direction: column; gap: 8px; }
.case-resume-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #f9fafb; border-radius: 8px; border: 1px solid #e5e7eb; }
.case-resume-item:hover { border-color: #3b82f6; background: #eff6ff; }
.case-resume-avatar { width: 36px; height: 36px; border-radius: 50%; background: #dbeafe; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.case-resume-info { flex: 1; min-width: 0; }
.case-resume-name { font-size: 14px; font-weight: 600; color: #1f2937; }
.case-resume-meta { font-size: 12px; color: #6b7280; margin-top: 2px; }
.case-resume-actions { display: flex; gap: 8px; flex-shrink: 0; }
.upload-progress-bar { padding: 10px 14px; background: #eff6ff; border-radius: 8px; margin-bottom: 10px; font-size: 13px; color: #2563eb; }
.no-resumes { padding: 16px; text-align: center; color: #9ca3af; font-size: 13px; }

/* ==================== 新版订单发布弹窗样式 ==================== */
.order-modal-new { max-width: 640px; }
.order-modal-new .modal-body { padding: 16px 20px; }
.order-section { margin-bottom: 16px; }
.order-section .section-title { font-size: 13px; font-weight: 600; color: #6b7280; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }

.jd-dropzone-compact { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 2px dashed #d1d5db; border-radius: 8px; cursor: pointer; background: #fafafa; transition: all 0.2s; margin-bottom: 10px; }
.jd-dropzone-compact:hover, .jd-dropzone-compact.dragover { border-color: #3b82f6; background: #eff6ff; }
.jd-dropzone-compact svg { color: #9ca3af; flex-shrink: 0; }
.jd-dropzone-compact span { font-size: 13px; color: #6b7280; }
.jd-dropzone-compact .hint { color: #9ca3af; font-size: 12px; margin-left: auto; }

.att-list-compact { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.att-list-compact .att-item { padding: 4px 10px; background: #e0e7ff; border-radius: 4px; font-size: 12px; color: #4338ca; }

.order-modal-new textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; resize: vertical; font-family: inherit; }
.order-modal-new textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.1); }

.ai-extract-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.btn-ai-extract { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: linear-gradient(135deg, #10b981, #059669); color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.btn-ai-extract:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.btn-ai-extract svg { width: 14px; height: 14px; }
.extract-loading { font-size: 12px; color: #6b7280; }
.extract-msg { font-size: 12px; color: #10b981; }

.order-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field label { font-size: 12px; color: #6b7280; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; background: #fff; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.1); }
.form-field textarea { resize: vertical; min-height: 60px; font-family: inherit; }
.form-field-wide { grid-column: span 2; }
.form-field-checkbox { justify-content: flex-end; flex-direction: row; align-items: center; }
.form-field-checkbox label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; cursor: pointer; }

.order-modal-new .modal-footer { padding: 12px 20px; gap: 10px; justify-content: flex-end; }
.order-modal-new .modal-footer .message { margin-right: auto; font-size: 13px; color: #ef4444; }
.order-modal-new .btn-cancel { padding: 8px 16px; background: #f3f4f6; color: #374151; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; }
.order-modal-new .btn-cancel:hover { background: #e5e7eb; }
.order-modal-new .btn-primary { padding: 8px 20px; background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; }
.order-modal-new .btn-primary:hover { box-shadow: 0 4px 12px rgba(59,130,246,0.3); }

@media (max-width: 600px) {
  .order-form-grid { grid-template-columns: 1fr; }
  .jd-dropzone-compact .hint { display: none; }
}

.cases-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 12px;
}

.cases-filter select,
.cases-filter input {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
  background: #fff;
  min-width: 90px;
  height: 32px;
  box-sizing: border-box;
}

.cases-filter select:focus,
.cases-filter input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.1);
}

.cases-filter button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.cases-filter #btn-cases-refresh {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}

.cases-filter #btn-cases-refresh:hover {
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.cases-filter #btn-cases-reset {
  background: #f3f4f6;
  color: #374151;
}

.cases-filter #btn-cases-reset:hover {
  background: #e5e7eb;
}

@media (max-width: 768px) {
  .cases-filter {
    flex-direction: column;
    align-items: stretch;
  }
  .cases-filter select,
  .cases-filter input {
    width: 100%;
    min-width: unset;
  }
}

/* ========== 行业调研模块 ========== */
.btn-secondary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-secondary:hover {
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
  transform: translateY(-1px);
}

.industry-research-view,
.industry-detail-view {
  animation: fadeIn 0.3s ease;
}

.research-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.research-header h3 {
  margin: 0;
  font-size: 20px;
  color: #1f2937;
}

.industry-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.industry-card {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s;
}
.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  border-color: #6366f1;
}
.industry-card:hover::before {
  opacity: 1;
}

.industry-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 28px;
}

.industry-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.industry-card-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.industry-detail-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e5e7eb;
}

.industry-section {
  margin-bottom: 32px;
}
.industry-section:last-child {
  margin-bottom: 0;
}

.industry-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #6366f1;
  display: inline-block;
}

.industry-section-content {
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
}

.industry-section-content ul {
  margin: 12px 0;
  padding-left: 20px;
}
.industry-section-content li {
  margin-bottom: 8px;
}

.industry-trends {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.trend-item {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid #3b82f6;
}
.trend-item-title {
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 8px;
}
.trend-item-desc {
  font-size: 13px;
  color: #3b82f6;
}

/* ===== 汽车公司地图样式 ===== */
.car-map-wrapper {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0d0d1a 100%);
  border-radius: 20px;
  padding: 32px;
  min-height: 700px;
  position: relative;
  overflow: hidden;
}
.car-map-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.car-map-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
}
.car-map-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
  letter-spacing: 2px;
}
.car-map-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.car-map-filters {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.filter-btn {
  padding: 8px 16px;
  height: auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.3s;
}
.filter-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.filter-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.car-map-container {
  position: relative;
  width: 100%;
}
.china-map-svg {
  width: 100%;
  height: auto;
  display: block;
}
.province-path {
  fill: rgba(99, 102, 241, 0.1);
  stroke: rgba(99, 102, 241, 0.3);
  stroke-width: 1;
  transition: all 0.3s;
}
.province-path:hover {
  fill: rgba(99, 102, 241, 0.25);
  stroke: rgba(99, 102, 241, 0.6);
}
.city-marker {
  cursor: pointer;
  transition: transform 0.3s;
}
.city-marker:hover {
  transform: scale(1.15);
}
.marker-pulse {
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.5); opacity: 0.1; }
}
.marker-core {
  stroke: rgba(255,255,255,0.3);
  stroke-width: 2;
  transition: all 0.3s;
}
.city-marker:hover .marker-core {
  stroke: rgba(255,255,255,0.8);
  stroke-width: 3;
}
.marker-label {
  font-size: 11px;
  fill: rgba(255,255,255,0.7);
  text-anchor: middle;
  font-weight: 500;
  pointer-events: none;
}
.marker-count {
  font-size: 11px;
  fill: #fff;
  text-anchor: middle;
  font-weight: 700;
  pointer-events: none;
}
.car-tooltip {
  position: absolute;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 16px;
  padding: 16px;
  min-width: 220px;
  max-width: 320px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-100%);
  transition: all 0.3s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 30px rgba(99, 102, 241, 0.2);
  pointer-events: none;
}
.car-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-110%);
  pointer-events: auto;
}
.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tooltip-city {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.tooltip-count {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  background: rgba(99, 102, 241, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
}
.tooltip-companies {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tooltip-company {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.tooltip-company:hover {
  background: rgba(99, 102, 241, 0.2);
}
.company-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.company-name {
  flex: 1;
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}
.company-cap {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.car-map-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
  position: relative;
  z-index: 10;
}
.stat-item {
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #00d4ff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.car-detail-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.car-detail-modal.visible {
  opacity: 1;
}
.car-detail-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
}
.car-detail-content {
  position: relative;
  background: linear-gradient(135deg, #1a1a3e 0%, #0f0f23 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 24px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5), 0 0 40px rgba(99, 102, 241, 0.2);
}
.car-detail-content.single-company {
  max-width: 600px;
}
.car-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(99, 102, 241, 0.1);
}
.car-detail-header h3 {
  margin: 0;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
}
.car-detail-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.car-detail-close:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}
.car-detail-body {
  padding: 24px 28px;
  max-height: calc(85vh - 100px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.company-card {
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 20px;
  transition: background 0.2s;
}
.company-card:hover {
  background: rgba(255,255,255,0.06);
}
.company-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.company-card-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.company-card-type {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
}
.company-card-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.company-card-stats .stat {
  text-align: center;
}
.company-card-stats .val {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #00d4ff;
}
.company-card-stats .lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.company-card-info p {
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
.company-card-info strong {
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.company-card-info .overview {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-style: italic;
}
@media (max-width: 768px) {
  .car-map-wrapper { padding: 20px; }
  .car-map-header { flex-direction: column; align-items: flex-start; }
  .car-map-filters { margin-left: 0; width: 100%; overflow-x: auto; }
  .car-map-stats { gap: 24px; flex-wrap: wrap; }
  .stat-num { font-size: 24px; }
  .car-detail-content { width: 95%; border-radius: 16px; }
  .company-card-stats { flex-wrap: wrap; gap: 16px; }
}

.car-map-container {
  background: linear-gradient(135deg, #0a0f1e 0%, #1a1f3c 50%, #0d1321 100%);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.car-map-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(139,92,246,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.car-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.car-map-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px rgba(59,130,246,0.5);
}
.map-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.legend-item:hover, .legend-item.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.car-map-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  aspect-ratio: 680/560;
}
.china-map-svg {
  width: 100%;
  height: 100%;
}
.china-map-svg .provinces path {
  transition: all 0.3s;
  cursor: pointer;
}
.china-map-svg .provinces path:hover {
  fill: rgba(59,130,246,0.3);
  stroke: #60a5fa;
  stroke-width: 1;
}
.map-markers-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--marker-color);
  box-shadow: 0 0 12px var(--marker-glow), 0 0 24px var(--marker-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  animation: markerPulse 2s ease-in-out infinite;
  z-index: 10;
}
@keyframes markerPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.85; }
}
.marker-count {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.city-label {
  position: absolute;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.map-tooltip {
  display: none;
  position: absolute;
  z-index: 100;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(15,20,35,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  padding: 0;
}
.tooltip-header {
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(59,130,246,0.1);
}
.tooltip-count {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-left: 8px;
  font-weight: 400;
}
.tooltip-companies {
  padding: 8px;
}
.tooltip-company {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.tooltip-company:hover {
  background: rgba(59,130,246,0.15);
}
.company-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.company-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.company-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.company-cap {
  font-size: 13px;
  color: #ffd700;
  font-weight: 600;
}
.company-info {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  padding-left: 16px;
}
.map-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 2;
}
.map-stats .stat-item {
  text-align: center;
}
.map-stats .stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #00d4ff;
  text-shadow: 0 0 20px rgba(0,212,255,0.5);
}
.map-stats .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.company-detail-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.company-detail-modal .modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}
.company-detail-modal .modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #1a1f3c 0%, #0d1321 100%);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.company-detail-modal .modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.company-detail-modal .modal-close:hover {
  background: rgba(255,255,255,0.2);
}
.company-detail-modal .modal-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.company-detail-modal .modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: #fff;
}
.type-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.company-detail-modal .modal-body {
  padding: 0 24px 24px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.info-item {
  background: rgba(255,255,255,0.05);
  padding: 12px 16px;
  border-radius: 10px;
}
.info-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.info-value {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
}
.info-value.highlight {
  color: #ffd700;
  font-size: 18px;
  font-weight: 700;
}
.info-section {
  margin-bottom: 20px;
}
.info-section h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #60a5fa;
}
.info-section p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}
.company-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.company-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.company-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--card-accent);
}
.company-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--card-accent);
  transform: translateY(-2px);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.card-rank {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}
.card-type {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
}
.card-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.card-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.card-city {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.btn-show-all {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-show-all:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}

/* ========== 汽车公司地图样式 ========== */
#car-map-container {
  width: 100%;
  min-height: 700px;
}

.car-map-wrapper {
  background: linear-gradient(135deg, #0a1628 0%, #1a0a2e 50%, #0f172a 100%);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.car-map-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(59,130,246,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(168,85,247,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.map-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.map-header h3 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.map-header p {
  margin: 0;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.map-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.map-stats .stat-item {
  text-align: center;
  padding: 16px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.map-stats .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #00d4ff;
  text-shadow: 0 0 20px rgba(0,212,255,0.5);
}

.map-stats .stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.map-area {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 4/3;
}

.china-map-svg {
  width: 100%;
  height: 100%;
}

.china-map-svg .provinces path {
  transition: all 0.3s ease;
  cursor: pointer;
}

.china-map-svg .provinces path:hover {
  fill: #1e3a5f;
  stroke: #60a5fa;
  stroke-width: 1;
  filter: drop-shadow(0 0 10px rgba(59,130,246,0.5));
}

.map-markers {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: all;
  cursor: pointer;
  z-index: 10;
}

.marker-pulse {
  position: absolute;
  width: calc(var(--marker-size) * 2.5);
  height: calc(var(--marker-size) * 2.5);
  border-radius: 50%;
  background: var(--marker-color);
  opacity: 0.2;
  transform: translate(-50%, -50%) translate(calc(var(--marker-size) / 2), calc(var(--marker-size) / 2));
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) translate(calc(var(--marker-size) / 2), calc(var(--marker-size) / 2)) scale(0.5); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) translate(calc(var(--marker-size) / 2), calc(var(--marker-size) / 2)) scale(1.5); opacity: 0; }
}

.marker-dot {
  width: var(--marker-size);
  height: var(--marker-size);
  border-radius: 50%;
  background: var(--marker-color);
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 0 15px var(--marker-color), 0 0 30px var(--marker-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #000;
  transition: all 0.3s ease;
}

.map-marker:hover .marker-dot {
  transform: scale(1.3);
  box-shadow: 0 0 25px var(--marker-color), 0 0 50px var(--marker-color);
}

.marker-label {
  position: absolute;
  top: calc(var(--marker-size) + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  pointer-events: none;
}

.map-legend {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
  z-index: 20;
}

.legend-title {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 4px -10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.legend-item:hover,
.legend-item.active {
  background: rgba(255,255,255,0.1);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.legend-text {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

/* 城市悬浮提示框 */
.city-tooltip {
  position: absolute;
  display: none;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 16px;
  padding: 0;
  z-index: 100;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(168,85,247,0.1));
}

.tooltip-city {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.tooltip-count {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 10px;
}

.tooltip-companies {
  padding: 12px;
}

.tooltip-company {
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: all 0.2s;
}

.tooltip-company:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(59,130,246,0.3);
  transform: translateX(4px);
}

.tooltip-company:last-child {
  margin-bottom: 0;
}

.tooltip-company .company-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.company-type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tooltip-company .company-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  flex: 1;
}

.company-type-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
}

.tooltip-company .company-metrics {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

.tooltip-company .company-tech {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}

/* 公司详情弹窗 */
.company-detail-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.company-detail-modal.show {
  opacity: 1;
  visibility: visible;
}

.company-detail-modal .modal-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
}

.company-detail-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 24px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.company-detail-modal.show .company-detail-content {
  transform: scale(1) translateY(0);
}

.detail-header {
  padding: 24px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--border-color, #3b82f6), transparent) 1;
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-title h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

.detail-type {
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #000;
}

.detail-subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 24px;
  background: rgba(0,0,0,0.2);
}

.metric-card {
  text-align: center;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-section {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list .tag {
  padding: 6px 14px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 20px;
  font-size: 13px;
  color: #60a5fa;
}

.recruitment-tags .tag {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.3);
  color: #10b981;
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.tech-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.globalization-text {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* 响应式 */
@media (max-width: 768px) {
  .car-map-wrapper {
    padding: 20px;
  }
  
  .map-stats {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .map-stats .stat-item {
    flex: 1;
    min-width: 100px;
    padding: 12px;
  }
  
  .map-stats .stat-value {
    font-size: 20px;
  }
  
  .map-legend {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  
  .legend-title {
    width: 100%;
    text-align: center;
  }
  
  .city-tooltip {
    width: 280px;
  }
  
  .detail-metrics {
    grid-template-columns: 1fr;
  }
}

/* ===== 汽车公司地图样式 ===== */
/* 让父容器 industry-detail-content 在汽车地图场景下使用深色背景 */
.industry-detail-content:has(.car-map-container) {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.car-map-container {
  background: transparent;
  border-radius: 0;
  padding: 32px;
  margin: 0;
  min-height: auto;
  max-width: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.car-map-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.car-map-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.car-map-header h3 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  background: linear-gradient(90deg, #00d4ff, #a855f7, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.car-map-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin: 0 0 20px;
}

.car-map-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.filter-btn.active {
  background: rgba(99, 102, 241, 0.3);
  border-color: #6366f1;
  color: #fff;
}

.filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.car-map-wrapper {
  position: relative;
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 8px;
  overflow: visible;
  min-height: 500px;
  height: 580px;
}

.car-map-svg-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.china-map-svg {
  width: 100%;
  height: auto;
}

.china-map-svg .province {
  transition: all 0.3s;
}

.china-map-svg .province:hover {
  fill: #2d3a5a;
  stroke: #6366f1;
  stroke-width: 2;
}

.marker-group {
  cursor: pointer;
  transition: transform 0.2s;
}

.marker-group:hover {
  transform: scale(1.3);
}

.marker-group.hidden {
  opacity: 0;
  pointer-events: none;
}

.marker-dot {
  transition: all 0.3s;
}

.city-label {
  fill: rgba(255,255,255,0.5);
  font-size: 10px;
  pointer-events: none;
}

.car-company-tooltip {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0;
  min-width: 260px;
  z-index: 100;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tooltip-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tooltip-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.tooltip-type {
  font-size: 12px;
  font-weight: 500;
}

.tooltip-body {
  padding: 12px 16px;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tooltip-row:last-child {
  border-bottom: none;
}

.tooltip-label {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}

.tooltip-value {
  color: #fff;
  font-size: 12px;
  text-align: right;
  max-width: 160px;
}

.tooltip-footer {
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  font-size: 11px;
  text-align: center;
  border-radius: 0 0 12px 12px;
}

.car-map-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.car-map-stats .stat-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  min-width: 120px;
}

.car-map-stats .stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 4px;
}

.car-map-stats .stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.car-company-list {
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 20px;
}

.company-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.company-list-header h4 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

.company-count {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.company-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.city-group {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
}

.city-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.city-name {
  color: #a5b4fc;
  font-weight: 600;
  font-size: 14px;
}

.city-count {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}

.city-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.company-chip:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.chip-name {
  color: #fff;
  font-size: 12px;
}

.chip-cap {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
}

/* 公司详情弹窗 */
.car-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.car-detail-modal.show {
  opacity: 1;
}

.car-detail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.car-detail-content {
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.car-detail-modal.show .car-detail-content {
  transform: translateY(0);
}

.car-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.car-detail-close:hover {
  background: rgba(255,255,255,0.2);
}

.car-detail-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.car-detail-header h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}

.detail-type-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
}

.car-detail-body {
  padding: 24px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.detail-stat {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.detail-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 4px;
}

.detail-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.detail-section {
  margin-bottom: 20px;
}

.detail-section h4 {
  color: #a5b4fc;
  font-size: 14px;
  margin: 0 0 8px;
  font-weight: 600;
}

.detail-section p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.filter-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.car-map-markers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.car-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--marker-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 0 20px var(--marker-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 10;
}

.car-marker:hover {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 30px var(--marker-glow);
  z-index: 20;
}

.marker-count {
  color: #000;
  font-size: 11px;
  font-weight: 700;
}

.marker-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--marker-color);
  opacity: 0.4;
  animation: markerPulse 2s ease-out infinite;
}

@keyframes markerPulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}

.car-map-markers .city-label {
  position: absolute;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
}

.car-map-tooltip {
  position: absolute;
  display: none;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 200px;
  max-width: 280px;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 0.15s, visibility 0.15s;
}

.car-map-tooltip .tooltip-header {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 0 0 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tooltip-companies {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tooltip-company {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tooltip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.car-map-tooltip .tooltip-name {
  color: #fff;
  font-size: 12px;
  flex: 1;
}

.tooltip-cap {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

.car-map-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.car-map-stats .stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  min-width: 120px;
}

.car-map-stats .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 4px;
}

.car-map-stats .stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.car-list-section {
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 20px;
  margin-top: 24px;
  margin-left: 0;
  margin-right: 0;
  width: calc(100% + 0px);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.car-list-section h4 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 16px;
}

.car-list-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.car-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.car-list-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--item-color);
  transform: translateY(-2px);
}

.car-list-rank {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
}

.car-list-info {
  flex: 1;
}

.car-list-name {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.car-list-meta {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}

.car-list-type {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  color: #000;
  font-weight: 500;
}

.china-outline {
  fill: rgba(30, 41, 59, 0.8);
  stroke: rgba(99, 102, 241, 0.3);
  stroke-width: 2;
}

.province-border {
  fill: rgba(30, 41, 59, 0.5);
  stroke: rgba(99, 102, 241, 0.2);
  stroke-width: 1;
}

.car-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.car-detail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.car-detail-content {
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

.city-companies-content {
  max-width: 400px;
}

@keyframes modalSlideIn {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.car-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.car-detail-close:hover {
  background: rgba(255,255,255,0.2);
}

.car-detail-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, var(--header-color, #6366f1) 0%, transparent 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
}

.car-detail-rank {
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.car-detail-header h3 {
  flex: 1;
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.car-detail-type {
  padding: 4px 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
}

.car-detail-body {
  padding: 20px 24px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  flex-shrink: 0;
}

.detail-row .value {
  color: #fff;
  font-size: 13px;
  text-align: right;
  max-width: 280px;
  line-height: 1.5;
}

.city-companies-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.city-company-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.city-company-item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(4px);
}

.city-company-rank {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 11px;
  font-weight: 700;
}

.city-company-info {
  flex: 1;
}

.city-company-name {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.city-company-meta {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

/* ========== 汽车公司地图 - 全宽地图 + 侧边抽屉布局 ========== */

/* 主区域布局 - 地图全宽 */
.car-map-main-area {
  display: block;
  position: relative;
  margin: 24px 0;
  padding: 0;
}

.car-map-left {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* 隐藏旧的右侧容器 */
.car-map-right {
  display: none;
}

/* ===== 侧边抽屉样式 ===== */
.car-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.car-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.car-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border-left: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

.car-drawer.open {
  transform: translateX(0);
}

.car-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(15, 23, 42, 0.8);
  position: sticky;
  top: 0;
  z-index: 10;
}

.car-drawer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.car-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.car-drawer-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.car-drawer-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.car-drawer-body {
  padding: 24px;
}

/* 详情面板样式（用于抽屉内） */
.car-detail-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  min-height: auto;
  max-height: none;
  overflow-y: visible;
  position: relative;
}

.panel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 280px;
  color: rgba(148, 163, 184, 0.6);
  text-align: center;
  padding: 24px;
}

.panel-placeholder svg {
  opacity: 0.4;
  margin-bottom: 16px;
}

.panel-placeholder p {
  font-size: 14px;
  line-height: 1.6;
}

/* 城市详情面板 */
.city-detail-content {
  padding: 20px;
}

.city-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 16px;
}

.city-detail-header h4 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.city-company-count {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.city-companies-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.city-company-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.city-company-card:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(4px);
}

.company-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-card-rank {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
}

.company-card-name {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.company-card-meta {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  margin-top: 2px;
}

.company-card-stats {
  text-align: right;
}

.mini-stat-value {
  color: #10b981;
  font-size: 16px;
  font-weight: 600;
}

.mini-stat-label {
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  display: block;
}

/* 公司详情面板 */
.company-detail-content {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.company-detail-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.company-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.company-rank-badge {
  background: var(--header-color, #6366f1);
  color: #0f172a;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.back-to-city-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.back-to-city-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.company-detail-header .company-name {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.company-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #0f172a;
}

.company-detail-body {
  padding: 16px 20px;
}

.detail-section {
  margin-bottom: 14px;
}

.detail-section h5 {
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.key-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-card {
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.metric-value {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.metric-label {
  color: rgba(255,255,255,0.5);
  font-size: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-item .detail-label {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

.detail-item .detail-value {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.detail-text-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.detail-text-item .detail-label {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

.detail-text-item .detail-value {
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.5;
}

.recruit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recruit-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
}

.news-section .news-content {
  display: flex;
  gap: 8px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 8px;
  padding: 10px;
  color: #fbbf24;
  font-size: 12px;
  line-height: 1.4;
}

.news-section svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* 选中状态样式 */
.car-marker.selected {
  transform: scale(1.3);
  z-index: 100;
  box-shadow: 0 0 20px var(--marker-glow), 0 0 40px var(--marker-glow);
}

.city-label.selected {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

.car-list-item.selected {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--item-color);
  transform: translateX(4px);
}

/* 公司列表头部 */
.car-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.car-list-header h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.car-list-count {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

/* 地图SVG样式优化 */
.china-map-svg .china-outline {
  fill: none;
  stroke: url(#borderGrad);
  stroke-width: 2;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
}

.china-map-svg .province {
  fill: rgba(30, 41, 59, 0.85);
  stroke: rgba(99, 102, 241, 0.35);
  stroke-width: 0.8;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.15));
}

.china-map-svg .province:hover {
  fill: rgba(59, 130, 246, 0.25);
  stroke: rgba(99, 102, 241, 0.6);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.4));
}

.china-map-svg .south-sea rect {
  fill: rgba(15, 23, 42, 0.5);
}

.china-map-svg .south-sea text {
  font-family: inherit;
}

/* ===== 类型统计图表样式（抽屉初始状态） ===== */
.type-summary-container {
  padding: 0;
}

.type-summary-header {
  text-align: center;
  margin-bottom: 24px;
}

.type-summary-header h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.type-summary-header p {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin: 0;
}

.type-chart-wrapper {
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 200px;
}

.type-chart-wrapper canvas {
  max-height: 200px;
}

.type-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.type-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s;
}

.type-stat-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.type-stat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 8px;
}

.type-stat-label {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  margin-bottom: 6px;
}

.type-stat-value {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.type-stat-sub {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  margin-top: 4px;
}

.type-breakdown-section {
  margin-top: 20px;
}

.type-breakdown-section h5 {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 12px;
}

.type-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.type-breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 10px 12px;
}

.type-breakdown-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-breakdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.type-breakdown-name {
  color: #fff;
  font-size: 13px;
}

.type-breakdown-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin: 0 12px;
  overflow: hidden;
}

.type-breakdown-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.type-breakdown-value {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  min-width: 50px;
  text-align: right;
}

/* 打开抽屉按钮 */
.open-drawer-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.open-drawer-btn:hover {
  background: rgba(99, 102, 241, 0.35);
  border-color: #6366f1;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.open-drawer-btn svg {
  width: 16px;
  height: 16px;
}

/* 响应式适配 - 新版 */
@media (max-width: 1200px) {
  .car-drawer {
    width: 380px;
  }
  
  .car-map-wrapper {
    height: 450px;
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .car-drawer {
    width: 100%;
    max-width: 100vw;
  }
  
  .car-map-wrapper {
    height: 350px;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .car-map-container {
    padding: 20px;
  }
  
  .car-map-header h3 {
    font-size: 22px;
  }
  
  .car-map-filters {
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .car-map-stats {
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .car-map-stats .stat-card {
    padding: 12px 16px;
    min-width: 80px;
  }
  
  .car-map-stats .stat-value {
    font-size: 20px;
  }
  
  .car-list-grid {
    grid-template-columns: 1fr;
  }
  
  .key-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .company-detail-header .company-name {
    font-size: 18px;
  }
}

/* ========== 互联网行业地图样式 ========== */
.map-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-top: 8px;
}

.internet-trends-section {
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.internet-trends-section h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
}

.trends-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trend-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
}

.trend-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.trend-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.trend-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.trend-desc {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1200px) {
  .trends-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .trends-grid {
    grid-template-columns: 1fr;
  }
  
  .internet-trends-section {
    padding: 16px;
  }
}

/* ==================== 简历库样式 ==================== */

.resume-upload-section {
  margin-bottom: 24px;
}

.resume-dropzone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.resume-dropzone:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.resume-dropzone.drag-over {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  transform: scale(1.01);
}

.resume-dropzone svg {
  color: #9ca3af;
  margin-bottom: 12px;
}

.resume-dropzone p {
  margin: 8px 0;
  color: #6b7280;
}

.resume-dropzone .dropzone-hint {
  font-size: 13px;
  color: #9ca3af;
}

.resume-upload-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.resume-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
  transition: all 0.2s ease;
}

.resume-tab:hover {
  background: #f3f4f6;
  color: #374151;
}

.resume-tab.active {
  background: #fff;
  border-color: #3b82f6;
  border-bottom-color: #fff;
  color: #3b82f6;
  font-weight: 500;
}

.resume-tab svg {
  flex-shrink: 0;
}

.resume-tab-content {
  border: 1px solid #e5e7eb;
  border-radius: 0 12px 12px 12px;
  background: #fff;
  margin-top: -1px;
}

.resume-tab-pane {
  display: none;
  padding: 20px;
}

.resume-tab-pane.active {
  display: block;
}

.resume-paste-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resume-paste-area textarea {
  width: 100%;
  min-height: 180px;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.resume-paste-area textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.resume-paste-area textarea::placeholder {
  color: #9ca3af;
}

.btn-submit-paste {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
}

.upload-progress {
  margin-top: 16px;
  padding: 12px;
  background: #f1f5f9;
  border-radius: 8px;
}

.progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  width: 0%;
  transition: width 0.3s ease;
  animation: progress-pulse 1.5s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.progress-text {
  font-size: 13px;
  color: #6b7280;
}

.resume-list-section h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.count-badge {
  background: #3b82f6;
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.resume-toolbar {
  margin-bottom: 20px;
}

.resume-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.resume-filters input[type="text"] {
  min-width: 200px;
  flex: 1;
  max-width: 300px;
}

.resume-filters select {
  min-width: 140px;
}

.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.resume-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.resume-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.resume-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.resume-card-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resume-card-avatar svg {
  color: #3b82f6;
}

.resume-card-info {
  flex: 1;
  min-width: 0;
}

.resume-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resume-card-position {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resume-card-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}

.resume-card-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.resume-card-item svg {
  width: 14px;
  height: 14px;
  color: #9ca3af;
  flex-shrink: 0;
}

.resume-card-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resume-card-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.resume-card-team {
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}

.resume-card-date {
  font-size: 12px;
  color: #9ca3af;
}

.resume-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  gap: 6px;
}

.resume-card:hover .resume-card-actions {
  display: flex;
}

.resume-card-actions button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: none;
  color: #6b7280;
  cursor: pointer;
}

.resume-card-actions button:hover {
  background: #e5e7eb;
  color: #374151;
}

.resume-card-actions button.btn-danger:hover {
  background: #fee2e2;
  color: #dc2626;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  margin: 8px 0;
}

.empty-state .hint {
  font-size: 13px;
}

.resume-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.resume-pagination button {
  padding: 8px 16px;
}

.resume-pagination button:disabled {
  background: #e5e7eb;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

/* 简历弹窗样式 */
.resume-modal-content {
  max-width: 650px;
}

.resume-detail-content {
  max-width: 950px;
  width: 90%;
}

.resume-detail-content .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.resume-detail-footer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 16px 20px;
}

.resume-detail-footer button {
  margin: 0;
  min-width: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 12px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-info {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
  border: none;
}

.btn-info:hover {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.btn-translate {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border: none;
}

.btn-translate:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.convert-mode-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-mode-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  height: auto;
}

.btn-mode-option:hover {
  border-color: #3b82f6;
  background: #f0f9ff;
}

.btn-mode-option svg {
  color: #3b82f6;
}

.btn-mode-option .mode-title {
  font-weight: 600;
  font-size: 15px;
  color: #1f2937;
}

.btn-mode-option .mode-desc {
  font-size: 13px;
  color: #6b7280;
}

.resume-translate-section {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-radius: 12px;
  border: 1px solid #e9d5ff;
}

.resume-translate-section .translate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.resume-translate-section h5 {
  margin: 0;
  color: #7c3aed;
  font-size: 15px;
}

.translated-text-content {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  padding: 16px;
  border-radius: 8px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

.resume-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.resume-form-grid .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resume-form-grid .form-group label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.resume-form-grid .form-group input,
.resume-form-grid .form-group select {
  width: 100%;
}

.resume-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.resume-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-avatar svg {
  color: #3b82f6;
}

.resume-header-info h4 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #1f2937;
}

.resume-header-info p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.resume-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.resume-detail-grid .detail-item {
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 14px;
}

.resume-detail-grid .detail-item .label {
  color: #6b7280;
  margin-right: 6px;
}

.resume-raw-text-section h5 {
  margin: 0 0 12px 0;
  color: #374151;
  font-size: 14px;
}

.raw-text-content {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: #4b5563;
}

@media (max-width: 768px) {
  .resume-grid {
    grid-template-columns: 1fr;
  }
  
  .resume-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .resume-filters input[type="text"],
  .resume-filters select {
    max-width: none;
    width: 100%;
  }
  
  .resume-form-grid,
  .resume-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .resume-card-body {
    grid-template-columns: 1fr;
  }
}

.template-section {
  margin-bottom: 24px;
}

.template-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  margin-bottom: 16px;
}

.template-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.template-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.template-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
}

.template-item .template-name {
  color: #374151;
  font-weight: 500;
}

.template-item .template-date {
  color: #9ca3af;
  font-size: 12px;
}

.template-item .template-delete {
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.template-item .template-delete:hover {
  background: #fee2e2;
  color: #dc2626;
}

.empty-hint {
  color: #9ca3af;
  font-size: 14px;
  padding: 20px;
  text-align: center;
}

.resume-report-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.resume-report-section h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  color: #374151;
}

.report-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.report-badge-none {
  background: #f3f4f6;
  color: #6b7280;
}

.report-badge-ready {
  background: #dcfce7;
  color: #16a34a;
}

.report-content {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

.btn-ai {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ai:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
}

.btn-ai:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-success {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-success:hover {
  background: #15803d;
}

.resume-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}

.resume-card-report-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #dcfce7;
  color: #16a34a;
  font-weight: 500;
}

.resume-card-jobmatch-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #dbeafe;
  color: #2563eb;
  font-weight: 500;
  cursor: help;
}

/* ==================== AI智能分析相关样式 ==================== */

/* AI分析按钮 */
.btn-ai-analysis {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-ai-analysis:hover {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* AI排版按钮 */
.btn-sm.btn-ai-format {
  padding: 4px 10px;
  font-size: 12px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-sm.btn-ai-format:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-sm.btn-ai-format:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-sm.btn-outline {
  padding: 4px 10px;
  font-size: 12px;
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
}

.btn-sm.btn-outline:hover {
  background: #f3f4f6;
}

/* AI排版结果区域 */
.ai-formatted-section {
  margin-bottom: 20px;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
  overflow: hidden;
}

.ai-formatted-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
  border-bottom: 1px solid #c7d2fe;
}

.ai-formatted-header h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #4338ca;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  font-weight: 600;
}

.ai-formatted-content {
  padding: 16px;
}

.ai-extracted-info {
  margin-bottom: 16px;
}

.extracted-info-title,
.formatted-resume-title {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #d1d5db;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.formatted-resume-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.extracted-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.extracted-item {
  font-size: 13px;
  padding: 6px 10px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.extracted-item .label {
  color: #6b7280;
}

.extracted-item .value {
  color: #1f2937;
  font-weight: 500;
}

.formatted-text-content {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

.raw-text-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.raw-text-header h5 {
  margin: 0;
}

/* AI分析配置弹窗 */
.ai-analysis-modal-content {
  max-width: 600px;
}

.analysis-mode-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}

.mode-tab {
  flex: 1;
  padding: 10px 20px;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.2s;
}

.mode-tab:first-child {
  border-right: 1px solid #d1d5db;
}

.mode-tab.active {
  background: #4f46e5;
  color: #fff;
}

.mode-tab:hover:not(.active) {
  background: #f3f4f6;
}

.mode-hint {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.analysis-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.analysis-type-card {
  display: block;
  cursor: pointer;
}

.analysis-type-card input {
  display: none;
}

.analysis-type-card .card-content {
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: all 0.2s;
  text-align: center;
}

.analysis-type-card input:checked + .card-content {
  border-color: #4f46e5;
  background: #eef2ff;
}

.analysis-type-card:hover .card-content {
  border-color: #a5b4fc;
}

.analysis-type-card .card-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.analysis-type-card .card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.analysis-type-card .card-desc {
  font-size: 12px;
  color: #6b7280;
}

/* 岗位匹配选项 */
.job-match-options {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.job-source-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.source-tab {
  flex: 1;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #4b5563;
  transition: all 0.2s;
}

.source-tab.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.source-tab:hover:not(.active) {
  background: #f3f4f6;
}

.job-source-content {
  margin-top: 12px;
}

.order-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.job-source-content .form-group {
  position: relative;
}

.order-result-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
}

.order-result-item:hover {
  background: #f9fafb;
}

.order-result-item:last-child {
  border-bottom: none;
}

.order-result-title {
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
}

.order-result-info {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.order-result-empty {
  padding: 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

.selected-order-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  position: relative;
}

.order-card-title {
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
}

.order-card-info {
  font-size: 12px;
  color: #6b7280;
}

.btn-remove-order {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-remove-order:hover {
  background: #b91c1c;
}

.btn-remove-order .icon-x {
  width: 12px;
  height: 12px;
  stroke-width: 2.8;
}

.history-link {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.btn-link {
  background: none;
  border: none;
  color: #4f46e5;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.btn-link:hover {
  text-decoration: none;
  background: #f3f4f6;
}

/* AI分析结果弹窗 */
.ai-analysis-result-content {
  max-width: 800px;
  max-height: 90vh;
}

.analysis-result-container {
  max-height: 60vh;
  overflow-y: auto;
}

.analysis-section {
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.analysis-section h4 {
  margin: 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  font-size: 18px;
}

.analysis-content {
  padding: 16px;
}

.analysis-section.error {
  border-color: #fecaca;
  background: #fef2f2;
}

.analysis-section .error-msg {
  color: #dc2626;
  font-size: 13px;
}

/* 评分显示 */
.score-display {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  border-radius: 12px;
  background: #f3f4f6;
  margin-bottom: 16px;
}

.score-display.large {
  padding: 20px 32px;
}

.score-display .score-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.score-display.large .score-value {
  font-size: 48px;
}

.score-display .score-label {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.score-display.high {
  background: #dcfce7;
}

.score-display.high .score-value {
  color: #16a34a;
}

.score-display.medium {
  background: #fef3c7;
}

.score-display.medium .score-value {
  color: #d97706;
}

.score-display.low {
  background: #fee2e2;
}

.score-display.low .score-value {
  color: #dc2626;
}

/* 分析内容区块 */
.analysis-content h5 {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px 0;
}

.analysis-content ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.analysis-content li {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: #4b5563;
}

.analysis-content li strong {
  color: #1f2937;
}

.analysis-content .detail {
  color: #6b7280;
  font-size: 12px;
}

.analysis-content .suggestion {
  color: #059669;
  font-size: 12px;
  font-style: italic;
}

/* 优劣势网格 */
.sw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.strengths-col,
.weaknesses-col {
  padding: 12px;
  border-radius: 8px;
}

.strengths-col {
  background: #f0fdf4;
}

.weaknesses-col {
  background: #fef3c7;
}

/* 职业问题 */
.risk-level {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.risk-level.低,
.risk-level.low {
  background: #dcfce7;
  color: #16a34a;
}

.risk-level.中,
.risk-level.medium {
  background: #fef3c7;
  color: #d97706;
}

.risk-level.高,
.risk-level.high {
  background: #fee2e2;
  color: #dc2626;
}

.severity {
  font-size: 11px;
  color: #dc2626;
}

/* 岗位匹配 */
.job-match .summary {
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 16px;
}

.job-match .summary p {
  margin: 0;
  font-size: 14px;
  color: #374151;
}

.recommendation h5 {
  margin-bottom: 8px;
}

.rec-level {
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.match-strengths,
.match-gaps {
  margin-top: 12px;
}

/* 历史记录 */
.analysis-history-list {
  max-height: 400px;
  overflow-y: auto;
}

.history-item {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.history-item:hover {
  background: #f9fafb;
  border-color: #c7d2fe;
}

.history-date {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.history-types {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

.history-order {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.loading-hint,
.empty-hint,
.error-hint {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
  font-size: 14px;
}

.error-hint {
  color: #dc2626;
}

.no-result {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
}

/* 响应式 */
@media (max-width: 768px) {
  .analysis-types-grid {
    grid-template-columns: 1fr;
  }
  
  .extracted-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sw-grid {
    grid-template-columns: 1fr;
  }
  
  .ai-analysis-result-content {
    max-width: 100%;
    margin: 10px;
  }
}

.resume-ai-analysis-section {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
}

.ai-analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ai-analysis-header h5 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin: 0;
  color: #4f46e5;
}

.ai-analysis-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-analysis-meta .analysis-time {
  font-size: 12px;
  color: #6b7280;
}

.ai-analysis-inline-content {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
}

.ai-analysis-inline-content .analysis-section {
  margin-bottom: 16px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
}

.ai-analysis-inline-content .analysis-section:last-child {
  margin-bottom: 0;
}

.ai-analysis-inline-content .analysis-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
  margin: 0 0 8px 0;
}

.ai-analysis-inline-content .score-display {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: #f3f4f6;
  margin-bottom: 8px;
}

.ai-analysis-inline-content .score-display.high {
  background: #dcfce7;
  color: #166534;
}

.ai-analysis-inline-content .score-display.medium {
  background: #fef3c7;
  color: #92400e;
}

.ai-analysis-inline-content .score-display.low {
  background: #fee2e2;
  color: #991b1b;
}

.ai-analysis-inline-content .score-value {
  font-size: 24px;
  font-weight: 700;
}

.ai-analysis-inline-content .score-label {
  font-size: 11px;
}

.ai-analysis-inline-content ul {
  margin: 0;
  padding-left: 20px;
}

.ai-analysis-inline-content li {
  margin-bottom: 4px;
}

.ai-analysis-inline-content .sw-grid {
  display: flex;
  gap: 16px;
}

.ai-analysis-inline-content .strengths-col,
.ai-analysis-inline-content .weaknesses-col {
  flex: 1;
}

.ai-analysis-inline-content h5 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: #374151;
}

.ai-analysis-inline-content .detail {
  font-size: 12px;
  color: #6b7280;
}

.ai-analysis-inline-content .suggestion {
  font-size: 12px;
  color: #059669;
  font-style: italic;
}

.no-analysis-hint {
  text-align: center;
  color: #9ca3af;
  padding: 20px;
  font-size: 13px;
}

.resume-full-editor-content {
  max-width: 95vw;
  width: 1200px;
  max-height: 90vh;
}

.resume-full-editor-content .modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.resume-full-editor-content .modal-header h3 {
  margin: 0;
  flex-shrink: 0;
}

.version-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.version-selector label {
  color: #6b7280;
}

.version-selector select {
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
}

.resume-editor-body {
  padding: 0 !important;
}

.resume-editor-layout {
  display: flex;
  height: 60vh;
}

.resume-editor-left {
  width: 320px;
  flex-shrink: 0;
  border-right: 1px solid #e5e7eb;
  padding: 20px;
  overflow-y: auto;
  background: #f9fafb;
}

.resume-editor-left h4 {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #374151;
}

.structured-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.structured-fields .field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.structured-fields .field-group label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.structured-fields .field-group input,
.structured-fields .field-group select {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  transition: border-color 0.2s;
}

.structured-fields .field-group input:focus,
.structured-fields .field-group select:focus {
  outline: none;
  border-color: #3b82f6;
}

.structured-fields .field-group.full-width {
  grid-column: span 2;
}

.structured-fields .field-group.highlight input,
.structured-fields .field-group.highlight select {
  background: #fef9c3;
  border-color: #fbbf24;
}

.resume-editor-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.editor-toolbar h4 {
  margin: 0;
  font-size: 14px;
  color: #374151;
}

.highlight-legend {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-item {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.legend-item.completion-highlight {
  background: #fef9c3;
  color: #92400e;
  cursor: pointer;
  border: none;
}

.resume-text-editor {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.resume-text-editor:focus {
  outline: none;
}

.resume-text-editor .completion-mark {
  background: #fef9c3;
  padding: 2px 4px;
  border-radius: 3px;
}

.complete-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.complete-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.complete-option:hover {
  border-color: #3b82f6;
  background: #f8fafc;
}

.complete-option input[type="radio"] {
  margin-top: 2px;
}

.complete-option .option-content {
  flex: 1;
}

.complete-option .option-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.complete-option .option-desc {
  font-size: 13px;
  color: #6b7280;
}

/* ==================== 人才管理页面样式 ==================== */
.talent-header-tabs {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.talent-tab {
  padding: 6px 16px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.talent-tab:hover { background: #f3f4f6; }
.talent-tab.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }

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

.talent-kpi-panel, .talent-upload-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
}

.talent-kpi-panel h4, .talent-upload-panel h4 { margin: 0 0 12px 0; font-size: 14px; color: #374151; }

.kpi-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.kpi-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.kpi-card .kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.kpi-card .kpi-label {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.kpi-card-rate .kpi-value { color: #10b981; }

.upload-compact-header {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.upload-mode-btn {
  padding: 6px 12px;
  height: auto;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.upload-mode-btn:hover { background: #e5e7eb; }
.upload-mode-btn.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }

.template-dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 100;
}

.dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}

.dropdown-item:hover { background: #f3f4f6; }

.upload-mode-content { display: none; }
.upload-mode-content.active { display: block; }

.dropzone-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  color: #6b7280;
  font-size: 13px;
  transition: all 0.2s;
}

.dropzone-compact:hover { border-color: #3b82f6; background: #f8fafc; }
.dropzone-compact.dragover { border-color: #3b82f6; background: #eff6ff; }

.upload-msg { margin-top: 8px; font-size: 13px; color: #10b981; }

.talent-tab-content { display: none; }
.talent-tab-content.active { display: block; }

.mapping-section { padding: 16px; }
.mapping-toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.mapping-tree-container { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; min-height: 400px; max-height: 600px; overflow-y: auto; padding: 16px; }
.mapping-node { margin-bottom: 4px; }
.mapping-node-header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f9fafb; border-radius: 6px; transition: background 0.15s; }
.mapping-node-header:hover { background: #f3f4f6; }
.mapping-toggle { width: 16px; text-align: center; cursor: pointer; color: #6b7280; font-size: 12px; user-select: none; }
.mapping-type-badge { font-size: 11px; padding: 2px 6px; border-radius: 4px; color: #fff; font-weight: 500; }
.mapping-node-name { flex: 1; font-weight: 500; color: #1f2937; }
.mapping-stats { display: flex; gap: 4px; align-items: center; font-size: 13px; color: #6b7280; }
.mapping-count { color: #10b981; font-weight: 500; }
.mapping-target { color: #9ca3af; }
.mapping-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.mapping-node-header:hover .mapping-actions { opacity: 1; }
.mapping-actions .btn-icon { background: none; border: none; padding: 4px; cursor: pointer; font-size: 14px; border-radius: 4px; }
.mapping-actions .btn-icon:hover { background: #e5e7eb; }
.mapping-actions .btn-delete:hover { background: #fee2e2; }
.mapping-actions .btn-ai { color: #3b82f6; }
.mapping-children { margin-top: 4px; }

.ai-suggestions-list { display: flex; flex-direction: column; gap: 12px; }
.ai-company-item { background: #f9fafb; border-radius: 8px; padding: 12px; }
.ai-company-header { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #1f2937; margin-bottom: 8px; }
.ai-company-name { flex: 1; }
.ai-target { color: #6b7280; font-weight: 400; font-size: 13px; }
.ai-departments { padding-left: 20px; }
.ai-dept-item { margin-bottom: 8px; }
.ai-dept-name { font-weight: 500; color: #374151; margin-left: 4px; }
.ai-positions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding-left: 24px; }
.ai-pos-item { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #6b7280; }
.ai-check { width: 16px; height: 16px; cursor: pointer; }

.loading-spinner { width: 40px; height: 40px; border: 3px solid #e5e7eb; border-top-color: #3b82f6; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.mindmap-section {
  padding: 16px;
}

.mindmap-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

#mindmap-container {
  background: #fff;
  overflow: hidden;
}

#mindmap-svg {
  cursor: grab;
}

#mindmap-svg:active {
  cursor: grabbing;
}

#mindmap-svg foreignObject {
  cursor: pointer;
}

#mindmap-svg foreignObject:hover div {
  background: rgba(59, 130, 246, 0.1);
  border-radius: 4px;
}

.mindmap-node-input {
  padding: 4px 8px;
  border: 2px solid #3b82f6;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  outline: none;
}

.mindmap-context-menu {
  position: fixed;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10000;
  min-width: 120px;
  padding: 4px 0;
}

.mindmap-context-menu-item {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
}

.mindmap-context-menu-item:hover {
  background: #f3f4f6;
}

.mindmap-context-menu-item.danger {
  color: #ef4444;
}

.mindmap-context-menu-item.danger:hover {
  background: #fef2f2;
}

#mindmap-editor {
  background: #f9fafb;
  line-height: 1.6;
}

#mindmap-editor:focus {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

.resume-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.resume-filters {
  display: flex;
  gap: 8px;
  align-items: center;
}

.resume-filters select, .resume-filters input {
  height: 32px;
  font-size: 13px;
}

.resume-count {
  font-size: 13px;
  color: #6b7280;
}

.talent-search-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.talent-search-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 12px;
}

.talent-search-tag-text {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talent-search-tag-close {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #60a5fa;
  background: #fff;
  color: #2563eb;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.talent-search-tag-close:hover {
  background: #dbeafe;
}

.btn-sm {
  padding: 4px 10px;
  height: 28px;
  font-size: 12px;
}

.btn-action {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 2px 8px;
  height: auto;
  font-size: 12px;
}

.btn-action:hover { background: #f3f4f6; }

.resume-table {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.resume-table-header, .resume-table-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.95fr) minmax(110px, 1.25fr) minmax(110px, 1.15fr) 56px 84px minmax(110px, 1fr) minmax(96px, 0.9fr) 56px 96px;
  gap: 10px;
  padding: 10px 12px;
  align-items: center;
  min-height: 48px;
}

.resume-table-header {
  background: #f3f4f6;
  font-weight: 600;
  font-size: 13px;
  color: #374151;
}

.resume-table-row {
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  line-height: 1.45;
}

.resume-table-row:hover { background: #f8fafc; }

.col-name, .col-position, .col-company, .col-years, .col-uploader, .col-remark, .col-date {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.col-name { font-weight: 500; }
.col-company { color: #334155; }
.col-years, .col-date { text-align: center; }
.col-remark { color: #475569; }
.col-actions { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.col-actions .btn-action { white-space: nowrap; }

/* 推荐记录标签 */
.col-recommendations {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 6px;
  align-items: center;
}

.rec-tag {
  display: inline-block;
  padding: 3px 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
  transition: all 0.2s;
}

.rec-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.rec-empty {
  color: #9ca3af;
  font-size: 13px;
}

/* 订单自动补全 */
.order-autocomplete-wrapper {
  position: relative;
}

.order-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

.order-suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f3f4f6;
}

.order-suggestion-item:last-child {
  border-bottom: none;
}

.order-suggestion-item:hover {
  background: #f8fafc;
}

.suggestion-company {
  font-weight: 500;
  color: #111827;
  font-size: 14px;
  margin-bottom: 2px;
}

.suggestion-position {
  color: #6b7280;
  font-size: 12px;
}

.resume-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.daily-summary-section h4, .team-summaries-section h4, .kpi-settings-section h4, .team-kpi-stats h4 {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: #1f2937;
}

.summary-input-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-input-area textarea {
  min-height: 100px;
}

.summary-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-form .form-group label {
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.summary-form .form-row-inline {
  display: flex;
  gap: 16px;
}

.summary-form .form-row-inline .form-group {
  flex: 1;
}

.recommendation-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.recommendation-row .rec-company {
  flex: 2;
}

.recommendation-row .rec-count {
  width: 80px;
}

.recommendation-row .btn-remove {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.recommendation-row .btn-remove .icon-x {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 13px;
}

.summary-field {
  margin-bottom: 6px;
  line-height: 1.5;
}

.summary-field b {
  color: #374151;
}

.summary-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.summaries-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.summary-user { font-weight: 600; color: #1f2937; }
.summary-date { font-size: 12px; color: #6b7280; }
.summary-content { font-size: 14px; color: #374151; line-height: 1.6; }

.talent-summary-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

.summary-compact-form { display: flex; flex-direction: column; gap: 8px; }
.summary-compact-row { display: flex; flex-direction: column; gap: 4px; }
.summary-compact-row label { font-size: 12px; color: #6b7280; font-weight: 500; }
.summary-compact-row textarea { font-size: 13px; padding: 6px 8px; resize: none; }
.summary-compact-inline { display: flex; gap: 12px; }
.summary-compact-field { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.summary-compact-field label { font-size: 12px; color: #6b7280; font-weight: 500; }
.summary-compact-field input { font-size: 13px; padding: 6px 8px; }
.btn-add-rec { background: #6366f1; color: #fff; border: none; border-radius: 4px; padding: 4px 8px; font-size: 12px; cursor: pointer; }
.btn-add-rec:hover { background: #4f46e5; }
#summary-rec-list .recommendation-row { margin-bottom: 6px; }
#summary-rec-list .recommendation-row input { font-size: 12px; padding: 4px 6px; }

.my-summaries-list { display: flex; flex-direction: column; gap: 16px; }
.summary-date-group { margin-bottom: 8px; }
.summary-date-title { font-size: 13px; font-weight: 600; color: #6b7280; padding: 4px 0; border-bottom: 1px solid #e5e7eb; margin-bottom: 8px; }
.summary-card { background: #f8fafc; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.summary-card-row { display: flex; gap: 16px; margin-bottom: 4px; }
.summary-card-label { color: #6b7280; min-width: 70px; }
.summary-card-value { color: #1f2937; }
.summary-card-text { color: #374151; line-height: 1.5; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e5e7eb; }

.kpi-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
}

.kpi-form .form-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kpi-form label { min-width: 100px; font-size: 14px; color: #374151; }
.kpi-form input[type="number"] { width: 80px; }
.kpi-form .form-hint { font-size: 12px; color: #6b7280; }

.kpi-stats-table {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.kpi-table-header, .kpi-table-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px 100px;
  gap: 8px;
  padding: 10px 12px;
}

.kpi-table-header {
  background: #f3f4f6;
  font-weight: 600;
  font-size: 13px;
}

.kpi-table-row { border-top: 1px solid #e5e7eb; font-size: 13px; }

.status-done { color: #10b981; font-weight: 500; }
.status-pending { color: #f59e0b; font-weight: 500; }

@media (max-width: 768px) {
  .talent-top-row { grid-template-columns: 1fr; }
  .kpi-cards { grid-template-columns: repeat(2, 1fr); }
  .resume-table-header, .resume-table-row {
    grid-template-columns: minmax(90px, 1fr) minmax(100px, 1.1fr) minmax(100px, 1.1fr) 56px 96px;
    gap: 8px;
    padding: 10px 10px;
    min-height: 46px;
  }
  .col-uploader, .col-recommendations, .col-remark, .col-date { display: none; }
  .col-actions { gap: 4px; }
}

.tools-panel-body { padding: 24px; }
.tools-container { max-width: 1200px; margin: 0 auto; }
.tools-section { margin-bottom: 40px; }
.tools-section-title { font-size: 20px; font-weight: 600; color: #1f2937; margin-bottom: 8px; }
.tools-section-desc { color: #6b7280; margin-bottom: 20px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.tool-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); border: 1px solid #e5e7eb; transition: all 0.3s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.tool-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tool-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.tool-icon.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.tool-icon.pink { background: linear-gradient(135deg, #ec4899, #be185d); }
.tool-icon.green { background: linear-gradient(135deg, #10b981, #047857); }
.tool-icon.purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tool-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.tool-card-title { font-size: 16px; font-weight: 600; color: #1f2937; }
.tool-status { font-size: 12px; padding: 2px 8px; border-radius: 12px; background: #fef3c7; color: #92400e; }
.tool-card-desc { color: #6b7280; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.tool-steps { background: #f8fafc; border-radius: 8px; padding: 12px; margin-bottom: 16px; }
.tool-steps-title { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.tool-steps ol { margin: 0; padding-left: 20px; font-size: 13px; color: #6b7280; }
.tool-steps li { margin-bottom: 4px; }
.tool-vote { display: flex; gap: 12px; align-items: center; }
.vote-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.vote-btn.up:hover, .vote-btn.up.active { background: #dcfce7; border-color: #22c55e; color: #15803d; }
.vote-btn.down:hover, .vote-btn.down.active { background: #fee2e2; border-color: #ef4444; color: #dc2626; }
.vote-count { font-weight: 600; }
.suggestion-form { display: flex; gap: 12px; margin-bottom: 20px; }
.suggestion-form textarea { flex: 1; padding: 12px; border: 1px solid #e5e7eb; border-radius: 8px; resize: none; font-size: 14px; }
.suggestion-form button { padding: 12px 24px; }
.suggestion-list { display: flex; flex-direction: column; gap: 12px; }
.suggestion-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; }
.suggestion-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.suggestion-user { font-weight: 600; color: #1f2937; }
.suggestion-time { font-size: 12px; color: #9ca3af; }
.suggestion-content { color: #374151; font-size: 14px; line-height: 1.6; }
.reward-section { text-align: center; background: linear-gradient(135deg, #fef3c7, #fef9c3); border-radius: 16px; padding: 32px; }
.reward-tiger-avatar { margin: 20px 0; }
.reward-tiger-avatar img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3); }
.reward-buttons { display: flex; justify-content: center; gap: 16px; margin: 24px 0; }
.reward-btn { padding: 12px 32px; border-radius: 24px; border: none; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.reward-btn.reward-8 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.reward-btn.reward-88 { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.reward-btn.reward-888 { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.reward-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.reward-ranking { margin-top: 32px; background: #fff; border-radius: 12px; padding: 20px; }
.reward-ranking h4 { font-size: 16px; margin-bottom: 16px; color: #1f2937; }
.ranking-list { display: flex; flex-direction: column; gap: 8px; }
.ranking-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; background: #f8fafc; }
.ranking-item.rank-1 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.ranking-item.rank-2 { background: linear-gradient(135deg, #e5e7eb, #d1d5db); }
.ranking-item.rank-3 { background: linear-gradient(135deg, #fed7aa, #fdba74); }
.ranking-badge { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.rank-1 .ranking-badge { background: #fbbf24; color: #fff; }
.rank-2 .ranking-badge { background: #9ca3af; color: #fff; }
.rank-3 .ranking-badge { background: #f97316; color: #fff; }
.ranking-user { flex: 1; font-weight: 500; color: #1f2937; }
.ranking-amount { font-weight: 700; color: #f59e0b; }
.plugin-center-section { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; }
.plugin-package-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 20px; }
.plugin-package-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.plugin-package-title { font-size: 16px; font-weight: 600; color: #111827; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.plugin-package-meta { margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; color: #4b5563; }
.plugin-package-meta li { margin-bottom: 6px; word-break: break-all; }
.plugin-install-box, .plugin-faq-box, .plugin-debug-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.plugin-install-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.plugin-install-header h4, .plugin-faq-box h4, .plugin-debug-box h4 { margin: 0; color: #111827; font-size: 16px; }
.plugin-install-tabs { display: flex; gap: 8px; }
.plugin-tab-btn { border: 1px solid #d1d5db; background: #fff; color: #374151; border-radius: 999px; padding: 6px 14px; height: auto; }
.plugin-tab-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.plugin-install-steps { margin: 0; padding-left: 20px; color: #374151; line-height: 1.8; }
.plugin-faq-item { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.plugin-faq-item:last-child { border-bottom: none; }
.plugin-faq-q { font-weight: 600; color: #111827; margin-bottom: 4px; }
.plugin-faq-a { color: #475569; font-size: 14px; }
.plugin-debug-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plugin-debug-grid textarea { grid-column: 1 / -1; }
.plugin-debug-actions { display: flex; gap: 10px; margin-top: 10px; }
.plugin-debug-result { margin: 10px 0 0; padding: 12px; background: #0f172a; color: #e2e8f0; border-radius: 8px; min-height: 72px; white-space: pre-wrap; word-break: break-word; font-size: 12px; }
@media (max-width: 768px) {
  .tools-grid { grid-template-columns: 1fr; }
  .suggestion-form { flex-direction: column; }
  .reward-buttons { flex-direction: column; align-items: center; }
  .plugin-debug-grid { grid-template-columns: 1fr; }
  .plugin-install-header { flex-direction: column; align-items: flex-start; }
}

.annual-goal-display, .annual-goal-entry {
  cursor: pointer;
  color: #10b981;
  font-size: 14px;
}
.annual-goal-display:hover, .annual-goal-entry:hover {
  color: #059669;
  text-decoration: none;
  background: #f3f4f6;
}
.annual-goal-icon {
  margin-right: 4px;
}
.annual-goal-text {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
#annual-goal-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
}
.goal-review-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.goal-review-user {
  font-size: 14px;
  color: #374151;
  margin-bottom: 8px;
}
.goal-review-content {
  font-size: 14px;
  color: #1f2937;
  line-height: 1.6;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 12px;
}
.goal-review-actions {
  display: flex;
  gap: 8px;
}
.btn-success {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
}
.btn-success:hover {
  background: #059669;
}
.btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
}
.btn-danger:hover {
  background: #dc2626;
}
.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
}
.editable {
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: border-color .2s, background .2s;
  border-radius: 3px;
  padding: 1px 4px;
  margin: -1px -4px;
}
.editable:hover {
  border-bottom-color: #d1d5db;
  background: #f3f4f6;
}
.editable .inline-edit-input,
.editable .inline-edit-select {
  font: inherit;
  color: inherit;
  border: 1px solid #3b82f6;
  border-radius: 4px;
  padding: 2px 6px;
  outline: none;
  background: #fff;
  min-width: 60px;
  box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}
h4.editable .inline-edit-input {
  font-size: inherit;
  font-weight: inherit;
}
.editable-composite .inline-edit-input {
  width: 80px;
  margin: 0 2px;
}
.editable-composite .inline-edit-sep {
  margin: 0 2px;
  color: #64748b;
}
.run-panel-collapse { margin-top: 24px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fafb; }
.run-panel-collapse summary { cursor: pointer; padding: 14px 20px; font-size: 16px; font-weight: 600; color: #374151; user-select: none; list-style: none; display: flex; align-items: center; gap: 8px; }
.run-panel-collapse summary::before { content: "\25B6"; font-size: 12px; transition: transform .2s; }
.run-panel-collapse[open] summary::before { transform: rotate(90deg); }
.run-panel-collapse summary:hover { color: #374151; background: #f3f4f6; }
.run-panel-collapse[open] > .panel { border: none; box-shadow: none; margin-bottom: 0; }

.admin-filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  padding: 14px 18px; margin-bottom: 14px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
}
.admin-filter-bar .filter-item { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.admin-filter-bar .filter-item label { font-size: 12px; font-weight: 600; color: #64748b; }
.admin-filter-bar .filter-item input,
.admin-filter-bar .filter-item select { height: 34px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 7px; font-size: 13px; background: #fff; }
.admin-filter-bar .filter-item input:focus,
.admin-filter-bar .filter-item select:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,.12); outline: none; }

.admin-table-wrap {
  overflow: auto; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff;
  max-height: 620px;
}
.admin-user-table { border-collapse: collapse; width: 100%; min-width: 900px; }
.admin-user-table thead { position: sticky; top: 0; z-index: 2; }
.admin-user-table th {
  background: #f1f5f9; color: #475569; font-size: 13px; font-weight: 600;
  padding: 10px 12px; text-align: left; border-bottom: 2px solid #e2e8f0; white-space: nowrap;
}
.admin-user-table td {
  padding: 10px 12px; font-size: 13px; color: #334155; border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.admin-user-table tbody tr:hover { background: #f8fafc; }
.admin-user-table tbody tr:nth-child(even) { background: #fafbfd; }
.admin-user-table tbody tr:nth-child(even):hover { background: #f1f5f9; }

.username-tag { font-weight: 600; color: #1e293b; }
.pwd-display { font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.pwd-edit { display: flex; gap: 4px; align-items: center; }
.pwd-edit input { width: 110px; height: 30px; font-size: 12px; padding: 0 8px; border: 1px solid #cbd5e1; border-radius: 6px; }

.inline-select {
  height: 32px; padding: 0 8px; border: 1px solid #cbd5e1; border-radius: 6px;
  font-size: 13px; background: #fff; color: #334155; min-width: 80px;
}
.inline-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,.12); outline: none; }
.inline-input {
  height: 32px; padding: 0 8px; border: 1px solid #cbd5e1; border-radius: 6px;
  font-size: 13px; background: #fff; color: #334155; min-width: 120px; box-sizing: border-box;
}
.inline-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,.12); outline: none; }

.role-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.role-badge.role-admin { background: #fef3c7; color: #92400e; }
.role-badge.role-finance { background: #dbeafe; color: #1e40af; }
.role-badge.role-viewer { background: #d1fae5; color: #065f46; }
.role-badge.role-advisor { background: #ede9fe; color: #5b21b6; }

.btn-action {
  height: 30px; padding: 0 12px; border: none; border-radius: 6px; font-size: 12px;
  font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s;
}
.btn-action.btn-save { background: #3b82f6; color: #fff; }
.btn-action.btn-save:hover { background: #2563eb; }
.btn-action.btn-edit { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.btn-action.btn-edit:hover { background: #e2e8f0; }
.btn-action.btn-pwd { background: #f97316; color: #fff; }
.btn-action.btn-pwd:hover { background: #ea580c; }
.col-actions { display: flex; gap: 6px; align-items: center; }

.admin-empty { padding: 40px; text-align: center; color: #94a3b8; font-size: 14px; }