/* ===== 动态公告 页面专属样式 ===== */
.page-news {
  --news-rail: 44px;
  --news-mint: #4FD6B0;
  position: relative;
  padding: 18px 0 84px;
  background:
    radial-gradient(880px 460px at 6% -6%, rgba(29, 229, 255, .10), transparent 66%),
    radial-gradient(760px 520px at 98% 6%, rgba(138, 92, 255, .13), transparent 70%);
}

/* —— 首屏框景 —— */
.page-news .news-hero {
  margin-top: 14px;
}

.page-news .news-hero__frame {
  position: relative;
  padding: 38px 22px 34px 30px;
  border: 1px solid var(--yw-line);
  background: linear-gradient(155deg, rgba(11, 17, 32, .94), rgba(5, 7, 14, .92));
  overflow: hidden;
}

.page-news .news-hero__frame::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--yw-cyan), var(--yw-violet) 55%, var(--yw-magenta));
}

.page-news .news-hero__frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background-image: repeating-linear-gradient(90deg, var(--yw-line) 0 1px, transparent 1px 24px);
  opacity: .65;
  pointer-events: none;
}

.page-news .news-hero__anno {
  position: absolute;
  right: 22px;
  top: 52px;
  display: none;
}

.page-news .news-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 7vw, 60px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.01em;
  max-width: 15em;
}

.page-news .news-hero__lead {
  margin: 20px 0 0;
  max-width: 38em;
  color: var(--yw-muted);
  font-size: 17px;
  line-height: 1.8;
}

.page-news .news-hero__facts {
  display: grid;
  gap: 16px;
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--yw-line);
}

.page-news .news-hero__fact dt {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--yw-muted);
}

.page-news .news-hero__fact dd {
  margin: 7px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--yw-text);
}

/* —— 置顶公告 —— */
.page-news .news-top {
  margin-top: 54px;
}

.page-news .news-top__card {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 30px 22px 32px;
  border: 1px solid rgba(245, 192, 74, .45);
  background:
    linear-gradient(140deg, rgba(245, 192, 74, .08), rgba(11, 17, 32, .95) 44%, rgba(5, 7, 14, .96));
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.page-news .news-top__flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.page-news .news-top__stamp {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--yw-gold);
}

.page-news .news-top__title {
  position: relative;
  margin: 18px 0 0;
  padding-bottom: 14px;
  font-size: clamp(23px, 4.6vw, 34px);
  line-height: 1.32;
  font-weight: 800;
}

.page-news .news-top__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 76px;
  height: 3px;
  background: var(--yw-gold);
}

.page-news .news-top__lead {
  margin: 18px 0 0;
  max-width: 40em;
  color: var(--yw-muted);
  font-size: 16px;
  line-height: 1.85;
}

.page-news .news-top__list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-news .news-top__list li {
  position: relative;
  padding-left: 22px;
  color: var(--yw-text);
  font-size: 15px;
  line-height: 1.75;
}

.page-news .news-top__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 9px;
  height: 9px;
  border: 1px solid var(--yw-cyan);
  transform: rotate(45deg);
}

.page-news .news-top__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-news .news-top__media {
  margin: 0;
  border: 1px solid var(--yw-line);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.page-news .news-top__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* —— 日志区：侧栏 + 条目流 —— */
.page-news .news-log {
  margin-top: 66px;
}

.page-news .news-log__inner {
  display: grid;
  gap: 28px;
}

.page-news .news-log__side-title {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 600;
  color: var(--yw-muted);
}

.page-news .news-log__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .news-log__filter .yw-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-news .news-log__count {
  font-size: 11px;
  letter-spacing: .06em;
  opacity: .62;
}

.page-news .news-log__quick {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--yw-line);
}

.page-news .news-log__quick h2 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 600;
  color: var(--yw-muted);
}

.page-news .news-log__quick ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-news .news-log__quick a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(42, 58, 92, .85);
  color: var(--yw-text);
  font-size: 15px;
  text-decoration: none;
  transition: color .3s var(--yw-ease), border-color .3s var(--yw-ease);
}

.page-news .news-log__quick a::after {
  content: "↗";
  color: var(--yw-cyan);
  transition: transform .3s var(--yw-ease);
}

.page-news .news-log__quick a:hover {
  color: var(--yw-cyan);
  border-bottom-color: var(--yw-cyan);
}

.page-news .news-log__quick a:hover::after {
  transform: translate(3px, -3px);
}

/* —— 条目流 —— */
.page-news .news-feed {
  display: grid;
}

.page-news .news-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--news-rail) minmax(0, 1fr);
  padding: 22px 0 26px;
  border-top: 1px solid var(--yw-line);
}

.page-news .news-item:first-child {
  border-top-color: rgba(29, 229, 255, .45);
}

.page-news .news-item__rail {
  position: relative;
}

.page-news .news-item__rail::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: -26px;
  width: 1px;
  background: linear-gradient(180deg, var(--yw-line), rgba(42, 58, 92, 0));
}

.page-news .news-item:last-child .news-item__rail::before {
  display: none;
}

.page-news .news-item__dot {
  position: absolute;
  left: 6px;
  top: 7px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--yw-cyan);
  background: var(--yw-ink);
  transform: rotate(45deg);
  transition: background .35s var(--yw-ease), border-color .35s var(--yw-ease), box-shadow .35s var(--yw-ease);
}

.page-news .news-item[data-filter-item="league"] .news-item__dot { border-color: var(--yw-violet); }
.page-news .news-item[data-filter-item="device"] .news-item__dot { border-color: var(--yw-magenta); }
.page-news .news-item[data-filter-item="help"]   .news-item__dot { border-color: var(--yw-gold); }
.page-news .news-item[data-filter-item="replay"] .news-item__dot { border-color: var(--news-mint); }

.page-news .news-item:hover .news-item__dot {
  background: var(--yw-gold);
  border-color: var(--yw-gold);
  box-shadow: 0 0 14px rgba(245, 192, 74, .45);
}

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

.page-news .news-item__stamp {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--yw-muted);
}

.page-news .news-item__read {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--yw-muted);
  padding: 3px 8px;
  border: 1px solid var(--yw-line);
  white-space: nowrap;
}

.page-news .news-item__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--yw-text);
  transition: color .3s var(--yw-ease);
}

.page-news .news-item:hover .news-item__title {
  color: var(--yw-cyan);
}

.page-news .news-item__text {
  margin: 10px 0 0;
  max-width: 44em;
  color: var(--yw-muted);
  font-size: 16px;
  line-height: 1.8;
}

.page-news .news-item__more {
  margin-top: 12px;
}

.page-news .news-item__more summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--yw-cyan);
}

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

.page-news .news-item__more summary::after {
  content: "⌄";
  transition: transform .3s var(--yw-ease);
}

.page-news .news-item__more[open] summary::after {
  transform: rotate(180deg);
}

.page-news .news-item__more p {
  margin: 12px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--yw-violet);
  max-width: 40em;
  color: var(--yw-muted);
  font-size: 15px;
  line-height: 1.82;
}

.page-news .news-item--media {
  padding-bottom: 30px;
}

.page-news .news-item__figure {
  margin: 0;
  border: 1px solid var(--yw-line);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.page-news .news-item__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-news .news-item__figure figcaption {
  padding: 10px 12px 12px;
  background: rgba(11, 17, 32, .85);
  color: var(--yw-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* —— 回放与补看专题 —— */
.page-news .news-replay {
  position: relative;
  margin-top: 76px;
  padding-top: 36px;
  border-top: 1px solid var(--yw-line);
  transition: outline-color .3s var(--yw-ease);
}

.page-news .news-replay:target {
  outline: 1px solid rgba(245, 192, 74, .55);
  outline-offset: 16px;
}

.page-news .news-replay:target .news-replay__title {
  color: var(--yw-gold);
}

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

.page-news .news-replay__anno {
  flex: 0 0 auto;
  display: none;
}

.page-news .news-replay__title {
  margin: 12px 0 0;
  font-size: clamp(24px, 5vw, 38px);
  line-height: 1.28;
  font-weight: 800;
  transition: color .3s var(--yw-ease);
}

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

.page-news .news-replay__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-news .news-replay__steps {
  counter-reset: s;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.page-news .news-replay__steps li {
  counter-increment: s;
  padding: 20px 18px 18px;
  border: 1px solid var(--yw-line);
  background: linear-gradient(160deg, rgba(16, 26, 49, .92), rgba(5, 7, 14, .92));
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.page-news .news-replay__steps li::before {
  content: counter(s, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--yw-cyan);
}

.page-news .news-replay__steps h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--yw-text);
}

.page-news .news-replay__steps p {
  margin: 10px 0 0;
  color: var(--yw-muted);
  font-size: 15px;
  line-height: 1.78;
}

.page-news .news-replay__note {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding: 20px 18px;
  border-left: 3px solid var(--yw-cyan);
  background: rgba(29, 229, 255, .06);
}

.page-news .news-replay__note p {
  margin: 0;
  max-width: 44em;
  color: var(--yw-muted);
  font-size: 15px;
  line-height: 1.8;
}

.page-news .news-replay__note .yw-btn {
  justify-self: start;
}

/* —— 订阅与更新节奏 —— */
.page-news .news-sub {
  margin-top: 78px;
}

.page-news .news-sub__card {
  display: grid;
  gap: 30px;
  padding: 32px 22px 34px;
  border: 1px solid var(--yw-line);
  background: linear-gradient(130deg, rgba(138, 92, 255, .14), rgba(5, 7, 14, .96) 58%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-news .news-sub__title {
  margin: 12px 0 0;
  font-size: clamp(23px, 4.6vw, 34px);
  line-height: 1.3;
  font-weight: 800;
}

.page-news .news-sub__lead {
  margin: 18px 0 0;
  max-width: 38em;
  color: var(--yw-muted);
  font-size: 16px;
  line-height: 1.85;
}

.page-news .news-sub__list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-news .news-sub__list li {
  position: relative;
  padding-left: 20px;
  color: var(--yw-muted);
  font-size: 15px;
  line-height: 1.78;
}

.page-news .news-sub__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 10px;
  height: 2px;
  background: var(--yw-magenta);
}

.page-news .news-sub__list strong {
  color: var(--yw-text);
  font-weight: 700;
}

.page-news .news-sub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-news .news-sub__media {
  margin: 0;
  border: 1px solid var(--yw-line);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.page-news .news-sub__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* —— 响应式 —— */
@media (min-width: 700px) {
  .page-news {
    padding-bottom: 110px;
  }

  .page-news .news-hero__frame {
    padding: 52px 48px 46px 56px;
  }

  .page-news .news-hero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }

  .page-news .news-top__card {
    padding: 38px 38px 40px;
  }

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

  .page-news .news-replay__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .page-news .news-replay__note {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 24px 26px;
  }

  .page-news .news-item {
    padding: 26px 0 30px;
  }

  .page-news .news-item__title {
    font-size: 20px;
  }
}

@media (min-width: 960px) {
  .page-news .news-hero__anno {
    display: block;
  }

  .page-news .news-hero h1 {
    max-width: 13em;
  }

  .page-news .news-top__card {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: center;
    gap: 44px;
    padding: 44px 46px;
  }

  .page-news .news-log__inner {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .page-news .news-log__side {
    position: sticky;
    top: 128px;
  }

  .page-news .news-log__filter {
    flex-direction: column;
    align-items: stretch;
  }

  .page-news .news-log__filter .yw-filter__btn {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .page-news .news-sub__card {
    grid-template-columns: minmax(0, 1.1fr) 290px;
    align-items: center;
    gap: 46px;
    padding: 44px 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .news-item__dot,
  .page-news .news-item__title,
  .page-news .news-log__quick a,
  .page-news .news-log__quick a::after,
  .page-news .news-item__more summary::after,
  .page-news .news-replay__title {
    transition: none;
  }
}
