/* ===== 页面专属样式：品牌更新页 ===== */
.page-news {
  --news-gold: var(--color-cyber-gold);
  --news-gold-dark: var(--color-cyber-gold-dark);
  --news-gold-light: var(--color-cyber-gold-light);
  --news-purple: var(--color-neon-purple);
  --news-purple-light: var(--color-neon-purple-light);
  --news-blue: var(--color-deep-blue);
  --news-blue-2: var(--color-deep-blue-2);
  --news-blue-3: var(--color-deep-blue-3);
  --news-dark: var(--color-dark-charcoal);
  --news-mist: var(--color-mist-white);
  --news-mid: var(--color-mid-gray);
  --news-light: var(--color-light-gray);
  --news-border: var(--color-border);
  --news-radius: var(--radius-md);
  --news-radius-sm: var(--radius-sm);
  --news-transition: var(--transition-fast);

  display: block;
  background: var(--news-mist);
  color: var(--news-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  padding: 0 0 48px;
}

/* ===== 容器 ===== */
.page-news .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 页面标题区 ===== */
.page-news .news-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 48px 0 32px;
  border-bottom: 2px solid var(--news-border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.page-news .news-hero-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--news-blue), var(--news-blue-3));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(11, 26, 51, 0.15);
}

.page-news .news-hero-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .news-hero-text {
  flex: 1;
  min-width: 200px;
}

.page-news .news-hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--news-blue);
  margin: 0 0 4px;
  text-shadow: 0 1px 2px rgba(240, 185, 11, 0.08);
}

.page-news .news-hero-desc {
  font-size: 1rem;
  color: var(--news-mid);
  margin: 0 0 8px;
  line-height: 1.5;
}

.page-news .breadcrumb {
  font-size: 0.875rem;
  color: var(--news-mid);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.page-news .breadcrumb a {
  color: var(--news-blue);
  text-decoration: none;
  transition: color var(--news-transition);
}

.page-news .breadcrumb a:hover,
.page-news .breadcrumb a:focus-visible {
  color: var(--news-gold-dark);
  text-decoration: underline;
}

.page-news .breadcrumb-sep {
  margin: 0 2px;
  color: var(--news-mid);
}

.page-news .breadcrumb-current {
  color: var(--news-dark);
  font-weight: 500;
}

/* ===== 隐藏过滤输入 ===== */
.page-news .filter-inputs {
  display: none;
}

/* ===== 主内容布局：两栏 ===== */
.page-news .news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* ===== 左栏：主内容 ===== */
.page-news .news-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ===== 区块标题 ===== */
.page-news .section-block {
  scroll-margin-top: 80px;
}

.page-news .section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--news-blue);
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--news-gold);
  display: inline-block;
}

.page-news .section-head-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.page-news .section-head-row .section-title {
  margin-bottom: 0;
  border-bottom-color: var(--news-purple);
}

.page-news .section-brand-mark {
  flex-shrink: 0;
  width: 120px;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--news-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-news .section-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== 时间线 ===== */
.page-news .timeline {
  position: relative;
  padding-left: 28px;
}

.page-news .timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--news-gold), var(--news-purple-light), var(--news-blue-3));
  border-radius: 1px;
}

.page-news .timeline-item {
  position: relative;
  padding: 0 0 28px 0;
  transition: background var(--news-transition);
  border-radius: var(--news-radius-sm);
  margin-left: 4px;
}

.page-news .timeline-item:last-child {
  padding-bottom: 0;
}

.page-news .timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--news-gold);
  border: 3px solid var(--news-mist);
  box-shadow: 0 0 0 2px var(--news-gold-dark);
  z-index: 1;
  transition: transform var(--news-transition), box-shadow var(--news-transition);
}

.page-news .timeline-item:hover .timeline-dot,
.page-news .timeline-item:focus-within .timeline-dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 3px var(--news-gold-light);
}

.page-news .timeline-content {
  background: var(--color-surface, #ffffff);
  padding: 16px 20px;
  border-radius: var(--news-radius);
  border: 1px solid var(--news-border);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--news-transition), border-color var(--news-transition);
}

.page-news .timeline-item:hover .timeline-content,
.page-news .timeline-item:focus-within .timeline-content {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--news-gold-light);
}

.page-news .timeline-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.page-news .tag.tag-gold {
  background: rgba(240, 185, 11, 0.15);
  color: var(--news-gold-dark);
}

.page-news .tag.tag-blue {
  background: rgba(11, 26, 51, 0.1);
  color: var(--news-blue);
}

.page-news .tag.tag-purple {
  background: rgba(124, 58, 237, 0.12);
  color: var(--news-purple);
}

.page-news .tag.tag-green {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.page-news .timeline-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--news-dark);
  margin: 0 0 4px;
}

.page-news .timeline-text {
  font-size: 0.9375rem;
  color: var(--news-mid);
  margin: 0 0 8px;
  line-height: 1.6;
}

.page-news .timeline-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--news-blue);
  text-decoration: none;
  transition: color var(--news-transition);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.page-news .timeline-link:hover,
.page-news .timeline-link:focus-visible {
  color: var(--news-gold-dark);
  text-decoration: underline;
}

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

.page-news .article-card {
  display: flex;
  flex-direction: row;
  gap: 16px;
  background: var(--color-surface, #ffffff);
  border-radius: var(--news-radius);
  border: 1px solid var(--news-border);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--news-transition), border-color var(--news-transition), transform var(--news-transition);
  align-items: flex-start;
}

.page-news .article-card:hover,
.page-news .article-card:focus-within {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--news-purple-light);
  transform: translateY(-2px);
}

.page-news .article-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 75px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--news-light);
}

.page-news .article-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .article-info {
  flex: 1;
  min-width: 0;
}

.page-news .article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.page-news .article-tags .tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.page-news .article-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--news-dark);
  margin: 0 0 4px;
  line-height: 1.4;
}

.page-news .article-summary {
  font-size: 0.875rem;
  color: var(--news-mid);
  margin: 0 0 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news .article-more {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--news-purple);
  text-decoration: none;
  transition: color var(--news-transition);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.page-news .article-more:hover,
.page-news .article-more:focus-visible {
  color: var(--news-gold-dark);
  text-decoration: underline;
}

/* ===== 右栏：边栏 ===== */
.page-news .news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.page-news .sidebar-block {
  background: var(--color-surface, #ffffff);
  border-radius: var(--news-radius);
  border: 1px solid var(--news-border);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.page-news .sidebar-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--news-blue);
  margin: 0 0 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--news-gold);
}

/* ===== 分类标签过滤 ===== */
.page-news .filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .filter-label {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--news-dark);
  background: var(--news-light);
  border: 1px solid var(--news-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--news-transition), color var(--news-transition), border-color var(--news-transition), box-shadow var(--news-transition);
  user-select: none;
}

.page-news .filter-label:hover {
  background: var(--news-gold-light);
  border-color: var(--news-gold);
  color: var(--news-blue);
}

.page-news .filter-label:focus-visible {
  outline: 2px solid var(--news-gold);
  outline-offset: 2px;
}

/* 过滤逻辑：全部选中时显示所有文章 */
#filter-all:checked ~ .news-layout .article-card,
#filter-all:checked ~ .news-layout .timeline-item {
  display: flex;
}

/* 分类过滤：文章卡片 */
#filter-update:checked ~ .news-layout .article-card[data-category="update"],
#filter-analysis:checked ~ .news-layout .article-card[data-category="analysis"],
#filter-guide:checked ~ .news-layout .article-card[data-category="guide"],
#filter-insight:checked ~ .news-layout .article-card[data-category="insight"] {
  display: flex;
}

#filter-update:checked ~ .news-layout .article-card:not([data-category="update"]),
#filter-analysis:checked ~ .news-layout .article-card:not([data-category="analysis"]),
#filter-guide:checked ~ .news-layout .article-card:not([data-category="guide"]),
#filter-insight:checked ~ .news-layout .article-card:not([data-category="insight"]) {
  display: none;
}

/* 分类过滤：时间线条目 */
#filter-update:checked ~ .news-layout .timeline-item[data-category="update"],
#filter-analysis:checked ~ .news-layout .timeline-item[data-category="analysis"],
#filter-guide:checked ~ .news-layout .timeline-item[data-category="guide"],
#filter-insight:checked ~ .news-layout .timeline-item[data-category="insight"] {
  display: block;
}

#filter-update:checked ~ .news-layout .timeline-item:not([data-category="update"]),
#filter-analysis:checked ~ .news-layout .timeline-item:not([data-category="analysis"]),
#filter-guide:checked ~ .news-layout .timeline-item:not([data-category="guide"]),
#filter-insight:checked ~ .news-layout .timeline-item:not([data-category="insight"]) {
  display: none;
}

/* 激活标签高亮 */
#filter-all:checked ~ .news-layout .filter-label[for="filter-all"],
#filter-update:checked ~ .news-layout .filter-label[for="filter-update"],
#filter-analysis:checked ~ .news-layout .filter-label[for="filter-analysis"],
#filter-guide:checked ~ .news-layout .filter-label[for="filter-guide"],
#filter-insight:checked ~ .news-layout .filter-label[for="filter-insight"] {
  background: var(--news-gold);
  color: var(--news-blue);
  border-color: var(--news-gold-dark);
  box-shadow: 0 2px 8px rgba(240, 185, 11, 0.3);
}

.page-news .filter-hint {
  font-size: 0.75rem;
  color: var(--news-mid);
  margin: 12px 0 0;
  font-style: italic;
}

/* ===== 赛事日历 ===== */
.page-news .calendar-block {
  scroll-margin-top: 80px;
}

.page-news .calendar-decoration {
  width: 100%;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--news-blue-2);
}

.page-news .calendar-decoration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: var(--news-blue);
  padding: 8px;
  border-radius: var(--news-radius-sm);
}

.page-news .cal-weekday {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--news-gold-light);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-news .cal-date {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--news-mist);
  background: var(--news-blue-3);
  border-radius: 4px;
  padding: 6px 2px;
  position: relative;
  transition: background var(--news-transition), color var(--news-transition);
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-news .cal-date:hover,
.page-news .cal-date:focus-visible {
  background: var(--news-blue-2);
  color: var(--news-gold-light);
}

.page-news .cal-other {
  opacity: 0.35;
}

.page-news .cal-event {
  background: rgba(240, 185, 11, 0.15);
  color: var(--news-gold);
  font-weight: 600;
  cursor: help;
}

.page-news .cal-event:hover {
  background: rgba(240, 185, 11, 0.25);
  color: var(--news-gold-light);
}

.page-news .cal-event-dot {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--news-gold);
}

.page-news .cal-note {
  font-size: 0.75rem;
  color: var(--news-mid);
  margin: 12px 0 8px;
  line-height: 1.5;
}

.page-news .cal-subscribe-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--news-purple);
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid var(--news-purple-light);
  border-radius: var(--radius-full);
  transition: background var(--news-transition), color var(--news-transition);
}

.page-news .cal-subscribe-link:hover,
.page-news .cal-subscribe-link:focus-visible {
  background: var(--news-purple);
  color: #ffffff;
  border-color: var(--news-purple);
}

/* ===== 快捷链接 ===== */
.page-news .quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-news .quick-links li {
  margin: 0;
  padding: 0;
}

.page-news .quick-links a {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--news-blue);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--news-transition), color var(--news-transition);
}

.page-news .quick-links a:hover,
.page-news .quick-links a:focus-visible {
  background: var(--news-light);
  color: var(--news-gold-dark);
}

/* ===== 响应式 ===== */
/* 窄屏默认已适配（移动端优先） */

/* 平板及以上：两栏布局 */
@media (min-width: 48rem) {
  .page-news .container {
    padding: 0 32px;
  }

  .page-news .news-layout {
    grid-template-columns: 1fr 320px;
    gap: 36px;
  }

  .page-news .news-main {
    gap: 48px;
  }

  .page-news .article-thumb {
    width: 140px;
    height: 105px;
  }

  .page-news .article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news .calendar-grid {
    padding: 10px;
    gap: 5px;
  }

  .page-news .cal-date {
    font-size: 0.875rem;
    padding: 8px 2px;
    min-height: 36px;
  }

  .page-news .cal-weekday {
    font-size: 0.75rem;
    padding: 6px 0;
  }

  .page-news .calendar-decoration {
    height: 100px;
  }
}

/* 桌面宽屏 */
@media (min-width: 64rem) {
  .page-news .news-layout {
    grid-template-columns: 1fr 360px;
    gap: 44px;
  }

  .page-news .article-thumb {
    width: 160px;
    height: 120px;
  }

  .page-news .article-title {
    font-size: 1.0625rem;
  }

  .page-news .timeline-content {
    padding: 20px 24px;
  }
}

/* 确保过滤时时间线dot和连线视觉完整 */
.page-news .timeline-item[style*="display: none"] + .timeline-item .timeline-dot {
  /* 无操作，保持结构 */
}

/* 打印样式 */
@media print {
  .page-news {
    background: #fff;
    color: #000;
  }
  .page-news .news-sidebar {
    break-inside: avoid;
  }
  .page-news .article-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .page-news .timeline-content {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

.page-news {
  --color-surface: transparent;
}
