/* Company Detail Page Styles */

.company-detail-container {
  max-width: 1280px;
  box-sizing: border-box;
  margin: 40px auto 40px;
  padding: 40px 40px 34px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Company Header Section */
.company-header {
  display: flex;
  align-items: flex-start;
  gap: 29px;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: none;
}

.company-logo {
  width: 112px;
  min-height: 112px;
  background: #f5f5f5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  align-self: stretch;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.company-title-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  align-self: stretch;
}

.company-name {
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  margin: 0;
  line-height: 1;
}

.company-location {
  display: flex;
  align-items: center;
  gap: 11px;
}

.country-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0px 11px;
  border: 1px solid #ffbf80;
  border-radius: 4px;
  background: #fff9f2;
}

.flag-icon {
  width: auto;
  height: 12.6px;
  object-fit: contain;
}

.country {
  font-size: 12.6px;
  color: #333;
  font-weight: 500;
}

.country-flag {
  width: 24px;
  height: 16px;
  margin-left: 4px;
}

.region {
  font-size: 14px;
  color: #999;
}

.company-tags {
  display: flex;
  gap: 11px;
}

.country {
  font-weight: bold;
}

.tag {
  height: 25px;
  line-height: 25px;
  padding: 0px 14px;
  border-radius: 4px;
  font-size: 12.6px;
  font-weight: 500;
}

.tag-buyers {
  background: #58A7FF;
  color: #fff;
}

.tag-suppliers {
  background: #7EDFB8;
  color: #fff;
}

.company-action {
  flex-shrink: 0;
}

.ai-insights-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(168, 85, 247, 0.2));
}

.ai-insights-btn img {
  display: block;
  height: 60px;
  width: auto;
}

.ai-insights-btn:hover {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 8px 20px rgba(168, 85, 247, 0.5));
}

.ai-insights-btn:active {
  transform: translateY(0) scale(0.98);
  filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.3));
}

/* Company Info Section */
.company-info-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
}

.info-icon {
  width: 17px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -3px;
}

.info-icon img {
  width: 18px;
  height: auto;
  object-fit: contain;
}

.info-label {
  width: 102px;
  padding-left: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #999999;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  min-width: 0;
}

.industry-content {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  align-items: center;
  max-height: 28px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 200px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 200px), transparent 100%);
}

.industry-tag {
  display: inline-block;
  height: 28px;
  line-height: 28px;
  padding: 0px 16px;
  margin-right: 12px;
  background: #FF7F00;
  color: #fff;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.intro-text {
  margin: 0;
  color: #333333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expand-link,
.more-link {
  color: #0080FF;
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}

.expand-link:hover,
.more-link:hover {
  text-decoration: underline;
}

.contact-phone {
  font-size: 16px;
  color: #333;
  font-weight: 500;
  margin-right: 16px;
  position: relative;
  top: -7px;
}

.contact-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: #d9d9d9;
  margin-right: 8px;
  position: relative;
  top: -4px;
}

.social-icons {
  display: inline-flex;
  gap: 0px;
  align-items: center;
  position: relative;
  top: -4px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.social-link img {
  width: 18px;
  height: auto;
}

.social-link:hover {
  transform: translateY(-2px);
}

.website-link {
  color: #0080FF;
  text-decoration: none;
  font-weight: 500;
}

.website-link:hover {
  text-decoration: underline;
}

.address-text {
  margin: 0;
  color: #333333;
}

/* 响应式设计 - 已移至文件末尾统一管理 */


/* 数据分析板块 */
.data-analysis-container {
  max-width: 1280px;
  box-sizing: border-box;
  margin: 0 auto;
  background: transparent;
}

/* 标签页导航 */
.tabs-navigation {
  display: flex;
  position: relative;
  background: #EBEBEB;
  border-bottom: none;
  padding: 6px;
  gap: 6px;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 滑动白色块 */
.tab-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.tab-item {
  flex: 1;
  padding: 12px 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
  border-radius: 8px;
  border-bottom: none;
  position: relative;
  z-index: 1;
}

.tab-item:hover {
  color: #666;
}

.tab-item.active {
  /* 仅记录选中状态，颜色由 slider-on 负责 */
  border-bottom: none;
  font-weight: 600;
}

/* 滑块所在菜单项高亮颜色 */
.tab-item.slider-on {
  color: #FF7F00 !important;
  font-weight: 600;
}


/* 标签页内容 */
.section-block {
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 30px 0;
}

/* 图表区域 */
.data-chart-section {
  margin-bottom: 40px;
}

.chart-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-bar {
  width: 4px;
  height: 18px;
  background: #ff8c00;
  border-radius: 2px;
}

.chart-container {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

/* 数据表格 */
.data-table-section {
  margin-bottom: 40px;
}

.import-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.import-table thead {
  background: #f5f5f5;
}

.import-table th {
  padding: 0 16px;
  text-align: left;
  font-weight: 600;
  color: #666;
  border-bottom: 2px solid #e8e8e8;
  white-space: nowrap;
  height: 50px;
  box-sizing: border-box;
}

.import-table td {
  padding: 14px 16px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.import-table tbody tr:hover {
  background: #fafafa;
}

.company-link {
  color: #1890ff;
  text-decoration: none;
  font-weight: 500;
}

.company-link:hover {
  text-decoration: underline;
}

/* 普通表格底部渐隐区（全局默认，Exports 等使用） */
.table-more-section {
  text-align: center;
  padding: 30px 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 50%);
  margin-top: -60px;
  position: relative;
}

/* 遮罩表格的定位容器 */
.data-table-masked {
  position: relative;
  margin-bottom: 40px;
}

/* 遮罩表格内的浮层（仅在 .data-table-masked 内绝对定位） */
.data-table-masked .table-more-section {
  position: absolute;
  top: 50px;
  /* 从表头以下开始，避开表头 */
  right: 0;
  /* 增加宽度以覆盖到 Quantity 列等后4列 */
  width: 54%;
  height: calc(100% - 50px);
  margin-top: 0;
  padding: 0;
  /* 使用横向渐变防止边缘过于生硬地切断 Product Details */
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 12%, rgba(255, 255, 255, 0.7) 100%);
  /* 可适当调深一点颜色 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 10;
}

/* 后4列文字模糊效果 */
.col-masked {
  filter: blur(4px);
  user-select: none;
  color: #aaa;
}


.more-text {
  font-size: 18px;
  color: #ff8c00;
  font-weight: bold;
  margin-bottom: 16px;
}

.more-btn {
  padding: 10px 40px;
  background: #ff8c00;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.more-btn:hover {
  background: #ff7700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* 采购分布 */
.procurement-section {
  margin-top: 40px;
}

.procurement-content {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.map-container {
  flex: 2;
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid #eeeeee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-container::before {
  display: none;
}

.map-container>div {
  position: relative;
  z-index: 1;
  width: 100%;
}


.map-legend {
  display: none;
  /* 默认隐藏，以免无地图时显示 */
  position: absolute;
  left: 20px;
  bottom: 50px;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 12px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.legend-label {
  font-size: 11px;
  color: #555;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legend-gradient {
  width: 24px;
  height: 100px;
  background: linear-gradient(to bottom, #ff8c00 0%, #ffb366 30%, #ffd699 60%, #fff0d9 100%);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(255, 140, 0, 0.2);
}

.distribution-table {
  flex: 1;
  min-width: 450px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 表格底部渐隐遮罩，覆盖在最后几行上方 */
.table-fade-overlay {
  position: absolute;
  left: 0;
  bottom: 34px;
  width: 100%;
  height: 180px;
  /* 调整渐显区域，使其从第6行左右开始淡出 */
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.7) 40%,
      rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
  /* 不阻挡点击 */
  z-index: 1;
}

/* 大型表格底部渐隐遮罩（例如用于 HS Code Analysis 以遮盖底层多行） */
.table-fade-overlay-large {
  position: relative;
  width: 100%;
  height: 420px;
  margin-top: -420px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.5) 60%,
      rgba(255, 255, 255, 0.95) 100%);
  pointer-events: none;
  z-index: 1;
}

.distribution-data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 20px;
}

.distribution-data thead {
  background: #f5f5f5;
}

.distribution-data th {
  padding: 7px 10px;
  text-align: left;
  font-weight: 600;
  color: #666;
  border-bottom: 2px solid #e8e8e8;
}

.distribution-data th:first-child {
  width: 40px;
  text-align: center;
}

.distribution-data td {
  padding: 7px 10px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.distribution-data td:first-child {
  text-align: center;
  color: #999;
}

.distribution-data tbody tr:hover {
  background: #fafafa;
}

.distribution-data .fade-row {
  opacity: 0.4;
}

/* 去掉最后一行底部线，让 More 按钮完全压住 */
.distribution-data tbody tr:last-child td {
  border-bottom: none;
}

.more-btn-full {
  width: 100%;
  padding: 7px;
  background: #ff8c00;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.more-btn-full:hover {
  background: #ff7700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* 响应式设计 - 已移至文件末尾统一管理 */

/* Products Section Styles */

/* Header - Import/Export Toggle */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.type-switch {
  display: flex;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 4px;
}

.switch-item {
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.switch-item.active {
  background: #fff;
  color: #ff8c00;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

/* Subsection Header */
.subsection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-tabs {
  display: flex;
  position: relative;
  /* 增加相对定位以容纳滑块 */
  background: #EBEBEB;
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
}

/* 滑动白色块 */
.mini-tab-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: #fff;
  border-radius: 100px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.mini-tab {
  position: relative;
  z-index: 1;
  /* 使得文字浮在白色滑块之上 */
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mini-tab.active {
  /* background 移除，使用 slider 替代 */
  background: transparent;
  box-shadow: none;
}

/* 随滑块移动的文字高亮 */
.mini-tab.slider-on {
  color: #ff8c00 !important;
}

/* Purchase Products Layout */
.products-display-row {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.word-cloud-wrapper {
  flex: 1;
  background: transparent;
  border-radius: 8px;
  height: 380px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.word-cloud-box {
  width: 90%;
  height: 90%;
  position: relative;
}

.products-list-wrapper {
  flex: 1;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Simple Data Table */
.simple-data-table {
  width: 100%;
  border-collapse: collapse;
}

.simple-data-table th,
.simple-data-table td {
  padding: 12px 15px;
  text-align: left;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.simple-data-table th {
  background: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  color: #333;
}

.simple-data-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.2);
}

.simple-data-table tr:last-child td {
  border-bottom: none;
}

.more-btn-block {
  width: 100%;
  background: #e67e22;
  /* Fallback */
  background: linear-gradient(90deg, #ff9f43, #ff8c00);
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: auto;
  transition: background 0.3s;
}

.more-btn-block:hover {
  background: linear-gradient(90deg, #ff8c00, #ff7e00);
}

/* HS Code Analysis */
.analysis-row-container {
  background: transparent;
  border-radius: 8px;
  /* 如果不需要大 padding，可将 padding 改小，这里保留以防影响结构 */
  padding: 0;
}

.hs-code-table-wrapper {
  margin-top: 10px;
}

.hs-code-table {
  width: 100%;
  border-collapse: collapse;
}

.hs-code-table th {
  text-align: left;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  background: #f8f8f8;
}

.hs-code-table td {
  padding: 12px;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.progress-cell {
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-cell .val {
  width: 60px;
  font-family: monospace;
  font-weight: 600;
}

.progress-bg {
  flex: 1;
  height: 12px;
  background: #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #ffaa00;
  border-radius: 6px;
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  width: 0;
  /* 默认 0 宽度，数据来时改变宽度产生动画 */
  transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 1s ease-out;
}

.more-btn-block.large-btn {
  border-radius: 6px;
  margin-top: 20px;
}

/* Responsive - 已移至文件末尾统一管理 */

/* Word Cloud Item Styles */
.cloud-item {
  position: absolute;
  line-height: 1;
  white-space: nowrap;
  font-weight: bold;
  opacity: 0.9;
  transition: transform 0.3s;
  cursor: pointer;
}

.cloud-item:hover {
  z-index: 10;
  transform: scale(1.1);
  opacity: 1;
}

/* Chain Insights Section */
.chain-graph-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px;
  background: transparent;
  border-radius: 12px;
  min-height: 480px;
}

.chain-svg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.chain-column {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.left-column,
.right-column {
  width: 25%;
}

.center-column {
  width: 40%;
  align-items: center;
  gap: 30px;
}

/* Company List Items */
.chain-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  padding: 8px 12px 8px 16px;
  border: 1px solid #e1e4e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  height: 40px;
}



.item-plus-btn {
  width: 20px;
  height: 20px;
  background: #dcdfe6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin-right: 8px;
}

.chain-item.supplier-item .item-plus-btn {
  margin-right: 0;
  margin-left: 8px;
  order: 2;
}

.item-flag {
  width: 20px;
  height: 14px;
  object-fit: contain;
  margin-right: 8px;
}

.item-name {
  font-size: 14px;
  color: #58A7FF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Dot Connectors on Items */
.chain-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
}

.buyer-dot {
  right: -20px;
  background: #58A7FF;
}

.supplier-dot {
  left: -20px;
  background: #7EDFB8;
}

/* Core Company Card */
.core-company-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1e4e8;
  max-width: 90%;
}

.core-flag {
  width: 24px;
  margin-right: 10px;
}

.core-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges Row */
.badges-row {
  display: flex;
  gap: 50px;
  width: 100%;
  justify-content: center;
}

.node-badge {
  padding: 8px 30px;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  min-width: 100px;
  text-align: center;
}

.buyer-badge {
  background: #58A7FF;
}

.supplier-badge {
  background: #7EDFB8;
}

/* Core Dot Connectors */
.dot-connector {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  /* 我们用伪元素或者透明对齐，实际上JS画线只需要知道Badge的边缘坐标 */
}

.dot-connector.left {
  left: 0;
}

.dot-connector.right {
  right: 0;
}

/* Key Person Contacts Section */
.contacts-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.contact-person-card {
  background: transparent;
  /* 去掉原有的浅蓝色背景 */
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #FFD9B2;
  /* 匹配设计稿的左侧竖条纹 */
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.contact-person-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: #d1d5db;
  border-left-color: #FFD9B2;
}

.card-top-section {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.person-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-info-header {
  flex: 1;
  padding-top: 4px;
}

.person-name {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.person-position {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

.card-divider {
  height: 1px;
  background: #e5e7eb;
  margin-bottom: 20px;
  width: 100%;
}

.card-bottom-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.info-label {
  color: #999999;
  font-weight: 500;
  min-width: 85px;
}

.info-value {
  color: #333;
}

.info-value.link {
  color: #2563eb;
  /* Blue link */
  text-decoration: none;
}

.info-value.link:hover {
  text-decoration: underline;
}

.social-links-row {
  display: flex;
  gap: 2px;
  align-items: center;
}

.social-icon-box {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
}

.social-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 缩小有自身色块底色的两款图标，让它们视觉上与自带留白的黑白推特图标大小一致 */
.social-icon-box img[alt="LinkedIn"],
.social-icon-box img[alt="Facebook"] {
  width: 15px;
  height: 15px;
  border-radius: 2px;
}

.find-more-contacts-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #ff8c00;
  /* Matches image orange of above buttons */
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  text-align: center;
  margin-top: 20px;
}

.find-more-contacts-btn:hover {
  background: #ff7700;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* Responsive adjustments - 已移至文件末尾统一管理 */

/* ====================================================================
   响应式自适应 - 平板端 & 手机端
   ==================================================================== */

/* ---------- 平板端 (max-width: 1024px) ---------- */
@media (max-width: 1024px) {
  /* -- 企业信息头部 -- */
  .company-detail-container {
    margin: 24px 16px;
    padding: 28px 24px;
  }

  .company-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .company-name {
    font-size: 18px;
  }

  .company-action {
    width: auto;
  }

  .ai-insights-btn {
    display: flex;
    justify-content: flex-start;
  }

  .industry-content {
    max-height: 28px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 120px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 120px), transparent 100%);
  }

  /* -- 标签页导航 -- */
  .tabs-navigation {
    margin-bottom: 24px;
  }

  .tab-item {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* -- 内容版块 -- */
  .section-block {
    padding: 28px 24px;
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  /* -- 采购分布 -- */
  .procurement-content {
    flex-direction: column;
  }

  .distribution-table {
    min-width: auto;
    width: 100%;
  }

  /* -- 产品版块 -- */
  .products-display-row {
    flex-direction: column;
  }

  .word-cloud-wrapper {
    height: 300px;
  }

  .subsection-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* -- Chain Insights -- */
  .chain-graph-container {
    padding: 24px 10px;
    min-height: auto;
  }

  .left-column,
  .right-column {
    width: 28%;
  }

  .center-column {
    width: 36%;
  }

  .item-name {
    font-size: 12px;
  }

  .core-name {
    font-size: 12px;
  }

  .node-badge {
    padding: 6px 18px;
    font-size: 12px;
    min-width: 70px;
  }

  .badges-row {
    gap: 24px;
  }

  /* -- 联系人卡片 -- */
  .contacts-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* -- 数据表格水平滚动 -- */
  .data-table-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .import-table {
    min-width: 800px;
  }
}

/* ---------- 小平板 / 大手机 (max-width: 768px) ---------- */
@media (max-width: 768px) {
  /* -- 企业信息头部 -- */
  .company-detail-container {
    margin: 16px 12px;
    padding: 20px 16px;
    border-radius: 8px;
  }

  .company-header {
    flex-direction: column;
    gap: 12px;
  }

  .company-name {
    font-size: 16px;
    line-height: 1.3;
  }

  .company-location {
    flex-wrap: wrap;
    gap: 8px;
  }

  .company-action {
    width: 100%;
  }

  .ai-insights-btn {
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }

  .ai-insights-btn img {
    height: 48px;
  }

  /* -- 企业信息行 -- */
  .info-row {
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
  }

  .info-label {
    width: auto;
    min-width: auto;
    font-size: 13px;
  }

  .info-content {
    font-size: 13px;
    width: 100%;
    max-width: 100%;
  }

  .info-icon {
    display: none;
  }

  .contact-phone {
    font-size: 14px;
    top: 0;
    margin-right: 10px;
  }

  .contact-divider {
    top: 0;
  }

  .social-icons {
    top: 0;
    margin-top: 4px;
  }

  .industry-content {
    max-height: 24px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 60px), transparent 100%);
  }

  .industry-tag {
    font-size: 12px;
    padding: 0 12px;
    height: 24px;
    line-height: 24px;
    margin-right: 6px;
    margin-bottom: 4px;
  }

  /* -- 标签页导航 -- */
  .data-analysis-container {
    margin: 0 12px;
  }

  .tabs-navigation {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    padding: 4px;
    gap: 4px;
    border-radius: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tabs-navigation::-webkit-scrollbar {
    display: none;
  }

  .tab-item {
    flex: 0 0 auto;
    min-width: auto;
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* -- 内容版块 -- */
  .section-block {
    padding: 20px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .chart-title {
    font-size: 15px;
    margin-bottom: 12px;
  }

  /* -- 图表 -- */
  .data-chart-section {
    margin-bottom: 24px;
  }

  #importChart,
  #exportChart {
    height: 280px !important;
  }

  /* -- 数据表格 -- */
  .data-table-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
  }

  .import-table {
    min-width: 700px;
    font-size: 12px;
  }

  .import-table th,
  .import-table td {
    padding: 8px 10px;
  }

  /* -- 采购分布 -- */
  .procurement-content {
    flex-direction: column;
    gap: 16px;
  }

  .map-container {
    min-height: 220px;
    padding: 10px;
  }

  .distribution-table {
    min-width: auto;
    width: 100%;
  }

  .distribution-data {
    font-size: 12px;
  }

  .distribution-data th,
  .distribution-data td {
    padding: 6px 8px;
  }

  /* -- 产品版块 -- */
  .products-display-row {
    flex-direction: column;
    gap: 16px;
  }

  .word-cloud-wrapper {
    height: 260px;
  }

  .mini-tabs {
    flex-wrap: wrap;
    border-radius: 8px;
  }

  .mini-tab {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* -- HS Code 表格 -- */
  .hs-code-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hs-code-table {
    min-width: 580px;
  }

  .hs-code-table th,
  .hs-code-table td {
    padding: 8px;
    font-size: 12px;
  }

  /* -- Chain Insights -- */
  .chain-graph-container {
    flex-direction: column;
    gap: 20px;
    padding: 20px 10px;
    min-height: auto;
  }

  .chain-svg-layer {
    display: none;
  }

  .left-column,
  .right-column {
    width: 100%;
    order: 2;
  }

  .center-column {
    width: 100%;
    order: 1;
    gap: 16px;
  }

  .core-company-card {
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }

  .badges-row {
    gap: 16px;
  }

  .node-badge {
    padding: 8px 24px;
    font-size: 13px;
  }

  .chain-item {
    height: 36px;
    padding: 6px 10px;
  }

  .chain-dot {
    display: none;
  }

  .item-name {
    font-size: 13px;
  }

  /* -- 联系人 -- */
  .contacts-grid-container {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contact-person-card {
    padding: 16px;
  }

  .person-avatar {
    width: 48px;
    height: 48px;
  }

  .person-name {
    font-size: 14px;
  }

  .person-position {
    font-size: 12px;
  }

  .card-top-section {
    gap: 12px;
    margin-bottom: 14px;
  }

  .card-divider {
    margin-bottom: 14px;
  }

  .contact-info-row {
    font-size: 12px;
    gap: 6px;
  }

  .contact-info-row .info-label {
    min-width: 70px;
    font-size: 12px;
  }

  .find-more-contacts-btn {
    font-size: 14px;
    padding: 10px;
  }

  /* -- 遮罩和More按钮 -- */
  .more-text {
    font-size: 15px;
  }

  .more-btn {
    padding: 8px 30px;
    font-size: 14px;
  }

  .more-btn-block {
    font-size: 14px;
    padding: 10px;
  }

  .table-fade-overlay-large {
    height: 300px;
    margin-top: -300px;
  }
}

/* ---------- 手机端 (max-width: 480px) ---------- */
@media (max-width: 480px) {
  /* -- 企业信息头部 -- */
  .company-detail-container {
    margin: 10px 8px;
    padding: 16px 12px;
    border-radius: 8px;
  }

  .company-header {
    gap: 10px;
  }

  .company-name {
    font-size: 15px;
    word-break: break-word;
  }

  .company-location {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .country-badge {
    padding: 0 8px;
    height: 22px;
  }

  .country {
    font-size: 11px;
  }

  .flag-icon {
    height: 11px;
  }

  .company-tags {
    gap: 6px;
  }

  .tag {
    height: 22px;
    line-height: 22px;
    padding: 0 10px;
    font-size: 11px;
  }

  .ai-insights-btn img {
    height: 42px;
  }

  /* -- 企业信息行 -- */
  .info-row {
    padding: 6px 0;
  }

  .info-label {
    font-size: 12px;
    padding-left: 0;
  }

  .info-content {
    font-size: 12px;
  }

  .contact-phone {
    font-size: 13px;
    margin-right: 8px;
  }

  .intro-text {
    font-size: 12px;
  }

  .industry-tag {
    font-size: 11px;
    padding: 0 8px;
    height: 22px;
    line-height: 22px;
    border-radius: 11px;
  }

  .website-link {
    font-size: 13px;
    word-break: break-all;
  }

  /* -- 标签页导航 -- */
  .data-analysis-container {
    margin: 0 8px;
  }

  .tabs-navigation {
    margin-bottom: 16px;
    padding: 3px;
    gap: 2px;
  }

  .tab-item {
    padding: 7px 12px;
    font-size: 12px;
  }

  /* -- 内容版块 -- */
  .section-block {
    padding: 16px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .section-title {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .chart-title {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .title-bar {
    width: 3px;
    height: 14px;
  }

  /* -- 图表 -- */
  .data-chart-section {
    margin-bottom: 20px;
  }

  #importChart,
  #exportChart {
    height: 240px !important;
  }

  /* -- 数据表格 -- */
  .data-table-section {
    margin-bottom: 20px;
  }

  .import-table {
    min-width: 650px;
    font-size: 11px;
  }

  .import-table th,
  .import-table td {
    padding: 6px 8px;
  }

  .import-table th {
    height: 40px;
  }

  /* -- 遮罩 -- */
  .data-table-masked .table-more-section {
    width: 60%;
  }

  .more-text {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .more-btn {
    padding: 7px 24px;
    font-size: 13px;
  }

  /* -- 采购分布 -- */
  .procurement-section {
    margin-top: 20px;
  }

  .procurement-content {
    gap: 12px;
  }

  .map-container {
    min-height: 200px;
    padding: 8px;
    border-radius: 8px;
  }

  #importProcurementMap,
  #exportProcurementMap {
    height: 230px !important;
  }

  .distribution-data {
    font-size: 11px;
  }

  .distribution-data th,
  .distribution-data td {
    padding: 5px 6px;
  }

  .table-fade-overlay {
    height: 140px;
  }

  .more-btn-full {
    padding: 6px;
    font-size: 12px;
  }

  /* -- 产品版块 -- */
  .products-display-row {
    gap: 12px;
    margin-bottom: 20px;
  }

  .word-cloud-wrapper {
    height: 220px;
  }

  .subsection-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .mini-tabs {
    flex-wrap: wrap;
    border-radius: 6px;
    padding: 3px;
    gap: 2px;
  }

  .mini-tab-slider {
    display: none;
  }

  .mini-tab {
    font-size: 11px;
    padding: 4px 8px;
  }

  .mini-tab.active,
  .mini-tab.slider-on {
    background: #fff !important;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  }

  /* -- HS Code 表格 -- */
  .hs-code-table {
    min-width: 500px;
  }

  .hs-code-table th,
  .hs-code-table td {
    padding: 6px;
    font-size: 11px;
  }

  .progress-cell {
    gap: 8px;
  }

  .progress-cell .val {
    width: 45px;
    font-size: 11px;
  }

  .progress-bg {
    height: 8px;
  }

  .table-fade-overlay-large {
    height: 240px;
    margin-top: -240px;
  }

  .more-btn-block {
    font-size: 13px;
    padding: 10px;
  }

  .more-btn-block.large-btn {
    margin-top: 12px;
  }

  /* -- Chain Insights -- */
  .chain-graph-container {
    gap: 16px;
    padding: 16px 8px;
  }

  .core-company-card {
    padding: 10px 14px;
  }

  .core-flag {
    width: 18px;
    margin-right: 8px;
  }

  .core-name {
    font-size: 12px;
  }

  .badges-row {
    gap: 12px;
  }

  .node-badge {
    padding: 6px 16px;
    font-size: 12px;
    min-width: 60px;
  }

  .chain-item {
    height: 34px;
    padding: 5px 8px;
    border-radius: 4px;
  }

  .item-flag {
    width: 16px;
    height: 12px;
    margin-right: 6px;
  }

  .item-name {
    font-size: 12px;
  }

  .chain-column {
    gap: 8px;
  }

  /* -- 联系人 -- */
  .contacts-grid-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-person-card {
    padding: 14px 12px;
    border-left-width: 4px;
  }

  .person-avatar {
    width: 44px;
    height: 44px;
  }

  .person-name {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .person-position {
    font-size: 11px;
  }

  .card-top-section {
    gap: 10px;
    margin-bottom: 12px;
  }

  .card-divider {
    margin-bottom: 12px;
  }

  .card-bottom-section {
    gap: 3px;
  }

  .contact-info-row {
    font-size: 11px;
    gap: 4px;
  }

  .contact-info-row .info-label {
    min-width: 65px;
    font-size: 11px;
  }

  .find-more-contacts-btn {
    font-size: 13px;
    padding: 10px;
    border-radius: 6px;
    margin-top: 14px;
  }

  /* -- 通用间距调整 -- */
  .data-chart-section,
  .data-table-section,
  .procurement-section {
    margin-bottom: 20px;
  }
}