.page-news {
  --news-deep-text: #F0EBE2;
  --news-deep-line: rgba(255, 255, 255, 0.14);
  --news-grid-line: rgba(20, 20, 26, 0.05);
  --news-white-line: #ECEEEE;
  padding-bottom: 44px;
  background: var(--bg-warm);
}

.page-news img {
  max-width: 100%;
  height: auto;
}

/* ========== 首屏头部 ========== */
.page-news .news-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px 20px 20px;
  background:
    linear-gradient(var(--news-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--news-grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--line);
}

.page-news .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.page-news .breadcrumb a {
  color: var(--c-blue);
  text-decoration: none;
}

.page-news .breadcrumb a:hover {
  text-decoration: underline;
}

.page-news .log-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-purple);
  margin-bottom: 8px;
  border: 1px solid var(--c-purple);
  border-radius: 999px;
  padding: 3px 10px;
}

.page-news h1 {
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--ink);
}

.page-news .hero-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0 0 16px;
}

.page-news .index-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 2px;
}

.page-news .index-strip a {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  background: var(--white);
  transition: border-color .18s ease, color .18s ease;
}

.page-news .index-strip a:hover {
  border-color: var(--c-purple);
  color: var(--c-purple);
}

.page-news .index-strip a.current {
  background: var(--c-purple);
  border-color: var(--c-purple);
  color: #fff;
}

/* ========== 区块通用 ========== */
.page-news .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 16px;
}

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

.page-news .section-title::before {
  content: "▍";
  color: var(--c-purple);
  margin-right: 2px;
}

.page-news .section-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ========== 区块1：批次流 + 批次详情 ========== */
.page-news .news-main {
  background: var(--bg-warm);
  padding: 32px 20px 40px;
}

.page-news .news-main-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 36px;
}

/* 时间轴 */
.page-news .timeline-wrap {
  position: relative;
  padding-left: 30px;
}

.page-news .timeline-wrap::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-purple), var(--c-blue), var(--c-green));
  opacity: 0.7;
}

.page-news .timeline-texture {
  display: none;
}

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

.page-news .batch-item {
  position: relative;
}

.page-news .batch-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 32px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-purple);
  border: 2px solid var(--bg-warm);
  box-shadow: 0 0 0 2px rgba(155, 93, 229, 0.35);
  z-index: 1;
}

.page-news .batch-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px 16px;
  margin-bottom: 14px;
  border-left: 4px solid var(--c-orange);
  transition: transform .2s ease, box-shadow .2s ease;
}

.page-news .batch-item:nth-child(5n+2) .batch-card {
  border-left-color: var(--c-blue);
}

.page-news .batch-item:nth-child(5n+3) .batch-card {
  border-left-color: var(--c-green);
}

.page-news .batch-item:nth-child(5n+4) .batch-card {
  border-left-color: var(--c-yellow);
}

.page-news .batch-item:nth-child(5n+5) .batch-card {
  border-left-color: var(--c-purple);
}

.page-news .batch-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.page-news .batch-card::after {
  content: "";
  display: block;
  height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--c-orange) 0 22%, var(--c-blue) 22% 40%, var(--c-green) 40% 56%, var(--c-yellow) 56% 70%, var(--c-purple) 70% 100%);
  opacity: 0.85;
}

.page-news .batch-card.has-thumb {
  padding-right: 104px;
}

.page-news .batch-thumb {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
}

.page-news .batch-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.page-news .batch-no {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.page-news .batch-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--bg-air);
  border-radius: 999px;
  padding: 2px 10px;
}

.page-news .batch-title {
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.4;
  margin: 4px 0 4px;
  color: var(--ink);
  padding-right: 10px;
}

.page-news .batch-card.has-thumb .batch-title,
.page-news .batch-card.has-thumb .batch-desc,
.page-news .batch-card.has-thumb .batch-keywords {
  max-width: calc(100% - 90px);
}

.page-news .batch-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.page-news .batch-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-news .batch-count {
  position: absolute;
  right: 16px;
  bottom: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-purple);
  background: rgba(155, 93, 229, 0.1);
  border: 1px solid rgba(155, 93, 229, 0.3);
  border-radius: 999px;
  padding: 2px 10px;
}

.page-news .batch-card.has-thumb .batch-count {
  right: 14px;
  bottom: 14px;
}

/* 批次详情右侧 */
.page-news .detail-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-news .batch-detail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

.page-news .batch-detail summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--ink);
  transition: background .18s ease;
}

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

.page-news .batch-detail summary:hover {
  background: var(--bg-cream);
}

.page-news .detail-no {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-purple);
}

.page-news .detail-lead {
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: auto;
}

.page-news .detail-arrow {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--c-purple);
  transition: transform .2s ease;
}

.page-news .batch-detail[open] .detail-arrow {
  transform: rotate(45deg);
}

.page-news .detail-inner {
  padding: 0 16px 16px;
  border-top: 1px dashed var(--line);
}

.page-news .mini-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 14px 0 10px;
}

.page-news .mini-stat {
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 10px 4px 8px;
  background: var(--bg-warm);
}

.page-news .mini-stat--orange { background: rgba(255, 107, 53, 0.12); }
.page-news .mini-stat--blue { background: rgba(17, 138, 178, 0.12); }
.page-news .mini-stat--green { background: rgba(6, 214, 160, 0.12); }
.page-news .mini-stat--yellow { background: rgba(255, 209, 102, 0.22); }
.page-news .mini-stat--purple { background: rgba(155, 93, 229, 0.12); }

.page-news .mini-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.page-news .mini-label {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.page-news .detail-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 8px 0 10px;
  line-height: 1.5;
}

.page-news .detail-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 138, 178, 0.35);
}

.page-news .detail-link:hover {
  color: var(--c-purple);
  border-color: var(--c-purple);
}

.page-news .detail-cta {
  margin-top: 4px;
  text-align: center;
}

/* ========== 区块2：功能更新 + 分类调整 ========== */
.page-news .change-adjust-grid {
  background: var(--bg-cream);
  padding: 36px 20px 44px;
  display: grid;
  gap: 28px;
}

.page-news .changelog-col,
.page-news .adjust-col {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}

.page-news .changelog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 20px 20px;
  border-top: 4px solid var(--c-blue);
}

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

.page-news .change-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-news .change-row:last-child {
  border-bottom: 0;
}

.page-news .change-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
}

.page-news .version-badge {
  flex: 0 0 auto;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--c-purple);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  margin-top: 2px;
  white-space: nowrap;
}

.page-news .change-text {
  flex: 1 1 220px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  min-width: 0;
}

.page-news .change-date {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 3px;
}

/* 分类调整深色面板 */
.page-news .adjust-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 180px),
    var(--deep);
  color: var(--news-deep-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 18px 20px;
  border-top: 4px solid var(--c-yellow);
}

.page-news .section-head--light .section-title {
  color: #fff;
}

.page-news .section-head--light .section-meta {
  color: rgba(240, 235, 226, 0.65);
}

.page-news .adjust-table {
  border: 1px solid var(--news-deep-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.page-news .adjust-row {
  display: grid;
  grid-template-columns: 92px 1fr 86px 72px;
  gap: 6px 10px;
  align-items: center;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.page-news .adjust-row:last-child {
  border-bottom: 0;
}

.page-news .adjust-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

.page-news .adjust-row--head {
  background: var(--deep-2) !important;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 235, 226, 0.6);
}

.page-news .cell-cat {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.page-news .cell-cat::before {
  content: "›";
  color: var(--c-yellow);
  margin-right: 5px;
}

.page-news .cell-action {
  color: rgba(240, 235, 226, 0.85);
}

.page-news .cell-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-green);
  white-space: nowrap;
}

.page-news .cell-state {
  text-align: right;
  white-space: nowrap;
}

.page-news .adjust-panel .status-badge--done {
  background: rgba(6, 214, 160, 0.15);
  color: var(--c-green);
  border-color: transparent;
}

.page-news .adjust-panel .status-badge--new {
  background: rgba(239, 71, 111, 0.15);
  color: #FF8AA0;
  border-color: transparent;
}

.page-news .adjust-bg {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 18px;
  opacity: 0.5;
}

/* ========== 底部导航 ========== */
.page-news .news-footer-nav {
  background: var(--bg-air);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 32px 20px;
}

/* ========== 响应式 ========== */
@media (min-width: 700px) {
  .page-news .news-main-grid {
    grid-template-columns: 1.7fr 1fr;
    align-items: start;
  }

  .page-news .change-adjust-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-news .timeline-wrap {
    padding-left: 140px;
  }

  .page-news .timeline-wrap::before {
    left: 110px;
  }

  .page-news .batch-item::before {
    left: 106px;
  }

  .page-news .timeline-texture {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-sm);
    opacity: 0.45;
  }
}

@media (min-width: 1000px) {
  .page-news h1 {
    font-size: 34px;
  }

  .page-news .hero-sub {
    font-size: 16px;
  }

  .page-news .section-title {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .page-news .batch-thumb {
    display: none;
  }

  .page-news .batch-card.has-thumb {
    padding-right: 16px;
  }

  .page-news .batch-card.has-thumb .batch-title,
  .page-news .batch-card.has-thumb .batch-desc,
  .page-news .batch-card.has-thumb .batch-keywords {
    max-width: none;
  }

  .page-news .batch-count {
    position: static;
    display: inline-block;
    margin-top: 10px;
  }

  .page-news .batch-card.has-thumb .batch-count {
    position: static;
  }

  .page-news .mini-num {
    font-size: 15px;
  }

  .page-news .adjust-row {
    grid-template-columns: 1fr;
    gap: 4px 8px;
  }

  .page-news .adjust-row--head {
    display: none;
  }

  .page-news .cell-cat {
    font-size: 14px;
  }

  .page-news .cell-count,
  .page-news .cell-state {
    display: inline-block;
    margin-right: 14px;
  }

  .page-news .cell-state {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .batch-card,
  .page-news .batch-detail summary,
  .page-news .detail-arrow {
    transition: none;
  }
}
