.page-news,
.page-news *,
.page-news *::before,
.page-news *::after {
  box-sizing: border-box;
}

.page-news {
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}

/* 面包屑 */
.page-news .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.64);
  margin-bottom: 24px;
}

.page-news .breadcrumbs__link {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-news .breadcrumbs__link:hover,
.page-news .breadcrumbs__link:focus-visible {
  color: var(--orange);
}

.page-news .breadcrumbs__sep {
  opacity: 0.5;
}

.page-news .breadcrumbs__current {
  color: var(--cyan);
}

/* 页头 */
.page-news .news-hero {
  position: relative;
  background: linear-gradient(125deg, var(--night) 0%, #12365c 55%, var(--night-deep) 100%);
  color: #fff;
  padding: calc(var(--header-h) + 36px) 0 60px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--violet) 45%, var(--cyan) 100%);
  z-index: 1;
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 28px;
  width: 170px;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(124, 92, 255, 0.2) 8px,
    rgba(124, 92, 255, 0.2) 10px
  );
  pointer-events: none;
}

.page-news .news-hero__grid {
  display: grid;
  gap: 32px;
  align-items: end;
}

.page-news .news-hero__eyebrow {
  font-family: var(--font-num);
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  color: var(--cyan);
  text-transform: uppercase;
  margin: 0 0 12px;
}

.page-news .news-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.06;
  margin: 0;
  letter-spacing: -0.01em;
}

.page-news .news-hero__line {
  display: block;
}

.page-news .news-hero__line--sub {
  color: var(--orange);
  font-size: 0.68em;
  font-weight: 700;
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.page-news .news-hero__intro {
  margin-top: 18px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.8;
}

.page-news .news-status {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  gap: 6px;
  position: relative;
}

.page-news .news-status::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), transparent 40%);
  pointer-events: none;
}

.page-news .news-status__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.page-news .news-status__label .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(15, 153, 96, 0.2);
}

.page-news .news-status__version {
  font-family: var(--font-num);
  font-size: 3rem;
  line-height: 1.1;
  color: var(--orange);
  position: relative;
  z-index: 1;
}

.page-news .news-status__meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
  position: relative;
  z-index: 1;
}

/* 主网格 */
.page-news .news-layout {
  display: grid;
  gap: 36px;
  padding: 48px 0 24px;
}

/* 章节标题通用 */
.page-news .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 24px;
  position: relative;
}

.page-news .section-head .section-eyebrow {
  font-family: var(--font-num);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--violet);
  align-self: center;
}

.page-news .section-head .section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.page-news .section-head .section-intro {
  width: 100%;
  color: var(--muted);
  font-size: 0.9rem;
  margin: -6px 0 0;
}

.page-news .section-head .orient-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-left: auto;
  border-left: 1px solid var(--line);
  padding-left: 6px;
  min-height: 42px;
}

/* 文章卡片 */
.page-news .news-post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.page-news .news-post--feature {
  margin-bottom: 18px;
}

.page-news .news-post__media {
  background: linear-gradient(135deg, var(--night), #12365c);
  border-bottom: 1px solid var(--line);
}

.page-news .news-post__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.page-news .news-post__body {
  padding: 22px 20px;
}

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

.page-news .news-post__ver {
  font-family: var(--font-num);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.page-news .news-post__title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 8px;
  overflow-wrap: break-word;
}

.page-news .news-post--feature .news-post__title {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

.page-news .news-post__summary {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

.page-news .news-post__expand {
  margin-top: 14px;
}

.page-news .news-post__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--violet);
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  min-height: 44px;
}

.page-news .news-post__toggle-icon {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease;
}

.page-news .accordion__item[data-open] .news-post__toggle-icon {
  transform: rotate(45deg);
}

.page-news .news-post__expand .accordion__panel {
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* 行式文章 */
.page-news .news-post--row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.page-news .news-post--row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 90, 31, 0.4);
}

.page-news .news-post__index {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(10, 26, 51, 0.2);
  transition: color 0.3s ease, transform 0.3s ease;
}

.page-news .news-post--row:hover .news-post__index,
.page-news .news-post--row.is-revealed .news-post__index {
  color: var(--orange);
  transform: scale(1.06);
}

.page-news .news-post__rowbody {
  min-width: 0;
}

.page-news .news-post--row .news-post__title {
  font-size: 1rem;
}

.page-news .news-post--row .news-post__summary {
  font-size: 0.88rem;
}

/* 标签 */
.page-news .news-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.page-news .tag--version {
  border-color: rgba(255, 90, 31, 0.5);
  color: #c73f0b;
  background: rgba(255, 90, 31, 0.06);
}

.page-news .tag--quality {
  border-color: rgba(124, 92, 255, 0.45);
  color: #5b3de0;
  background: rgba(124, 92, 255, 0.06);
}

.page-news .tag--moment {
  border-color: rgba(20, 200, 204, 0.55);
  color: #0b7f82;
  background: rgba(20, 200, 204, 0.07);
}

.page-news .tag--release {
  border-color: rgba(15, 153, 96, 0.45);
  color: #0c6b43;
  background: rgba(15, 153, 96, 0.07);
}

/* 编辑推荐 */
.page-news .news-picks {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 2px solid var(--night);
}

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

.page-news .news-pick {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-news .news-pick:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.page-news .news-pick__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.page-news .news-pick__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.page-news .news-pick__title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: break-word;
}

.page-news .news-pick__text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

.page-news .news-pick__link {
  margin-top: auto;
  color: var(--violet);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.page-news .news-pick__link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.page-news .news-pick__link:hover::after {
  transform: translateX(3px);
}

/* 侧栏 */
.page-news .news-aside {
  display: grid;
  gap: 20px;
  align-content: start;
}

.page-news .news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.page-news .news-card__head {
  margin-bottom: 14px;
}

.page-news .news-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

/* 主题归档 */
.page-news .news-archive__list {
  display: flex;
  flex-direction: column;
}

.page-news .news-archive__cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.page-news .news-archive__cat:hover,
.page-news .news-archive__cat:focus-visible {
  color: var(--orange);
  padding-left: 6px;
}

.page-news .news-archive__cat:last-child {
  border-bottom: none;
}

.page-news .news-archive__mark {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
}

.page-news .news-archive__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.page-news .news-archive__count {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.page-news .news-archive__img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 14px auto 0;
  border-radius: var(--radius);
}

/* 版本速览 */
.page-news .news-version__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.page-news .news-version__current {
  background: var(--night);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.page-news .news-version__current::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 90px;
  height: 90px;
  background: repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(255, 90, 31, 0.22) 6px, rgba(255, 90, 31, 0.22) 9px);
  border-radius: 50%;
}

.page-news .news-version__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.page-news .news-version__value {
  font-family: var(--font-num);
  font-size: 3rem;
  line-height: 1.1;
  display: block;
  color: var(--orange);
  margin: 4px 0 6px;
}

.page-news .news-version__note {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  position: relative;
  z-index: 1;
}

.page-news .news-version__more .accordion__toggle {
  color: var(--violet);
  font-weight: 700;
  font-size: 0.85rem;
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  min-height: 44px;
}

.page-news .news-version__list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.9;
}

/* 标签索引 */
.page-news .news-tags__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .news-tags__link {
  min-height: 36px;
}

.page-news .news-tags__link:hover,
.page-news .news-tags__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--violet);
  color: var(--violet);
}

/* 底部 CTA */
.page-news .news-footer-panel {
  margin: 20px 0 60px;
  padding: 30px 24px;
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--night);
  background-image: repeating-linear-gradient(-45deg, rgba(20, 200, 204, 0.08) 0 2px, transparent 2px 14px);
  color: #fff;
}

.page-news .news-footer-panel > * {
  position: relative;
  z-index: 1;
}

.page-news .news-footer-panel__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.page-news .news-footer-panel__intro {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.page-news .news-footer-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-news .news-footer-panel__actions .btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.page-news .news-footer-panel__actions .btn--ghost:hover,
.page-news .news-footer-panel__actions .btn--ghost:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
}

/* 平板 */
@media (min-width: 720px) {
  .page-news .news-picks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-news .news-footer-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 36px 32px;
  }
}

/* 桌面 */
@media (min-width: 960px) {
  .page-news .news-hero__grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 48px;
    align-items: end;
  }

  .page-news .news-hero__aside {
    display: flex;
    justify-content: flex-end;
  }

  .page-news .news-status {
    width: 100%;
  }

  .page-news .news-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr);
    gap: clamp(28px, 4vw, 56px);
    padding-top: 64px;
  }

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

  .page-news .news-archive__img {
    max-width: 100%;
  }
}

/* 减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  .page-news *,
  .page-news *::before,
  .page-news *::after {
    animation: none !important;
    transition: none !important;
  }

  .page-news .news-post__index {
    transform: none !important;
  }

  .page-news .news-post--row:hover {
    transform: none;
  }

  .page-news .news-pick:hover {
    transform: none;
  }
}
