/* 洲明科技海外投资建厂评估系统 - 完整样式 */

/* ====== CSS变量 ====== */
:root {
  --primary: #1a6ff5;
  --primary-light: #e8f0fe;
  --text-main: #1a1f36;
  --text-sub: #6b7280;
  --border: #e5e7eb;
  --bg: #f3f5f8;
  --card-bg: #ffffff;
  --sidebar-bg: #0f1729;
  --sidebar-text: #a8b5cc;
  --sidebar-active: #1a6ff5;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
}

/* ====== 全局重置 ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  overflow: hidden; /* 禁止body滚动，各区域独立滚动 */
}
body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  display: flex;
  height: 100vh;
}

/* ====== 布局 ====== */
.app-layout {
  display: flex;
  width: 100%;
  height: 100vh; /* 精确铺满视口 */
  overflow: hidden;
}

/* ====== 侧边栏 ====== */
.sidebar {
  width: 210px;
  min-width: 210px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: relative; /* 不再fixed，跟随flex布局 */
  height: 100vh;
  overflow: hidden;   /* 外层禁止滚动，内部各区域独立处理 */
  z-index: 100;
}

.sidebar-brand {
  padding: 20px 12px 16px;
  border-bottom: 1px solid #ffffff12;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* 固定头部，不参与滚动 */
}

.brand-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 4px;
  width: 100%;
}

.brand-sub {
  display: block;
  text-align: center;
  color: #6b7b99;
  font-size: 13px;
  font-weight: 560;
  margin-top: 6px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  width: 100%;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.brand-name {
  display: none;
}

.sidebar-nav {
  padding: 12px 10px;
  flex: 1;
  min-height: 0;       /* 关键！防止flex子元素撑破容器，让overflow生效 */
  overflow-y: auto;    /* 导航区独立滚动 */
  overflow-x: hidden;
}

/* 自定义侧边栏滚动条样式 */
.sidebar-nav::-webkit-scrollbar {
  width: 3px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: #ffffff20;
  border-radius: 2px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: #ffffff40;
}

.nav-group-title {
  color: #4a5568;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 8px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--sidebar-text);
  font-size: 13.5px;
  transition: all 0.15s;
  margin-bottom: 2px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: #ffffff10;
  color: #fff;
}

.nav-item.active {
  background: var(--primary);
  color: #fff;
}

.nav-icon { font-size: 16px; width: 20px; text-align: center; }

/* ====== 侧边栏底部信息区 ====== */
.sidebar-info {
  padding: 16px 20px 24px;
  border-top: 1px solid #ffffff12;
  flex-shrink: 0; /* 固定在底部，不参与滚动 */
  text-align: left;
}

.info-item {
  color: #7a8ba3;
  font-size: 12px;
  line-height: 1.8;
  text-align: left;
  white-space: nowrap;
  overflow: visible;
  margin: 0;
}
  letter-spacing: 0.01em;
}

.info-credit {
  font-size: 11px;
  color: #7a8ba3;
  margin-top: 2px;
}





/* ====== 主内容区 ====== */
.main-wrapper {
  flex: 1;
  min-width: 0;       /* 防止flex子元素溢出 */
  height: 100vh;
  overflow-y: auto;   /* 右侧内容区独立滚动 */
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 24px;
  width: 100%;
  max-width: 1440px;
}

/* ====== 页面标题 ====== */
.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 3px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* ====== 卡片 ====== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

/* ====== 按钮 ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: #1560d4; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-outline:hover { background: var(--bg); }

.btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* ====== 统计卡片 ====== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ====== 网格布局 ====== */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.section-grid-3 {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* ====== 排行榜 ====== */
.region-rank-list { padding: 8px 0; }

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 6px;
  margin: 2px 8px;
}

.rank-item:hover { background: var(--bg); }

.rank-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5e7eb;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-num.top-1 { background: #ffd700; color: #7d5500; }
.rank-num.top-2 { background: #c0c0c0; color: #555; }
.rank-num.top-3 { background: #cd7f32; color: #fff; }

.rank-icon { font-size: 22px; }

.rank-info { flex: 1; }
.rank-name { font-size: 14px; font-weight: 600; }
.rank-meta { font-size: 12px; color: var(--text-sub); }

.rank-score-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 160px;
}

.rank-bar-bg {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.rank-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s;
}

.rank-score {
  font-size: 16px;
  font-weight: 700;
  width: 30px;
  text-align: right;
}

/* ====== 驱动因素 ====== */
.driver-list { padding: 8px 16px 16px; }

.driver-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.driver-item:last-child { border-bottom: none; }

.driver-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.driver-icon-red { background: #fde8e8; }
.driver-icon-blue { background: #e3f0ff; }
.driver-icon-green { background: #e8f8f0; }
.driver-icon-orange { background: #fff3e0; }
.driver-icon-purple { background: #f0edff; }

.driver-title { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.driver-desc { font-size: 12px; color: var(--text-sub); line-height: 1.5; }

/* ====== 快速操作 ====== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 16px;
}

.quick-action-card {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.quick-action-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(26,111,245,0.12);
  transform: translateY(-2px);
}

.qa-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 10px;
}

.qa-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.qa-desc { font-size: 11.5px; color: var(--text-sub); line-height: 1.4; }

/* ====== 区域网格 ====== */
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.region-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.region-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.region-card-header { padding: 16px; }

.region-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.region-emoji { font-size: 28px; }
.region-card-name { font-size: 15px; font-weight: 700; }
.region-card-rep { font-size: 11px; color: var(--text-sub); }

.region-priority {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

.priority-high { background: #fde8e8; color: #c0392b; }
.priority-mid { background: #fff8e1; color: #e67e22; }
.priority-low { background: #e8f5f0; color: #27ae60; }

.region-card-nogo {
  opacity: 0.85;
  filter: grayscale(20%);
}

.nogo-badge-lg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.region-overall-score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-num { font-size: 20px; font-weight: 800; line-height: 1; }
.score-unit { font-size: 10px; }
.score-label { font-size: 14px; font-weight: 700; }
.score-sub { font-size: 11px; color: var(--text-sub); }

.region-card-body { padding: 12px 16px 16px; }

.region-scores { margin-bottom: 10px; }

.dim-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.dim-label { font-size: 11.5px; color: var(--text-sub); width: 26px; }

.dim-bar-wrap {
  flex: 1;
  height: 5px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.dim-bar { height: 100%; border-radius: 3px; }
.dim-val { font-size: 11px; font-weight: 600; width: 24px; text-align: right; }

.region-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-sub);
  background: var(--bg);
  padding: 3px 8px;
  border-radius: 20px;
}

/* ====== 区域详情 ====== */
.header-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  min-width: 80px;
}

.detail-score-card { }

.radar-container {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.five-dim-list { }

.five-dim-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.five-dim-item:last-child { border-bottom: none; }

.five-dim-icon { font-size: 16px; width: 20px; }
.five-dim-label { font-size: 13px; font-weight: 500; width: 64px; }
.five-dim-weight { font-size: 11px; color: var(--text-sub); width: 32px; }

.five-dim-bar-bg {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.five-dim-bar { height: 100%; border-radius: 3px; }
.five-dim-score { font-size: 13px; font-weight: 700; width: 28px; text-align: right; }

.detail-dim-card { }

.dim-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.dim-title-icon { font-size: 18px; }
.dim-card-header h4 { font-size: 14px; font-weight: 600; flex: 1; }

.dim-chip {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}

.dim-items { padding: 8px 16px; }

.dim-row {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.dim-row:last-child { border-bottom: none; }
.dim-key { color: var(--text-sub); width: 80px; flex-shrink: 0; font-size: 12px; }
.dim-val-text { flex: 1; color: var(--text-main); line-height: 1.5; }
.highlight-text { color: #1a6ff5; font-weight: 500; }
.cost-highlight { color: #27ae60; font-weight: 600; }

/* ====== 经销商 ====== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.filter-group label { color: var(--text-sub); white-space: nowrap; }
.filter-group select, .filter-group input[type=range] { font-size: 13px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; }

.dealer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dealer-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.dealer-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.dealer-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.dealer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.dealer-name { font-size: 14px; font-weight: 700; }
.dealer-region { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.dealer-head-info { flex: 1; }

.dealer-score-badge {
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;
}

.dealer-card-body { padding: 12px 16px; }

.dealer-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid #f5f5f5;
}

.dealer-info-row:last-child { border-bottom: none; }
.dealer-info-key { color: var(--text-sub); flex-shrink: 0; }
.dealer-info-val { font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.dealer-info-fullname { font-size: 12px; font-weight: 600; color: var(--text-main); }

.dealer-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 14px;
  transition: background 0.15s;
}

.icon-btn:hover { background: var(--bg); }

/* ====== 状态标签 ====== */
.status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}

.status-prospect { background: #f0f0f0; color: #666; }
.status-evaluating { background: #fff8e1; color: #e67e22; }
.status-negotiating { background: #e3f0ff; color: #1a6ff5; }
.status-confirmed { background: #e8f8f0; color: #27ae60; }

/* ====== 徽章 ====== */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.badge-success { background: #e8f8f0; color: #27ae60; }
.badge-info { background: #e3f0ff; color: #1a6ff5; }
.badge-warning { background: #fff8e1; color: #e67e22; }
.badge-orange { background: #fff0e6; color: #d35400; }
.badge-danger { background: #fde8e8; color: #c0392b; }
.badge-secondary { background: #f0f0f0; color: #666; }

/* ====== 表单 ====== */
.dealer-form { display: flex; flex-direction: column; gap: 16px; }

.form-section { padding: 0 0 16px; }

.form-section-title {
  font-size: 14px;
  font-weight: 600;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  color: var(--text-main);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 20px;
}
.form-grid.form-grid-2 { grid-template-columns: repeat(2, 1fr); padding: 0; }
.form-grid.form-grid-3 { grid-template-columns: repeat(3, 1fr); padding: 0; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12.5px;
  color: var(--text-sub);
  font-weight: 500;
}

.form-group.required label::after { content: ' *'; color: #e74c3c; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text-main);
  background: #fff;
  transition: border-color 0.15s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26,111,245,0.1);
}

.form-score { grid-column: 1/-1; }

.score-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-input-wrap input[type=range] {
  flex: 1;
  padding: 0;
  border: none;
  height: 6px;
  accent-color: var(--primary);
}

.score-display {
  width: 40px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 4px;
}

/* ====== 经销商详情 ====== */
.info-list { padding: 8px 20px; }

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13.5px;
}

.info-row:last-child { border-bottom: none; }
.info-key { color: var(--text-sub); }
.info-val { font-weight: 500; }

.cooperation-detail { padding: 16px 20px; }
.coop-desc { color: var(--text-sub); font-size: 13px; margin-bottom: 14px; }
.coop-pros-cons { display: flex; gap: 24px; margin-bottom: 12px; }
.coop-pros, .coop-cons { flex: 1; }
.coop-label { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.coop-item { font-size: 12.5px; color: var(--text-sub); padding: 3px 0; }
.coop-suitable { font-size: 13px; color: var(--primary); font-weight: 500; }

/* ====== 对比表 ====== */
.comparison-table-wrap { overflow-x: auto; padding: 16px; }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.comparison-table th {
  background: #f8fafc;
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  border-bottom: 2px solid var(--border);
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

.comparison-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.dim-name-cell {
  font-size: 12.5px;
  color: var(--text-sub);
  font-weight: 500;
  width: 155px;
  white-space: normal;
  word-break: break-word;
}

.score-cell { text-align: center; }

.table-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}

.overall-score { width: 40px; height: 32px; font-size: 15px; }
.overall-row td { background: #fafafa; }

/* ====== 合作模式网格 ====== */
.coop-model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
}

.coop-model-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.coop-model-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.coop-model-desc {
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 10px;
  line-height: 1.5;
}

.coop-pros-row, .coop-cons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.pro-tag {
  font-size: 11px;
  background: #e8f8f0;
  color: #27ae60;
  padding: 2px 6px;
  border-radius: 4px;
}

.con-tag {
  font-size: 11px;
  background: #fde8e8;
  color: #c0392b;
  padding: 2px 6px;
  border-radius: 4px;
}

.coop-suit { font-size: 11.5px; color: var(--text-sub); margin-top: 8px; }

/* ====== 报告样式 ====== */
.report-body {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.report-header {
  background: linear-gradient(135deg, #0f1729, #1a3a6e);
  color: #fff;
  padding: 40px 40px;
  text-align: center;
}

.report-logo { font-size: 14px; font-weight: 600; color: #a8b5cc; margin-bottom: 10px; }
.report-title-main { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.report-meta { font-size: 13px; color: #a8b5cc; }

.report-section { padding: 28px 40px; border-bottom: 1px solid var(--border); }
.report-section:last-child { border-bottom: none; }
.report-section-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--text-main); border-left: 4px solid var(--primary); padding-left: 12px; }
.report-text { font-size: 13.5px; line-height: 1.8; color: #444; }

.report-region-rank { display: flex; flex-direction: column; gap: 8px; }

.report-region-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid var(--border);
}

.report-rank-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.report-region-name { font-size: 14px; font-weight: 600; width: 80px; }
.report-region-scores { flex: 1; font-size: 12px; color: var(--text-sub); }
.report-region-total { font-size: 18px; font-weight: 800; width: 60px; text-align: right; }
.report-region-item .badge { width: 60px; text-align: center; }

.report-priority-region {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #fafafa;
}

.rpr-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rpr-name { font-size: 15px; font-weight: 700; }
.rpr-body { display: flex; flex-direction: column; gap: 8px; }
.rpr-item { font-size: 13px; color: #444; line-height: 1.6; }

.report-dealer-summary {
  display: flex;
  gap: 32px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
}

.rds-stat { text-align: center; }
.rds-num { font-size: 28px; font-weight: 800; display: block; }
.rds-label { font-size: 12px; color: var(--text-sub); }

.report-risk-list { display: flex; flex-direction: column; gap: 10px; }

.risk-item {
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.6;
}

.risk-high { background: #fde8e8; border-left: 3px solid #e74c3c; }
.risk-mid { background: #fff8e1; border-left: 3px solid #f39c12; }
.risk-low { background: #e8f8f0; border-left: 3px solid #27ae60; }

/* ====== 空状态 ====== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px;
  color: var(--text-sub);
}

.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-text { font-size: 14px; }

.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px;
  gap: 16px;
}

/* ====== 经销商迷你列表 ====== */
.dealer-mini-list { }

.dealer-mini-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.dealer-mini-item:hover { background: var(--bg); }

.dealer-mini-info { flex: 1; }
.dealer-mini-name { font-size: 13.5px; font-weight: 600; }
.dealer-mini-meta { font-size: 12px; color: var(--text-sub); }
.dealer-mini-score { font-size: 18px; font-weight: 700; width: 36px; text-align: right; }

/* ====== 区域缩写徽章 ====== */
.region-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
  font-family: 'SF Mono', 'Consolas', monospace;
  letter-spacing: 0.5px;
  border: 1.5px solid;
  flex-shrink: 0;
  line-height: 1;
}

.region-icon-badge-sm {
  width: 28px;
  height: 22px;
  font-size: 11px;
  border-radius: 4px;
}

.region-icon-badge-lg {
  width: 44px;
  height: 34px;
  font-size: 15px;
  border-radius: 7px;
}

/* md (default) */
.region-icon-badge:not(.region-icon-badge-sm):not(.region-icon-badge-lg) {
  width: 36px;
  height: 28px;
  font-size: 13px;
  border-radius: 6px;
}

/* 侧边栏中的nav-icon-badge */
.nav-icon-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px !important;
  height: 18px !important;
  border-radius: 4px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  font-family: 'SF Mono', 'Consolas', monospace !important;
  border: 1px solid !important;
  line-height: 1 !important;
}

/* 导入导出按钮组 */
.io-btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* 导入按钮 — 绿色 */
.btn-import {
  background: #27ae60;
  color: #fff;
  border: none;
}
.btn-import:hover { background: #1e8449; box-shadow: 0 2px 8px #27ae6040; }

/* 导出按钮 — JSON 蓝灰色 */
.btn-export-json {
  background: #5d6d7e;
  color: #fff;
  border: none;
}
.btn-export-json:hover { background: #4a5568; box-shadow: 0 2px 8px #5d6d7e40; }

/* 导出按钮 — CSV 橙色 */
.btn-export-csv {
  background: #e67e22;
  color: #fff;
  border: none;
}
.btn-export-csv:hover { background: #ca6f1e; box-shadow: 0 2px 8px #e67e2240; }

/* 经销商卡片编辑按钮 — 橙色 */
.btn-edit-dealer {
  background: #e67e22;
  color: #fff;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-edit-dealer:hover { background: #ca6f1e; box-shadow: 0 2px 8px #e67e2240; }

/* 导入导出弹窗遮罩 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  width: 480px;
  max-width: 95vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.modal-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 16px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.file-drop-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 13px;
}

.file-drop-zone:hover, .file-drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.import-result {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 13px;
}

.import-result.success { background: #e8f8f0; color: #27ae60; }
.import-result.error { background: #fde8e8; color: #c0392b; }

/* ====== 三维总览横向行 ====== */
.dim-overview-row { overflow: hidden; }

.dim-overview-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
}

.dim-overview-radar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.dim-overview-scores {
  padding: 16px 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.dim-overview-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fafafa;
  border-left-width: 3px !important;
  border-left-style: solid !important;
}

.dim-ov-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.dim-ov-icon { font-size: 20px; flex-shrink: 0; }
.dim-ov-label { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.dim-ov-desc { font-size: 11px; color: var(--text-sub); margin-top: 2px; }

.dim-ov-right {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dim-ov-weight {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 700;
  width: 34px;
  text-align: right;
  flex-shrink: 0;
}

.dim-ov-bar-bg {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.dim-ov-bar { height: 100%; border-radius: 4px; transition: width 0.5s ease; }

.dim-ov-score {
  font-size: 18px;
  font-weight: 800;
  min-width: 30px;
  text-align: right;
  flex-shrink: 0;
}

/* ====== 维度全行布局 ====== */
.dim-full-rows { display: flex; flex-direction: column; }

/* 全行宽度的子维度网格（横向排列） */
.dim-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0 16px;
  padding: 8px 16px;
}

/* 综合说明独占一整行 */
.dim-notes-span {
  grid-column: 1 / -1;
}


.three-dim-legend { padding: 12px 16px; }
.three-dim-legend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tdl-item { display: flex; align-items: center; gap: 8px; padding: 10px 10px; border-radius: 8px; background: #fafafa; min-width: 0; overflow: hidden; }
.tdl-icon { font-size: 18px; flex-shrink: 0; }
.tdl-info { min-width: 0; overflow: hidden; }
.tdl-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; display: flex; align-items: baseline; gap: 3px; white-space: nowrap; flex-wrap: nowrap; overflow: hidden; }
.tdl-name strong { margin-left: 2px; font-size: 14px; flex-shrink: 0; white-space: nowrap; }
.tdl-subdims { font-size: 10.5px; color: var(--text-sub); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.three-dim-summary { padding: 8px 0 4px; }
.three-dim-item { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 6px; }
.three-dim-item:hover { background: #f8f8f8; }
.dim-weight-tag { font-size: 11px; color: var(--text-sub); min-width: 30px; text-align: right; font-weight: 600; }
.overall-calc-note { text-align: center; font-size: 12px; color: var(--text-sub); padding: 8px; background: #f8f9fa; border-radius: 6px; margin-top: 8px; }

/* 子维度行 */
.subdim-row { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.subdim-row:last-of-type { border-bottom: none; }
.subdim-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.subdim-icon { font-size: 13px; width: 18px; text-align: center; flex-shrink: 0; }
.subdim-name { font-size: 12px; font-weight: 600; color: var(--text-main); min-width: 70px; flex-shrink: 0; }
.subdim-bar-wrap { flex: 1; height: 5px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.subdim-bar { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.subdim-score { font-size: 12px; font-weight: 700; min-width: 24px; text-align: right; flex-shrink: 0; }
.subdim-detail { font-size: 11px; color: var(--text-sub); line-height: 1.5; padding-left: 24px; }
.highlight-row { background: #fffdf0; border-radius: 6px; padding: 6px 8px; margin-top: 4px; }

/* 子区域卡片 */
.sub-region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; padding: 16px; }
.sub-region-card { background: #fafafa; border-radius: 10px; padding: 16px; border: 1px solid var(--border); }
.sr-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sr-name { font-size: 15px; font-weight: 700; color: var(--text-main); }
.sr-reason { font-size: 12px; color: #555; line-height: 1.6; margin-bottom: 12px; padding: 8px; background: white; border-radius: 6px; border-left: 3px solid var(--primary); }
.sr-details { display: flex; flex-direction: column; gap: 6px; }
.sr-item { display: flex; gap: 8px; font-size: 12px; color: #555; line-height: 1.5; }
.sr-key { font-weight: 600; min-width: 72px; color: var(--text-main); flex-shrink: 0; }
.sr-item.risk-note { background: #fff8f0; padding: 4px 8px; border-radius: 4px; color: #c0392b; }

/* 对比表格新样式 */
.subdim-row-table > td { background: #fafafa; font-size: 11px; color: var(--text-sub); }
.dim-group-row > td { background: #f0f4ff; }
.dim-group-header { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.weight-tag { font-size: 11px; color: white; background: #aaa; padding: 1px 7px; border-radius: 10px; font-weight: 700; }
.cost-group .weight-tag { background: #e67e22; }
.market-group .weight-tag { background: #3498db; }
.safety-group .weight-tag { background: #27ae60; }
.table-score-sm { font-size: 12px; font-weight: 600; }

/* 报告三维权重展示 */
.report-dim-weights { display: flex; gap: 12px; margin-top: 14px; }
.rdw-item { flex: 1; padding: 10px 12px; border-radius: 8px; border: 1.5px solid; background: white; }
.rdw-item span { display: block; font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.rdw-item strong { font-size: 20px; display: block; margin-bottom: 2px; }
.rdw-subs { font-size: 10px; color: var(--text-sub); line-height: 1.4; }

/* 表单提示 */
.form-hint { font-size: 11px; color: var(--text-sub); margin-top: 5px; line-height: 1.5; padding: 5px 8px; background: #f5f8ff; border-radius: 4px; border-left: 2px solid var(--primary); }

/* ====== 维度展开面板 ====== */
.dim-expand-hint {
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}
.dim-expand-hint:hover { opacity: 0.7; }

.dim-panel-detail {
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 数据来源条 */
.dim-data-source-bar {
  font-size: 11px;
  color: #888;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 6px 16px;
  line-height: 1.5;
}

/* 子维度详细数据网格 */
.subdim-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 12px;
  padding: 8px 12px 4px 32px;
  background: #fafbfd;
  border-radius: 0 0 6px 6px;
  border-top: 1px dashed #eee;
}
.subdim-extra-row {
  display: flex;
  gap: 6px;
  font-size: 11px;
  line-height: 1.5;
  padding: 2px 0;
}
.ser-label {
  color: #888;
  white-space: nowrap;
  min-width: 80px;
  flex-shrink: 0;
}
.ser-val {
  color: #333;
  font-weight: 500;
}

/* 子区域数据来源行 */
.sr-source {
  background: #f8fafc !important;
  border-top: 1px dashed #e0e4ea !important;
  margin-top: 4px !important;
}
.sr-source .sr-key {
  color: #aaa !important;
}
.sr-source span:last-child {
  color: #999;
  font-size: 11px;
  font-style: italic;
}



/* ============================================================
   区域概览页 — 三维总览块
   ============================================================ */
.region-overview-block { padding: 0; overflow: hidden; }
.region-ov-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 300px;
}
.region-ov-radar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 16px;
  border-right: 1px solid var(--border);
  background: linear-gradient(160deg, #f7f9fd 0%, #fafbff 100%);
}
.region-ov-radar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 6px;
  align-self: flex-start;
  letter-spacing: 0.3px;
}
.region-ov-info {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.region-ov-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.region-country-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
}
.region-ov-meta-grid {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  background: #f5f7fb;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.region-ov-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 16px;
  flex: 1;
  min-width: 80px;
  border-right: 1px solid var(--border);
}
.region-ov-meta-item:last-child { border-right: none; }
.rom-label {
  font-size: 10px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rom-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}
/* 三维进度条区 */
.region-ov-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rov-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rov-bar-label {
  font-size: 12px;
  font-weight: 600;
  width: 72px;
  flex-shrink: 0;
  white-space: nowrap;
}
.rov-bar-track {
  flex: 1;
  height: 10px;
  background: #eef0f5;
  border-radius: 5px;
  overflow: hidden;
}
.rov-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}
.rov-bar-score {
  font-size: 13px;
  font-weight: 800;
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}
.rov-bar-wt {
  font-size: 10.5px;
  color: #bbb;
  width: 26px;
  text-align: right;
  flex-shrink: 0;
}
.region-ov-formula {
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px dashed #e8eaf0;
}
.formula-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
}
.formula-item {
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.formula-wt {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
}
.formula-op {
  color: #aaa;
  font-size: 16px;
  font-weight: 300;
}
.formula-result {
  font-size: 22px;
  font-weight: 800;
}
.formula-nogo {
  font-size: 13px;
  font-weight: 600;
  color: #e74c3c;
  background: #e74c3c10;
  padding: 6px 12px;
  border-radius: 6px;
}

/* ============================================================
   维度概览卡（三张，点击进入钻取页）
   ============================================================ */
.dim-overview-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #1a6ff5;
  margin-bottom: 12px;
  padding: 0 2px;
}
.dim-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.dim-overview-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dim-overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.dim-ov-nogo {
  border-top-color: #e74c3c !important;
}
.dim-ov-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 12px;
}
.dim-ov-card-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.dim-ov-card-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.dim-ov-card-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.dim-ov-card-weight { font-size: 11px; color: var(--text-sub); margin-top: 2px; }
.dim-ov-card-desc { font-size: 11px; color: var(--text-sub); margin-top: 4px; line-height: 1.5; }
.dim-ov-card-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.dim-ov-nogo-badge {
  background: #e74c3c15;
  color: #e74c3c;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e74c3c33;
}
.dim-ov-score-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  background: white;
}
.dim-ov-enter-hint {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
  white-space: nowrap;
}
.dim-ov-sub-bars {
  padding: 0 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.dim-ov-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}
.dim-ov-sub-icon { font-size: 13px; flex-shrink: 0; width: 16px; text-align: center; }
.dim-ov-sub-name { color: var(--text-sub); flex-shrink: 0; width: 88px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dim-ov-sub-bar-bg {
  flex: 1;
  height: 5px;
  background: #f0f2f5;
  border-radius: 3px;
  overflow: hidden;
}
.dim-ov-sub-bar { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.dim-ov-sub-score {
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  width: 28px;
  text-align: right;
}
.score-nogo { color: #e74c3c !important; }
.dim-ov-sub-wt {
  font-size: 10px;
  color: #bbb;
  flex-shrink: 0;
  width: 28px;
  text-align: right;
}
.dim-ov-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.dim-ov-footer-hint { font-size: 11.5px; font-weight: 500; }
.dim-ov-footer-calc { font-size: 11px; color: var(--text-sub); }

/* ============================================================
   维度钻取页
   ============================================================ */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb-sep { color: #ccc; font-size: 16px; }
.breadcrumb-current { font-size: 13px; font-weight: 600; padding: 2px 0; }

.dim-detail-title-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.dim-detail-big-icon { font-size: 28px; flex-shrink: 0; }
.dim-detail-name { font-size: 18px; font-weight: 700; line-height: 1.3; }
.dim-detail-desc { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.dim-detail-weight-badge {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* 五维雷达图 + 得分列表 */
.dim-detail-overview { padding: 0; overflow: hidden; }
.dim-detail-ov-inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 380px;
}
.dim-detail-radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 16px;
  border-right: 1px solid var(--border);
  background: linear-gradient(160deg, #f7f9fd 0%, #fafbff 100%);
}
.dim-detail-radar-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 8px;
  align-self: flex-start;
}
.dim-detail-score-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dim-detail-score-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.dim-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.dim-score-row:hover { background: #f8f9fb; }
.dim-score-row-nogo { background: #e74c3c08 !important; }
.dsr-icon { font-size: 15px; flex-shrink: 0; width: 20px; text-align: center; }
.dsr-name { font-size: 12.5px; color: var(--text-sub); flex-shrink: 0; width: 110px; }
.dsr-bar-bg {
  flex: 1;
  height: 8px;
  background: #f0f2f5;
  border-radius: 4px;
  overflow: hidden;
}
.dsr-bar { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.dsr-score { font-size: 14px; font-weight: 800; flex-shrink: 0; width: 30px; text-align: right; }
.dsr-weight { font-size: 10.5px; color: #bbb; flex-shrink: 0; width: 30px; text-align: right; }
.dsr-nogo-tag { font-size: 13px; flex-shrink: 0; }
.dim-detail-sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-sub);
}

/* 子维度详细卡片区 */
.subdim-cards-section { margin-bottom: 8px; }
.subdim-cards-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}
.subdim-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.subdim-detail-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.subdim-detail-nogo {
  border-left-color: #e74c3c !important;
  background: #fff9f9;
}
.sdc-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 10px;
}
.sdc-rank {
  width: 22px;
  height: 22px;
  background: var(--bg);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.sdc-icon { font-size: 20px; flex-shrink: 0; }
.sdc-title-group { flex: 1; min-width: 0; }
.sdc-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.sdc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.sdc-weight-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 20px;
}
.sdc-nogo-key-tag {
  font-size: 10px;
  background: #e67e2215;
  color: #e67e22;
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 600;
}
.sdc-nogo-fail-tag {
  font-size: 10px;
  background: #e74c3c15;
  color: #e74c3c;
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 700;
  border: 1px solid #e74c3c33;
}
.sdc-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sdc-score-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  background: white;
}
.sdc-score-bar-wrap {
  width: 44px;
  height: 5px;
  background: #f0f2f5;
  border-radius: 3px;
  overflow: hidden;
}
.sdc-score-bar { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.sdc-nogo-check {
  margin: 0 16px 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}
.sdc-nogo-fail { background: #e74c3c12; color: #e74c3c; border-left: 3px solid #e74c3c; }
.sdc-nogo-pass { background: #27ae6012; color: #27ae60; border-left: 3px solid #27ae60; }
.sdc-detail {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.7;
  padding: 4px 16px 10px;
}
.sdc-empty {
  font-size: 12px;
  color: #bbb;
  padding: 12px 16px;
  font-style: italic;
}
.sdc-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px 12px;
  padding: 8px 16px 10px;
  background: #f8fafd;
  border-top: 1px dashed #eee;
}
.sdc-extra-row {
  display: flex;
  gap: 6px;
  font-size: 11px;
  padding: 3px 0;
  line-height: 1.5;
}
.sdc-extra-key {
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 70px;
}
.sdc-extra-val {
  color: #333;
  font-weight: 500;
}
.sdc-data-source {
  font-size: 10.5px;
  color: #aaa;
  padding: 6px 16px 10px;
  border-top: 1px dashed #f0f2f5;
  background: #fafbfc;
  font-style: italic;
  line-height: 1.5;
}

/* No-Go 警告横幅 */
.nogo-alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #e74c3c10;
  border: 1.5px solid #e74c3c44;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
}
.nogo-alert-icon { font-size: 24px; flex-shrink: 0; }
.nogo-alert-body { flex: 1; }
.nogo-alert-title { font-size: 14px; font-weight: 700; color: #c0392b; margin-bottom: 4px; }
.nogo-alert-desc { font-size: 12.5px; color: #666; line-height: 1.7; }

/* ============================================================
   响应式补丁 — 覆盖在原有媒体查询内容之上
   ============================================================ */
@media (max-width: 1100px) {
  .dim-overview-grid { grid-template-columns: 1fr; }
  .subdim-cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .region-ov-inner { grid-template-columns: 1fr; }
  .region-ov-radar { border-right: none; border-bottom: 1px solid var(--border); }
  .dim-detail-ov-inner { grid-template-columns: 1fr; }
  .dim-detail-radar-wrap { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 1200px) and (min-width: 961px) {
  .region-ov-inner { grid-template-columns: 300px 1fr; }
  .dim-detail-ov-inner { grid-template-columns: 360px 1fr; }
}

/* ====== 经销商表单重构 - 三大维度五子维度样式 ====== */

/* 智能评分横幅 */
.auto-score-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #e8f4ff, #f0faf5);
  border: 1px solid #b3d9ff;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #1a4a7a;
  line-height: 1.6;
}
.auto-score-banner strong { color: #1565c0; }

/* 维度大块标题 */
.dealer-dim-block { margin-bottom: 0; }
.dealer-dim-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  flex-wrap: wrap;
}
.dealer-dim-weight-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.dealer-dim-preview-score {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  background: #f5f5f5;
  border-radius: 20px;
}
.dealer-dim-desc {
  font-size: 12px;
  color: #888;
  margin: 8px 0 16px 4px;
  line-height: 1.5;
}

/* 子维度卡片 */
.dealer-sub-section {
  background: #fafbfc;
  border: 1px solid #eef0f4;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.dealer-sub-section:last-child { margin-bottom: 0; }
.dealer-sub-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.dealer-sub-icon { font-size: 16px; }
.dealer-sub-name { font-size: 14px; font-weight: 600; color: #333; flex: 1; }
.dealer-sub-weight { font-size: 11px; color: #aaa; }

/* 子维度评分滑块行 */
.dealer-sub-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef0f4;
  flex-wrap: wrap;
}
.sub-score-label {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  min-width: 160px;
}

/* ====== 经销商详情 - 三维分析样式 ====== */

/* 三维度分析卡片网格 */
.dealer-dim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.dealer-dim-analysis-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.dealer-dim-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.dealer-dim-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
}
.dealer-dim-card-weight {
  font-size: 11px;
  font-weight: 600;
}
.dealer-dim-card-score {
  font-size: 20px;
  font-weight: 800;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dim-eval-level-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

/* 维度指标评估列表 */
.dim-eval-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dim-eval-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid #f4f5f7;
  min-height: 28px;
}
.dim-eval-row:last-child { border-bottom: none; }
.dim-eval-key {
  color: #333;
  white-space: nowrap;
  min-width: auto;
  font-size: 13px;
  font-weight: 700;
}
.dim-eval-val {
  font-weight: 700;
}
.dim-eval-val {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.dim-eval-na { color: #bbb; background: none !important; font-weight: 400; }
.dim-eval-dot { font-size: 9px; }
.dim-eval-empty { opacity: 0.55; }

/* 旧样式保留兼容 */
.dealer-dim-card-body { display: flex; gap: 12px; align-items: flex-start; }
.dealer-penta-wrap { width: 140px; min-width: 140px; height: 140px; flex-shrink: 0; }
.dealer-sub-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }

/* 响应式：平板 */
@media (max-width: 1100px) {
  .dealer-dim-grid { grid-template-columns: 1fr 1fr; }
  .dealer-dim-card-body { flex-direction: column; }
  .dealer-penta-wrap { width: 100%; height: 160px; min-width: unset; }
  .dim-eval-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dealer-dim-grid { grid-template-columns: 1fr; }
  .auto-score-banner { flex-direction: column; gap: 6px; }
  .dealer-dim-title { font-size: 14px; }
  .dim-eval-list { grid-template-columns: 1fr; }
}


@media print {
  .sidebar, .page-header .btn, .header-actions, .btn { display: none !important; }
  .report-body { box-shadow: none; border: none; }
}

/* ====== 响应式 ====== */
@media (max-width: 1200px) {
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section-grid-3 { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(3, 1fr); }
  .dim-overview-inner { grid-template-columns: 220px 1fr; }
  .dim-items-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 900px) {
  .sidebar { width: 180px; min-width: 180px; }
  .sidebar-brand {
    padding: 15px 8px 12px;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .brand-sub {
    font-size: 12px;
    margin-top: 4px;
  }
  .dealer-grid { grid-template-columns: repeat(2, 1fr); }
  .coop-model-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .dim-overview-inner { grid-template-columns: 1fr; }
  .dim-overview-radar { border-right: none; border-bottom: 1px solid var(--border); }
  .dim-items-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 针对100%缩放比例的特殊调整 */
@media (min-width: 901px) {
  .sidebar-brand {
    padding: 20px 12px 16px;
    text-align: center;
  }
  .brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 4px;
    width: 100%;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
    margin: 0 auto;
  }
  .brand-sub {
    font-size: 13px;
    text-align: center;
    width: 100%;
  }
}

/* ====== 四步向导表单 ====== */

/* 顶部步骤 Tab 导航 */
.wizard-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  overflow: hidden;
}
.wizard-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  cursor: pointer;
  border-right: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
  font-size: 13px;
  color: var(--text-sub);
  background: #fafbfc;
  user-select: none;
}
.wizard-tab:last-child { border-right: none; }
.wizard-tab:hover { background: var(--primary-light); color: var(--primary); }
.wizard-tab.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  border-bottom: 3px solid var(--primary);
}
.wizard-tab.done {
  background: #f0fdf4;
  color: #16a34a;
}
.wizard-tab-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wizard-tab.active .wizard-tab-num {
  background: var(--primary);
  color: #fff;
}
.wizard-tab.done .wizard-tab-num {
  background: #16a34a;
  color: #fff;
}
.wizard-tab-label { line-height: 1.3; }

/* 进度条 */
.wizard-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}
.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #60a5fa 100%);
  transition: width 0.4s ease;
  border-radius: 0 2px 2px 0;
}

/* 步骤内容卡片 */
.wizard-step-content {
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 32px 36px 28px;
  font-size: 15px;
}

/* 向导内 label 字号 */
.wizard-step-content .form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 7px;
  display: block;
}

/* 向导内 input/select/textarea 字号 */
.wizard-step-content input,
.wizard-step-content select,
.wizard-step-content textarea {
  font-size: 14px;
  padding: 9px 12px;
}

/* 步骤内分区标题 */
.ws-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary-light);
}
.ws-section-header:first-child { margin-top: 0; }
.ws-step-icon {
  font-size: 26px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-light);
  border: 1.5px solid var(--primary);
  flex-shrink: 0;
}

/* 三大维度标题 — 页面内字号最大，加粗突出 */
.ws-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}
.ws-weight-tag {
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  vertical-align: middle;
}
.ws-section-note {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* 滑块评分字段 */
.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.slider-row input[type=range] {
  flex: 1;
  min-width: 120px;
  accent-color: var(--primary);
  cursor: pointer;
}
.slider-value {
  min-width: 44px;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* 多选项按钮组 */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
.checkbox-item:hover { background: var(--primary-light); border-color: var(--primary); }
.checkbox-item input[type=checkbox] { accent-color: var(--primary); cursor: pointer; }

/* 单选按钮组 */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
.radio-item:hover { background: var(--primary-light); border-color: var(--primary); }
.radio-item input[type=radio] { accent-color: var(--primary); cursor: pointer; }

/* 草稿操作栏 */
.draft-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.draft-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #e67e22;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  font-size: 13px;
  font-weight: 600;
}
.draft-btn:hover {
  background: #ca6f1e;
  box-shadow: 0 2px 8px #e67e2240;
}
.draft-btn:active { transform: translateY(0); }
.draft-btn-icon { font-size: 14px; line-height: 1; }
.draft-btn-label { color: #fff; white-space: nowrap; }
/* 清除草稿 - 红色区分 */
.draft-btn-clear { background: #e74c3c; }
.draft-btn-clear:hover { background: #c0392b; box-shadow: 0 2px 8px #e74c3c40; }
.draft-btn-clear .draft-btn-label { color: #fff; }
.draft-actions .draft-icon { font-size: 16px; }
.draft-actions .draft-info { flex: 1; }
.draft-actions .btn-ghost {
  background: none;
  border: 1px solid #d97706;
  color: #d97706;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.draft-actions .btn-ghost:hover { background: #fef3c7; }

/* 同行左右分栏（多选+滑块同行） */
.inline-pair-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.inline-pair-main label,
.inline-pair-side label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

/* 手动打分区块 */
.manual-score-group {
  background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
  border: 1.5px solid #c7d2fe;
  border-radius: 12px;
  padding: 18px 22px 14px;
  margin-top: 8px;
}
.manual-score-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.manual-score-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.manual-score-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e3a6e;
  letter-spacing: 0.01em;
}
.manual-score-note {
  font-size: 12px;
  color: #6b7b99;
  margin-top: 3px;
}
/* 详情页维度卡「手动打分」激活标记 */
.manual-score-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #6366f1;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 5px;
  padding: 2px 7px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1.6;
  flex-shrink: 0;
}
.manual-score-group .slider-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.manual-score-group .slider-wrap input[type=range] {
  flex: 1;
  height: 8px;
  accent-color: #1a6ff5;
  cursor: pointer;
}
.manual-score-group .slider-val {
  font-size: 22px;
  font-weight: 800;
  color: #1a6ff5;
  min-width: 60px;
  text-align: right;
}

/* 第四步实时预评分横幅 */
.pre-score-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #eef2ff 0%, #e8f0fe 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pre-score-total {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  min-width: 60px;
  text-align: center;
  line-height: 1;
}
.pre-score-total small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-sub);
  margin-top: 2px;
}
.pre-score-dims {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}
.pre-score-dim {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 70px;
}
.pre-score-dim-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}
.pre-score-dim-label {
  font-size: 11px;
  color: var(--text-sub);
  text-align: center;
}
.pre-score-hint {
  font-size: 12px;
  color: var(--text-sub);
  margin-left: auto;
  align-self: flex-end;
}

/* 一票否决警告框 */
.veto-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 4px solid #e74c3c;
  border-radius: var(--radius);
  margin-top: 8px;
  font-size: 13px;
  color: #9f1239;
}
.veto-warning-icon { font-size: 18px; flex-shrink: 0; }

/* 向导底部操作栏 */
.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: -1px;
  gap: 12px;
}
.wf-left, .wf-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.wf-center {
  font-size: 13px;
  color: var(--text-sub);
}
.wf-step-info { font-weight: 600; }

/* 动态隐藏字段 */
.conditional-field {
  display: none;
  animation: fadeIn 0.2s ease;
}
.conditional-field.visible { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 表单字段增强 */
.form-group label .required {
  color: #e74c3c;
  margin-left: 2px;
  font-size: 12px;
}
.form-hint {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 4px;
  line-height: 1.5;
}

/* 向导内部字段网格 */
.wizard-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.wizard-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px 20px;
}
.wizard-full { grid-column: 1 / -1; }

/* 响应式向导 */
@media (max-width: 900px) {
  .wizard-tabs { flex-wrap: wrap; }
  .wizard-tab { flex: unset; width: 50%; border-bottom: 1px solid var(--border); }
  .wizard-step-content { padding: 18px 16px; }
  .wizard-footer { flex-direction: column; align-items: stretch; }
  .wf-left, .wf-right { justify-content: center; }
  .wizard-grid-2, .wizard-grid-3 { grid-template-columns: 1fr; }
  .pre-score-banner { flex-direction: column; align-items: flex-start; }
  .pre-score-hint { margin-left: 0; }
}

/* ====== 供应商详情页 — 综合评分英雄区 ====== */
.dealer-score-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 4px;
  box-shadow: var(--shadow);
}
/* 左侧矩阵大图 */
.dsh-radar-main {
  width: 100%;
  min-width: 280px;
  padding: 8px 0;
  border-right: 1px solid var(--border);
}
/* 右侧面板：总分 + 维度卡 */
.dsh-right-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dsh-left {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.dsh-score {
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
}
.dsh-score-label { display: flex; flex-direction: column; }
.dsh-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
}
.dsh-dims {
  display: flex;
  gap: 10px;
}
.dsh-dim-card {
  flex: 1;
  min-width: 80px;
  background: #fafbfc;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 14px 10px 12px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.dsh-dim-card:hover { box-shadow: var(--shadow-hover); }
.dsh-dim-icon { font-size: 24px; margin-bottom: 6px; }
.dsh-dim-score { font-size: 36px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.dsh-dim-name { font-size: 13px; color: var(--text-sub); margin-bottom: 4px; font-weight: 600; }
.dsh-dim-weight { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.dsh-dim-bar-bg {
  height: 5px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}
.dsh-dim-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}
/* 旧的 dsh-radar 保留兼容 */
.dsh-radar {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

/* ====== 供应商详情页 — 填写内容展示区 ====== */
.detail-sections-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.detail-section-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dsc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
  border-left-color: inherit;
}
.dsc-icon {
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--primary-light);
  flex-shrink: 0;
}
.dsc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
}
.dsc-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.dsc-contact-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.dsc-body {
  padding: 16px 18px;
}
.dsc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.dsc-grid .info-row {
  padding: 6px 0;
  border-bottom: 1px solid #f5f6f8;
  font-size: 13px;
}
.dsc-grid .info-row:nth-child(odd) { padding-right: 12px; border-right: 1px solid #f5f6f8; }
.dsc-grid .info-row:nth-child(even) { padding-left: 12px; }
.dsc-grid .info-key { font-size: 12px; color: var(--text-sub); min-width: 90px; }
.dsc-grid .info-val { font-size: 13px; color: var(--text-main); font-weight: 500; }

/* tag-pill 小标签 */
.tag-pill {
  display: inline-block;
  padding: 2px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin: 2px 3px 2px 0;
}

/* 响应式 */
@media (max-width: 1100px) {
  .dealer-score-hero { grid-template-columns: 1fr; }
  .dsh-radar-main { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; max-width: 320px; margin: 0 auto; }
  .dsh-left { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  .dsh-radar { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; width: 100%; height: 180px; }
  .detail-sections-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dsh-dims { flex-wrap: wrap; }
  .dsc-grid { grid-template-columns: 1fr; }
  .dsc-grid .info-row:nth-child(odd) { padding-right: 0; border-right: none; }
  .dsc-grid .info-row:nth-child(even) { padding-left: 0; }
}

@media (max-width: 640px) {
  .sidebar { display: none; }
  .region-grid { grid-template-columns: 1fr; }
  .dealer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ====== 销售分析页面样式 ====== */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.section-badge-success {
  background: #e8f8f0;
  color: #27ae60;
  border-left: 3px solid #27ae60;
}

.section-badge-warning {
  background: #fef5e7;
  color: #e67e22;
  border-left: 3px solid #e67e22;
}

.section-badge-info {
  background: #eef2f7;
  color: #5d6d7e;
  border-left: 3px solid #5d6d7e;
}

.section-desc {
  font-size: 13px;
  color: var(--text-sub);
}

.region-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  min-width: 80px;
}
