/**
 * 信息专区二级页 - 页面专属样式
 * 基于 信息专区二级页/信息专区二级页.pen 设计稿 1:1 还原
 */

/* ========================
   顶部 Banner
   ======================== */
.info-hero {
  position: relative;
  width: 100%;
  height: 257px;
  overflow: hidden;
  background-color: #028446;
}

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

.info-hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, rgba(19, 98, 60, 0.8) 0%, rgba(2, 132, 70, 0.35) 100%);
  pointer-events: none;
}

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

.info-hero-title {
  margin: 0;
  font-family: "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 48px;
  font-weight: normal;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 2px;
}

/* ========================
   主体内容区
   ======================== */
.info-main {
  width: 100%;
  padding: 46px 0 80px;
  background: #ffffff;
}

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

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

/* ========================
   工具栏：Tab + 搜索
   ======================== */
.info-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 41px;
}

.info-toolbar > * + * { margin-left: 24px; }

.info-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
font-size: 18px;}

.info-tabs > * + * { margin-left: 34px; }

.info-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  font-family: "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  line-height: 0.9;
  text-align: center;
  letter-spacing: -0.165px;
  color: rgba(101, 101, 101, 0.8);
  background: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.info-tab::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: transparent;
  transition: background 0.2s ease;
}

.info-tab:visited {
  color: rgba(101, 101, 101, 0.8);
}

.info-tab:hover {
  color: #028446;
}

.info-tab.active {
  font-weight: 700;
  color: #028446;
}

.info-tab.active::after {
  /* background: #028446; */
}

.info-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  width: 202px;
  min-height: 38px;
  padding: 10px 20px;
  background: #f6f9f7;
  border-radius: 29px;
  transition: box-shadow 0.2s ease;
}

.info-search:hover,
.info-search:focus-within,
.info-search.focus-within {
  box-shadow: 0 0 0 3px rgba(2, 132, 70, 0.08);
}

.info-search input {
  flex: 1;
  width: 0;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #2e3033;
}

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

.info-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: none;
  color: #54bb7d;
  cursor: pointer;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.info-search-btn:hover {
  color: #028446;
}

.info-search-btn svg {
  width: 17.49px;
  height: 17.49px;
}

/* ========================
   卡片内容区
   ======================== */
.info-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.info-body > * + * { margin-top: 36px; }

.info-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0 -8px;
  width: 100%;
}

.info-card-grid .info-card {
  width: calc(33.333% - 16px);
  max-width: 456px;
  margin: 0 8px 16px;
  box-sizing: border-box;
}

/* ========================
   信息卡片
   ======================== */
.info-card {
  position: relative;
  width: 100%;
  height: 176px;
  padding: 24px 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #eaf7f2 0%, #ffffff 100%);
  border: 1px solid #d5ebe6;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.info-card-decor {
  position: absolute;
  pointer-events: none;
}

.info-card-decor-1 {
  right: 48px;
  bottom: -28px;
  width: 103.36px;
  height: 101.5px;
  opacity: 0.4;
  background: linear-gradient(180deg, #cff8e5 0%, rgba(183, 223, 223, 0) 100%);
  /* IE 兼容: 移除 clip-path */
  /* clip-path: polygon(28.13% 0, 100% 0, 71.87% 100%, 0 100%); */
}

.info-card-decor-2 {
  right: -14px;
  bottom: 0;
  width: 103px;
  height: 101px;
  opacity: 0.4;
  background: linear-gradient(180deg, #cff8e5 0%, rgba(183, 223, 223, 0) 100%);
  /* IE 兼容: 移除 clip-path */
  /* clip-path: polygon(39.13% 0, 100% 0, 100% 100%, 0 100%); */
}

.info-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

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

.info-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-family: "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #2e3033;
  line-height: 1.5556;
}

.info-card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 14px;
  color: #666666;
  line-height: 1.7143;
}

.info-card-date {
  flex-shrink: 0;
  font-size: 14px;
  color: #999999;
  line-height: 1.7143;
  text-align: left;
}

.info-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  font-size: 16px;
  color: #999999;
}

/* ========================
   分页（复用 stcp/xmpd mricode.pagination 样式，主题色改为绿色）
   ======================== */
.info-pagination {
  margin: 36px 0 0;
  text-align: center;
  font-size: 0;
}

.info-pagination-page,
.info-pagination-info,
.info-pagination-jump {
  display: inline-block;
  *display: inline;
  *zoom: 1;
  vertical-align: top;
  margin: 0;
  padding: 0;
}

.info-pagination-page {
  list-style: none;
}

.info-pagination-page > li {
  list-style: none;
  float: left;
  margin-right: 5px;
}

.info-pagination-page > li > a {
  display: inline-block;
  height: 26px;
  line-height: 24px;
  padding: 0 10px;
  font-size: 14px;
  color: #888888;
  text-decoration: none;
  background-color: #ffffff;
  border: 1px solid #dedede;
  outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.info-pagination-page > li:hover > a {
  color: #028446;
  border-color: #028446;
}

.info-pagination-page > li.active > a {
  color: #ffffff;
  font-weight: bold;
  background-color: #028446;
  border-color: #028446;
}

.info-pagination-page > li.disabled > a {
  color: #cccccc;
  cursor: not-allowed;
  border-color: #dedede;
}

.info-pagination-page > li.disabled:hover > a {
  color: #cccccc;
  border-color: #dedede;
}

.info-pagination-info {
  height: 26px;
  line-height: 26px;
  padding-left: 10px;
  font-size: 14px;
  color: #888888;
}

.info-pagination-info > span {
  margin: 0 5px;
  font-weight: bold;
  color: #028446;
}

.info-pagination-jump {
  padding-right: 0;
  width: 73px;
}

.info-pagination-group {
  display: inline-block;
  *display: inline;
  *zoom: 1;
  vertical-align: top;
}

.info-pagination-group > input,
.info-pagination-group > button {
  float: left;
  height: 24px;
  font-size: 14px;
  color: #888888;
  background-color: #ffffff;
  border: 1px solid #dedede;
  outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.info-pagination-group > input {
  width: 40px;
  padding: 0;
  text-align: center;
  border-right: none;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
}

.info-pagination-group > button {
  height: 26px;
  padding: 0 5px;
}

.info-pagination-group > button:hover {
  color: #028446;
  border-color: #028446;
}

.info-pagination-group.error > input,
.info-pagination-group.error > button {
  border-color: #ff4d4f;
}

/* ========================
   咨询交流 - 豆腐块卡片
   ======================== */
.consult-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0 -8px;
  width: 100%;
}

.consult-card-grid .consult-card {
  width: calc(33.333% - 16px);
  max-width: 456px;
  margin: 0 8px 16px;
  box-sizing: border-box;
}

.consult-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e0e8e4;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

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

.consult-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, #028446 0%, #0aad5e 100%);
  color: #ffffff;
}

.consult-card-type {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.consult-card-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.consult-card-status.status-replied {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.consult-card-status.status-pending {
  background: rgba(255, 193, 7, 0.85);
  color: #333333;
}

.consult-card-body {
  padding: 18px 20px 20px;
  font-size: 14px;
  color: #333333;
  line-height: 1.6;
}

.consult-card-row {
  margin-bottom: 10px;
}

.consult-card-row:last-child {
  margin-bottom: 0;
}

.consult-label {
  color: #888888;
  font-weight: 400;
  white-space: nowrap;
}

.consult-value {
  color: #333333;
}

.consult-value.consult-content {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.consult-card-reply {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d5ebe6;
}

.consult-reply-text {
  color: #2e3033;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.consult-reply-text.consult-reply-empty {
  color: #bbbbbb;
  font-style: italic;
}

/* ========================
   弹窗 - 完整详情展示
   ======================== */
.consult-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.consult-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.consult-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 40px);
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.consult-modal-overlay.active .consult-modal {
  transform: scale(1);
}

.consult-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, #028446 0%, #0aad5e 100%);
  color: #ffffff;
  flex-shrink: 0;
}

.consult-modal-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.consult-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.consult-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.consult-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  color: #333333;
}

.consult-modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.consult-modal-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  background: #e8f5ee;
  color: #028446;
  border: 1px solid #d5ebe6;
}

.consult-modal-status {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
}

.consult-modal-status.status-replied {
  background: #e8f5ee;
  color: #028446;
  border: 1px solid #d5ebe6;
}

.consult-modal-status.status-pending {
  background: #fff8e1;
  color: #e6a200;
  border: 1px solid #ffe082;
}

.consult-modal-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.consult-modal-col {
  flex: 1;
  min-width: 200px;
}

.consult-modal-row {
  margin-bottom: 8px;
}

.consult-modal-label {
  display: inline-block;
  color: #888888;
  font-weight: 400;
  margin-right: 6px;
  font-size: 13px;
}

.consult-modal-value {
  color: #2e3033;
  font-weight: 500;
  font-size: 14px;
}

.consult-modal-block {
  margin-bottom: 18px;
  padding: 16px;
  background: #f8faf9;
  border-radius: 8px;
  border: 1px solid #e8f0ec;
}

.consult-modal-block:last-child {
  margin-bottom: 0;
}

.consult-modal-block > .consult-modal-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #028446;
  font-size: 14px;
}

.consult-modal-block > .consult-modal-label::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: #028446;
  border-radius: 2px;
}

.consult-modal-content {
  color: #333333;
  line-height: 1.8;
  word-break: break-word;
  white-space: pre-wrap;
}

.consult-modal-reply-wrap {
  max-height: 240px;
  overflow-y: auto;
  padding: 2px;
}

.consult-modal-reply {
  color: #2e3033;
  line-height: 1.8;
  word-break: break-word;
  white-space: pre-wrap;
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 6px;
  border-left: 3px solid #028446;
}

.consult-modal-reply-empty {
  color: #999999;
  font-style: italic;
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 6px;
  border-left: 3px solid #cccccc;
}
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #028446;
  font-size: 14px;
}

.consult-modal-content {
  color: #333333;
  line-height: 1.8;
  word-break: break-word;
  white-space: pre-wrap;
}

.consult-modal-reply {
  color: #2e3033;
  line-height: 1.8;
  word-break: break-word;
  white-space: pre-wrap;
  padding: 12px;
  background: #ffffff;
  border-radius: 6px;
  border-left: 3px solid #028446;
}

.consult-modal-reply-empty {
  color: #999999;
  font-style: italic;
  padding: 12px;
  background: #ffffff;
  border-radius: 6px;
  border-left: 3px solid #cccccc;
}

/* 弹窗响应式 */
@media (max-width: 767px) {
  .consult-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .consult-modal {
    max-height: calc(100vh - 20px);
    border-radius: 12px 12px 0 0;
  }

  .consult-modal-grid {
    flex-direction: column;
    gap: 0;
  }

  .consult-modal-col {
    min-width: auto;
  }
}

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

  .info-card-grid .info-card {
    width: calc(33.333% - 16px);
    max-width: 456px;
  }
}

@media (max-width: 1199px) {
  .info-hero {
    height: 220px;
  }

  .info-hero-inner {
    padding-top: 80px;
  }

  .info-hero-title {
    font-size: 40px;
  }

  .info-card-grid .info-card {
    width: calc(50% - 16px);
    max-width: 456px;
  }

  .consult-card-grid .consult-card {
    width: calc(50% - 16px);
    max-width: none;
  }
}

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

  .info-hero-inner {
    padding-top: 70px;
  }

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

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

  .info-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-toolbar > * + * { margin-left: 0; margin-top: 16px; }

  .info-tabs {
    width: 100%;
  }

  .info-tabs > * + * { margin-left: 20px; }

  .info-tab {
    font-size: 18px;
  }

  .info-search {
    width: 100%;
    max-width: 360px;
  }

  .info-card-grid .info-card {
    width: calc(50% - 16px);
    max-width: none;
  }

  .consult-card-grid .consult-card {
    width: calc(50% - 16px);
    max-width: none;
  }

  .info-card {
    width: 100%;
    height: auto;
    min-height: 176px;
  }
}

@media (max-width: 575px) {
  .info-hero {
    height: 180px;
  }

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

  .info-hero-title {
    font-size: 28px;
  }

  .info-tabs > * + * { margin-left: 16px; }

  .info-tab {
    font-size: 16px;
  }

  .info-card-grid .info-card {
    width: 100%;
    max-width: none;
  }

  .consult-card-grid .consult-card {
    width: 100%;
    max-width: none;
  }

  .info-card {
    padding: 20px;
  }

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

  .info-card-summary {
    -webkit-line-clamp: 2;
  }
}
