/* ========== 加载更多样式 ========== */
.loading-wrap {
    text-align: center;
    padding: 30px 0 20px;
    position: relative;
}

.btn-load-more {
    display: inline-block;
    padding: 12px 40px;
    background: #fff;
    border: 2px solid #73472e;
    border-radius: 30px;
    color: #73472e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 200px;
    text-decoration: none;
    user-select: none;
}

.btn-load-more:hover {
    background: #73472e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(115, 71, 46, 0.3);
}

.btn-load-more:active {
    transform: translateY(0px);
    box-shadow: 0 3px 10px rgba(115, 71, 46, 0.2);
}

.btn-load-more .loading-text {
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-load-more .loading-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    vertical-align: middle;
    border: 2px solid #73472e;
    border-top-color: transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* 加载中状态 */
.btn-load-more.loading {
    background: #73472e;
    color: #fff;
    border-color: #73472e;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-load-more.loading .loading-icon {
    border: 2px solid #fff;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

.btn-load-more.loading:hover {
    transform: none;
    box-shadow: none;
}

/* 已完成状态 */
.btn-load-more.done {
    background: transparent;
    border-color: #ccc;
    color: #999;
    cursor: default;
    pointer-events: none;
}

.btn-load-more.done .loading-icon {
    display: none;
}

.btn-load-more.done:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
    color: #999;
}

/* 动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ========== 加载更多 - 下拉刷新风格 ========== */
.loading-wrap.dropupRefresh {
    padding: 40px 0 0px 0;
}

.loading-wrap.dropupRefresh .btn-load-more {
    background: #f8f6f5;
    border-color: #e8e0dc;
    color: #73472e;
    border-radius: 25px;
    padding: 10px 35px;
    font-size: 13px;
    letter-spacing: 1px;
}

.loading-wrap.dropupRefresh .btn-load-more:hover {
    background: #73472e;
    border-color: #73472e;
    color: #fff;
    box-shadow: 0 4px 15px rgba(115, 71, 46, 0.25);
}

.loading-wrap.dropupRefresh .btn-load-more .loading-icon {
    border-color: #73472e;
    border-top-color: transparent;
    width: 16px;
    height: 16px;
}

.loading-wrap.dropupRefresh .btn-load-more.loading {
    background: #73472e;
    border-color: #73472e;
    color: #fff;
}

.loading-wrap.dropupRefresh .btn-load-more.loading .loading-icon {
    border-color: #fff;
    border-top-color: transparent;
}

.loading-wrap.dropupRefresh .btn-load-more.done {
    background: transparent;
    border-color: #ddd;
    color: #bbb;
}

/* ========== 加载更多 - 渐变线条装饰 ========== */
.loading-wrap .btn-load-more::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 32px;
    background: linear-gradient(135deg, #73472e, #a67c5e, #73472e);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-wrap .btn-load-more:hover::before {
    opacity: 1;
    animation: gradientMove 2s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
    .btn-load-more {
        padding: 10px 25px;
        font-size: 13px;
        min-width: 150px;
    }
    
    .loading-wrap {
        padding: 20px 0 15px;
    }
    
    .btn-load-more .loading-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .btn-load-more {
        padding: 8px 20px;
        font-size: 12px;
        min-width: 120px;
        border-width: 1.5px;
    }
    
    .loading-wrap {
        padding: 15px 0 10px;
    }
}

/* 媒体中心页面样式 */
.mtzx-section {
  padding-bottom: clamp(30px, 8vw, 30px);
  color: var(--text-primary);
}

.mtzx-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 50px;
  padding-bottom: 30px;
  margin-bottom: 48px;
  border-bottom: 1px solid #c39576;
}

.mtzx-tab {
  font-size: 36px;
  color: #828282;
  cursor: pointer;
  transition: color 0.2s;
  height: 60px;
  line-height: 60px;
  font-family: var(--font-decorative);
}
.mtzx-tab span {
  padding: 0 20px;
}

.mtzx-tab.active {
  color: #244840;
}

/* Pane 1: 新闻报道样式 (与 hzgs.html 保持一致) */
.mtzx-grid-news {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mtzx-item-news {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #966041;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  transition: background-color 0.25s ease;
  height: 100%;
}

.mtzx-img-box-news {
  width: 100%;
  height: 208px;
  overflow: hidden;
}

.mtzx-img-box-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mtzx-item-news:hover .mtzx-img-box-news img {
  transform: scale(1.05);
}

.mtzx-info-news {
  padding: 24px 20px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mtzx-title-news {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 16px;
  transition: color 0.25s ease;
  color: #244840;
}

.mtzx-desc-news {
  font-size: 14px;
  color: #666;
  line-height: 18px;
  margin-top: 0;
  margin-bottom: 40px;
  flex-grow: 1;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.mtzx-meta-news {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  line-height: 18px;
  color: #666;
  transition: color 0.25s ease;
}

.mtzx-item-news:hover {
  background-color: #966041;
}

.mtzx-item-news:hover .mtzx-title-news {
  color: #fff;
}

.mtzx-item-news:hover .mtzx-desc-news {
  color: #fff;
}

.mtzx-item-news:hover .mtzx-meta-news {
  color: #fff;
}

/* Pane 1 响应式适配 (与 hzgs.html 保持一致) */
@media (max-width: 1400px) {
  .mtzx-grid-news {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .mtzx-tabs {
    display: none;
  }
}

@media (max-width: 768px) {
  .mtzx-tab {
    font-size: 24px;
    height: 48px;
    line-height: 48px;
  }
  .mtzx-tabs {
    gap: 30px;
    margin-bottom: 36px;
  }
  .mtzx-grid-news {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 476px) {
  .mtzx-grid-news {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Pane 2: 健康科普样式 (左右布局，图片宽370，无适配) */
.mtzx-grid-science {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mtzx-item-science {
  display: flex;
  background-color: #fff;
  border: 1px solid #966041;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  transition: background-color 0.25s ease;
  height: 100%;
}

.mtzx-img-box-science {
  width: 370px;
  height: 208px;
  flex-shrink: 0;
  overflow: hidden;
}

.mtzx-img-box-science img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mtzx-item-science:hover .mtzx-img-box-science img {
  transform: scale(1.05);
}

.mtzx-info-science {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.mtzx-title-science {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
  margin-bottom: 16px;
}

.mtzx-body-science {
  display: flex;
  flex-direction: column;
}

.mtzx-date-science {
  font-size: 12px;
  line-height: 18px;
  color: #666;
  transition: color 0.25s ease;
}

.mtzx-meta-science {
  font-size: 12px;
  line-height: 18px;
  color: #666;
  transition: color 0.25s ease;
  margin-top: auto;
}

.mtzx-source-science {
  transition: color 0.25s ease;
}

.mtzx-item-science:hover {
  background-color: #966041;
}

.mtzx-item-science:hover .mtzx-title-science {
  color: #fff;
}

.mtzx-item-science:hover .mtzx-date-science {
  color: #fff;
}

.mtzx-item-science:hover .mtzx-source-science {
  color: #fff;
}

/* Pane 3: 医院公告样式 (纯文本上下布局，无适配) */
.mtzx-list-announce {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mtzx-item-announce {
  display: block;
  background-color: #fff;
  border: 1px solid #966041;
  border-radius: 16px;
  padding: 24px 30px;
  text-decoration: none !important;
  transition: background-color 0.25s ease;
}

.mtzx-date-announce {
  font-size: 16px;
  line-height: 18px;
  color: #666;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}

.mtzx-title-announce {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
  transition: color 0.25s ease;
}

.mtzx-desc-announce {
  font-size: 16px;
  line-height: 24px;
  color: #666;
  margin: 0;
  text-align: justify;
  transition: color 0.25s ease;
}

.mtzx-item-announce:hover {
  background-color: #966041;
}

.mtzx-item-announce:hover .mtzx-date-announce {
  color: rgba(255, 255, 255, 0.7);
}

.mtzx-item-announce:hover .mtzx-title-announce {
  color: #fff;
}

.mtzx-item-announce:hover .mtzx-desc-announce {
  color: #fff;
}

/* Pane 2 响应式适配 */
@media (max-width: 1400px) {
  .mtzx-img-box-science {
    width: 280px;
    height: 180px;
  }
}

@media (max-width: 1024px) {
  .mtzx-item-science {
    flex-direction: column;
  }

  .mtzx-img-box-science {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .mtzx-grid-science {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mtzx-img-box-science {
    height: 220px;
  }
}
