/* ===== 赛事日志页专属样式 ===== */
.page-news {
  --news-cols: 280px minmax(0, 1fr);
  --news-gap: 36px;
  --news-cover-cut: 22px;
  background: var(--bg-ink);
  color: var(--text-primary);
}

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

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

/* ===== 日志头部 ===== */
.page-news .news-intro {
  position: relative;
  padding: 48px 0 28px;
  overflow: hidden;
}

.page-news .news-intro::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 0%, transparent 68%, var(--line-grid) 68%, var(--line-grid) 70%, transparent 70%),
    linear-gradient(180deg, var(--surface-code) 0%, transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.page-news .news-intro__grid {
  display: grid;
  gap: 32px;
  align-items: center;
  position: relative;
}

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

.page-news .news-intro__title {
  font-family: var(--font-mono);
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 10px 0 14px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.page-news .news-intro__title::after {
  content: "VOL.04";
  position: absolute;
  top: -8px;
  right: -64px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--data-green);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.page-news .news-intro__lead {
  max-width: 46em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.page-news .news-intro__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.page-news .news-intro__metric {
  background: var(--surface-code);
  border: 1px solid var(--line-grid);
  padding: 16px 14px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.page-news .news-intro__metric .metric__value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--data-green);
  line-height: 1;
  display: block;
}

.page-news .news-intro__metric .metric__label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.4;
}

.page-news .news-intro__cover {
  position: relative;
  border: 1px solid var(--line-grid);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

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

.page-news .news-intro__cover::after {
  content: "V4 · 数据回溯在线";
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--data-green);
  color: var(--bg-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  white-space: nowrap;
}

/* ===== 日志主体布局 ===== */
.page-news .log-main {
  padding: 12px 0 72px;
}

.page-news .log-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--news-gap);
}

/* ===== 侧边栏 ===== */
.page-news .log-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 92px;
}

.page-news .log-cats {
  padding: 22px 20px;
  background: var(--surface-code);
  border: 1px solid var(--line-grid);
  border-left: 3px solid var(--hot-orange);
}

.page-news .log-cats__title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-grid);
}

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

.page-news .log-cats__item + .log-cats__item {
  margin-top: 4px;
}

.page-news .log-cats__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.page-news .log-cats__link:hover,
.page-news .log-cats__link:focus {
  background: var(--line-grid);
  color: var(--data-green);
  padding-left: 14px;
}

.page-news .log-cats__no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--tech-blue);
  opacity: 0.8;
}

.page-news .log-sidebar__visual {
  border: 1px solid var(--line-grid);
  background: var(--surface-code);
  padding: 8px;
}

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

.page-news .log-sidebar__caption {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 10px 6px 4px;
  margin: 0;
  letter-spacing: 0.06em;
}

.page-news .log-version {
  padding: 22px 20px;
  background: var(--surface-code);
  border: 1px solid var(--line-grid);
  border-left: 3px solid var(--data-green);
}

.page-news .log-version__ver {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--data-green);
  margin: 14px 0 4px;
}

.page-news .log-version__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.page-news .log-version__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.page-news .log-version__link {
  width: 100%;
  text-align: center;
}

/* ===== 日志流 ===== */
.page-news .log-stream {
  min-width: 0;
}

.page-news .news-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--line-grid);
}

.page-news .news-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-news .news-block__head {
  margin-bottom: 30px;
}

.page-news .news-block__head .chapter {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.page-news .news-block__head .chapter__no {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--bg-ink);
  background: var(--data-green);
  padding: 6px 10px;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  flex: none;
}

.page-news .news-block__head .chapter__text {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.page-news .news-block__head .section-heading {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}

.page-news .news-block__head .chapter__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.page-news .news-block__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 14px 0 0;
  max-width: 52em;
}

/* ===== 日志条目列表 ===== */
.page-news .log-list {
  display: flex;
  flex-direction: column;
}

.page-news .log-item {
  position: relative;
  padding: 26px 0 28px;
}

.page-news .log-item:first-child {
  padding-top: 0;
}

.page-news .log-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--data-green) 0%, var(--line-grid) 28%, transparent 78%);
  transform: skewX(-28deg);
  transform-origin: left center;
  opacity: 0.55;
}

.page-news .log-item:last-child::after {
  display: none;
}

.page-news .log-item__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.page-news .log-item__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.page-news .log-item__title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.page-news .log-item__summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 10px;
  max-width: 60em;
}

.page-news .log-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tech-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-news .log-item__link:hover,
.page-news .log-item__link:focus {
  color: var(--data-green);
  border-bottom-color: var(--data-green);
}

/* ===== 版本迭代记录 ===== */
.page-news .changelog {
  display: flex;
  flex-direction: column;
}

.page-news .changelog__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  position: relative;
}

.page-news .changelog__row + .changelog__row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-grid) 0%, transparent 80%);
}

.page-news .changelog__row--current {
  background: var(--surface-code);
  border-left: 3px solid var(--data-green);
  padding-left: 14px;
  margin-left: -14px;
  padding-right: 14px;
  margin-right: -14px;
}

.page-news .changelog__ver {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--data-green);
  border: 2px solid var(--line-grid);
  padding: 9px 10px;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  height: fit-content;
  min-width: 60px;
}

.page-news .changelog__row--current .changelog__ver {
  background: var(--data-green);
  color: var(--bg-ink);
  border-color: var(--data-green);
}

.page-news .changelog__title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.page-news .changelog__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.page-news .changelog__visual {
  margin: 28px 0 0;
  border: 1px solid var(--line-grid);
}

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

.page-news .changelog__cta {
  margin-top: 24px;
}

.page-news .changelog__cta .btn {
  width: 100%;
  justify-content: center;
}

/* ===== 解读专题 ===== */
.page-news .feature-visual {
  margin: 0 0 26px;
  border: 1px solid var(--line-grid);
}

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

.page-news .feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-news .feature-item {
  position: relative;
  padding: 22px 20px;
  background: var(--surface-code);
  border: 1px solid var(--line-grid);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.page-news .feature-item:hover,
.page-news .feature-item:focus-within {
  background: var(--line-grid);
  border-color: var(--tech-blue);
}

.page-news .feature-item__tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.page-news .feature-item__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.page-news .feature-item__title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.page-news .feature-item__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  max-width: 60em;
}

/* ===== 桌面端 ===== */
@media (min-width: 992px) {
  .page-news .news-intro {
    padding: 56px 0 40px;
  }

  .page-news .news-intro__grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
  }

  .page-news .news-intro__title {
    font-size: clamp(56px, 6vw, 84px);
  }

  .page-news .news-intro__stats {
    gap: 16px;
  }

  .page-news .log-main {
    padding: 8px 0 88px;
  }

  .page-news .log-layout {
    grid-template-columns: var(--news-cols);
    gap: 44px;
    align-items: start;
  }

  .page-news .news-block {
    padding: 48px 0;
  }

  .page-news .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .page-news .changelog__cta .btn {
    width: auto;
  }
}

@media (min-width: 1240px) {
  .page-news .news-intro__lead {
    font-size: 17px;
  }
}

/* ===== 窄屏精细调整 ===== */
@media (max-width: 480px) {
  .page-news .news-intro__title::after {
    right: -48px;
  }

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

  .page-news .news-intro__metric {
    padding: 12px 10px;
  }

  .page-news .news-intro__metric .metric__value {
    font-size: 22px;
  }

  .page-news .news-intro__metric .metric__label {
    font-size: 11px;
  }

  .page-news .changelog__row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .page-news .changelog__ver {
    font-size: 18px;
    padding: 7px 8px;
  }
}
