:root {
  --entity-bg: #ffffff;
  --entity-border: #e5e7eb;
  --entity-title-color: #444444;
  --entity-title-size: 24px;
  --entity-info-color: #757575;
  --entity-info-size: 16px;
  --entity-tag-bg: #fef5e7;
  --entity-tag-border: #f2e8d5;
  --entity-tag-color: #c39d66;
  --entity-tag-size: 14px;
  --entity-btn-primary-bg: #c39d66;
  --entity-btn-primary-text: #ffffff;
  --entity-btn-outline-bg: #ffffff;
  --entity-btn-outline-border: #e5e7eb;
  --entity-btn-outline-text: #444444;
  --entity-btn-radius: 10px;
  --entity-btn-padding-y: 12px;
  --entity-btn-padding-x: 32px;
  --entity-btn-font-size: 16px;
  --entity-btn-height: 50px;
  --entity-btn-outline-width: 222px;
  --entity-container-max-width: 1320px;
  --entity-section-padding-y: 40px;
}

.entity-header {
  background: var(--entity-bg);
  /* border-bottom: 1px solid var(--entity-border); */
  /* padding: var(--entity-section-padding-y) 0; */
  margin-top: 40px;
}

.entity-header-content {
  max-width: var(--entity-container-max-width);
  margin: 0 auto;
}

.entity-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--entity-border);
  gap: 20px;
}

/* ---- 左侧 ---- */
.entity-header-left {
  display: flex;
  flex-direction: column;
}

.entity-title {
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: var(--entity-title-size);
  line-height: 1.333;
  letter-spacing: -0.022em;
  color: var(--entity-title-color);
  margin-bottom: 8px;
}

.entity-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.entity-info-line {
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: var(--entity-info-size);
  line-height: 1.3125;
  letter-spacing: -0.0094em;
  color: var(--entity-info-color);
  margin: 0;
}

/* ---- 标签 ---- */
.entity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entity-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--entity-tag-bg);
  border: 1px solid var(--entity-tag-border);
  border-radius: 4px;
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: var(--entity-tag-size);
  line-height: 1.18;
  color: var(--entity-tag-color);
  white-space: nowrap;
}

/* ---- 右侧按钮 ---- */
.entity-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.entity-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: var(--entity-btn-padding-y) var(--entity-btn-padding-x);
  border-radius: var(--entity-btn-radius);
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: var(--entity-btn-font-size);
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.entity-btn-primary {
  height: var(--entity-btn-height);
  background: var(--entity-btn-primary-bg);
  color: var(--entity-btn-primary-text);
  border: none;
  box-shadow:
    0px 1px 3px rgba(0, 0, 0, 0.25),
    0px 1px 2px rgba(0, 0, 0, 0.1);
}

.entity-btn-primary:hover {
  background: #b38a57;
  color: var(--entity-btn-primary-text);
}

.entity-btn-outline {
  width: var(--entity-btn-outline-width);
  background: var(--entity-btn-outline-bg);
  color: var(--entity-btn-outline-text);
  border: 1px solid var(--entity-btn-outline-border);
  box-shadow:
    0px 1px 3px rgba(0, 0, 0, 0.1),
    0px 1px 2px rgba(0, 0, 0, 0.1);
}

.entity-btn-outline:hover {
  border-color: var(--entity-btn-primary-bg);
  color: var(--entity-btn-primary-bg);
}

/* ---- 统计卡片 ---- */
.entity-stats {
  /* display: flex; */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.entity-stat-card {
  position: relative;
  width: 100%;
  /* height: 89px; */
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #c39d66;
  /* border-image-slice: 1;
  border-image-source: linear-gradient(-45deg, #c6aa83 0%, #dbcfbb 100%); */
  /* padding: 18px 14px 14px 54px; */
  padding: 18px 14px 14px 14px;
  box-sizing: border-box;
}

.entity-stat-card-top {
  display: flex;
  align-items: flex-end;
}

/* .entity-stat-card:nth-child(2) {
  border-image-source: linear-gradient(225deg, #dbcfbb 0%, #c6aa83 100%);
}

.entity-stat-card:nth-child(3) {
  border-image-source: linear-gradient(225deg, #c6aa83 0%, #dbcfbb 100%);
}

.entity-stat-card:nth-child(4) {
  border-image-source: linear-gradient(-45deg, #dbcfbb 0%, #c6aa83 100%);
} */

.entity-stat-icon {
  /* position: absolute;
  left: 14px;
  top: 14px; */
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-right: 8px;
}

.entity-stat-label {
  display: block;
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.24;
  color: #444444;
  margin-bottom: 2px;
}

.entity-stat-value {
  display: block;
  /* font-family:
    "IBM Plex Sans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
    sans-serif; */
  font-family: "IBMPlexSans";
  font-weight: 500;
  font-size: 24px;
  line-height: 1.34;
  color: #444444;
}

.entity-stat-num {
  display: flex;
  align-items: center;
  margin-top: 12px;
}
.entity-stat-unit-m2 {
  font-family: "IBMPlexSans";
  font-size: 18px;
  color: #444;
}
.entity-stat-unit {
  font-family: "IBMPlexSans";
  font-weight: 500;
  font-size: 24px;
  line-height: 1.34;
  color: #444444;
}

/* ---- 响应式 ---- */
@media (max-width: 992px) {
  .entity-header {
    margin-top: 24px;
  }

  .entity-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 24px;
  }

  .entity-header-right {
    width: 100%;
  }

  .entity-btn-outline {
    width: 100%;
    flex: 1;
  }

  .entity-btn-primary {
    width: 100%;
    flex: 1;
  }

  .entity-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
  }

  .entity-stat-card {
    padding: 14px 12px 12px;
  }

  .entity-stat-value {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .entity-header {
    margin-top: 16px;
  }

  .entity-header-content {
    padding: 0 16px;
  }

  .entity-header-inner {
    padding-bottom: 20px;
    gap: 16px;
  }

  .entity-title {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .entity-info-line {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .entity-tags {
    gap: 6px;
  }

  .entity-tag {
    font-size: 12px;
    padding: 2px 6px;
  }

  .entity-header-right {
    flex-direction: column;
    gap: 12px;
  }

  .entity-btn-outline {
    width: 100%;
  }

  .entity-btn {
    height: 44px;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
  }

  .entity-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
  }

  .entity-stat-card {
    padding: 12px 10px 10px;
  }

  .entity-stat-card-top {
    align-items: center;
  }

  .entity-stat-icon {
    width: 22px;
    height: 22px;
    margin-right: 6px;
  }

  .entity-stat-label {
    font-size: 11px;
  }

  .entity-stat-value {
    font-size: 20px;
    margin-top: 8px;
  }
}

@media (max-width: 576px) {
  .entity-header {
    margin-top: 12px;
  }

  .entity-header-content {
    padding: 0 12px;
  }

  .entity-header-inner {
    padding-bottom: 16px;
    gap: 14px;
  }

  .entity-title {
    font-size: 18px;
  }

  .entity-info-line {
    font-size: 13px;
    line-height: 1.4;
  }

  .entity-header-right {
    gap: 10px;
  }

  .entity-btn {
    height: 42px;
    padding: 8px 18px;
    font-size: 13px;
  }

  .entity-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 14px;
  }

  .entity-stat-card {
    padding: 10px 8px 8px;
  }

  .entity-stat-icon {
    width: 20px;
    height: 20px;
    margin-right: 4px;
  }

  .entity-stat-value {
    font-size: 18px;
    margin-top: 6px;
  }
}
