/* suppliers-dtail-header.css —— PC + Mobile 完整适配 */

:root {
  --dtail-header-max-width: 1320px;
  --dtail-header-bg: #ffffff;
  --dtail-header-primary: #C39D66;
  --dtail-header-primary-hover: #A68352;
  --dtail-header-text: #222222;
  --dtail-header-text-muted: #666666;
  --dtail-header-sub: #757575;
  --dtail-header-border: #F0F0F0;
  --dtail-header-tag-bg: #F9F9F9;
  --dtail-header-tag-border: #F0F0F0;
  --dtail-header-highlight: #d48806;
  --dtail-header-btn-outline-border: #E5E7EB;
  --dtail-header-radius: 10px;
}

/* ---- 返回栏 ---- */
.header-top-bar {
  margin-top: 4px;
  box-sizing: border-box;
  padding: 14px 0;
  background: #FFFFFF;
  border-bottom: 1px solid #F3F4F6;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555;
  text-decoration: none;
  font-size: 13px;
  font-family: 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--dtail-header-primary);
}

.back-link svg {
  flex-shrink: 0;
}

/* ---- 容器基础 ---- */
.supplier-detail-header {
  background: var(--dtail-header-bg);
  max-width: var(--dtail-header-max-width);
  margin: 0 auto;
  padding: 0;
}

/* ---- 主体 Flex 布局 ---- */
.supplier-detail-header .header-content-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--dtail-header-border);
  box-sizing: border-box;
}

.supplier-detail-header .header-content-wrapper-left {
  display: flex;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  gap: 28px;
}

/* ---- 左侧 Logo 区 ---- */
.supplier-detail-header .brand-identity {
  min-width: 128px;
  flex-shrink: 0;
}

.supplier-detail-header .logo-box {
  width: 128px;
  height: 128px;
  border-radius: 16px;
  border: 1px solid #F2E8D5;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.04);
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.supplier-detail-header .logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.supplier-detail-header .exhibitordefaultavatar {
  width: 68px !important;
  height: 68px !important;
  object-fit: contain;
}

.supplier-detail-header .rating-badge {
  text-align: center;
  background: #FDFBF8;
  border: 1px solid #F2E8D5;
  border-radius: 6px;
  padding: 0 8px 4px;
  width: 128px;
  box-sizing: border-box;
  margin-top: 16px;
}

.supplier-detail-header .rating-badge .score {
  font-family: 'HarmonyOS Sans SC';
  font-weight: 500;
  font-size: 24px;
  color: var(--dtail-header-primary);
  display: inline-block;
  margin-top: -4px;
}

.supplier-detail-header .rating-badge .total {
  font-family: 'HarmonyOS Sans SC';
  font-weight: 500;
  font-size: 12px;
  color: #999999;
}

.supplier-detail-header .rating-text {
  font-size: 11px;
  color: #999;
  margin-top: -5px;
}

/* ---- 中间 信息主区 ---- */
.supplier-detail-header .company-info-main {
  flex: 1;
  min-width: 0;
}

.supplier-detail-header .company-name {
  font-family: 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.3;
  color: var(--dtail-header-text);
  margin: 0 0 14px;
  word-break: break-word;
}

.supplier-detail-header .tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.supplier-detail-header .tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.supplier-detail-header .tag {
  font-family: 'HarmonyOS Sans SC', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--dtail-header-text-muted);
  padding: 4px 10px;
  background: var(--dtail-header-tag-bg);
  border: 1px solid var(--dtail-header-tag-border);
  border-radius: 8px;
  line-height: 1.4;
}

.supplier-detail-header .tag-brand {
  background: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}

.supplier-detail-header .description {
  margin: 14px 0 0;
  padding: 0;
  font-family: 'HarmonyOS Sans SC', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: #4A5565;
  word-break: break-word;
  display: block;
  max-width: 760px;
}

.supplier-detail-header .description::after,
.supplier-detail-header .description::before {
  content: none;
}

/* 信息网格 展位号 / 业务范围 / 年产值 */
.supplier-detail-header .info-grid {
  margin-top: 20px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 12px;
  column-gap: 0;
  border-top: 1px dashed #EEE;
}

.supplier-detail-header .info-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--dtail-header-text-muted);
}

.supplier-detail-header .info-item .label {
  color: var(--dtail-header-sub);
  font-weight: 400;
  white-space: nowrap;
}

.supplier-detail-header .info-item .value {
  color: var(--dtail-header-text);
  font-weight: 500;
  word-break: break-all;
}

.supplier-detail-header .info-item .highlight {
  color: var(--dtail-header-highlight);
  font-weight: 700;
}

.supplier-detail-header .divider {
  width: 1px;
  height: 18px;
  background: #EAEAEA;
  margin: 0 20px;
  flex-shrink: 0;
}

/* ---- 右侧 操作按钮 ---- */
.supplier-detail-header .action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 260px;
  flex-shrink: 0;
  padding-top: 50px;
}

.action-buttons-top {
  display: flex;
  gap: 8px;
  width: 100%;
}

.supplier-detail-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--dtail-header-radius);
  font-size: 14px;
  font-family: 'HarmonyOS Sans SC', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  box-sizing: border-box;
  height: 42px;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}

.supplier-detail-header .btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.supplier-detail-header .btn-primary {
  flex: 1;
  min-width: 0;
  background: var(--dtail-header-primary);
  color: #fff;
  border-color: var(--dtail-header-primary);
}

.supplier-detail-header .btn-primary:hover {
  background: var(--dtail-header-primary-hover);
  border-color: var(--dtail-header-primary-hover);
  color: #fff;
  text-decoration: none;
}

.supplier-detail-header .btn-outline {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  background: #FFFFFF;
  border-color: var(--dtail-header-btn-outline-border);
  color: var(--dtail-header-text);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.08);
}

.supplier-detail-header .btn-outline:hover {
  border-color: var(--dtail-header-primary);
  background: #FDFBF7;
  color: var(--dtail-header-primary);
  text-decoration: none;
}

.supplier-detail-header .btn-vr {
  width: 100%;
  padding: 0 20px;
  background: #FFFFFF;
  border-color: var(--dtail-header-btn-outline-border);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.08);
  color: var(--dtail-header-text);
}

.supplier-detail-header .btn-vr:hover {
  border-color: var(--dtail-header-primary);
  background: #FDFBF7;
  color: var(--dtail-header-primary);
  text-decoration: none;
}

/* =========================================================== */
/*  -------------------   平板端 (≤1100px)   ----------------  */
/* =========================================================== */
@media (max-width: 1100px) {
  .supplier-detail-header .header-content-wrapper {
    gap: 32px;
  }
  .supplier-detail-header .action-buttons {
    width: 220px;
  }
  .supplier-detail-header .btn-vr {
    height: auto;
    min-height: 42px;
    padding: 10px 14px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }
  .supplier-detail-header .company-name {
    font-size: 26px;
  }
}

/* =========================================================== */
/*  -------------------   平板/移动端 (≤992px)   ------------ */
/* =========================================================== */
@media (max-width: 992px) {
  .supplier-detail-header .header-content-wrapper {
    flex-direction: column;
    gap: 24px;
    padding: 20px 20px 32px;
  }
  .supplier-detail-header .header-content-wrapper-left {
    width: 100%;
  }
  .supplier-detail-header .action-buttons {
    width: 100%;
    flex-direction: column;
  }
  .action-buttons-top {
    width: 100%;
  }
  .supplier-detail-header .btn-vr {
    width: 100%;
    height: 42px;
    padding: 0 20px;
    white-space: nowrap;
  }
}

/* =========================================================== */
/*  -------------------   移动端 (≤768px)   ----------------  */
/* =========================================================== */
@media (max-width: 768px) {
  /* 返回栏 */
  .header-top-bar {
    padding: 12px 0;
    margin-bottom: 0;
  }
  .back-link {
    font-size: 12px;
    gap: 4px;
  }

  /* 容器 */
  .supplier-detail-header .header-content-wrapper {
    padding: 16px 0 28px;
    gap: 20px;
  }

  /* 左侧 Logo + 信息 改为纵向堆叠 */
  .supplier-detail-header .header-content-wrapper-left {
    flex-direction: column;
    gap: 16px;
  }
  .supplier-detail-header .brand-identity {
    min-width: auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .supplier-detail-header .logo-box {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    margin-right: 0;
  }
  .supplier-detail-header .logo-box img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }
  .supplier-detail-header .exhibitordefaultavatar {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;
  }
  .supplier-detail-header .rating-badge {
    width: auto;
    margin-top: 0;
    padding: 4px 10px;
  }
  .supplier-detail-header .rating-badge .score {
    font-size: 20px;
  }

  /* 公司信息 */
  .supplier-detail-header .company-name {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 12px;
  }
  .supplier-detail-header .tag {
    font-size: 11px;
    padding: 3px 8px;
  }
  .supplier-detail-header .description {
    font-size: 13px;
    line-height: 1.65;
    margin-top: 12px;
    max-width: 100%;
  }

  /* 信息网格：改为纵向每项一行，分隔符去掉 */
  .supplier-detail-header .info-grid {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
  }
  .supplier-detail-header .info-item {
    width: 100%;
    font-size: 13px;
    flex-wrap: wrap;
  }
  .supplier-detail-header .divider {
    display: none;
  }

  /* 按钮：top一排两个，vr单独占满；保证最小点击高度44px */
  .supplier-detail-header .action-buttons {
    gap: 10px;
  }
  .action-buttons-top {
    gap: 8px;
  }
  .supplier-detail-header .btn {
    height: 44px;
    font-size: 13px;
    border-radius: 8px;
  }
  .supplier-detail-header .btn-vr {
    height: 44px;
  }
}

/* =========================================================== */
/*  -------------------   小屏手机 (≤380px)   -------------- */
/* =========================================================== */
@media (max-width: 380px) {
  .supplier-detail-header .company-name {
    font-size: 18px;
  }
  .supplier-detail-header .btn {
    font-size: 12px;
    gap: 4px;
  }
  .supplier-detail-header .btn img {
    width: 14px;
    height: 14px;
  }
  .supplier-detail-header .info-item {
    font-size: 12px;
  }
}
