.page-news .col-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 5vw, 3rem) 0 clamp(2rem, 6vw, 4rem);
  color: var(--paper);
  background:
    radial-gradient(110% 80% at 88% 6%, rgba(15, 58, 74, 0.9), transparent 62%),
    linear-gradient(158deg, #0B2B24 0%, #14473B 58%, #0B2B24 100%);
  border-bottom: 1px solid rgba(217, 179, 106, 0.28);
}

.page-news .col-hero::before {
  content: "";
  position: absolute;
  inset: -18% -12% auto auto;
  width: min(520px, 72vw);
  aspect-ratio: 1 / 1;
  background: repeating-linear-gradient(115deg, rgba(217, 179, 106, 0.14) 0 2px, transparent 2px 20px);
  transform: rotate(12deg);
  pointer-events: none;
}

.page-news .col-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(60%, 620px);
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

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

.page-news .breadcrumb {
  margin-bottom: clamp(1rem, 3vw, 1.8rem);
}

.page-news .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-news .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 0.4rem;
  color: rgba(183, 201, 194, 0.55);
}

.page-news .breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-news .breadcrumb-link:hover,
.page-news .breadcrumb-link:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.page-news .hero-grid {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  align-items: end;
}

.page-news .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.8rem;
}

.page-news h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--paper);
}

.page-news .hl {
  color: var(--gold);
}

.page-news .hero-copy .lead {
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  line-height: 1.8;
  color: rgba(244, 238, 223, 0.82);
  max-width: 56ch;
  margin: 0 0 1.4rem;
}

.page-news .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-news .hero-actions .btn {
  text-decoration: none;
}

.page-news .hero-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(217, 179, 106, 0.35);
  background: var(--screen);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9);
}

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

.page-news .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.2rem;
  margin: clamp(1.6rem, 4vw, 2.6rem) 0 0;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(217, 179, 106, 0.35);
}

.page-news .hero-stats .stat dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.page-news .hero-stats .stat dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 1.85rem);
  line-height: 1.1;
  color: var(--gold-soft);
}

.page-news .col-section {
  padding: clamp(2.2rem, 6vw, 4.4rem) 0;
  scroll-margin-top: 96px;
}

.page-news .sec-head {
  max-width: 64ch;
  margin-bottom: clamp(1.3rem, 3vw, 2.2rem);
}

.page-news h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
  color: var(--paper);
}

.page-news .sec-head .lead {
  margin: 0;
  color: rgba(244, 238, 223, 0.76);
  font-size: 1rem;
  line-height: 1.78;
}

/* 最近维护摘要 */
.page-news .recent {
  background: linear-gradient(180deg, #0B2B24 0%, #103B31 100%);
}

.page-news .recent-grid {
  display: grid;
  gap: 1rem;
}

.page-news .recent-card {
  position: relative;
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(20, 71, 59, 0.85);
  border: 1px solid rgba(31, 101, 83, 0.95);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-news .recent-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 179, 106, 0.7);
}

.page-news .recent-card::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0;
  width: 42px;
  height: 3px;
  background: var(--coral);
  border-radius: 0 0 3px 3px;
}

.page-news .r-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  margin: 0.3rem 0 0.6rem;
}

.page-news .recent-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.32;
  margin: 0 0 0.55rem;
  color: var(--paper);
}

.page-news .recent-card p:last-child {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.72;
  color: rgba(244, 238, 223, 0.76);
}

/* 条目目录 */
.page-news .archive {
  background:
    linear-gradient(180deg, rgba(11, 43, 36, 1) 0%, rgba(9, 36, 30, 1) 100%);
  border-top: 1px solid rgba(31, 101, 83, 0.5);
}

.page-news .news-body {
  display: grid;
  gap: 1.4rem;
}

.page-news .news-rail {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.page-news .rail-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(31, 101, 83, 0.9);
  background: var(--screen);
  max-width: 220px;
}

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

.page-news .rail-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 101, 83, 0.9);
  background: rgba(20, 71, 59, 0.6);
  padding: 0.95rem 1rem 1.05rem;
}

.page-news .rail-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-news .filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

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

.page-news .filter-group label {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(31, 101, 83, 1);
  background: rgba(11, 43, 36, 0.6);
  color: var(--paper);
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-news .filter-group label:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.page-news .filter-input:checked + label {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

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

.page-news .rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.page-news .rail-nav a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.7rem;
  border-left: 2px solid rgba(31, 101, 83, 1);
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-news .rail-nav a:hover,
.page-news .rail-nav a:focus-visible,
.page-news .rail-nav a[aria-current="location"] {
  color: var(--gold-soft);
  border-left-color: var(--gold);
}

.page-news .news-list {
  border-top: 1px solid rgba(31, 101, 83, 0.9);
}

.page-news .entry {
  position: relative;
  padding: 1.05rem 0 1.15rem 0.95rem;
  border-bottom: 1px solid rgba(31, 101, 83, 0.5);
  border-left: 3px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.page-news .entry:hover,
.page-news .entry:focus-within {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(217, 179, 106, 0.09), rgba(217, 179, 106, 0) 65%);
}

.page-news .entry-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
}

.page-news .entry-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.page-news .entry-cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.14rem 0.55rem;
  border-radius: var(--radius-pill);
  color: var(--mist);
  background: rgba(143, 182, 201, 0.14);
  border: 1px solid rgba(143, 182, 201, 0.4);
}

.page-news .cat-board .entry-cat {
  color: var(--gold-soft);
  background: rgba(217, 179, 106, 0.13);
  border-color: rgba(217, 179, 106, 0.45);
}

.page-news .cat-ios .entry-cat {
  color: var(--coral);
  background: rgba(255, 107, 74, 0.12);
  border-color: rgba(255, 107, 74, 0.5);
}

.page-news .entry-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-news .entry-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.12rem, 3vw, 1.45rem);
  line-height: 1.3;
  margin: 0.5rem 0 0.4rem;
  color: var(--paper);
}

.page-news .entry-summary {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(244, 238, 223, 0.76);
  max-width: 68ch;
}

.page-news .entry-details > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--gold-soft);
  cursor: pointer;
  list-style: none;
}

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

.page-news .entry-details > summary::before {
  content: "+";
  display: inline-block;
  width: 1rem;
  text-align: center;
  color: var(--coral);
}

.page-news .entry-details[open] > summary::before {
  content: "−";
}

.page-news .entry-details > summary:hover {
  color: var(--gold);
}

.page-news .entry-details ul {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(244, 238, 223, 0.62);
}

/* 前端分类筛选：随选中状态切换显示 */
.page-news .news-rail:has(#f-board:checked) ~ .news-list .entry:not(.cat-board),
.page-news .news-rail:has(#f-rule:checked) ~ .news-list .entry:not(.cat-rule),
.page-news .news-rail:has(#f-ios:checked) ~ .news-list .entry:not(.cat-ios),
.page-news .news-rail:has(#f-maint:checked) ~ .news-list .entry:not(.cat-maint) {
  display: none;
}

/* 更新节奏 */
.page-news .rhythm {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(80% 70% at 12% 0%, rgba(15, 58, 74, 0.95), transparent 65%),
    linear-gradient(150deg, #0F3A4A 0%, #0B2B24 72%);
  border-top: 1px solid rgba(143, 182, 201, 0.28);
  border-bottom: 1px solid rgba(31, 101, 83, 0.7);
}

.page-news .rhythm-grid {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  align-items: center;
}

.page-news .rhythm-copy p {
  color: rgba(244, 238, 223, 0.78);
  line-height: 1.78;
  margin: 0 0 1.3rem;
  max-width: 52ch;
}

.page-news .rhythm-weeks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.page-news .rhythm-week {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(217, 179, 106, 0.42);
  background: rgba(11, 43, 36, 0.55);
}

.page-news .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.page-news .dot-gold {
  background: var(--gold);
}

.page-news .dot-mist {
  background: var(--mist);
}

.page-news .rhythm-week .wk {
  flex-basis: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.25rem;
}

.page-news .rhythm-legend {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(244, 238, 223, 0.72);
}

.page-news .rhythm-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-news .rhythm-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(143, 182, 201, 0.35);
  background: rgba(11, 43, 36, 0.8);
}

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

.page-news .rhythm-figure figcaption {
  padding: 0.65rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-top: 1px solid rgba(143, 182, 201, 0.25);
}

/* 回访与收藏 */
.page-news .revisit {
  position: relative;
  padding-bottom: clamp(2.4rem, 6vw, 4.6rem);
  background: linear-gradient(180deg, #0B2B24 0%, #14473B 100%);
}

.page-news .revisit-band {
  position: relative;
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
  overflow: hidden;
  height: clamp(88px, 16vw, 150px);
}

.page-news .revisit-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.page-news .revisit-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 43, 36, 0.9), rgba(11, 43, 36, 0) 55%, rgba(11, 43, 36, 0.9));
}

.page-news .revisit-grid {
  display: grid;
  gap: clamp(1.3rem, 4vw, 2.4rem);
}

.page-news .revisit-copy p {
  color: rgba(244, 238, 223, 0.78);
  line-height: 1.8;
  margin: 0 0 1.4rem;
  max-width: 56ch;
}

.page-news .revisit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.page-news .revisit-actions .btn {
  text-decoration: none;
}

.page-news .fav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 107, 74, 0.75);
  background: rgba(11, 43, 36, 0.6);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-news .fav-toggle:hover {
  border-color: var(--coral);
  color: var(--gold-soft);
}

.page-news .fav-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-news .fav-on {
  display: none;
}

.page-news .fav-toggle:has(.fav-input:checked) {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
}

.page-news .fav-toggle:has(.fav-input:checked) .fav-on {
  display: inline-flex;
}

.page-news .fav-toggle:has(.fav-input:checked) .fav-off {
  display: none;
}

.page-news .fav-toggle:has(.fav-input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.page-news .revisit-links {
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 101, 83, 0.95);
  background: rgba(11, 43, 36, 0.55);
  padding: 1.05rem 1.1rem 1.15rem;
}

.page-news .revisit-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.page-news .revisit-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(31, 101, 83, 0.45);
  color: var(--paper);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-news .revisit-links li:last-child a {
  border-bottom: none;
}

.page-news .revisit-links a span {
  color: var(--gold);
  font-family: var(--font-mono);
}

.page-news .revisit-links a:hover,
.page-news .revisit-links a:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

@media (min-width: 720px) {
  .page-news .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .page-news .recent-card:nth-child(2) {
    margin-top: 20px;
  }

  .page-news .recent-card:nth-child(3) {
    margin-top: 8px;
  }

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

  .page-news .rhythm-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-news .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .page-news .rhythm-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-news .revisit-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .page-news .news-body {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: clamp(1.6rem, 3vw, 2.6rem);
    align-items: start;
  }

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

  .page-news .rail-figure {
    max-width: none;
  }

  .page-news .entry {
    padding: 1.3rem 0 1.4rem 1.15rem;
  }
}
