/* ============================================
   page-news — 文章中心 页面专属样式
   作用域限定：.page-news
   移动端优先 + 桌面增强
   ============================================ */
.page-news {
  --news-gold: var(--primary-gold);
  --news-red: var(--primary-red);
  --news-bg-dark: var(--background-dark);
  --news-bg-section: var(--background-section);
  --news-text: var(--text-light);
  --news-border: var(--border-gold);
  --news-gradient: var(--gold-gradient);
  --news-font-heading: var(--font-heading);
  --news-font-body: var(--font-body);
  --news-font-small: var(--font-small);
  --news-transition: var(--transition-speed);
  --news-radius: 4px;
  --news-number-size: 2.8rem;

  background-color: var(--news-bg-dark);
  color: var(--news-text);
  font-family: var(--news-font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- 首屏 Hero ---- */
.news-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52vh;
  overflow: hidden;
  padding: 2rem 1rem;
}

.news-hero__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.news-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.news-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg,
    rgba(13,13,13,0.88) 0%,
    rgba(13,13,13,0.60) 50%,
    rgba(13,13,13,0.82) 100%
  );
}

.news-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 1rem;
}

.news-hero__title {
  font-family: var(--news-font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  color: transparent;
  background-image: var(--news-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 0.06em;
  margin: 0 0 0.6rem;
  line-height: 1.18;
  text-shadow: 0 0 40px rgba(255,215,0,0.18);
}

.news-hero__subtitle {
  font-family: var(--news-font-small);
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(245,245,245,0.75);
  letter-spacing: 0.3em;
  margin: 0;
  border-top: 1px solid rgba(255,215,0,0.25);
  border-bottom: 1px solid rgba(255,215,0,0.25);
  display: inline-block;
  padding: 0.5rem 1.2rem;
  backdrop-filter: blur(4px);
}

/* ---- 面包屑 ---- */
.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  font-size: 0.8rem;
  font-family: var(--news-font-small);
  color: rgba(245,245,245,0.5);
  background-color: rgba(26,26,26,0.6);
  border-bottom: 1px solid rgba(184,134,11,0.15);
  flex-wrap: wrap;
}

.news-breadcrumb__link {
  color: var(--news-gold);
  text-decoration: none;
  transition: opacity var(--news-transition);
}

.news-breadcrumb__link:hover {
  opacity: 0.7;
}

.news-breadcrumb__sep {
  color: rgba(255,215,0,0.3);
  user-select: none;
}

.news-breadcrumb__current {
  color: rgba(245,245,245,0.6);
}

/* ---- 特色精选区（三栏） ---- */
.news-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2.5rem 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.news-feature {
  background-color: var(--news-bg-section);
  border: 1px solid rgba(184,134,11,0.2);
  border-radius: var(--news-radius);
  padding: 1.6rem 1.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--news-transition), box-shadow var(--news-transition);
  position: relative;
  overflow: hidden;
}

.news-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--news-gradient);
  opacity: 0.6;
}

.news-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,215,0,0.15);
}

.news-feature__title {
  font-family: var(--news-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--news-gold);
  margin: 0 0 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.news-feature__img-wrap {
  width: 100%;
  border-radius: var(--news-radius);
  overflow: hidden;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(184,134,11,0.15);
}

.news-feature__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.4s ease;
}

.news-feature:hover .news-feature__img {
  transform: scale(1.03);
}

.news-feature__text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(245,245,245,0.78);
  margin: 0 0 1rem;
  flex: 1;
}

.news-feature__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--news-font-small);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--news-gold);
  text-decoration: none;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 2px;
  align-self: flex-start;
  transition: background-color var(--news-transition), border-color var(--news-transition);
}

.news-feature__link:hover {
  background-color: rgba(255,215,0,0.08);
  border-color: var(--news-gold);
}

/* ---- 文章索引区 ---- */
.news-index {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.2rem 3rem;
}

.news-index__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(184,134,11,0.2);
  padding-bottom: 1rem;
}

.news-index__header .section-title {
  font-family: var(--news-font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--news-gold);
  margin: 0;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
}

.news-index__header .section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--news-gradient);
  border-radius: 2px;
}

/* ---- 分类标签 ---- */
.news-index__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-index__tab {
  font-family: var(--news-font-small);
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(245,245,245,0.65);
  background: transparent;
  border: 1px solid rgba(184,134,11,0.25);
  border-radius: 2px;
  padding: 0.35rem 1rem;
  cursor: pointer;
  transition: all var(--news-transition);
  letter-spacing: 0.06em;
}

.news-index__tab:hover {
  color: var(--news-gold);
  border-color: rgba(255,215,0,0.5);
  background-color: rgba(255,215,0,0.04);
}

.news-index__tab.is-active {
  color: #0D0D0D;
  background: var(--news-gradient);
  border-color: var(--news-gold);
  font-weight: 600;
}

/* ---- 文章卡片列表 ---- */
.news-index__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.article-card {
  display: flex;
  gap: 1rem;
  background-color: rgba(26,26,26,0.5);
  border: 1px solid rgba(184,134,11,0.12);
  border-radius: var(--news-radius);
  padding: 1.2rem 1rem;
  transition: transform var(--news-transition), box-shadow var(--news-transition), border-color var(--news-transition);
  position: relative;
}

.article-card:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  border-color: rgba(255,215,0,0.2);
}

.article-card__number {
  flex-shrink: 0;
  font-family: var(--news-font-heading);
  font-size: var(--news-number-size);
  font-weight: 900;
  line-height: 1;
  color: var(--news-red);
  opacity: 0.55;
  min-width: 2.2rem;
  text-align: center;
  padding-top: 0.1rem;
  letter-spacing: -0.02em;
}

.article-card__content {
  flex: 1;
  min-width: 0;
}

.article-card__title {
  font-family: var(--news-font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--news-text);
  margin: 0 0 0.35rem;
  line-height: 1.4;
  transition: color var(--news-transition);
}

.article-card:hover .article-card__title {
  color: var(--news-gold);
}

.article-card__excerpt {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(245,245,245,0.6);
  margin: 0 0 0.5rem;
}

/* ---- details / summary 展开阅读 ---- */
.article-card__detail {
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.article-card__detail summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--news-gold);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.2rem 0.6rem 0.2rem 0;
  border-bottom: 1px dashed rgba(255,215,0,0.2);
  transition: border-color var(--news-transition);
  user-select: none;
  list-style: none;
}

.article-card__detail summary::-webkit-details-marker {
  display: none;
}

.article-card__detail summary::before {
  content: '▶';
  font-size: 0.6rem;
  display: inline-block;
  transition: transform var(--news-transition);
  margin-right: 0.3rem;
  color: var(--news-gold);
}

.article-card__detail[open] summary::before {
  transform: rotate(90deg);
}

.article-card__detail summary:hover {
  border-color: var(--news-gold);
}

.article-card__detail-body {
  padding: 0.8rem 0 0.2rem;
  border-top: 1px solid rgba(184,134,11,0.08);
  margin-top: 0.5rem;
}

.article-card__detail-body p {
  margin: 0 0 0.4rem;
  line-height: 1.7;
  color: rgba(245,245,245,0.7);
  font-size: 0.85rem;
}

/* ============================================
   响应式 — 平板及以上
   ============================================ */
@media (min-width: 640px) {
  .news-hero {
    min-height: 46vh;
    padding: 2.5rem 2rem;
  }

  .news-hero__title {
    font-size: 4rem;
  }

  .news-hero__subtitle {
    font-size: 1rem;
  }

  .news-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    padding: 3rem 2rem;
  }

  .news-feature {
    padding: 1.8rem 1.4rem 2rem;
  }

  .news-index {
    padding: 2rem 2rem 4rem;
  }

  .news-index__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .news-index__header .section-title {
    font-size: 2rem;
  }

  .news-index__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .article-card {
    padding: 1.2rem 1rem;
  }

  .article-card__number {
    font-size: 2.6rem;
    min-width: 2.6rem;
  }
}

/* ============================================
   响应式 — 桌面
   ============================================ */
@media (min-width: 1024px) {
  .news-hero {
    min-height: 52vh;
    padding: 3rem 2rem;
  }

  .news-hero__title {
    font-size: 5rem;
  }

  .news-hero__subtitle {
    font-size: 1.05rem;
    padding: 0.6rem 1.6rem;
  }

  .news-features {
    gap: 2rem;
    padding: 3.5rem 2rem;
  }

  .news-feature__title {
    font-size: 1.6rem;
  }

  .news-index {
    padding: 2.5rem 2rem 5rem;
  }

  .news-index__header .section-title {
    font-size: 2.2rem;
  }

  .news-index__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .article-card {
    padding: 1.4rem 1.2rem;
  }

  .article-card__title {
    font-size: 1.1rem;
  }
}

/* ============================================
   微调：窄屏不横向溢出
   ============================================ */
@media (max-width: 420px) {
  .news-hero__title {
    font-size: 2.4rem;
  }

  .news-hero__subtitle {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    padding: 0.4rem 0.8rem;
  }

  .article-card {
    flex-direction: column;
    gap: 0.4rem;
  }

  .article-card__number {
    text-align: left;
    font-size: 2.2rem;
    min-width: auto;
  }
}
