/* ===== 页面专属：品牌动态 .page-news ===== */
.page-news {
  --news-accent-line: var(--color-deep-red, #8B0000);
  --news-filter-active: var(--color-electric-blue, #00D4FF);
  --news-progress-gold: var(--color-gold, #FFD700);
  --news-card-bg: var(--color-dark-panel, #1A1A1A);
  --news-text-muted: var(--color-light-gray, #B0B0B0);
  --news-radius: var(--radius-lg, 20px);
  --news-radius-sm: var(--radius, 12px);
  --news-pill: var(--radius-pill, 50px);
  --news-transition: var(--transition, 0.25s ease);

  background-color: var(--color-dark-bg, #0D0D0D);
  color: var(--color-white, #FFFFFF);
  font-family: var(--font-body, 'Noto Sans SC', system-ui, sans-serif);
  padding: 2rem 1rem 4rem;
  line-height: 1.7;
}
.page-news__container {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
}

/* ---------- 面包屑 ---------- */
.page-news .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  font-size: 0.85rem;
  font-family: var(--font-accent, 'Poppins', system-ui, sans-serif);
  margin-bottom: 1.5rem;
  color: var(--news-text-muted);
}
.page-news .breadcrumb__link {
  color: var(--news-text-muted);
  text-decoration: none;
  transition: color var(--news-transition);
}
.page-news .breadcrumb__link:hover,
.page-news .breadcrumb__link:focus-visible {
  color: var(--news-progress-gold);
  outline: none;
  text-decoration: underline;
}
.page-news .breadcrumb__separator {
  color: var(--news-progress-gold);
  font-size: 0.75rem;
}
.page-news .breadcrumb__current {
  color: var(--color-white, #FFFFFF);
  font-weight: 600;
}

/* ---------- 页面标题区 ---------- */
.page-news__intro {
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--news-accent-line);
  padding-left: 1.25rem;
}
.page-news__heading {
  font-family: var(--font-heading, 'Poppins', system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--color-white, #FFFFFF);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.page-news__subline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--news-text-muted);
  max-width: 680px;
  margin: 0;
}

/* ---------- 分类筛选 ---------- */
.news-filter {
  margin-bottom: 3rem;
}
.news-filter__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.news-filter__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.news-filter__label {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  font-family: var(--font-accent, 'Poppins', system-ui, sans-serif);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--news-pill);
  background-color: var(--news-card-bg);
  color: var(--news-text-muted);
  cursor: pointer;
  transition: background-color var(--news-transition), color var(--news-transition), box-shadow var(--news-transition);
  border: 1px solid transparent;
  user-select: none;
}
.news-filter__label:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white, #FFFFFF);
}
#filter-all:checked ~ .news-filter__labels label[for="filter-all"],
#filter-preview:checked ~ .news-filter__labels label[for="filter-preview"],
#filter-review:checked ~ .news-filter__labels label[for="filter-review"] {
  background-color: var(--news-filter-active);
  color: var(--color-dark-bg, #0D0D0D);
  box-shadow: 0 0 0 2px var(--news-filter-active);
  border-color: var(--news-filter-active);
}

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

/* 筛选逻辑 */
#filter-preview:checked ~ .news-grid .article-card[data-category="review"] {
  display: none;
}
#filter-review:checked ~ .news-grid .article-card[data-category="preview"] {
  display: none;
}

/* ---------- 文章卡片 ---------- */
.article-card {
  display: flex;
  flex-direction: column;
  background-color: var(--news-card-bg);
  border-radius: var(--news-radius);
  overflow: hidden;
  position: relative;
  transition: transform var(--news-transition), box-shadow var(--news-transition);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--news-accent-line);
  border-radius: 0 2px 2px 0;
  z-index: 1;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139, 0, 0, 0.25);
}
.article-card:focus-within {
  box-shadow: 0 0 0 2px var(--news-progress-gold);
}

/* 精选文章特殊样式 */
.article-card--featured {
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.06);
}
.article-card--featured::before {
  width: 6px;
  background: linear-gradient(180deg, var(--news-progress-gold), var(--news-accent-line));
}
.article-card--featured:hover {
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.12);
}

/* 文章图片 */
.article-card__image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
.article-card__image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  transition: transform var(--news-transition);
}
.article-card:hover .article-card__image {
  transform: scale(1.03);
}

/* 标签 */
.article-card__tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  font-size: 0.7rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--news-pill);
  background-color: var(--color-electric-blue, #00D4FF);
  color: var(--color-dark-bg, #0D0D0D);
  font-weight: 700;
  font-family: var(--font-accent, 'Poppins', system-ui, sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* 文章主体 */
.article-card__body {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* details / summary */
.article-card__details {
  display: block;
  flex: 1;
}
.article-card__summary {
  cursor: pointer;
  list-style: none;
  display: block;
  transition: color var(--news-transition);
}
.article-card__summary::-webkit-details-marker {
  display: none;
}
.article-card__summary::marker {
  display: none;
  content: '';
}
.article-card__summary:hover .article-card__title {
  color: var(--news-progress-gold);
}
.article-card__title {
  display: block;
  font-family: var(--font-heading, 'Poppins', system-ui, sans-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-white, #FFFFFF);
  margin-bottom: 0.35rem;
  transition: color var(--news-transition);
  line-height: 1.3;
}
.article-card--featured .article-card__title {
  font-size: 1.3rem;
}
.article-card__excerpt {
  font-size: 0.9rem;
  color: var(--news-text-muted);
  margin: 0 0 0.25rem;
  line-height: 1.6;
}
.article-card__detail {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: var(--news-text-muted);
  line-height: 1.7;
}
.article-card__detail p {
  margin: 0 0 0.5rem;
}
.article-card__detail p:last-child {
  margin-bottom: 0;
}
.article-card__details[open] .article-card__summary .article-card__title {
  color: var(--news-progress-gold);
}

/* 阅读进度条 */
.article-card__progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.article-card__progress-label {
  font-size: 0.7rem;
  font-family: var(--font-accent, 'Poppins', system-ui, sans-serif);
  font-weight: 600;
  color: var(--news-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.article-card__progress-bar {
  flex: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.article-card__progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--news-accent-line), var(--news-progress-gold));
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 0;
}
.article-card:hover .article-card__progress-fill {
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.article-card__progress-value {
  font-size: 0.7rem;
  font-family: var(--font-accent, 'Poppins', system-ui, sans-serif);
  font-weight: 600;
  color: var(--news-progress-gold);
  flex-shrink: 0;
  min-width: 2.4em;
  text-align: right;
}

/* 无图卡片增加左侧内边距补偿 */
.article-card:not(.article-card--featured) .article-card__body {
  padding-left: 1.5rem;
}

/* ---------- 特色功能 ---------- */
.news-features {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.news-features__heading {
  font-family: var(--font-heading, 'Poppins', system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--color-white, #FFFFFF);
  margin: 0 0 2rem;
  text-align: center;
  letter-spacing: -0.01em;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.feature-card {
  background-color: var(--news-card-bg);
  border-radius: var(--news-radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--news-transition), box-shadow var(--news-transition);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139, 0, 0, 0.2);
}
.feature-card--accent {
  border-color: rgba(255, 215, 0, 0.15);
  background: linear-gradient(145deg, var(--news-card-bg), rgba(139, 0, 0, 0.15));
}
.feature-card--accent:hover {
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.1);
}
.feature-card__icon-area {
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: var(--news-radius-sm);
  line-height: 0;
}
.feature-card__icon-area--center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}
.feature-card__icon-symbol {
  font-size: 2.8rem;
  color: var(--news-progress-gold);
  display: block;
}
.feature-card__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--news-radius-sm);
}
.feature-card__title {
  font-family: var(--font-heading, 'Poppins', system-ui, sans-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-white, #FFFFFF);
  margin: 0 0 0.5rem;
}
.feature-card__text {
  font-size: 0.9rem;
  color: var(--news-text-muted);
  line-height: 1.7;
  margin: 0 0 1rem;
  flex: 1;
}
.feature-card .btn {
  align-self: flex-start;
}
.feature-card__btn {
  margin-top: auto;
}

/* ---------- 按钮（共用） ---------- */
.page-news .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.5rem;
  font-family: var(--font-accent, 'Poppins', system-ui, sans-serif);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--news-pill);
  text-decoration: none;
  transition: background-color var(--news-transition), color var(--news-transition), box-shadow var(--news-transition);
  cursor: pointer;
  border: none;
  line-height: 1.4;
}
.page-news .btn--accent {
  background-color: var(--news-progress-gold);
  color: var(--color-dark-bg, #0D0D0D);
}
.page-news .btn--accent:hover,
.page-news .btn--accent:focus-visible {
  background-color: #e6c200;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
  outline: none;
}

/* ---------- 标签（共用） ---------- */
.page-news .tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: 0.65rem;
  font-family: var(--font-accent, 'Poppins', system-ui, sans-serif);
  font-weight: 700;
  border-radius: var(--news-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.page-news .tag--blue {
  background-color: var(--color-electric-blue, #00D4FF);
  color: var(--color-dark-bg, #0D0D0D);
}

/* ===== 响应式 >= 768px ===== */
@media (min-width: 768px) {
  .page-news {
    padding: 3rem 2rem 5rem;
  }
  .page-news__intro {
    margin-bottom: 3rem;
    padding-left: 2rem;
    border-left-width: 6px;
  }
  .news-filter__labels {
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
  .news-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
  .article-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 300px 1fr;
  }
  .article-card--featured .article-card__image-wrap {
    height: 100%;
    min-height: 200px;
  }
  .article-card--featured .article-card__image {
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto;
  }
  .article-card--featured::before {
    width: 6px;
  }
  .article-card__body {
    padding: 1.5rem 1.75rem 1.25rem;
  }
  .article-card:not(.article-card--featured) .article-card__body {
    padding-left: 2rem;
  }
  .article-card__title {
    font-size: 1.2rem;
  }
  .article-card--featured .article-card__title {
    font-size: 1.45rem;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.75rem;
  }
  .feature-card {
    padding: 2rem 1.75rem;
  }
  .news-features__heading {
    text-align: left;
  }
}

/* ===== 桌面端 >= 1024px 微调 ===== */
@media (min-width: 1024px) {
  .page-news {
    padding: 4rem 2.5rem 6rem;
  }
  .news-grid {
    gap: 2rem;
  }
  .article-card--featured {
    grid-template-columns: 360px 1fr;
  }
  .features-grid {
    gap: 2rem;
  }
}
