:root {
  --brand-blue: #2f61c7;
  --brand-blue-light: #7aa2f2;
  --card-border: rgba(34, 73, 135, 0.14);
  --muted-text: #6b7a95;
  --shadow: 0 12px 30px rgba(32, 60, 115, 0.12);
  --radius: 14px;
  --page-bg: #f3f6fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "HarmonyOS Sans SC", "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: #1b2b4f;
  background: var(--page-bg);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.dashboard .container {
  max-width: 1536px;
}

.hero {
  position: relative;
  background: linear-gradient(180deg, #2f5fcd 0%, #74a0f0 58%, #f3f6fb 100%);
  padding: 16px 0 78px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='300' height='200' viewBox='0 0 300 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='36' height='36' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 0H36V36H0Z' fill='none'/%3E%3Cpath d='M0 18H36M18 0V36' stroke='%23ffffff' stroke-opacity='0.18' stroke-width='1'/%3E%3Ccircle cx='18' cy='18' r='4' fill='%23ffffff' fill-opacity='0.12'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='300' height='200' fill='url(%23p)'/%3E%3Cpath d='M220 30h60v40h-60z' stroke='%23ffffff' stroke-opacity='0.15' fill='none'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.top-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #eaf1ff;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.logo-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: rgba(234, 241, 255, 0.75);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  position: relative;
  color: rgba(234, 241, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.18));
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(30, 70, 140, 0.28);
}

.nav-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}

.nav-item:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(30, 70, 140, 0.2);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.15));
}

.hero-613 {
  padding-bottom: 48px;
}

.hero-company {
  padding-bottom: 40px;
}

.company-hero {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.company-hero-title {
  font-size: 18px;
  font-weight: 700;
}

.company-hero-subtitle {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.company-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.company-search input {
  border: none;
  background: transparent;
  color: #ffffff;
  outline: none;
  min-width: 240px;
}

.company-search input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.company-search button {
  border: none;
  background: #2f69d8;
  color: #ffffff;
  border-radius: 10px;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
}

.talent-panel {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(57, 90, 156, 0.16);
  box-shadow: 0 10px 22px rgba(30, 58, 112, 0.16);
}

.talent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.talent-updated {
  font-size: 12px;
  color: #5c6f8f;
  background: rgba(47, 105, 216, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
}

.talent-title {
  font-size: 14px;
  font-weight: 700;
  color: #2b4f8c;
}

.talent-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7a95;
}

.talent-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.talent-block {
  border-radius: 12px;
  padding: 12px;
  background: #f7faff;
  border: 1px solid rgba(57, 90, 156, 0.12);
}

.talent-block-title {
  font-size: 12px;
  font-weight: 600;
  color: #2b4f8c;
}

.talent-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.talent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(57, 90, 156, 0.1);
}

.talent-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, #7fb3ff, #3d6ed5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

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

.talent-name {
  font-size: 12px;
  font-weight: 600;
  color: #2b4f8c;
}

.talent-meta {
  margin-top: 2px;
  font-size: 11px;
  color: #6b7a95;
}

.talent-field {
  margin-top: 2px;
  font-size: 11px;
  color: #2f69d8;
}

.talent-impact {
  font-size: 12px;
  font-weight: 600;
  color: #2f69d8;
  text-align: right;
}

.talent-rank {
  font-size: 11px;
  color: #6b7a95;
}

.company-page {
  margin-top: 18px;
  padding-bottom: 60px;
}

.company-filters {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(57, 90, 156, 0.12);
  box-shadow: 0 12px 24px rgba(40, 70, 120, 0.12);
}

.filter-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(57, 90, 156, 0.12);
}

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

.filter-label {
  min-width: 80px;
  font-size: 13px;
  color: #2b4f8c;
  font-weight: 600;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 105, 216, 0.18);
  background: #f3f7ff;
  color: #2f5fcd;
  font-size: 12px;
  cursor: pointer;
}

.filter-pill.active {
  background: #2f69d8;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(47, 105, 216, 0.2);
}

.company-list-section {
  margin-top: 18px;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px 20px;
  border: 1px solid rgba(57, 90, 156, 0.12);
  box-shadow: 0 12px 24px rgba(40, 70, 120, 0.12);
}

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

.company-list-title {
  font-size: 16px;
  font-weight: 700;
  color: #2b4f8c;
}

.company-list-subtitle {
  font-size: 12px;
  color: #6b7a95;
  margin-top: 4px;
}

.company-list-meta {
  font-size: 12px;
  color: #6b7a95;
}

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

.company-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(57, 90, 156, 0.12);
  background: #f9fbff;
}

.company-left {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f69d8, #8ab9ff);
  color: #ffffff;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.company-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.company-name {
  font-size: 15px;
  font-weight: 700;
  color: #2b4f8c;
  text-decoration: none;
}

.company-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.company-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2f69d8;
  font-size: 11px;
}

.company-meta {
  font-size: 12px;
  color: #6b7a95;
}

.company-desc {
  font-size: 12px;
  color: #7282a0;
}

.company-policy {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7faff;
  border: 1px dashed rgba(57, 90, 156, 0.2);
}

.policy-title {
  font-size: 12px;
  font-weight: 600;
  color: #2b4f8c;
}

.policy-list {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-policy-list {
  margin-top: 10px;
}

.policy-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2f69d8;
  border: 1px solid rgba(47, 105, 216, 0.2);
}

.policy-note {
  margin-top: 8px;
  font-size: 11px;
  color: #6b7a95;
}

.company-score {
  font-size: 12px;
  color: #2f69d8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.company-score strong {
  font-size: 14px;
}

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

.primary-btn,
.ghost-btn {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.primary-btn {
  background: #2f69d8;
  color: #ffffff;
  border: none;
}

.ghost-btn {
  background: #eef4ff;
  color: #2f69d8;
  border: 1px solid rgba(47, 105, 216, 0.2);
}

.company-detail-page {
  margin-top: 18px;
  padding-bottom: 60px;
}

.is-hidden {
  display: none;
}

.detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-header {
  flex: 1;
  min-width: 0;
}

.company-detail-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 32px 24px;
  border: 1px solid rgba(57, 90, 156, 0.12);
  box-shadow: 0 12px 24px rgba(40, 70, 120, 0.12);
  text-align: center;
}

.detail-title {
  font-size: 18px;
  font-weight: 700;
  color: #2b4f8c;
}

.detail-subtitle {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7a95;
}

.detail-placeholder {
  margin: 24px 0;
  font-size: 22px;
  color: #2f69d8;
  font-weight: 700;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.detail-tag {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 10px;
  background: #eef4ff;
  color: #2f69d8;
  border: 1px solid rgba(47, 105, 216, 0.2);
}

.detail-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  min-width: 360px;
}

.detail-kpi {
  border-radius: 12px;
  padding: 10px 12px;
  background: #f7faff;
  border: 1px solid rgba(57, 90, 156, 0.12);
  text-align: center;
}

.detail-kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: #2f69d8;
}

.detail-kpi-label {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7a95;
}

.company-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 18px;
}

.detail-section-wide {
  grid-column: 1 / -1;
}

.detail-section .section-title {
  font-size: 14px;
  font-weight: 700;
  color: #2b4f8c;
}

.section-note {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7a95;
}

.detail-section .section-body {
  margin-top: 10px;
}

.overview-text,
.overview-scope {
  font-size: 12px;
  color: #445c84;
  line-height: 1.6;
}

.overview-scope {
  margin-top: 8px;
}

.overview-label {
  color: #6b7a95;
  margin-right: 6px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 10px;
}

.info-item {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #2b4f8c;
}

.info-item.wide {
  grid-column: 1 / -1;
}

.info-label {
  min-width: 96px;
  color: #6b7a95;
}

.info-value {
  color: #2b4f8c;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.business-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.business-card {
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid rgba(57, 90, 156, 0.12);
  position: relative;
  overflow: hidden;
}

.business-label {
  font-size: 12px;
  color: #6b7a95;
}

.business-value {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #2f69d8;
}

.business-spark {
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 32px;
}

.spark-bar {
  width: 8px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #8cb0f5, #4f7fd6);
  opacity: 0.9;
}

.spark-bar.negative {
  background: linear-gradient(180deg, #f0a6a6, #c45a5a);
}

.business-yoy {
  margin-top: 6px;
  font-size: 11px;
  color: #6b7a95;
}

.business-yoy.positive {
  color: #2e7d5b;
}

.business-yoy.negative {
  color: #c04b4b;
}

.business-trend {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trend-title {
  font-size: 12px;
  color: #6b7a95;
}

.trend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #2b4f8c;
}

.trend-year {
  min-width: 44px;
  color: #6b7a95;
}

.trend-bar {
  flex: 1;
  height: 8px;
  background: #e3ebfb;
  border-radius: 999px;
  overflow: hidden;
}

.trend-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4f7fd6, #8cb0f5);
}

.trend-value {
  min-width: 80px;
  text-align: right;
  color: #2f69d8;
}

.business-note {
  margin-top: 10px;
  font-size: 11px;
  color: #6b7a95;
}

.score-card {
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid rgba(57, 90, 156, 0.12);
}

.score-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.score-name {
  font-size: 13px;
  font-weight: 600;
  color: #2b4f8c;
}

.score-value {
  font-size: 16px;
  font-weight: 700;
  color: #2f69d8;
}

.score-summary {
  margin-top: 6px;
  font-size: 11px;
  color: #6b7a95;
  line-height: 1.5;
}

.metric-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.metric-name {
  min-width: 64px;
  color: #6b7a95;
}

.metric-bar {
  flex: 1;
  height: 6px;
  background: #e3ebfb;
  border-radius: 999px;
  overflow: hidden;
}

.metric-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4f7fd6, #8cb0f5);
}

.metric-value {
  min-width: 42px;
  text-align: right;
  color: #2f69d8;
}

.monitoring-wrap {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.monitoring-block {
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid rgba(57, 90, 156, 0.12);
}

.monitoring-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #2b4f8c;
}

.monitoring-count {
  font-weight: 500;
  color: #6b7a95;
}

.monitoring-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.monitor-item {
  padding: 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(57, 90, 156, 0.1);
}

.monitor-title {
  font-size: 12px;
  font-weight: 600;
  color: #2b4f8c;
}

.monitor-meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 11px;
  color: #6b7a95;
}

.monitor-summary {
  margin-top: 6px;
  font-size: 11px;
  color: #4b5f86;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .company-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-search {
    width: 100%;
  }

  .company-search input {
    flex: 1;
    min-width: 0;
  }

  .company-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-actions {
    align-self: stretch;
    justify-content: flex-end;
  }

  .detail-hero {
    flex-direction: column;
  }

  .detail-kpis {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-detail-grid {
    grid-template-columns: 1fr;
  }

  .monitoring-wrap {
    grid-template-columns: 1fr;
  }

  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.industry-hero {
  position: relative;
  margin-top: 18px;
  border-radius: 16px;
  padding: 22px 28px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  overflow: hidden;
}

.industry-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.2), transparent 40%);
  opacity: 0.6;
  pointer-events: none;
}

.industry-hero-inner {
  position: relative;
  z-index: 1;
}

.industry-title {
  font-size: 22px;
  font-weight: 700;
}

.industry-subtitle {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}

.industry-intro {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.industry-hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.hero-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #2f69d8;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px rgba(18, 60, 130, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(18, 60, 130, 0.25);
}

.industry-page {
  margin-top: 28px;
  padding-bottom: 60px;
}

.group-switch {
  margin-top: 18px;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(57, 90, 156, 0.12);
  box-shadow: 0 12px 24px rgba(40, 70, 120, 0.12);
}

.group-heading {
  font-size: 16px;
  font-weight: 700;
  color: #2b4f8c;
  margin-bottom: 10px;
}

.group-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.group-tab {
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid rgba(47, 105, 216, 0.2);
  background: #f2f6ff;
  color: #2f5fcd;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.group-tab.active {
  background: #2f5fcd;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(47, 105, 216, 0.25);
  font-weight: 600;
}

.pagination {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7a95;
  font-size: 13px;
}

.page-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(57, 90, 156, 0.2);
  background: #ffffff;
  cursor: pointer;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  font-weight: 600;
}

.industry-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
}

.chain-sidebar {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 12px;
  border: 1px solid rgba(57, 90, 156, 0.12);
  box-shadow: 0 12px 24px rgba(40, 70, 120, 0.12);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #2b4f8c;
  margin-bottom: 10px;
}

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

.chain-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(57, 90, 156, 0.1);
  background: #f6f8ff;
  color: #2b4f8c;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.chain-item.active {
  background: linear-gradient(90deg, #2f69d8 0%, #7aa8ff 100%);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
}

.chain-count {
  font-size: 12px;
  opacity: 0.85;
}

.chain-content {
  min-width: 0;
}

.chain-card {
  padding: 18px 20px 22px;
}

.chain-header {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 16px;
  align-items: center;
}

.chain-cover {
  width: 200px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(57, 90, 156, 0.2);
}

.chain-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chain-title {
  font-size: 20px;
  font-weight: 700;
  color: #2b4f8c;
}

.chain-tag {
  padding: 4px 8px;
  background: #eef4ff;
  border-radius: 10px;
  font-size: 13px;
  color: #2f5fcd;
}

.chain-summary {
  margin-top: 8px;
  font-size: 13px;
  color: #6b7a95;
  line-height: 1.6;
}

.chain-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: #2f69d8;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.chain-flow {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.flow-column {
  background: #f8faff;
  border-radius: 12px;
  border: 1px solid rgba(57, 90, 156, 0.12);
  padding: 10px 12px 12px;
}

.flow-header {
  position: relative;
  background: linear-gradient(90deg, #2f69d8 0%, #6ea4ff 100%);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}

.flow-header::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #6ea4ff;
}

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

.flow-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(57, 90, 156, 0.1);
  font-size: 13px;
  font-weight: 500;
  color: #2b4f8c;
}

@media (max-width: 1200px) {
  .industry-layout {
    grid-template-columns: 1fr;
  }

  .chain-header {
    grid-template-columns: 1fr;
  }

  .chain-cover {
    width: 100%;
    height: 160px;
  }
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
}

.search-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  right: -4px;
  bottom: -1px;
  transform: rotate(45deg);
  border-radius: 2px;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  width: 160px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.city-pill {
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
  color: #ffffff;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: #2f5fcd;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.kpi-strip {
  position: relative;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 20px;
  z-index: 1;
}

.kpi-title {
  padding: 16px 10px;
  color: #ffffff;
}

.kpi-title-main {
  font-size: 22px;
  font-weight: 700;
}

.kpi-title-sub {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.kpi-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(60, 100, 170, 0.15);
  box-shadow: 0 6px 18px rgba(31, 58, 111, 0.12);
}

.kpi-card .kpi-label {
  font-size: 12px;
  color: #6b7a95;
}

.kpi-card .kpi-value {
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
  color: #2b5bb8;
}

.kpi-card .kpi-unit {
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
  color: #7b8bb0;
}

.pills {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 16px;
  z-index: 1;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill.active {
  background: #ffffff;
  color: #2f5fcd;
  font-weight: 600;
}

.dashboard {
  margin-top: 0;
  padding-top: 12px;
  padding-bottom: 60px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap: 18px;
}

.card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.region-card {
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
}

.card-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted-text);
}

.card-tag {
  font-size: 12px;
  color: #7b8bb0;
  background: #f3f6fc;
  border-radius: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(54, 91, 165, 0.1);
}

.region-body {
  margin-top: 14px;
  flex: 1;
  display: flex;
}

.stat-tiles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-tiles.map-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  width: 180px;
}

.stat-tile {
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(245, 248, 255, 0.92);
  border: 1px solid rgba(64, 103, 176, 0.12);
  backdrop-filter: blur(2px);
}

.stat-tile:nth-child(2) {
  background: #ecf6ff;
}

.stat-tile:nth-child(3) {
  background: #fef5e8;
}

.stat-label {
  font-size: 12px;
  color: #6b7a95;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  margin-top: 6px;
  color: #2d5db4;
}

.map-wrap {
  width: 100%;
  height: 100%;
}

.map-canvas {
  width: 100%;
  height: 100%;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.95),
      rgba(226, 236, 255, 0.75) 45%,
      rgba(209, 225, 250, 0.6) 70%,
      rgba(246, 249, 255, 0.9) 100%
    );
  box-shadow: inset 0 0 0 1px rgba(198, 214, 244, 0.6);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.map-canvas::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(208, 228, 255, 0.2));
  mix-blend-mode: screen;
}

.map-error {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.92);
  color: #2f59a7;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

.map-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.map-3d canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.map-svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: translate(var(--map-pan-x, 0px), var(--map-pan-y, 0px))
    scale(var(--map-scale, 1));
  transform-origin: center center;
  transform-box: fill-box;
}

.map-canvas.dragging {
  cursor: grabbing;
}

.map-preview {
  padding: 24px 0 48px;
}

.map-preview-card .map-canvas {
  height: 70vh;
  min-height: 520px;
}

.district-shape {
  fill: #dbe8ff;
  stroke: #6f90d8;
  stroke-width: 1.2;
  fill-rule: evenodd;
  transition: fill 0.2s ease;
}

.district-shape:hover {
  filter: brightness(1.05);
}

.map-tooltip {
  position: absolute;
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(57, 90, 156, 0.2);
  box-shadow: 0 6px 16px rgba(43, 77, 140, 0.2);
  font-size: 12px;
  color: #2b4f8c;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease;
  white-space: nowrap;
  z-index: 6;
}

.map-legend {
  position: absolute;
  right: 14px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7a95;
  z-index: 4;
}

.legend-bar {
  width: 10px;
  height: 100px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4f7fd6 0%, #c7dbff 100%);
}

.map-zoom {
  position: absolute;
  right: 14px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  border: 1px solid rgba(57, 90, 156, 0.2);
  z-index: 4;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(110, 140, 200, 0.25);
  box-shadow: 0 8px 18px rgba(68, 102, 170, 0.18);
}

.zoom-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(57, 90, 156, 0.2);
  background: rgba(232, 241, 255, 0.9);
  color: #2f4f8c;
  font-weight: 700;
  cursor: pointer;
}

.zoom-range {
  width: 90px;
  accent-color: #2f69d8;
}

.industry-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.industry-tile {
  border: 1px solid rgba(58, 95, 160, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.industry-image {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.industry-body {
  padding: 10px 12px 12px;
}

.industry-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.industry-count {
  font-size: 12px;
  color: #6b7a95;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.industry-bar {
  height: 4px;
  background: linear-gradient(90deg, #2f69d8 0%, #9bc2ff 100%);
  border-radius: 999px;
  margin-top: 8px;
}

.alert-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.alert-card {
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(53, 95, 160, 0.12);
}

.alert-card.info {
  background: #eaf2ff;
  color: #2a5fbd;
}

.alert-card.danger {
  background: #ffeef0;
  color: #c23b48;
}

.alert-label {
  font-size: 13px;
  font-weight: 600;
}

.alert-count {
  font-size: 18px;
  font-weight: 700;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 12px;
}

.data-table thead th {
  text-align: left;
  color: #6b7a95;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid rgba(57, 90, 156, 0.15);
}

.data-table tbody td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(57, 90, 156, 0.08);
  color: #1f2f4d;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.leaders-note {
  font-size: 12px;
  color: #7b8bb0;
  text-align: right;
  margin-top: 2px;
}

@media (max-width: 1200px) {
  .kpi-strip {
    grid-template-columns: 1fr;
  }

  .kpi-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .nav-tools {
    width: 100%;
    justify-content: space-between;
  }

  .map-canvas {
    min-height: 260px;
  }

  .industry-grid {
    grid-template-columns: 1fr;
  }
}
