.page-news {
  --feed-offset: clamp(2rem, 5vw, 3.5rem);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}

/* ===== Hero ===== */
.page-news__hero {
  padding: clamp(1.5rem, 4vh, 3rem) 0 clamp(2rem, 5vh, 3.5rem);
  position: relative;
}

.page-news__breadcrumb {
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.page-news__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.page-news__hero-copy {
  position: relative;
  padding-left: 1rem;
}

.page-news__hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 72%);
}

.page-news__hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 1rem 0 1rem;
}

.page-news__hero-pipe {
  color: var(--color-primary);
}

.page-news__hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 54ch;
}

.page-news__hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.page-news__hero-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-news__hero-tag::after {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  transform: rotate(45deg);
}

.page-news__hero-tag:hover,
.page-news__hero-tag:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(183, 255, 0, 0.06);
}

.page-news__hero-tag:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== 精选 ===== */
.page-news__featured {
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  scroll-margin-top: calc(var(--header-total) + 1rem);
}

.page-news__featured-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.page-news__featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 72px;
  height: 4px;
  background: var(--color-primary);
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}

.page-news__featured-card:hover {
  border-color: var(--color-accent);
}

.page-news__featured-media {
  overflow: hidden;
  background: #070b14;
}

.page-news__featured-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-news__featured-body {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.page-news__featured-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-news__featured-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.page-news__featured-excerpt {
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin: 0;
}

.page-news__featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ===== Section head ===== */
.page-news__section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.page-news__section-desc {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  max-width: 36ch;
  text-align: right;
}

/* ===== 最新动态时间轴 ===== */
.page-news__latest {
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  scroll-margin-top: calc(var(--header-total) + 1rem);
}

.page-news__feed {
  position: relative;
}

.page-news__timeline {
  position: absolute;
  left: 1px;
  top: 0;
  bottom: 0;
  width: 2px;
  overflow: hidden;
  z-index: 0;
  opacity: 0.8;
}

.page-news__timeline svg {
  display: block;
  width: 2px;
  height: 100%;
}

.page-news__feed-list {
  position: relative;
  z-index: 1;
  padding-left: var(--feed-offset);
}

.page-news__feed-item {
  position: relative;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.page-news__feed-marker {
  position: absolute;
  left: calc(-1 * var(--feed-offset) - 5px);
  top: 1.75rem;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(183, 255, 0, 0.12), 0 0 14px rgba(183, 255, 0, 0.35);
}

.page-news__feed-card {
  padding: clamp(1rem, 2.2vw, 1.5rem);
}

.page-news__feed-card:hover {
  border-left: 2px solid var(--color-accent);
}

.page-news__feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.page-news__feed-cat {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.page-news__feed-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  background: rgba(138, 148, 166, 0.12);
  border: 1px solid var(--color-line);
  padding: 0.25rem 0.5rem;
}

.page-news__feed-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.page-news__feed-text {
  margin: 0 0 1rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-news__feed-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.page-news__feed-link::after {
  content: "→";
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.page-news__feed-link:hover::after,
.page-news__feed-link:focus-visible::after {
  transform: translateX(3px);
}

.page-news__feed-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== 专题报道 ===== */
.page-news__topics {
  padding: clamp(2rem, 5vh, 3.5rem) 0;
  border-block: 1px solid rgba(61, 74, 93, 0.5);
  scroll-margin-top: calc(var(--header-total) + 1rem);
  background:
    radial-gradient(120% 80% at 85% 20%, rgba(0, 229, 255, 0.05), transparent 55%),
    radial-gradient(100% 90% at 10% 90%, rgba(183, 255, 0, 0.04), transparent 60%);
}

.page-news__topics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
}

.page-news__topic-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.page-news__topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 56px;
  height: 4px;
  background: var(--color-primary);
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}

.page-news__topic-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.page-news__topic-card:focus-within {
  border-color: var(--color-accent);
}

.page-news__topic-cover {
  margin: 0;
}

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

.page-news__topic-body {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.page-news__topic-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.4;
  margin: 0;
}

.page-news__topic-body p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.page-news__topic-link {
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.page-news__topic-link:hover,
.page-news__topic-link:focus-visible {
  color: var(--color-primary);
}

.page-news__topic-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== 版本更新 ===== */
.page-news__versions {
  padding: clamp(2rem, 5vh, 3.5rem) 0;
  scroll-margin-top: calc(var(--header-total) + 1rem);
  background: linear-gradient(180deg, transparent 0%, rgba(20, 26, 40, 0.6) 100%);
}

.page-news__version-list {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.page-news__version-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  border-left: 4px solid var(--color-primary);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  margin: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-news__version-item:hover {
  border-left-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-news__version-version {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-line);
}

.page-news__version-version .data-display {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

.page-news__version-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  background: rgba(138, 148, 166, 0.12);
  border: 1px solid var(--color-line);
  padding: 0.2rem 0.5rem;
}

.page-news__version-content {
  min-width: 0;
}

.page-news__version-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.page-news__version-content > p {
  margin: 0 0 0.75rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-news__version-changelog {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.page-news__version-changelog li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.page-news__version-changelog li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

/* ===== CTA 横条 ===== */
.page-news__cta {
  padding: clamp(2rem, 5vh, 4rem) 0;
}

.page-news__cta-inner {
  position: relative;
  background: var(--color-primary);
  color: #0a0e1a;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  clip-path: polygon(0 0, calc(100% - 1.5rem) 0, 100% 1.5rem, 100% 100%, 1.5rem 100%, 0 calc(100% - 1.5rem));
}

.page-news__cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  max-width: 22ch;
}

.page-news__cta-desc {
  margin: 0 0 1.5rem;
  color: rgba(10, 14, 26, 0.78);
  font-size: 0.95rem;
  max-width: 50ch;
  line-height: 1.7;
}

.page-news__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-news__cta-actions .page-news__cta-btn {
  background: #0a0e1a;
  color: var(--color-primary);
  border-color: #0a0e1a;
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-news__cta-actions .page-news__cta-btn:hover {
  background: #1c2434;
  transform: translateY(-2px);
}

.page-news__cta-actions .btn--ghost {
  border-color: #0a0e1a;
  color: #0a0e1a;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-news__cta-actions .btn--ghost:hover {
  background: rgba(10, 14, 26, 0.12);
  color: #0a0e1a;
}

/* ===== 桌面端 ===== */
@media (min-width: 768px) {
  .page-news {
    --feed-offset: clamp(3rem, 6vw, 4.5rem);
  }

  .page-news__hero-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }

  .page-news__topics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .page-news__version-item {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  .page-news__version-version {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 0;
    border-right: 1px solid var(--color-line);
    padding-right: clamp(1.5rem, 4vw, 2.5rem);
  }
}

@media (min-width: 960px) {
  .page-news__featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .page-news__featured-media {
    min-height: 100%;
  }

  .page-news__featured-media img {
    height: 100%;
  }
}
