/* 中文新闻列表 / 详情 */

.g-news-page .g-main {
  background: #fff;
}

/* Banner */
.g-news-banner {
  width: 100%;
  position: relative;
  aspect-ratio: 1920 / 528;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.g-news-banner .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

@media (max-width: 767px) {
  .g-news-banner {
    
    min-height: auto;
    margin-top: 58px;
  }
  .g-news-banner__bg img{
    width: 100%;
  }
}
.g-news-banner__content{
  z-index: 2;
}

/* 新闻详情页：菜单 fixed */
.g-news-detail-page .pc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

.g-news-detail-page .pc-nav.nav-scrolled {
  background: rgba(255, 255, 255, 0.7);
}

.g-news-banner__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 16px;
  padding-right: 16px;
}

.g-news-banner__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.g-news-banner__bg.g-news-banner__bg--image {
  background-color: #2f3240;
  background-image: var(--g-news-banner-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.g-news-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(15, 23, 42, 0.5),
    rgba(15, 23, 42, 0.25)
  );
}

.g-news-banner__title {
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 2vw, 40px);
  letter-spacing: 0.12em;
  color: #fff;
  margin: 0 0 12px;
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.g-news-banner__description {
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-size: clamp(18px, 1vw, 24px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto;
  max-width: 700px;
  text-align: center;
}

.g-news-banner__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 16px;
  padding-right: 16px;
}

/* 卡片网格 */
.g-news-layout {
  padding: 24px 0 48px;
}

.g-news-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.g-news-card {
  display: flex;
  flex-direction: row;
  background: #f5f5f5;
  border-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  flex-wrap: wrap;
  border: none;
  box-shadow: none;
  text-decoration: none;
  color: inherit;

  padding: 0;
  gap: 24px;
  align-items: stretch;
}

.g-news-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  
  justify-content: space-between;
}

.g-news-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

a.g-news-card:hover {
  background: #fff;
  color: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.g-news-card__img-wrap {
  flex-shrink: 0;
  width: 320px;
  aspect-ratio: 320 / 200;
  border-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  overflow: hidden;
  background: #e5e7eb;
}

.g-news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-news-card__body {
  flex: 1;
  display: inline-flex;
  flex-direction: column;

  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding: 20px;
}

@media (max-width: 767px) {
  .g-news-card {
    flex-direction: column;
  }

  .g-news-card__img-wrap {
    width: 100%;
  }
  .g-news-banner__description{
    font-size: 14px;
  }
  .g-news-card{
    gap:0;
  }
}

.g-news-card__date {
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-size: 14px;
  margin-bottom: 9px;;
  font-weight: 400;
  color: #999;
  line-height: 1.4;
}

.g-news-card__title {
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 1vw, 24px);
  line-height: 1.4;
  color: #1a1a1a;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



.g-news-card__excerpt {
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: #0D0D0D;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  margin-top: 7px;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 992px) and (max-width: 1236px) {
  .g-news-card__excerpt {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
}

.g-news-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  align-self: flex-start;
  box-sizing: border-box;
  padding: 8px 24px;
  min-height: 40px;
  border-radius: 8px;
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #666;
  background: transparent;
  border: 1px solid #ddd;
  text-decoration: none;
 
}

.g-news-card__cta-arrow {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.g-news-card__cta-arrow svg {
  width: 18px;
  height: 18px;
  stroke: #999;
  
}

a.g-news-card:hover .g-news-card__cta {
 
  
}

a.g-news-card:hover .g-news-card__cta .g-news-card__cta-arrow svg {
  stroke: #fff;
  transform: translateX(2px);
}

.g-news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  font-family: 'Source Han Sans', system-ui, sans-serif;
  color: #6b7280;
}
.g-news-layout__row{
  display: flex;
  gap:32px;
  flex-direction: row;

}
@media (max-width: 991.98px) {
  .g-news-layout__row {
    flex-direction: column;
  }
}


/* 新闻列表筛选侧边栏 */
@media (min-width: 992px) {
  .g-news-page .g-list-filter-card {
    background: transparent;
    border-radius: 0;
    width:310px;
  }

  .g-news-page .g-list-filter-card__head {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    background: transparent;
    border-radius: 0;
    padding: 0 0 24px 0;
    min-height: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .g-news-page .g-list-filter-card__head::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M8 11h2'/%3E%3Cpath d='M8 15h2'/%3E%3Cpath d='M14 11h2'/%3E%3Cpath d='M14 15h2'/%3E%3Ccircle cx='18' cy='5' r='2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
  }

  .g-news-page .g-list-filter-card__body {
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .g-news-page .g-list-filter-field {
    border-radius: 10px;
    background: #f5f5f5;
    overflow: visible;
  }

  .g-news-page .g-list-filter-trigger {
    padding: 16px 20px;
    border-radius: 10px;
    background: transparent;
  }

  .g-news-page .g-list-filter-trigger:hover:not(:disabled) {
    background: transparent;
  }

  .g-news-page .g-list-filter-trigger__label {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
  }

  .g-news-page .g-list-filter-trigger__trail {
    gap: 0;
    margin-left: auto;
  }

  .g-news-page .g-list-filter-trigger__value {
    display: none;
  }

  .g-news-page .g-list-filter-trigger__icon {
    color: #999;
  }

  .g-news-page .g-list-filter-trigger__icon svg {
    width: 20px;
    height: 20px;
  }

  .g-news-page .g-list-filter-trigger.is-open .g-list-filter-trigger__icon {
    transform: rotate(180deg);
  }

  .g-news-page .g-list-filter-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
  }

  .g-news-page .g-list-filter-menu__opt {
    padding: 12px 20px;
    font-size: 15px;
    color: #333;
  }

  .g-news-page .g-list-filter-menu__opt:hover,
  .g-news-page .g-list-filter-menu__opt.is-selected {
    background: #f5f5f5;
    color: #f5a200;
    font-weight: 500;
  }

  .g-news-page .g-list-filter-field--disabled {
    opacity: 0.5;
    pointer-events: none;
  }
}
@media (min-width: 992px) and (max-width: 1236px) {
  .g-news-page .g-list-filter-card {
    background: transparent;
    border-radius: 0;
    width: 176px;
  }
}
/* 详情 */
.g-news-detail-page .g-main {
  background: #f3f4f6;
}

.g-news-detail {
 
  margin: 0 auto;
  padding: 0 16px 56px;
}
@media (max-width: 987px) {
  .g-news-detail {
    padding: 0;
    padding-bottom: 20px;
  }
}
.g-news-detail__meta {
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
}

.g-news-detail__title {
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-weight: bold;
  font-size: clamp(20px, 2vw, 40px);
  line-height: 1.25;
  color: #111827;
  margin: 0 0 20px;
 
}



.g-news-detail__title:has(+ .g-news-detail__meta) {
  margin-bottom: 40px;
}

.g-news-detail__thumb {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
}

.g-news-detail__content {
  padding: 28px 24px;
  border-radius: 12px;
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
}

@media (max-width: 1236px) {
  .g-news-detail__content {
    padding: 0;
  }
}

.g-news-detail__content pre {
  white-space: normal;
}
.g-news-detail__content img {
  max-width: 100%;
  height: auto;
}
.g-news-detail-main {
  background-color: #fff;
  padding-top: 40px;
}
.g-news-detail__back {
  display: inline-block;
  margin-top: 32px;
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--g-color-primary, #f5a200);
  text-decoration: none;
}

.g-news-detail__back:hover {
  text-decoration: underline;
}

/* 返回列表链接 */
.g-case-detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  font-family: 'Source Han Sans', sans-serif;
  font-weight: normal;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.g-case-detail-back-link iconify-icon {
  font-size: 1.5em;
}

.g-case-detail-back-link:hover {
  color: #f5a200;
}

/* 新闻详情页：detail-nav-toolbar partial 配合的布局 */
@media (min-width: 992px) {
  .g-case-detail-layout__inner .g-news-detail {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }
  a.g-news-card:hover .g-news-card__title {
  color: #f5a200;
}
}
.g-news-card__more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 12px 24px;
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #2B2B2B;
  background: transparent;
  border: 1px solid #9A9A9A;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  align-self: flex-start;
  cursor: pointer;
}

.g-news-card__more-link:hover {
  background: #f5a200;
  color: #fff;
  border-color: #f5a200;
}

.g-news-card__more-link:hover .g-news-card__more-arrow path {
  stroke: #fff;
}

.g-news-card__more-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .g-news-card__more-link {
    display: none;
  }
  .g-news-card__title{
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .g-news-detail__title:has(+ .g-news-detail__meta) {
    max-width: 100%;
    margin-bottom: 16px;
  }
}