/* ===== 文章中心 · page-news ===== */

.page-news {
  --news-gap: 20px;
  --news-radius: 8px;
  --news-line: var(--line-soft);
  --news-card-bg: rgba(36, 21, 51, .55);
  padding-top: var(--header-h);
  background: var(--c-ink);
  color: var(--text);
  overflow-x: hidden;
}

.page-news h1,
.page-news h2,
.page-news h3,
.page-news h4,
.page-news p,
.page-news dd {
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-news img {
  max-width: 100%;
  height: auto;
}

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

/* ---- 面包屑 ---- */
.page-news .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 2px;
  font-size: .875rem;
  color: var(--text-soft);
}

.page-news .breadcrumb a {
  color: var(--c-gold);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.page-news .breadcrumb a:hover,
.page-news .breadcrumb a:focus-visible {
  color: var(--c-electric);
}

.page-news .breadcrumb__sep {
  color: var(--c-gold-line);
}

/* ---- 首屏 ---- */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 0;
  background:
    radial-gradient(112% 84% at 14% -12%, rgba(200, 16, 46, .38), transparent 62%),
    radial-gradient(82% 72% at 92% 4%, rgba(232, 180, 90, .16), transparent 64%),
    linear-gradient(180deg, var(--c-purple) 0%, var(--c-ink) 100%);
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  right: -92px;
  top: 28px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(232, 180, 90, .2);
  box-shadow: inset 0 0 0 40px rgba(232, 180, 90, .05);
  pointer-events: none;
}

.page-news .news-hero__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--c-jade);
}

.page-news .news-hero__title {
  margin: 14px 0 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.05rem, 6.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--c-ivory);
}

.page-news .news-hero__title em {
  display: block;
  font-style: normal;
  color: var(--c-gold);
}

.page-news .news-hero__lead {
  margin: 22px 0 0;
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--text);
}

.page-news .news-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0 0;
  border: 1px solid var(--news-line);
  border-radius: var(--news-radius);
  overflow: hidden;
  background: var(--news-line);
}

.page-news .news-hero__stat {
  padding: 16px 18px;
  background: rgba(14, 11, 20, .74);
}

.page-news .news-hero__stat dt {
  margin-bottom: 6px;
  font-size: .8125rem;
  color: var(--text-soft);
}

.page-news .news-hero__stat dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--c-electric);
}

/* ---- 横向栏目带 ---- */
.page-news .cat-strip {
  display: flex;
  gap: 10px;
  margin-top: 34px;
  padding: 0 0 32px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page-news .cat-strip::-webkit-scrollbar {
  display: none;
}

.page-news .cat-strip__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 11, 20, .62);
  color: var(--text);
  font-size: .9375rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-news .cat-strip__item:hover,
.page-news .cat-strip__item:focus-visible {
  transform: translateY(-2px);
  border-color: var(--c-gold);
  background: rgba(200, 16, 46, .24);
  color: var(--c-ivory);
}

.page-news .cat-strip__idx {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-jade);
}

/* ---- 区块与标题 ---- */
.page-news .section {
  padding: 48px 0;
}

.page-news .section-head {
  margin-bottom: 26px;
}

.page-news .section-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--c-red);
}

.page-news .section-head__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--c-ivory);
}

.page-news .section-head__lead {
  margin: 12px 0 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-soft);
}

/* ---- 标签 ---- */
.page-news .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.page-news .tag--red {
  border: 1px solid rgba(200, 16, 46, .5);
  background: rgba(200, 16, 46, .22);
  color: var(--c-red-light);
}

.page-news .tag--jade {
  border: 1px solid rgba(47, 182, 168, .45);
  background: rgba(47, 182, 168, .16);
  color: var(--c-jade);
}

.page-news .news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.page-news .news-meta__time {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--c-sand);
}

.page-news .news-more {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 1px solid transparent;
  color: var(--c-gold);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-news .news-more::after {
  content: " →";
}

.page-news .news-more:hover,
.page-news .news-more:focus-visible {
  color: var(--c-electric);
  border-bottom-color: var(--c-electric);
}

/* ---- 本周更新 ---- */
.page-news .news-feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--news-radius);
  background: linear-gradient(160deg, rgba(74, 15, 28, .58), rgba(36, 21, 51, .82));
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.page-news .news-feature:hover,
.page-news .news-feature:focus-within {
  transform: translateY(-3px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-2);
}

.page-news .news-feature__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, var(--c-red-deep), var(--c-ink));
}

.page-news .news-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

.page-news .news-feature:hover .news-feature__media img {
  transform: scale(1.02);
}

.page-news .news-feature__body {
  padding: 22px 22px 26px;
}

.page-news .news-feature__title {
  margin: 12px 0 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.42;
  color: var(--c-ivory);
}

.page-news .news-feature__excerpt {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.76;
  color: var(--text-soft);
}

.page-news .news-latest__stack {
  display: flex;
  flex-direction: column;
  gap: var(--news-gap);
}

.page-news .news-brief {
  flex: 1;
  padding: 22px;
  border: 1px solid var(--news-line);
  border-radius: var(--news-radius);
  background: var(--news-card-bg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.page-news .news-brief:hover,
.page-news .news-brief:focus-within {
  transform: translateY(-3px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-2);
}

.page-news .news-brief__title {
  margin: 12px 0 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--c-ivory);
}

.page-news .news-brief__excerpt {
  margin: 10px 0 0;
  font-size: .9375rem;
  line-height: 1.72;
  color: var(--text-soft);
}

/* ---- 栏目卡片 ---- */
.page-news .cat-card {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--news-line);
  border-radius: var(--news-radius);
  background: rgba(14, 11, 20, .58);
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-news .cat-card:hover,
.page-news .cat-card:target {
  transform: translateY(-3px);
  border-color: var(--c-gold);
  background: rgba(36, 21, 51, .72);
  box-shadow: var(--shadow-2);
}

.page-news .cat-card__idx {
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-jade);
}

.page-news .cat-card__title {
  margin: 12px 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-ivory);
}

.page-news .cat-card__desc {
  margin: 10px 0 0;
  font-size: .9375rem;
  line-height: 1.74;
  color: var(--text-soft);
}

.page-news .cat-card__foot {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--news-line);
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--c-gold);
}

/* ---- 文章列表 ---- */
.page-news .news-list {
  display: flex;
  flex-direction: column;
}

.page-news .news-item {
  position: relative;
  padding: 22px 0 22px 18px;
  border-bottom: 1px solid var(--news-line);
}

.page-news .news-item:first-child {
  padding-top: 8px;
}

.page-news .news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 2px;
  border-radius: 2px;
  background: var(--c-gold-line);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-news .news-item:hover::before,
.page-news .news-item:focus-within::before {
  opacity: 1;
  background: var(--c-electric);
}

.page-news .news-item:hover {
  border-bottom-color: var(--c-gold);
}

.page-news .news-item__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.page-news .news-item__time {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--c-sand);
}

.page-news .news-item__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--c-ivory);
  transition: color var(--dur) var(--ease);
}

.page-news .news-item:hover .news-item__title {
  color: var(--c-gold);
}

.page-news .news-item__excerpt {
  margin: 8px 0 0;
  font-size: .9375rem;
  line-height: 1.74;
  color: var(--text-soft);
}

.page-news .news-item--thumb {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-news .news-item__thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--news-line);
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--c-red-deep), var(--c-ink));
}

.page-news .news-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

.page-news .news-item:hover .news-item__thumb img {
  transform: scale(1.02);
}

/* ---- 右侧栏 ---- */
.page-news .news-aside {
  display: flex;
  flex-direction: column;
  gap: var(--news-gap);
}

.page-news .season-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--news-radius);
  background: linear-gradient(172deg, rgba(74, 15, 28, .52), rgba(14, 11, 20, .88));
}

.page-news .season-panel__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--c-ivory);
}

.page-news .season-panel__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
}

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

.page-news .season-panel__lead {
  margin: 0 0 16px;
  font-size: .9375rem;
  line-height: 1.74;
  color: var(--text-soft);
}

.page-news .season-bar {
  display: block;
  width: 100%;
  height: 8px;
  margin-bottom: 20px;
}

.page-news .season-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}

.page-news .season-step {
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--c-gold-line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    padding-left var(--dur) var(--ease);
}

.page-news .season-step:hover,
.page-news .season-step:focus-within {
  padding-left: 18px;
  border-left-color: var(--c-electric);
  background: rgba(79, 227, 206, .07);
}

.page-news .season-step__idx {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-jade);
}

.page-news .season-step h4 {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-ivory);
}

.page-news .season-step p {
  margin: 6px 0 0;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.page-news .tag-panel {
  padding: 22px;
  border: 1px solid var(--news-line);
  border-radius: var(--news-radius);
  background: var(--news-card-bg);
}

.page-news .tag-panel__title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-ivory);
}

.page-news .tag-panel__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .tag-panel__list a {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: .8125rem;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.page-news .tag-panel__list a:hover,
.page-news .tag-panel__list a:focus-visible {
  border-color: var(--c-jade);
  background: rgba(47, 182, 168, .14);
  color: var(--c-electric);
}

/* ---- 更新节奏（浅底收尾） ---- */
.page-news .rhythm-band {
  background: var(--c-ivory);
  color: var(--text-dark);
}

.page-news .rhythm-band .section-head__title {
  color: var(--text-dark);
}

.page-news .rhythm-band .section-head__lead {
  color: #5A5264;
}

.page-news .rhythm-band .section-num {
  color: var(--c-red);
}

.page-news .rhythm-card {
  padding: 24px 22px;
  border: 1px solid rgba(26, 20, 32, .13);
  border-radius: var(--news-radius);
  background: rgba(255, 255, 255, .72);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.page-news .rhythm-card:hover,
.page-news .rhythm-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--c-red);
  box-shadow: 0 10px 24px rgba(26, 20, 32, .14);
}

.page-news .rhythm-card__num {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--c-red);
}

.page-news .rhythm-card h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-dark);
}

.page-news .rhythm-card p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.74;
  color: #5A5264;
}

.page-news .rhythm-foot {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(26, 20, 32, .13);
  font-size: .9375rem;
  line-height: 1.7;
  color: #5A5264;
}

.page-news .rhythm-foot a {
  color: var(--c-red);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 16, 46, .4);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-news .rhythm-foot a:hover,
.page-news .rhythm-foot a:focus-visible {
  color: var(--c-red-deep);
  border-bottom-color: var(--c-red-deep);
}

/* ---- 键盘焦点 ---- */
.page-news a:focus-visible {
  outline: 2px solid var(--c-electric);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- 响应式 ---- */
@media (max-width: 899px) {
  .page-news .bento > [class*="col-"] {
    grid-column: 1 / -1;
  }

  .page-news .news-aside {
    margin-top: 4px;
  }
}

@media (min-width: 640px) {
  .page-news .news-item--thumb {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
}

@media (min-width: 720px) {
  .page-news .news-hero {
    padding-top: 48px;
  }

  .page-news .news-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-news .cat-strip {
    margin-top: 42px;
    padding-bottom: 38px;
  }

  .page-news .section {
    padding: 68px 0;
  }

  .page-news .section-head {
    margin-bottom: 34px;
  }
}

@media (max-width: 639px) {
  .page-news {
    --news-gap: 14px;
  }

  .page-news .section {
    padding: 42px 0;
  }

  .page-news .news-feature__body,
  .page-news .news-brief,
  .page-news .cat-card,
  .page-news .season-panel,
  .page-news .tag-panel,
  .page-news .rhythm-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-news .news-hero__stat {
    padding: 14px 16px;
  }

  .page-news .news-hero__stat dd {
    font-size: 1.25rem;
  }

  .page-news .cat-strip__item {
    padding: 9px 15px;
    font-size: .875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news *,
  .page-news *::before,
  .page-news *::after {
    transition-duration: .01ms !important;
    transform: none !important;
  }
}
