/* ---------- 页面基础 ---------- */
.page-news {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}

.page-news img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

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

/* ---------- 顶部标题区 ---------- */
.page-news .news-mast {
  position: relative;
  padding: 44px 0 40px;
  border-bottom: 1px solid rgba(10, 30, 60, 0.2);
}

.page-news .news-mast::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--acid) 0 36%, var(--ink) 36% 100%);
}

.page-news .breadcrumb {
  font-family: var(--font-data);
  font-size: 13px;
  margin-bottom: 34px;
}

.page-news .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-news .breadcrumb li {
  display: flex;
  gap: 10px;
}

.page-news .breadcrumb li + li::before {
  content: "/";
  color: var(--gray);
}

.page-news .breadcrumb a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.page-news .breadcrumb a:hover {
  border-bottom-color: var(--acid);
}

.page-news .news-head {
  position: relative;
  padding-left: 18px;
  max-width: 1020px;
}

.page-news .news-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 14px;
  width: 6px;
  background: var(--acid);
}

.page-news .news-kicker {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--acid);
  padding: 4px 12px;
  margin-bottom: 16px;
}

.page-news .news-head h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 960px;
}

.page-news .news-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray);
  max-width: 68ch;
  margin: 0;
}

/* ---------- 目录导航与文章流 ---------- */
.page-news .catalog-zone {
  padding: 44px 0 8px;
}

.page-news .catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}

@media (min-width: 900px) {
  .page-news .catalog-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 64px;
  }
}

.page-news .cat-sidebar {
  align-self: start;
}

@media (min-width: 900px) {
  .page-news .cat-sidebar {
    position: sticky;
    top: 24px;
  }
}

.page-news .cat-visual {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(10, 30, 60, 0.35);
  margin-bottom: 20px;
}

.page-news .cat-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .cat-index {
  padding: 0 0 4px;
}

.page-news .cat-index-title {
  font-family: var(--font-head);
  font-size: 18px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-news .cat-index-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--acid);
}

.page-news .cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(10, 30, 60, 0.22);
}

.page-news .cat-list-item {
  border-bottom: 1px solid rgba(10, 30, 60, 0.22);
}

.page-news .cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  padding: 11px 8px;
  transition: background var(--ease-fast), color var(--ease-fast);
}

.page-news .cat-link .cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  flex: none;
}

.page-news .cat-link:hover {
  background: var(--acid);
  color: var(--ink);
}

.page-news .cat-link:hover .cat-dot {
  background: var(--ink);
  border-color: var(--ink);
}

.page-news .side-note {
  margin-top: 18px;
}

/* ---------- 文章目录行 ---------- */
.page-news .news-stream {
  min-width: 0;
}

.page-news .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
  gap: 16px;
}

.page-news .section-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
  margin: 0;
}

.page-news .annotate-v {
  writing-mode: vertical-rl;
  font-family: var(--font-comment);
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.1em;
}

.page-news .news-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 4px 20px;
  border-top: 1px solid rgba(10, 30, 60, 0.16);
  transition: background var(--ease-fast), padding-left var(--ease-fast);
}

.page-news .news-row:last-child {
  border-bottom: 1px solid rgba(10, 30, 60, 0.16);
}

.page-news .row-idx {
  font-family: var(--font-data);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--acid);
  padding-left: 8px;
  height: fit-content;
  margin-top: 3px;
}

.page-news .row-body {
  min-width: 0;
}

.page-news .news-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.45;
}

.page-news .news-title a {
  color: var(--ink);
}

.page-news .news-title a:hover {
  background: linear-gradient(transparent 76%, var(--mist) 0);
}

.page-news .news-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray);
  margin: 6px 0 0;
  max-width: 70ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news .news-row:hover .news-desc,
.page-news .news-row:focus-within .news-desc {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.page-news .news-row:hover,
.page-news .news-row:focus-within {
  background: var(--mist);
}

.page-news .row-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

@media (min-width: 768px) {
  .page-news .news-row {
    grid-template-columns: 52px minmax(0, 1fr) 108px;
    column-gap: 18px;
    align-items: center;
    padding-left: 8px;
    padding-right: 8px;
  }

  .page-news .news-row:hover {
    padding-left: 14px;
  }

  .page-news .row-meta {
    grid-column: 3;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 0;
  }
}

/* ---------- 标签 ---------- */
.page-news .tag {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  line-height: 1.5;
}

.page-news .tag-acid {
  background: var(--acid);
  color: var(--ink);
}

.page-news .tag-gold {
  background: var(--gold);
  color: var(--ink);
}

.page-news .tag-dark {
  background: var(--ink);
  color: var(--paper);
}

.page-news .tag-mist {
  background: var(--mist);
  color: var(--ink);
  border: 1px solid rgba(10, 30, 60, 0.24);
}

/* ---------- 分类索引区块 ---------- */
.page-news .cat-digest {
  padding: 24px 0 56px;
}

.page-news .digest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 22px;
}

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

.page-news .cat-branch {
  border: 1px solid rgba(10, 30, 60, 0.24);
  padding: 22px 20px;
  background: var(--paper);
  position: relative;
  transition: border-color var(--ease-fast), transform var(--ease-fast);
}

.page-news .cat-branch:hover {
  border-color: var(--acid);
}

.page-news .branch-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 20px;
  margin: 0 0 8px;
}

.page-news .branch-num {
  font-family: var(--font-data);
  font-size: 18px;
  color: var(--acid);
  border: 1px solid var(--acid);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.page-news .branch-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  margin: 0 0 16px;
}

.page-news .branch-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-news .branch-list li {
  padding: 7px 0;
  border-top: 1px solid rgba(10, 30, 60, 0.14);
}

.page-news .branch-list a {
  color: var(--ink);
  font-size: 14px;
}

.page-news .branch-list a:hover {
  background: linear-gradient(transparent 76%, var(--mist) 0);
}

.page-news .cat-branch .btn {
  margin-top: 16px;
}

/* ---------- 老用户必读深色卡片 ---------- */
.page-news .cat-branch.cat-legacy {
  grid-column: 1 / -1;
  background: var(--inkblue);
  color: var(--paper);
}

.page-news .cat-legacy .branch-title,
.page-news .cat-legacy .branch-desc,
.page-news .cat-legacy .branch-list a,
.page-news .cat-legacy .btn-ghost {
  color: var(--paper);
}

.page-news .cat-legacy .branch-num {
  color: var(--acid);
  border-color: var(--acid);
}

.page-news .cat-legacy .branch-desc {
  color: rgba(247, 243, 232, 0.74);
}

.page-news .cat-legacy .branch-list li {
  border-top-color: rgba(247, 243, 232, 0.18);
}

.page-news .cat-legacy .branch-list a:hover {
  background: rgba(57, 255, 20, 0.16);
}

.page-news .cat-legacy .btn-ghost {
  border-color: var(--paper);
}

.page-news .cat-legacy .btn-ghost:hover {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}

.page-news .legacy-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-news .legacy-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--paper);
  max-width: 260px;
}

.page-news .legacy-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 700px) {
  .page-news .legacy-inner {
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: center;
    gap: 30px;
  }

  .page-news .legacy-cover {
    max-width: none;
  }
}

/* ---------- 专题文章 ---------- */
.page-news .feature-zone {
  padding: 60px 0;
  background: linear-gradient(100deg, var(--beige) 0%, var(--paper) 46%, var(--paper) 100%);
  border-top: 1px solid rgba(10, 30, 60, 0.18);
  border-bottom: 1px solid rgba(10, 30, 60, 0.18);
}

.page-news .feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .page-news .feature-grid {
    grid-template-columns: minmax(0, 1fr) 44%;
    gap: 56px;
  }
}

.page-news .feature-copy {
  min-width: 0;
}

.page-news .feature-copy .section-head {
  margin-bottom: 14px;
}

.page-news .feature-copy .section-title {
  font-size: clamp(26px, 4vw, 44px);
  max-width: 14em;
}

.page-news .feature-lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 60ch;
}

.page-news .feature-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray);
  margin: 0 0 20px;
  max-width: 62ch;
}

.page-news .feature-points {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  margin: 0 0 28px;
  padding: 18px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.page-news .feature-points li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-news .feature-points .stat-value {
  font-family: var(--font-data);
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
}

.page-news .feature-points .stat-label {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--ink);
}

.page-news .feature-visual {
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border: 1px solid rgba(10, 30, 60, 0.3);
  background: var(--paper);
}

.page-news .feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 更新日志 ---------- */
.page-news .changelog-zone {
  padding: 60px 0 68px;
  background: var(--inkblue);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.page-news .changelog-zone::before {
  content: "";
  position: absolute;
  top: 20px;
  right: -60px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(57, 255, 20, 0.3);
  transform: rotate(32deg);
  pointer-events: none;
}

.page-news .changelog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .page-news .changelog-grid {
    grid-template-columns: minmax(0, 1fr) 42%;
    align-items: center;
    gap: 56px;
  }
}

.page-news .changelog-copy .section-title {
  color: var(--paper);
}

.page-news .changelog-copy > p {
  color: rgba(247, 243, 232, 0.78);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 24px;
  max-width: 60ch;
}

.page-news .log-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0 0 0 22px;
  border-left: 2px dashed var(--acid);
  position: relative;
}

.page-news .log-item {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  column-gap: 14px;
  padding: 12px 0;
}

.page-news .log-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--inkblue), 0 0 0 5px var(--acid);
}

.page-news .log-version {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--acid);
  border: 1px solid rgba(57, 255, 20, 0.4);
  padding: 4px 8px;
  text-align: center;
  height: fit-content;
}

.page-news .log-content h3 {
  font-family: var(--font-head);
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--paper);
}

.page-news .log-content p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(247, 243, 232, 0.72);
  margin: 0;
}

.page-news .log-tag {
  grid-column: 2;
  width: fit-content;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--paper);
  border: 1px solid rgba(247, 243, 232, 0.42);
  padding: 2px 10px;
  margin-top: 8px;
}

.page-news .log-tag.tag-acid {
  color: var(--ink);
  border-color: var(--acid);
}

.page-news .log-milestone {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 243, 232, 0.22);
  font-family: var(--font-data);
  font-size: 13px;
}

.page-news .log-milestone span {
  padding: 6px 12px;
  background: rgba(57, 255, 20, 0.12);
  border-left: 3px solid var(--gold);
  color: var(--paper);
}

.page-news .changelog-visual {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid rgba(57, 255, 20, 0.35);
}

.page-news .changelog-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 订阅与联系 ---------- */
.page-news .sub-zone {
  padding: 56px 0 72px;
  background: var(--beige);
}

.page-news .sub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 800px) {
  .page-news .sub-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
    align-items: start;
    gap: 44px;
  }
}

.page-news .sub-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  margin: 0 0 10px;
  max-width: 56ch;
}

.page-news .sub-copy > p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 12px;
}

.page-news .sub-contact-block {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 20px;
  margin: 20px 0;
}

.page-news .contact-label {
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-data);
}

.page-news .contact-label + .contact-label {
  border-top: 1px solid rgba(10, 30, 60, 0.1);
  padding-top: 6px;
  margin-top: 6px;
}

.page-news .sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-news .sub-details {
  border: 4px solid var(--ink);
  background: var(--paper);
  padding: 0;
}

.page-news .sub-details summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 16px;
  list-style: none;
  padding: 16px 20px;
  background: var(--ink);
  color: var(--acid);
  transition: background var(--ease-fast), color var(--ease-fast);
}

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

.page-news .sub-details summary:hover {
  background: var(--acid);
  color: var(--ink);
}

.page-news .sub-details-body {
  padding: 18px 20px 22px;
}

.page-news .sub-details-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
  margin: 0 0 10px;
}

/* ---------- 按钮 ---------- */
.page-news .btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  text-decoration: none;
  transition: background var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast);
}

.page-news .btn-primary {
  background: var(--acid);
  color: var(--ink);
}

.page-news .btn-primary:hover {
  background: var(--ink);
  color: var(--paper);
}

.page-news .btn-ghost {
  background: transparent;
  color: var(--ink);
}

.page-news .btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
