/* 合并后的CSS文件 - 包含布局、响应式、组件样式等 */

/* ==================== 全局设置 ==================== */

/* 全局变量 */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #34495e;
  --accent-color: #e74c3c;
}

/* 确保body和html占满全屏 */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 隐藏水平滚动 */
  scroll-behavior: smooth;
}

html {
  overflow: hidden; /* 隐藏html的滚动条 */
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  font-size: 16px;
}

/* ==================== 布局容器 ==================== */

/* 主容器 */
.main-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 内容包装器 */
.content-wrapper {
  flex: 1;
  overflow-y: auto; /* 垂直滚动 */
  overflow-x: hidden; /* 隐藏水平滚动 */
  padding: 20px;
  background-color: #f8f9fa;
}

/* 主内容区域 */
.main-content {
  padding: 20px;
}

.main-content-container {
  width: 90%;
  padding: 5px;
}

/* ==================== 导航与下拉菜单 ==================== */

/* 固定导航条 */
.navbar {
  flex-shrink: 0; /* 防止导航条被压缩 */
  z-index: 1030; /* 确保导航栏在最上层 */
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 700;
}

/* 导航链接样式 */
.nav-link.active {
  font-weight: bold;
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* 激活状态的导航项样式 */
.navbar-nav .nav-link.active,
.navbar-nav .dropdown-toggle.active,
.dropdown-menu .dropdown-item.active,
.dropdown-submenu .dropdown-item.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: white !important;
}

.dropdown-menu .dropdown-item.active,
.dropdown-submenu .dropdown-item.active {
  background-color: #0d6efd;
  color: white !important;
}

.dropdown-item.active {
  font-weight: bold;
  color: #0d6efd !important;
  background-color: #f8f9fa;
}

/* 当前页面标记 */
.current-page {
  position: relative;
  background-color: #e7f1ff !important;
  border-left: 3px solid #0d6efd !important;
}

.current-page:after {
  content: "✓";
  position: absolute;
  right: 10px;
  color: #0d6efd;
}

/* 子菜单选中打勾样式 */
.dropdown-item.has-checkmark::after {
  content: "✓";
  margin-left: auto;
  font-weight: bold;
  color: #0d6efd;
}

/* 下拉菜单基础样式 */
.dropdown-menu {
  z-index: 1040;
  overflow: visible; /* 允许内容溢出 */
  max-height: none; /* 移除最大高度限制 */
}

/* 修复导航栏下拉菜单位置 */
.navbar-nav .dropdown-menu {
  position: absolute;
  z-index: 1000;
}

.dropdown-menu.show {
  display: block;
  overflow: visible; /* 允许三级菜单显示 */
}

.dropdown-item {
  white-space: nowrap; /* 防止文字换行 */
}

/* 子菜单样式 */
.dropdown-submenu {
  position: relative;
  cursor: pointer;
}

/* 三级菜单样式修复 */
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  border-radius: 0 6px 6px 6px;
  display: none; /* 默认隐藏 */
  position: absolute;
  min-width: 180px; /* 设置最小宽度 */
}

/* 鼠标悬停时显示子菜单 */
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* 修复三级菜单的箭头指示 */
.dropdown-submenu > a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #ccc;
  margin-top: 5px;
  margin-right: -10px;
}

/* ==================== 侧边栏 ==================== */

.sidebar {
  background-color: white;
  border-right: 1px solid #dee2e6;
  height: calc(100vh - 56px);
  position: sticky;
  top: 56px;
  overflow-y: auto;
}

/* 可滑动的侧边栏 */
.sidebar {
  position: fixed;
  top: 80px;
  right: -66%;
  width: 55%;
  height: 86vh;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #f0f2f5;
  border: 1px solid #ced4da;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 10px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  position: relative;
  flex-shrink: 0;
}

.sidebar.open {
  right: 0;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  z-index: 1001;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #333;
}

/* ==================== 卡片样式 ==================== */

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 15px;
  height: 100%;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
  background-color: var(--primary-color);
  color: white;
  border-radius: 10px 10px 0 0 !important;
  font-weight: 600;
  padding: 10px 15px;
  font-size: 12px;
}

.card-body {
  padding: 1.5rem;
}

/* 特殊卡片类型 */
.company-card {
  border-left: 4px solid #f39c12;
}

.stats-card {
  border-left: 4px solid var(--secondary-color);
}

.stats-card .card-body {
  padding: 1.5rem;
}

.stats-card .display-6 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* 规则卡片特定样式 */
.rule-card {
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.rule-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.rule-actions {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.rule-card:hover .rule-actions {
  opacity: 1;
}

/* 统计卡片 */
.stat-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #6c757d;
}

/* ==================== 按钮与表单 ==================== */

/* 按钮样式 */
.btn {
  transition: all 0.2s ease;
}

.btn-sm {
  font-size: 11px;
  padding: 4px 8px;
}

.btn-action {
  margin-right: 5px;
  margin-bottom: 5px;
}

/* 筛选按钮 */
.filter-btn {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 8px 15px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: all 0.3s;
  font-size: 11px;
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-group .btn {
  padding: 0.5rem 1rem;
}

/* 表单样式 */
.form-label {
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: #f8f9fa;
  color: #495057;
  font-weight: 500;
  border-right: 1px solid #e0e0e0;
  white-space: nowrap;
  font-size: 12px;
}

.form-check-label {
  font-size: 12px;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #3498db;
  border-color: #3498db;
}

.form-required::after {
  content: " *";
  color: #dc3545;
}

.field-error {
  border-color: #dc3545 !important;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.data-textarea {
  font-family: monospace;
  font-size: 14px;
  min-height: 300px;
}

.input-group {
  display: flex;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  background: white;
}

.suggestion-container {
  flex: 1;
  position: relative;
}

/* ==================== 搜索组件 ==================== */

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  z-index: 3;
}

.search-input {
  padding-left: 35px;
  font-size: 12px;
  border-radius: 6px;
}

#globalSearch {
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
}

.search-options {
  border-top: 1px solid #e9ecef;
  padding-top: 10px;
  margin-top: 10px;
}

.search-mode-indicator {
  font-size: 0.8rem;
  color: #6c757d;
  min-height: 18px;
}

/* ==================== 筛选过滤 ==================== */

.filter-section {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

/* ==================== 公司相关样式 ==================== */

.company-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  padding: 15px;
}

.company-list-item {
  border-left: 3px solid var(--primary-color);
  padding: 10px 15px;
  margin-bottom: 10px;
  background-color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: all 0.3s;
}

.company-list-item:hover {
  background-color: var(--light-color);
  transform: translateX(5px);
}

.company-list-item.selected {
  background-color: var(--primary-color);
  color: white;
}

.company-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background-color: white;
  padding: 5px;
  display: block;
}

/* ==================== 可视化样式 ==================== */

.visualization-container {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 500px;
  position: relative;
  overflow: hidden;
}

.echarts-container {
  width: 100%;
  height: 100%;
}

canvas {
  display: block;
  max-width: 100%;
}

.company-node {
  fill: var(--primary-color);
  stroke: white;
  stroke-width: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.company-node:hover {
  fill: var(--warning-color);
  transform: scale(1.1);
}

.company-node.selected {
  fill: var(--danger-color);
  stroke-width: 3px;
}

.supply-chain-link {
  stroke: #95a5a6;
  stroke-width: 2px;
}

.supply-chain-link.highlight {
  stroke: var(--danger-color);
  stroke-width: 3px;
}

/* 图例 */
.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 10px;
}

.node-info {
  position: absolute;
  background: white;
  border-radius: 4px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
  max-width: 200px;
  font-size: 11px;
}

/* ==================== 英雄区域 ==================== */

.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 80px 0;
  margin-bottom: 40px;
}

/* ==================== 示例框 ==================== */

.example-box {
  padding: 20px;
  margin: 15px 0;
  border-radius: 10px;
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
}

/* ==================== 状态与消息 ==================== */

.status-message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  display: none;
}

.progress-update {
  position: relative;
  background: #f8f9fa;
  border-left: 4px solid #17a2b8;
  padding: 12px 15px;
  margin-top: 15px;
  border-radius: 6px;
  font-size: 0.9em;
  overflow: hidden;
}

.progress-update::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #e3e8fdff, #ffab0fff);
  z-index: 0;
  transition: width 0.5s ease;
}

.progress-update > * {
  position: relative;
  z-index: 1;
}

/* 状态颜色 */
.status-pending {
  background-color: #6c757d;
  color: white;
}

.status-error {
  background-color: #dc3545;
  color: white;
}

.status-duplicate {
  background-color: #ffc107;
  color: black;
}

.data-row-pending {
  background-color: #f8f9fa;
}

.data-row-error {
  background-color: #f8d7da;
}

.data-row-duplicate {
  background-color: #fff3cd;
}

.error-text {
  color: #dc3545;
  font-size: 0.85em;
}

/* ==================== 徽章与标签 ==================== */

.badge {
  font-size: 10px;
}

.preview-badge {
  font-size: 0.7em;
  padding: 2px 6px;
}

/* 类别徽章 */
.category-badge {
  font-size: 0.9em;
  padding: 0.5em;
}

/* 技术标签 */
.tech-tag {
  margin-right: 5px;
  margin-bottom: 5px;
}

/* 关键词标签 */
.keyword-tag {
  display: inline-block;
  background-color: #0d6efd;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  margin: 5px;
  font-size: 0.9em;
}

.keyword-tag .close {
  margin-left: 8px;
  cursor: pointer;
}

/* ==================== 人才相关样式 ==================== */

/* 人才徽章样式 */
.talent-badge {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.management-badge {
  background-color: #3498db;
  color: white;
}

.technical-badge {
  background-color: #2ecc71;
  color: white;
}

.dual-badge {
  background-color: #9b59b6;
  color: white;
}

.general-badge {
  background-color: #95a5a6;
  color: white;
}

/* 风险级别 */
.risk-high {
  color: #e74c3c;
  font-weight: bold;
}

.risk-medium {
  color: #f39c12;
  font-weight: bold;
}

.risk-low {
  color: #2ecc71;
  font-weight: bold;
}

/* 人才统计 */
.talent-stats-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

.talent-stat-item {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.talent-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

.talent-stat-item i {
  margin-right: 6px;
  font-size: 0.9rem;
}

.talent-stat-item.total {
  color: #2c3e50;
  font-weight: 600;
  border-left: 3px solid #2c3e50;
}

.talent-stat-item.technical {
  color: #27ae60;
  border-left: 3px solid #27ae60;
}

.talent-stat-item.management {
  color: #2980b9;
  border-left: 3px solid #2980b9;
}

.talent-stat-item.both {
  color: #8e44ad;
  border-left: 3px solid #8e44ad;
}

.talent-stat-count {
  font-weight: 600;
  margin-left: 4px;
  font-size: 1rem;
}

/* 人才库头部 */
.talent-header-section {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

/* 技能标签 */
.skill-tag {
  display: inline-block;
  background-color: #e9ecef;
  padding: 4px 12px;
  border-radius: 20px;
  margin: 3px;
  font-size: 0.85rem;
  transition: background-color 0.2s ease;
}

.skill-tag:hover {
  background-color: #dae0e5;
}

/* ==================== 聊天消息样式 ==================== */

.scrollable-area {
  overflow-y: auto;
  height: 70vh;
  scroll-behavior: smooth;
}

.clearfix {
  float: left !important;
  clear: both !important;
  width: 90% !important;
  margin: 8px 0 !important;
  margin-right: auto !important;
  padding: 10px !important;
  background-color: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  border-left: 4px solid #007bff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.clearfix.odd {
  float: right !important;
  clear: both !important;
  width: 80% !important;
  margin: 8px 0 !important;
  margin-left: auto !important;
  padding: 10px !important;
  background-color: #e3f2fd !important;
  border: 1px solid #bbdefb !important;
  border-radius: 8px !important;
  border-right: 4px solid #2196f3 !important;
  border-left: 1px solid #bbdefb !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.conversation-list {
  overflow: hidden !important;
}

.clearfix .conversation-text {
  float: left !important;
  width: 100% !important;
  margin-left: 0 !important;
}

.clearfix .ctext-wrap {
  background: transparent !important;
  padding: 0 !important;
}

.clearfix .ctext-wrap p {
  margin: 0 !important;
  padding: 8px 12px !important;
  background-color: white !important;
  border-radius: 6px !important;
  border: 1px solid #dee2e6 !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

.clearfix.odd .conversation-text {
  float: right !important;
  width: 100% !important;
  margin-right: 0 !important;
}

.clearfix.odd .ctext-wrap p {
  background-color: #e3f2fd !important;
  border-color: #bbdefb !important;
  text-align: left !important;
}

.clearfix .conversation-text::after {
  content: attr(data-time);
  display: block;
  font-size: 11px;
  color: #6c757d;
  margin-top: 4px;
  text-align: left;
}

.clearfix.odd .conversation-text::after {
  content: attr(data-time);
  display: block;
  font-size: 11px;
  color: #6c757d;
  margin-top: 4px;
  text-align: right;
}

.clearfix .ctext-wrap p::before,
.clearfix .ctext-wrap p::after,
.clearfix.odd .ctext-wrap p::before,
.clearfix.odd .ctext-wrap p::after {
  display: none !important;
}

/* ==================== 表格样式 ==================== */

.scroll-tbody-table {
  width: 100%;
}

.scroll-tbody-table thead,
.scroll-tbody-table tbody tr {
  display: table;
  width: 100%;
}

.scroll-tbody-table thead {
  width: calc(100% - 17px);
}

.scroll-tbody-table tbody {
  display: block;
  max-height: 67vh;
  overflow-y: auto;
  width: 100%;
}

.table-responsive {
  overflow-x: auto;
}

.checkbox-cell {
  width: 40px;
}

.line-number {
  font-size: 0.8em;
  color: #6c757d;
}

.preview-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  font-size: 0.9em;
}

.detected-column {
  background-color: #d4edda !important;
}

.unknown-column {
  background-color: #f8d7da !important;
  color: #721c24;
}

/* ==================== 图片样式 ==================== */

.talent-card-img-container {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.talent-card-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f1f1f1;
  display: block;
  background-color: #f8f9fa;
  transition: transform 0.3s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
}

.talent-card-img:hover {
  transform: scale(1.05);
}

.list-view-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f1f1f1;
  display: block;
  background-color: #f8f9fa;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
}

.detail-modal-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f1f1f1;
  display: block;
  background-color: #f8f9fa;
  margin: 0 auto 20px;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
}

.img-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ==================== 文本样式 ==================== */

/* 标题样式 */
h1 { font-size: 28px; }
h2 { font-size: 26px; }
h3 { font-size: 24px; }
h4 { font-size: 22px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

.mt-1 {
  font-family: "Microsoft YaHei", sans-serif;
}

/* 为所有内容div设置首行缩进 */
.mt-1 > div[id] {
  text-indent: 2em;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* 标题不需要缩进 */
.mt-1 h6,
.mt-1 small {
  text-indent: 0;
}

/* 链接也不需要缩进 */
.mt-1 small a {
  text-indent: 0;
}

/* 文本溢出处理 */
.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  max-height: 4.5em;
}

/* ==================== Toast通知容器 ==================== */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

/* ==================== 页脚 ==================== */

footer {
  background-color: var(--dark-color);
  color: white;
  margin-top: 50px;
  padding: 2rem 0;
}

footer a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

/* ==================== 分页样式 ==================== */

.pagination .page-link {
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  margin: 0 2px;
  border-radius: 5px;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

#talentPagination {
  margin-top: 2rem;
}

/* ==================== 加载动画 ==================== */

.loading-spinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ==================== 模态框 ==================== */

.modal {
  z-index: 1060; /* 确保在导航条之上 */
}

.modal-content {
  border-radius: 15px;
  overflow: hidden;
}

.modal-header {
  background-color: var(--light-color);
  border-bottom: 1px solid #dee2e6;
}

.modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

#previewModal .modal-dialog {
  max-width: 95%;
}

/* ==================== 步骤指示器 ==================== */

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-bottom: 3px solid #dee2e6;
  color: #6c757d;
}

.step.active {
  border-color: #0d6efd;
  color: #0d6efd;
  font-weight: bold;
}

.step.completed {
  border-color: #198754;
  color: #198754;
}

.step-icon {
  font-size: 1.5em;
  margin-bottom: 5px;
}

/* ==================== 列信息 ==================== */

.column-info {
  background-color: #e9ecef;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 0.9em;
}

.column-info i {
  color: #0d6efd;
}

/* ==================== 布局修复 ==================== */

.row {
  margin-left: 0;
  margin-right: 0;
}

.col-md-4,
.col-md-6,
.col-md-3,
.col-md-2,
.col-md-7,
.col-md-8,
.col-md-12 {
  padding-left: 15px;
  padding-right: 15px;
}

/* ==================== 响应式设计 ==================== */

/* 响应式调整 - 基础 */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 10px;
  }
}

/* 移动设备适配 - 子菜单 */
@media (max-width: 991.98px) {
  .dropdown-submenu > .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: transparent;
    border: 0;
    box-shadow: none;
    left: auto;
    margin-left: 0;
    border-radius: 0;
  }
  
  .dropdown-submenu > .dropdown-menu .dropdown-item {
    padding-left: 2rem;
  }
  
  /* 移动端子菜单样式 */
  .dropdown-submenu > .dropdown-menu {
    position: static;
    float: none;
    margin-left: 15px;
    border: none;
    box-shadow: none;
    padding-left: 20px;
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  .dropdown-submenu > .dropdown-toggle::after {
    float: right;
    margin-top: 0.3em;
  }
  
  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    margin-top: 0;
  }
  
  .sidebar {
    height: auto;
    position: static;
  }
  
  .main-content {
    padding: 15px;
  }
  
  .clearfix,
  .clearfix.odd {
    width: 95% !important;
    padding: 8px !important;
    margin: 6px 0 !important;
  }

  .clearfix .conversation-text,
  .clearfix.odd .conversation-text {
    width: 100% !important;
  }

  .clearfix .ctext-wrap p,
  .clearfix.odd .ctext-wrap p {
    padding: 6px 10px !important;
  }
  
  .main-content-container {
    width: 90%;
    padding: 5px;
  }
  
  .stat-card {
    padding: 12px;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  .visualization-container {
    height: 400px;
    padding: 15px;
  }
  
  .company-info {
    padding: 12px;
  }
  
  .visualization-container {
    height: 450px;
  }
  
  .d-flex.align-items-center.justify-content-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .d-flex.align-items-center.gap-4 {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  
  .talent-stats-container {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .view-buttons {
    align-self: flex-end;
  }
  
  /* 新增的响应式规则 */
  .row > .container {
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .sidebar {
    width: 85%;
  }
}

/* 桌面端子菜单样式 */
@media (min-width: 992px) {
  .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0.375rem;
    display: none;
  }
  
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
  
  .dropdown-submenu > .dropdown-toggle::after {
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
    margin-left: 0.5rem;
  }
  
  .navbar-nav .dropdown-menu {
    position: absolute;
    z-index: 1000;
  }
}

/* 超大屏幕 (≥ 1400px) */
@media (min-width: 1400px) {
  .container-fluid {
    max-width: 1320px;
  }
  
  .sidebar {
    max-width: 280px;
  }
}

/* 大屏幕响应式 (≤ 1200px) */
@media (max-width: 1200px) {
  .main-content-container {
    width: 85%;
  }
  
  .talent-stats-container {
    gap: 10px;
  }
  
  .talent-stat-item {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

/* 手机设备 (≤ 768px) */
@media (max-width: 768px) {
  .talent-header-section {
    padding: 15px;
  }
  
  .d-flex.align-items-center.gap-4 {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .talent-stats-container {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  
  .talent-stat-item {
    font-size: 0.8rem;
    padding: 5px 8px;
  }
  
  .conversation-text {
    max-width: 85%;
  }
}

/* 小屏幕 (≤ 576px) */
@media (max-width: 576px) {
  .main-content-container {
    width: 95%;
  }
  
  h1 { font-size: 24px; }
  h2 { font-size: 22px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  h5 { font-size: 16px; }
  h6 { font-size: 14px; }
  
  .example-box {
    padding: 15px;
    margin: 10px 0;
  }
  
  .legend-color {
    width: 16px;
    height: 16px;
    margin-right: 8px;
  }
  
  .talent-stats-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .talent-stat-item {
    justify-content: space-between;
  }
  
  .view-buttons {
    align-self: stretch;
    text-align: right;
  }
}

/* 超小屏幕手机 (≤ 480px) */
@media (max-width: 480px) {
  .clearfix,
  .clearfix.odd {
    width: 95% !important;
  }
  
  .filter-btn {
    padding: 6px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 10px;
  }
  
  .company-list-item {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .search-input {
    padding-left: 30px;
    font-size: 14px;
  }
  
  .search-icon {
    left: 10px;
  }
}

/* 新增的移动端响应式规则 */
@media (max-width: 992px) {
  .sidebar {
    width: 85%;
  }
}