/* ========================
   交易专区 - 页面专属样式
   ======================== */

/* ========================
   主视觉横幅
   ======================== */
.hero {
  position: relative;
  width: 100%;
  height: 257px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(2,132,70,0) 0%, #13623c 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 93px 0 0;
}

.hero-title {
  font-size: 48px;
  font-weight: normal;
  color: #ffffff;
  letter-spacing: 2px;
  margin: 0;
}

/* ========================
   主体容器
   ======================== */
.main {
  width: 100%;
  padding: 53px 0 80px;
  background: #ffffff;
}

.main-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.main-inner > * + * { margin-top: 32px; }

/* ========================
   专区板块
   ======================== */
.zone-section {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  overflow: hidden;
  padding-bottom: 24px;
}

.zone-section.investment {
  display: flex;
  flex-direction: column;
}

.zone-section.investment > * + * { margin-top: 30px; }

.zone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 76px;
  padding: 0 24px;
  background: #194216;
  background-image:
    linear-gradient(287.9deg, #028446 0%, #52ab3d 100%),
    linear-gradient(180deg, #194216 0%, rgba(17,96,61,0.7) 100%);
  background-blend-mode: normal;
  border-radius: 16px 16px 0 0;
}

.zone-header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.zone-header-left > * + * { margin-left: 28px; }

.zone-title-wrap {
  display: flex;
  align-items: center;
  color: #ffffff;
}

.zone-title-wrap > * + * { margin-left: 8px; }

.zone-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.zone-title {
  font-family: "YouSheBiaoTiHei", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 36px;
  font-weight: normal;
  color: #ffffff;
  line-height: 1.2;
}

.zone-tabs {
  display: flex;
  align-items: center;
}

.zone-tabs > * + * { margin-left: 4px; }

.zone-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 70px;
  padding: 0 12px;
  font-size: 14px;
  color: #ffffff;
  background: transparent;
  border-radius: 48px;
  transition: color 0.2s ease, background 0.2s ease;
}

.zone-tab:hover {
  background: rgba(255,255,255,0.15);
}

.zone-tab.active {
  color: #028446;
  background: #ffffff;
  font-weight: 500;
}

.zone-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 202px;
  height: 38px;
  padding: 0 5px;
  background: #ffffff;
  border-radius: 29px;
  transition: box-shadow 0.2s ease;
}

.zone-search:hover,
.zone-search:focus-within,
.zone-search.focus-within {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}

.zone-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #2e3033;
}

.zone-search input::placeholder {
  color: #bbcac3;
}

.zone-search svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #54bb7d;
}

/* ========================
   筛选面板
   ======================== */
.filter-panel {
  width: 100%;
  padding: 11px 0 0;
  background: #ffffff;
}

.filter-inner {
  display: flex;
  flex-direction: column;
  padding: 0 25px;
}

.filter-inner > * + * { margin-top: 16px; }

.filter-row {
  display: flex;
  align-items: flex-start;
}

.filter-row > * + * { margin-left: 6px; }

.filter-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 70px;
  height: 26px;
  font-size: 14px;
  color: #666666;
  line-height: 1.8571;
  text-align: right;
  flex-shrink: 0;
}

.filter-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}

.filter-options > * + * { margin-left: 6px; }

.filter-option {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 12px;
  font-size: 14px;
  color: #666666;
  background: #f7f7f7;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.filter-option:hover {
  background: #eeeeee;
}

.filter-option.active {
  color: #ffffff;
  background: #028446;
}

.filter-sub-row {
  display: none;
  margin: 8px -25px 0 !important;
  padding: 8px 25px;
  background: #f2fbf6;
}

.filter-sub-row.show {
  display: flex;
}

/* ========================
   卡片网格
   ======================== */
.zone-body {
  width: 100%;
  padding: 20px 20px;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.hall-placeholder {
  padding: 120px 20px;
  text-align: center;
  color: #6c7a73;
  font-size: 20px;
  letter-spacing: 2px;
}

.card-grid > .trade-card {
  width: calc(25% - 16px);
  margin: 0 8px 16px;
}

/* ========================
   交易卡片
   ======================== */
.trade-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.trade-card > * + * { margin-top: 10px; }

.trade-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #54bb7d;
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 156px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 12px;
  font-size: 14px;
  color: #ffffff;
  background: #126946;
  border-radius: 0 0 12px 0;
}

.card-type {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px 0 16px;
  font-size: 15px;
  color: #ffffff;
  background: rgba(150,150,150,0.92);
  border-radius: 0 0 0 6px;
  /* IE 兼容: 移除 clip-path，使用 border-radius 替代 */
  /* clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 8px 0); */
}

.card-title {
  font-size: 16px;
  font-weight: normal;
  color: #2e3033;
  line-height: 1.5;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

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

.card-info > * + * { margin-top: 2px; }

.card-info-row {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.card-info-row > * + * { margin-left: 10px; }

.card-info-label {
  color: #969696;
  flex-shrink: 0;
}

.card-info-value {
  display: flex;
  align-items: baseline;
  color: #028446;
}

.card-info-value > * + * { margin-left: 2px; }

.card-price {
  font-size: 18px;
  font-weight: 700;
}

.card-unit {
  font-size: 14px;
  font-weight: normal;
}

.card-countdown {
  font-size: 14px;
  color: #028446;
}

.card-info-date {
  font-size: 14px;
  color: #028446;
}

.card-status {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 14px;
  color: #028446;
  margin-top: 0;
}

/* ========================
   分页（使用 mricode.pagination 插件）
   ======================== */
.pager {
  margin-top: 20px;
  text-align: center;
}

/* ========================
   响应式
   ======================== */
@media (max-width: 1559px) {
  .hero-inner,
  .main-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 1199px) {
  .card-grid > .trade-card {
    width: calc(33.333% - 16px);
  }
}

@media (max-width: 991px) {
  .hero {
    height: 200px;
  }

  .hero-inner {
    padding-top: 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .main {
    padding: 32px 0 48px;
  }

  .zone-header {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .zone-header > * + * { margin-left: 12px; }

  .zone-header-left {
    width: 100%;
  }

  .zone-header-left > * + * { margin-left: 12px; }

  .zone-search {
    width: 100%;
  }

  .zone-title {
    font-size: 26px;
  }

  .zone-icon {
    width: 30px;
    height: 30px;
  }

  .card-grid > .trade-card {
    width: calc(50% - 16px);
    margin-bottom: 12px;
  }

  .filter-inner {
    padding: 0 16px;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-row > * + * { margin-left: 0; margin-top: 8px; }

  .filter-label {
    justify-content: flex-start;
    width: auto;
    height: auto;
  }

  .zone-body {
    padding: 0 16px;
  }
}

@media (max-width: 575px) {
  .card-grid > .trade-card {
    width: 100%;
  }

  .zone-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .zone-tab {
    white-space: nowrap;
    min-width: 60px;
    padding: 0 10px;
  }
}

/* ========================
   新增：排污权分层列表
   ======================== */
.pwq-block + .pwq-block {
  margin-top: 24px;
}

.pwq-block-title {
  font-size: 20px;
  font-weight: bold;
  color: #2b7a3d;
  line-height: 1.4;
  padding-left: 12px;
  border-left: 4px solid #52ab3d;
  margin-bottom: 16px;
}
