/* ===== page-news 专属样式 ===== */
.page-news {
  --color-hero-bg: linear-gradient(135deg, #0A1628 0%, #162544 60%, #1A2A4A 100%);
  --color-card-bg-news: rgba(255, 255, 255, 0.06);
  --color-card-hover: rgba(212, 175, 55, 0.08);
  --color-border-card: rgba(212, 175, 55, 0.2);
  --color-tag-data: #4A8BC2;
  --color-tag-brand: #D4AF37;
  --color-tag-community: #FF6B35;
  --color-card-text: #E8ECF0;
  --color-card-secondary: #A0AAB5;
  --color-filter-bg: rgba(255, 255, 255, 0.05);
  --color-filter-active-bg: rgba(212, 175, 55, 0.2);
  --color-filter-active-text: #D4AF37;
  --color-filter-border: rgba(212, 175, 55, 0.35);
  --radius-card: 12px;
  --radius-tag: 4px;
  --spacing-section: 4rem;
  --max-card-width: 380px;
  font-family: var(--font-body, 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  color: var(--color-card-text);
  background: var(--color-bg-dark, #0A1628);
}

/* ---- 容器 ---- */
.page-news .container {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

/* ---- 首屏杂志封面区 ---- */
.page-news .hero-section {
  background: var(--color-hero-bg);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-subtle, rgba(212, 175, 55, 0.25));
}

.page-news .hero-section::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-news .hero-inner {
  position: relative;
  z-index: 1;
}

.page-news .hero-label {
  display: inline-block;
  font-family: var(--font-heading, 'Noto Sans Tibetan', 'Tibetan Serif', serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold, #D4AF37);
  border: 1px solid var(--color-filter-border);
  padding: 0.3em 1em;
  margin-bottom: 1.2rem;
  border-radius: 2px;
}

.page-news .hero-title {
  font-family: var(--font-heading, 'Noto Sans Tibetan', 'Tibetan Serif', serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-snow-white, #F5F7FA);
  margin: 0 0 1rem;
  max-width: 10em;
}

.page-news .hero-title-accent {
  color: var(--color-gold, #D4AF37);
  font-weight: 400;
  display: inline-block;
  margin: 0 0.15em;
}

.page-news .hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary, #A0AAB5);
  max-width: 36em;
  margin: 0 0 2rem;
}

/* ---- 筛选栏 ---- */
.page-news .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.2rem 0;
}

.page-news .filter-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.page-news .filter-label {
  display: inline-block;
  padding: 0.5em 1.4em;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body, 'Inter', 'Noto Sans SC', sans-serif);
  color: var(--color-text-secondary, #A0AAB5);
  background: var(--color-filter-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  white-space: nowrap;
}

.page-news .filter-label:hover {
  background: var(--color-hover-overlay, rgba(212, 175, 55, 0.1));
  color: var(--color-snow-white, #F5F7FA);
  border-color: var(--color-filter-border);
}

/* 选中状态 — 通过 radio:checked + label 的兄弟关系实现 */
.page-news #filter-all:checked ~ .hero-section .filter-label[for="filter-all"],
.page-news #filter-data:checked ~ .hero-section .filter-label[for="filter-data"],
.page-news #filter-brand:checked ~ .hero-section .filter-label[for="filter-brand"],
.page-news #filter-community:checked ~ .hero-section .filter-label[for="filter-community"] {
  background: var(--color-filter-active-bg);
  color: var(--color-filter-active-text);
  border-color: var(--color-filter-border);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15);
}

/* ---- 筛选逻辑：内容显隐 ---- */
.page-news .content-sections section {
  display: block;
}

/* 默认「全部」：所有 section 显示 */
.page-news #filter-all:checked ~ .content-sections section {
  display: block;
}

/* 筛选「数据速递」 */
.page-news #filter-data:checked ~ .content-sections section[data-category="data"] {
  display: block;
}
.page-news #filter-data:checked ~ .content-sections section[data-category="brand"],
.page-news #filter-data:checked ~ .content-sections section[data-category="community"] {
  display: none;
}

/* 筛选「品牌动态」 */
.page-news #filter-brand:checked ~ .content-sections section[data-category="brand"] {
  display: block;
}
.page-news #filter-brand:checked ~ .content-sections section[data-category="data"],
.page-news #filter-brand:checked ~ .content-sections section[data-category="community"] {
  display: none;
}

/* 筛选「社区观察」 */
.page-news #filter-community:checked ~ .content-sections section[data-category="community"] {
  display: block;
}
.page-news #filter-community:checked ~ .content-sections section[data-category="data"],
.page-news #filter-community:checked ~ .content-sections section[data-category="brand"] {
  display: none;
}

/* ---- 宽窄章节交替 ---- */
.page-news .section-wide {
  padding: var(--spacing-section) 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.page-news .section-narrow {
  padding: var(--spacing-section) 0;
  background: rgba(11, 29, 58, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* ---- 区块头部 ---- */
.page-news .section-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.page-news .section-header--narrow {
  flex-direction: column-reverse;
}

.page-news .section-header-text {
  flex: 1;
}

.page-news .section-title {
  font-family: var(--font-heading, 'Noto Sans Tibetan', 'Tibetan Serif', serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-snow-white, #F5F7FA);
  margin: 0 0 0.3rem;
  line-height: 1.2;
}

.page-news .section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-secondary, #A0AAB5);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.page-news .section-header-image {
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.page-news .section-header-image--portrait {
  max-width: 200px;
}

.page-news .img-responsive {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-news .img-portrait {
  aspect-ratio: 200 / 300;
  object-fit: cover;
}

/* ---- 文章网格 ---- */
.page-news .article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.page-news .article-grid--narrow {
  max-width: 800px;
}

/* ---- 文章卡片 ---- */
.page-news .news-card {
  background: var(--color-card-bg-news);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-card);
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.page-news .news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background: var(--color-card-hover);
  border-color: rgba(212, 175, 55, 0.35);
}

/* ---- details/summary 展开组件 ---- */
.page-news .news-details {
  display: block;
  padding: 0;
}

.page-news .news-details[open] {
  background: rgba(255, 255, 255, 0.02);
}

.page-news .news-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-news .news-summary::-webkit-details-marker {
  display: none;
}

.page-news .news-summary::marker {
  display: none;
  content: '';
}

.page-news .news-summary {
  position: relative;
}

.page-news .news-summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--color-text-secondary, #A0AAB5);
  transition: transform 0.3s ease, color 0.3s ease;
  line-height: 1;
}

.page-news .news-details[open] .news-summary::after {
  content: '−';
  transform: translateY(-50%) rotate(0deg);
  color: var(--color-gold, #D4AF37);
}

.page-news .article-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25em 0.7em;
  border-radius: var(--radius-tag);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.page-news .tag-data {
  color: var(--color-tag-data);
  border-color: rgba(74, 139, 194, 0.3);
  background: rgba(74, 139, 194, 0.08);
}

.page-news .tag-brand {
  color: var(--color-tag-brand);
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.08);
}

.page-news .tag-community {
  color: var(--color-tag-community);
  border-color: rgba(255, 107, 53, 0.3);
  background: rgba(255, 107, 53, 0.08);
}

.page-news .article-title {
  font-family: var(--font-body, 'Inter', 'Noto Sans SC', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-card-text);
  margin: 0;
  flex: 1 1 180px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.page-news .news-card:hover .article-title {
  color: var(--color-gold, #D4AF37);
}

.page-news .article-date {
  font-size: 0.8rem;
  color: var(--color-text-secondary, #A0AAB5);
  flex-shrink: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-right: 1.8rem;
}

/* ---- 展开内容体 ---- */
.page-news .article-body {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-news .article-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-card-secondary);
  margin: 0.8rem 0 1rem;
}

.page-news .article-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gold, #D4AF37);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  padding-bottom: 1px;
}

.page-news .article-link:hover {
  border-bottom-color: var(--color-gold, #D4AF37);
  opacity: 0.85;
}

/* ---- 社区装饰 ---- */
.page-news .community-decoration {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.page-news .img-decoration {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.2);
  flex-shrink: 0;
}

.page-news .decoration-caption {
  font-size: 0.8rem;
  color: var(--color-text-secondary, #A0AAB5);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ===== 平板 / 桌面 响应式 ===== */
@media (min-width: 640px) {
  .page-news .hero-title {
    font-size: 3.2rem;
  }

  .page-news .hero-desc {
    font-size: 1.1rem;
  }

  .page-news .section-header {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .page-news .section-header--narrow {
    flex-direction: row;
  }

  .page-news .section-header-image {
    width: 50%;
    max-width: 500px;
    flex-shrink: 0;
  }

  .page-news .section-header-image--portrait {
    max-width: 180px;
    width: 30%;
  }

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

  .page-news .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-news .img-decoration {
    width: 80px;
    height: 80px;
  }
}

@media (min-width: 960px) {
  .page-news .hero-section {
    padding: 5rem 0 4rem;
  }

  .page-news .hero-title {
    font-size: 4rem;
    max-width: 8em;
  }

  .page-news .hero-desc {
    font-size: 1.2rem;
    max-width: 32em;
  }

  .page-news .filter-bar {
    gap: 0.8rem;
  }

  .page-news .filter-label {
    font-size: 0.95rem;
    padding: 0.55em 1.8em;
  }

  .page-news .section-wide {
    padding: 5rem 0;
  }

  .page-news .section-narrow {
    padding: 4rem 0;
  }

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

  .page-news .article-grid--narrow {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }

  .page-news .section-header-image {
    width: 45%;
    max-width: 480px;
  }

  .page-news .section-header-image--portrait {
    max-width: 160px;
  }

  .page-news .news-summary {
    padding: 1.5rem 2rem;
  }

  .page-news .article-body {
    padding: 0 2rem 2rem;
  }

  .page-news .article-title {
    font-size: 1.1rem;
    flex: 1 1 200px;
  }
}

/* 超大桌面微调 */
@media (min-width: 1200px) {
  .page-news .hero-title {
    font-size: 4.5rem;
  }

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

  .page-news .article-grid {
    gap: 2rem;
  }
}

/* 窄屏安全 */
@media (max-width: 380px) {
  .page-news .hero-title {
    font-size: 1.8rem;
  }

  .page-news .filter-label {
    font-size: 0.78rem;
    padding: 0.4em 1em;
  }

  .page-news .news-summary {
    padding: 1rem 1.25rem;
  }

  .page-news .article-body {
    padding: 0 1.25rem 1.25rem;
  }

  .page-news .article-title {
    font-size: 0.95rem;
    flex: 1 1 140px;
  }

  .page-news .section-header-image {
    max-width: 100%;
  }

  .page-news .section-header-image--portrait {
    max-width: 140px;
  }
}
