/* ============================================================
   内容笔记 /notes/ —— 页面专属样式（作用域 .page-news）
   ============================================================ */

.page-news {
  --news-line: 1px solid var(--paper-line);
  --news-line-ink: 1px solid rgba(243, 238, 228, 0.16);
  --news-bar-w: 3px;
}

/* ---------- 面包屑 ---------- */
.page-news .breadcrumb {
  padding-top: 20px;
  padding-bottom: 18px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--steel);
}
.page-news .breadcrumb a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.page-news .breadcrumb a:hover {
  color: var(--signal);
}

/* ---------- 报头 ---------- */
.news-masthead {
  position: relative;
  padding: 6px 0 clamp(38px, 6vw, 72px);
  border-bottom: var(--news-line);
  overflow: hidden;
}
.news-masthead > .wrap {
  position: relative;
  z-index: 1;
}
.news-masthead::before {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  background-image:
    repeating-linear-gradient(90deg, var(--paper-line) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, var(--paper-line) 0 1px, transparent 1px 32px);
  pointer-events: none;
}
.news-masthead::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 96px;
  height: 6px;
  background: var(--amber);
}

.news-masthead__eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--brand);
  text-transform: uppercase;
}

.news-masthead__title {
  margin: 0;
  max-width: 860px;
  font-size: clamp(30px, 8vw, 74px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.news-masthead__lede {
  margin: 24px 0 0;
  max-width: 680px;
  font-size: clamp(15.5px, 1.9vw, 18.5px);
  font-weight: 400;
  line-height: 1.78;
  color: var(--ink-2);
}

/* ---------- 章节通用间距 ---------- */
.page-news .section {
  padding-block: clamp(44px, 6.5vw, 88px);
}

/* ---------- 01 本季要点 ---------- */
.hl-grid {
  display: grid;
  gap: 34px;
  margin-top: 34px;
}
@media (min-width: 900px) {
  .hl-grid {
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    align-items: start;
  }
}

.hl-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hl-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  column-gap: 16px;
  row-gap: 6px;
  padding: 24px 0;
  border-top: var(--news-line);
}
.hl-item:last-child {
  border-bottom: var(--news-line);
}
.hl-item__num {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.hl-item__title {
  margin: 0;
  font-size: clamp(17px, 2.4vw, 21px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hl-item__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--steel);
}

.hl-media {
  margin: 0;
}
.hl-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 02 栏目索引 ---------- */
.col-index {
  display: grid;
  gap: 1px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
@media (min-width: 720px) {
  .col-index {
    grid-template-columns: repeat(4, 1fr);
  }
}

.page-news .section--ink .col-index {
  background: rgba(243, 238, 228, 0.16);
  border-color: rgba(243, 238, 228, 0.16);
}

.col-index__item {
  position: relative;
  display: block;
  padding: 24px 20px 26px;
  background: var(--paper-card);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.page-news .section--ink .col-index__item {
  background: rgba(243, 238, 228, 0.04);
  color: var(--paper);
}
.col-index__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand);
  transition: width 0.2s var(--ease);
}
.col-index__item--model::before { background: var(--brand); }
.col-index__item--network::before { background: var(--signal); }
.col-index__item--training::before { background: var(--amber); }
.col-index__item--tips::before { background: var(--ok); }

.col-index__item:hover,
.col-index__item:focus-visible {
  background: var(--ink);
  color: var(--paper);
}
.page-news .section--ink .col-index__item:hover,
.page-news .section--ink .col-index__item:focus-visible {
  background: var(--brand);
}
.col-index__item:hover::before,
.col-index__item:focus-visible::before {
  width: 6px;
}

.col-index__name {
  display: block;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.col-index__desc {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--steel);
  transition: color 0.2s var(--ease);
}
.col-index__item:hover .col-index__desc,
.col-index__item:focus-visible .col-index__desc {
  color: var(--blue-soft);
}
.page-news .section--ink .col-index__desc {
  color: var(--steel-soft);
}
.col-index__count {
  display: block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s var(--ease);
}
.col-index__item:hover .col-index__count,
.col-index__item:focus-visible .col-index__count {
  color: var(--amber-soft);
}
.page-news .section--ink .col-index__count {
  color: var(--blue-soft);
}

/* ---------- 笔记条目列表 ---------- */
.notes {
  margin-top: 30px;
}

.note-row {
  display: grid;
  grid-template-columns: 6px 1fr;
  column-gap: 14px;
  row-gap: 6px;
  padding: 18px 0;
  border-bottom: var(--news-line);
  min-width: 0;
}
.page-news .section--ink .note-row {
  border-bottom-color: rgba(243, 238, 228, 0.14);
}

.note-row__bar {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: stretch;
  justify-self: start;
  width: var(--news-bar-w);
  background: var(--brand);
  transition: width 0.18s var(--ease);
}
.note-row--model .note-row__bar { background: var(--brand); }
.note-row--network .note-row__bar { background: var(--signal); }
.note-row--training .note-row__bar { background: var(--amber); }
.note-row--tips .note-row__bar { background: var(--ok); }

.note-row:hover .note-row__bar,
.note-row:focus-within .note-row__bar {
  width: 6px;
}

.note-row__title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  min-width: 0;
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.note-row__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.note-row__title a:hover,
.note-row__title a:focus-visible {
  color: var(--signal);
}
.page-news .section--ink .note-row__title {
  color: var(--paper);
}
.page-news .section--ink .note-row__title a:hover,
.page-news .section--ink .note-row__title a:focus-visible {
  color: var(--amber-soft);
}

.note-row__tag {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  align-self: center;
  white-space: nowrap;
}
.page-news .section--ink .note-row__tag {
  background: rgba(243, 238, 228, 0.08);
  color: var(--blue-soft);
  border: 1px solid rgba(243, 238, 228, 0.2);
}

.note-row__time {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.page-news .section--ink .note-row__time {
  color: var(--steel-soft);
}

.note-row__excerpt {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--steel);
  max-height: 120px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.24s var(--ease), opacity 0.24s var(--ease), margin-top 0.24s var(--ease);
}
.page-news .section--ink .note-row__excerpt {
  color: var(--steel-soft);
}

@media (min-width: 780px) {
  .note-row {
    grid-template-columns: 6px repeat(12, 1fr);
    column-gap: 16px;
    align-items: baseline;
    padding: 20px 0;
  }
  .note-row__bar {
    grid-row: 1 / span 2;
  }
  .note-row__title {
    grid-column: 2 / span 7;
    grid-row: 1;
  }
  .note-row__tag {
    grid-column: 9 / span 2;
    grid-row: 1;
    justify-self: start;
  }
  .note-row__time {
    grid-column: 11 / span 3;
    grid-row: 1;
    justify-self: end;
  }
  .note-row__excerpt {
    grid-column: 2 / span 10;
    grid-row: 2;
    max-height: 0;
    opacity: 0;
  }
  .note-row:hover .note-row__excerpt,
  .note-row:focus-within .note-row__excerpt {
    max-height: 90px;
    opacity: 1;
    margin-top: 8px;
  }
}

/* ---------- 配图 ---------- */
.notes-figure {
  margin: 30px 0 0;
}
.notes-figure img,
.tips-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 06 使用与保养：图文分栏 ---------- */
.tips-split {
  display: grid;
  gap: 32px;
  margin-top: 30px;
}
.tips-media {
  margin: 0;
}
@media (min-width: 900px) {
  .tips-split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 52px;
    align-items: start;
  }
  .tips-split .notes {
    margin-top: 0;
  }
}

/* ---------- 07 往期归档 ---------- */
.archive-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--news-line);
}
.archive-item {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: var(--news-line);
}
.archive-item__period {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.archive-item__desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
@media (min-width: 780px) {
  .archive-item {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: baseline;
    column-gap: 28px;
  }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-news *,
  .page-news *::before,
  .page-news *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .note-row .note-row__bar {
    transition: none;
  }
}
