/* 平台资讯列表 / 详情 */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@500;600&display=swap');

.news-page {
  background: #FEFBF8;
  color: #333;
  min-height: 100vh;
}

.news-page body,
body.news-page {
  background: #FEFBF8;
}

/* —— Header：与全站 / 首页共用 common.css 顶栏 —— */
.news-page .news-header .container {
  max-width: 1296px;
  padding: 0 24px;
}

/* —— Banner（设计稿 1920×600） —— */
.news-banner {
  position: relative;
  width: 100%;
  height: clamp(360px, 31.25vw, 600px);
  /* 卡片底部超出 banner：327+300-600 = 27px */
  margin-bottom: clamp(14px, 1.40625vw, 27px);
  overflow: visible;
  background: transparent;
}

/* 圆角与遮罩裁切放在媒体层，避免裁掉底部伸出的卡片 */
.news-banner__media {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
  background: #F16800 center center / cover no-repeat;
  pointer-events: none;
}

.news-banner--list .news-banner__media {
  background-image: url('../image/banner_news.png');
}

.news-banner--detail {
  height: clamp(240px, 20.83vw, 400px);
  margin-bottom: 0;
}

.news-banner--detail .news-banner__media {
  height: 100%;
  background-image: url('../image/banner_news_detail.png');
  border-radius: 0;
}

/* Group 331391：left 311 / top 327 / 220×300 @1920 */
.news-banner__sign {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  top: 54.5%; /* 327 / 600 */
  left: clamp(16px, 16.2vw, 311px); /* 311 / 1920 */
  width: clamp(148px, 11.458vw, 220px);
  height: clamp(202px, 15.625vw, 300px);
  padding: clamp(12px, 1.04vw, 20px) clamp(14px, 1.04vw, 20px) clamp(16px, 1.2vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(180.07deg, rgba(255, 255, 255, 0) 0.06%, rgba(203, 120, 57, 0.18) 99.94%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  pointer-events: none;
}

.news-banner__sign-title {
  margin: 0;
  font-family: "PingFang TC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(20px, 1.56vw, 30px);
  line-height: 1.4;
  color: #FFFFFF;
}

.news-banner__sign-en {
  margin: clamp(6px, 0.52vw, 10px) 0 0;
  max-width: 180px;
  font-family: "PingFang TC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(18px, 1.35vw, 26px);
  line-height: clamp(24px, 1.875vw, 36px);
  color: #FFFFFF;
}

.news-banner__sign-line {
  display: block;
  margin-top: clamp(20px, 2.1vw, 40px);
  width: 0;
  height: clamp(70px, 5.47vw, 105px);
  border-left: 1px solid #FEFBF8;
}

/* —— 主内容区 —— */
.news-main {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: clamp(40px, 5.2vw, 100px) 24px 80px;
  box-sizing: border-box;
}

.news-main--detail {
  padding-top: 28px;
}

/* 分类 Tab（设计稿 220×68） */
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 1.56vw, 30px);
  margin-bottom: 40px;
}

.news-tab {
  width: 220px;
  height: 68px;
  padding: 0 28px;
  border: none;
  border-radius: 100px;
  background: #FFFFFF;
  box-shadow: 0 0 20px rgba(255, 173, 0, 0.1);
  font-family: "PingFang TC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 34px;
  color: #666666;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.news-tab:hover {
  transform: translateY(-1px);
}

.news-tab.is-active {
  background: #C57539;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: none;
}

/* 文章列表卡片 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: 200px;
}

.news-list.is-loading {
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

.news-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 340px;
  align-items: stretch;
  min-height: 290px;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 0 20px rgba(255, 173, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.news-card:hover {
  box-shadow: 0 8px 28px rgba(203, 120, 57, 0.16);
  transform: translateY(-2px);
}

.news-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 228, 210, 0.5); /* #FFE4D2 @ 50% */
  padding: 24px 16px;
  position: relative;
}

.news-card__md {
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 3.125vw, 60px);
  line-height: 1.1;
  color: #CB7839;
}

.news-card__year {
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 1.875vw, 36px);
  line-height: 1.2;
  color: #E5B591;
  position: relative;
}

.news-card__year::before,
.news-card__year::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 27px;
  border-top: 1px solid rgba(229, 181, 145, 0.3); /* #E5B591 @ 30% */
}

.news-card__year::before { left: 50%; margin-left: -72px; width: 27px; }
.news-card__year::after { left: 50%; margin-left: 36px; width: 30px; }

.news-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 28px 30px 36px;
  min-width: 0;
}

.news-card__title {
  font-family: "PingFang TC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 34px;
  color: #333333;
  margin: 0 0 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card__summary {
  font-family: "PingFang TC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 36px;
  color: #666666;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  flex: 1;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 18px;
  font-family: "PingFang TC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  line-height: 36px;
  color: #999999;
}

.news-card__meta-main {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  flex: 1;
  min-width: 0;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #CB7839;
  white-space: nowrap;
  margin-left: auto;
}

.news-card__more-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.news-card__cover {
  width: 340px;
  max-width: 100%;
  padding: 30px 30px 30px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card__cover img,
.news-card__cover-placeholder {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  background: linear-gradient(135deg, #F6E6D9 0%, #E8D0BC 100%);
}

.news-card__cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(121, 92, 79, 0.45);
  font-size: 14px;
}

.news-state {
  text-align: center;
  padding: 64px 16px;
  color: #989390;
  font-size: 16px;
}

.news-state--error {
  color: #CB7839;
}

/* 分页 */
.news-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 48px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #666;
  user-select: none;
}

.news-pager__btn,
.news-pager__page {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.news-pager__btn {
  border-radius: 8px;
  color: #999;
}

.news-pager__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.news-pager__btn:not(:disabled):hover,
.news-pager__page:hover {
  color: #CB7839;
}

.news-pager__page.is-active {
  background: #CB7839;
  color: #fff;
}

.news-pager__jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  font-size: 14px;
}

.news-pager__jump input {
  width: 48px;
  height: 32px;
  border: 1px solid #E5D5C8;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  color: #333;
  background: #fff;
  outline: none;
}

.news-pager__jump input:focus {
  border-color: #CB7839;
}

.news-pager__size {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #E5D5C8;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: #666;
  margin-left: 8px;
}

/* —— 详情页面包屑（设计稿 left:311 top:445，集中左排） —— */
.news-crumb {
  box-sizing: border-box;
  width: 100%;
  max-width: 1296px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  height: auto;
  font-family: "PingFang TC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 25px;
  color: #666666;
}

.news-crumb a {
  color: #666666;
  flex: none;
  height: auto;
  padding: 0;
  display: inline;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
  font-weight: 400;
  background: transparent;
}

.news-crumb a:hover {
  color: #CB7839;
  background: transparent;
}

.news-crumb a.active {
  color: #666666;
  background: transparent;
}

.news-crumb__sep {
  margin: 0 6px;
  flex: none;
  color: #666666;
  opacity: 0.7;
}

.news-crumb__current {
  flex: none;
  max-width: min(100%, 48em);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #CB7839;
}

.news-article {
  background: #FFFFFF;
  box-shadow: 0 0 20px rgba(255, 173, 0, 0.1);
  border-radius: 24px;
  padding: clamp(32px, 3vw, 50px) clamp(24px, 4vw, 50px) clamp(40px, 4vw, 72px);
  margin-top: 20px;
}

.news-article__title {
  font-family: "PingFang TC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 34px;
  color: #3B2C1C;
  text-align: center;
  margin: 0 0 24px;
}

.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  font-family: "PingFang TC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  line-height: 36px;
  color: #666666;
  padding-bottom: 20px;
  border-bottom: 1px dashed #999999;
  margin-bottom: 28px;
}

.news-article__content {
  font-family: "PingFang TC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  line-height: 46px;
  color: #666666;
  max-width: 1200px;
  margin: 0 auto;
  word-break: break-word;
}

.news-article__content p {
  margin: 0 0 1em;
}

.news-article__content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: 26px;
}

.news-article__content h1,
.news-article__content h2,
.news-article__content h3 {
  color: #3B2C1C;
  line-height: 1.5;
  margin: 1.2em 0 0.6em;
}

.news-article__content a {
  color: #CB7839;
}

.news-article__cover {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 28px auto;
  border-radius: 26px;
  object-fit: cover;
}

/* ========== PC 响应式 ========== */
@media (max-width: 1440px) {
  .news-card {
    grid-template-columns: 160px minmax(0, 1fr) 280px;
  }

  .news-card__cover {
    width: 280px;
    padding: 24px 24px 24px 0;
  }

  .news-card__cover img,
  .news-card__cover-placeholder {
    height: 190px;
  }
}

@media (max-width: 1200px) {
  .news-card {
    grid-template-columns: 140px minmax(0, 1fr) 240px;
    min-height: 240px;
  }

  .news-card__body {
    padding: 24px 18px;
  }

  .news-card__title {
    font-size: 20px;
    line-height: 28px;
  }

  .news-card__summary,
  .news-card__meta {
    font-size: 15px;
    line-height: 28px;
  }

  .news-card__cover {
    width: 240px;
    padding: 20px 20px 20px 0;
  }

  .news-card__cover img,
  .news-card__cover-placeholder {
    height: 160px;
  }

  .news-tab {
    width: 180px;
    height: 56px;
    font-size: 20px;
  }
}

@media (max-width: 992px) {
  .news-banner__sign {
    left: 24px;
  }

  .news-card {
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .news-card__cover {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0 24px 24px;
    order: 3;
  }

  .news-card__cover img,
  .news-card__cover-placeholder {
    height: 200px;
  }

  .news-card__more {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .news-banner {
    margin-bottom: 16px;
  }

  .news-banner__media {
    border-radius: 0;
  }

  .news-banner__sign {
    top: 48%;
    left: 16px;
    width: 140px;
    height: 190px;
    padding: 14px 14px 16px;
  }

  .news-banner__sign-title {
    font-size: 20px;
  }

  .news-banner__sign-en {
    font-size: 16px;
    line-height: 22px;
  }

  .news-banner__sign-line {
    margin-top: 20px;
    height: 64px;
  }

  .news-tabs {
    gap: 12px;
    margin-bottom: 24px;
  }

  .news-tab {
    min-width: 0;
    flex: 1 1 auto;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
  }

  .news-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .news-card__date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    padding: 20px 20px 0;
    background: transparent;
  }

  .news-card__year {
    padding-top: 0;
  }

  .news-card__year::before,
  .news-card__year::after {
    display: none;
  }

  .news-card__body {
    padding: 12px 20px 20px;
  }

  .news-card__title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .news-article__title {
    font-size: 20px;
  }

  .news-article__content {
    font-size: 16px;
    line-height: 1.9;
  }

  .news-crumb {
    font-size: 14px;
  }
}
