.page-news {
  --news-rail-w: 200px;
  --news-line: rgba(201, 154, 61, 0.42);
  --news-line-soft: rgba(201, 154, 61, 0.26);
  background: var(--c-jade);
  color: var(--c-ink);
  overflow-x: clip;
}

.page-news .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  position: relative;
  padding: clamp(14px, 3vw, 32px) 0 clamp(32px, 5vw, 60px);
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
}

.page-news .news-hero__inner {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  align-items: center;
}

.page-news .news-hero__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.page-news .news-hero h1 {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-size: clamp(28px, 7vw, 56px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.page-news .news-hero h1 em {
  font-style: normal;
  color: var(--c-red);
  background: linear-gradient(180deg, transparent 64%, rgba(201, 154, 61, 0.5) 64%, rgba(201, 154, 61, 0.5) 90%, transparent 90%);
}

.page-news .news-hero__lead {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
  color: var(--c-char);
}

.page-news .news-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-news .news-hero__facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 14px 0 0;
  border-top: var(--hair);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-news .news-hero__facts li {
  display: grid;
  gap: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-slate);
}

.page-news .news-hero__num {
  font-size: clamp(19px, 3.4vw, 24px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-red-dark);
}

.page-news .news-hero__figure {
  position: relative;
  margin: 0;
  z-index: 1;
  min-width: 0;
}

.page-news .news-hero__figure::before {
  content: "";
  position: absolute;
  inset: -12px -6px 20px 20px;
  background: var(--c-red-dark);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 15% 100%);
  z-index: -1;
}

.page-news .news-hero__figure .figure__img {
  overflow: hidden;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--c-gold);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

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

.page-news .news-hero__figure .figure__cap {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-slate);
}

/* ---------- 主布局：左侧索引 + 右侧时间轴 ---------- */
.page-news .news-layout {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  padding-top: clamp(26px, 4vw, 48px);
  padding-bottom: clamp(40px, 6vw, 80px);
  align-items: start;
}

.page-news .news-rail {
  display: grid;
  gap: 14px;
  padding: 14px 14px 16px;
  background: var(--c-paper);
  border-top: 3px solid var(--c-red);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.page-news .news-rail__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-red-dark);
}

.page-news .filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.page-news .filter-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--c-char);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-news .filter-list a .mono {
  font-size: 11px;
  color: var(--c-gold);
}

.page-news .filter-list a:hover,
.page-news .filter-list a:focus-visible {
  background: rgba(201, 154, 61, 0.22);
  color: var(--c-ink);
  border-left-color: var(--c-gold);
}

.page-news .filter-list a[aria-current="true"] {
  background: var(--c-red);
  color: #fff;
  border-left-color: var(--c-gold-bright);
}

.page-news .filter-list a[aria-current="true"] .mono {
  color: var(--c-gold-bright);
}

.page-news .news-rail__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 154, 61, 0.5);
  font-size: 12px;
  line-height: 1.55;
  color: var(--c-slate);
}

/* ---------- 时间轴 ---------- */
.page-news .news-timeline {
  position: relative;
  display: grid;
  gap: clamp(34px, 5vw, 66px);
  min-width: 0;
}

.page-news .news-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--c-gold) 0%, rgba(201, 154, 61, 0.14) 100%);
}

.page-news .tl-section {
  position: relative;
  padding-left: clamp(26px, 4vw, 40px);
  scroll-margin-top: 92px;
  min-width: 0;
}

.page-news .tl-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--c-jade);
  border: 2px solid var(--c-gold);
  box-shadow: 0 0 0 4px rgba(201, 154, 61, 0.14);
}

.page-news .tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 10px;
}

.page-news .tl-no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-red);
}

.page-news .tl-head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(21px, 3.6vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-ink);
}

.page-news .tl-lead {
  margin: 0 0 18px;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-char);
}

.page-news .tl-foot {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: var(--hair);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--c-slate);
}

/* ---------- 回放条目 ---------- */
.page-news .replay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-news .replay-item {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(201, 154, 61, 0.34);
  border-left: 3px solid var(--c-red);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.page-news .replay-item:hover {
  transform: translateY(-2px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-soft);
}

.page-news .replay-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.page-news .replay-code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-ink);
}

.page-news .replay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-slate);
}

.page-news .replay-meta b {
  font-weight: 600;
  color: var(--c-char);
}

.page-news .replay-item__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding-top: 10px;
  border-top: 1px dashed rgba(201, 154, 61, 0.42);
}

.page-news .replay-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-red);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 16, 46, 0.34);
  transition: border-color 0.2s var(--ease);
}

.page-news .replay-link:hover,
.page-news .replay-link:focus-visible {
  border-bottom-color: var(--c-red);
}

/* ---------- 复制按钮 ---------- */
.page-news .copy-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  background: var(--c-paper);
  color: var(--c-char);
  border: 1px solid rgba(201, 154, 61, 0.5);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-news .copy-btn:hover,
.page-news .copy-btn:focus-visible {
  background: var(--c-gold);
  color: var(--c-ink);
  border-color: var(--c-gold);
}

.page-news .copy-btn[data-copied="true"] {
  background: var(--c-teal);
  color: #fff;
  border-color: var(--c-teal);
}

/* ---------- 图 ---------- */
.page-news .news-shot {
  margin: 0 0 20px;
  max-width: 560px;
}

.page-news .news-shot .figure__img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--news-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

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

.page-news .news-shot .figure__cap {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-slate);
}

/* ---------- 排查步骤 ---------- */
.page-news .steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-news .steps__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  padding: 14px 16px;
  background: var(--c-paper);
  border-left: 3px solid var(--c-gold);
}

.page-news .steps__no {
  grid-row: span 2;
  grid-column: 1;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-red-dark);
}

.page-news .steps__item h3 {
  grid-column: 2;
  margin: 0;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--c-ink);
}

.page-news .steps__item p {
  grid-column: 2;
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--c-char);
}

.page-news .mail-box {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 18px;
  background: var(--c-ink);
  color: var(--c-jade);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.page-news .mail-box__label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-gold);
}

.page-news .mail-box__addr {
  margin: 0;
  font-size: clamp(14px, 2.2vw, 18px);
  font-weight: 700;
  color: var(--c-jade);
  word-break: break-all;
}

.page-news .mail-box__note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(247, 243, 234, 0.72);
}

.page-news .mail-box .copy-btn {
  background: var(--c-gold);
  color: var(--c-ink);
  border-color: var(--c-gold);
}

.page-news .mail-box .copy-btn:hover,
.page-news .mail-box .copy-btn:focus-visible {
  background: var(--c-gold-bright);
  border-color: var(--c-gold-bright);
}

/* ---------- 更新日志 ---------- */
.page-news .changelog {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--hair);
}

.page-news .changelog__row {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-bottom: 1px solid var(--news-line-soft);
}

.page-news .changelog__when {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-red);
}

.page-news .changelog__body h3 {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--c-ink);
}

.page-news .changelog__body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--c-char);
}

/* ---------- 结算明细 ---------- */
.page-news .settle-grid {
  display: grid;
  gap: 12px;
}

.page-news .settle-card {
  padding: 14px 16px 16px;
  background: var(--c-paper);
  border: 1px solid rgba(201, 154, 61, 0.45);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.page-news .settle-card h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 154, 61, 0.5);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--c-ink);
}

.page-news .settle-fields {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.page-news .settle-fields li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-slate);
}

.page-news .settle-fields b {
  font-weight: 700;
  color: var(--c-ink);
}

.page-news .settle-card details {
  padding-top: 8px;
  border-top: 1px dashed rgba(201, 154, 61, 0.55);
}

.page-news .settle-card summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-red);
}

.page-news .settle-card summary:hover {
  color: var(--c-red-dark);
}

.page-news .settle-card details p {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--c-char);
}

/* ---------- 去向条 ---------- */
.page-news .news-next {
  padding: clamp(30px, 5vw, 52px) 0 clamp(40px, 6vw, 68px);
  background: var(--c-red-dark);
  color: var(--c-jade);
}

.page-news .news-next__inner {
  display: grid;
  gap: 18px;
}

.page-news .news-next h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 800;
  color: var(--c-jade);
}

.page-news .news-next__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .news-next__links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-jade);
  text-decoration: none;
  border: 1px solid rgba(201, 154, 61, 0.72);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-news .news-next__links a:hover,
.page-news .news-next__links a:focus-visible {
  background: var(--c-gold);
  color: var(--c-ink);
  border-color: var(--c-gold);
}

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .page-news .settle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-news .changelog__row {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 4px 18px;
    align-items: start;
  }

  .page-news .changelog__when {
    padding-top: 3px;
  }
}

@media (min-width: 780px) {
  .page-news .news-next__inner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 32px;
  }
}

@media (min-width: 920px) {
  .page-news .news-hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 4vw, 56px);
  }

  .page-news .news-hero__figure .figure__img {
    aspect-ratio: 3 / 2;
  }
}

@media (min-width: 960px) {
  .page-news .news-layout {
    grid-template-columns: var(--news-rail-w) minmax(0, 1fr);
    gap: clamp(28px, 3.4vw, 48px);
  }

  .page-news .news-rail {
    position: sticky;
    top: 24px;
  }

  .page-news .filter-list {
    display: grid;
    gap: 2px;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .replay-item,
  .page-news .copy-btn,
  .page-news .filter-list a,
  .page-news .replay-link,
  .page-news .news-next__links a {
    transition: none;
  }

  .page-news .replay-item:hover {
    transform: none;
  }
}
