.page-news {
  --news-hero: #5c3a21;
  --news-hero-text: #f8ecd8;
  --news-card: #fff8ef;
  --news-text: #3e2b1e;
  --news-line: #c8b08c;
  --news-live-bg: #f4e4cc;
  --news-batch-bg: #ead2a8;
  --news-version-bg: #d9c4a5;
  --news-archive-bg: #efe0c6;
  --news-c60: #f4a460;
  --news-c70: #8fbc8f;
  --news-c80: #87ceeb;
  --news-c90: #dda0dd;
  --news-new: #e63946;
  --news-upd: #f4a261;
  --news-arch: #2a9d8f;
  --news-grid: rgba(62, 43, 30, 0.06);
  color: var(--news-text);
  background-color: var(--news-live-bg);
  font-family: var(--body-font);
  line-height: 1.65;
}

.page-news .container {
  width: min(100% - 32px, var(--container-width));
  margin-inline: auto;
}

.page-news a {
  color: inherit;
}

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

.page-news .news-hero {
  background:
    linear-gradient(90deg, var(--news-grid) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(var(--news-grid) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--news-hero);
  color: var(--news-hero-text);
  padding: 28px 0 26px;
  border-bottom: 6px solid var(--accent);
}

.page-news .news-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-news .news-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(248, 236, 216, 0.78);
}

.page-news .news-hero .breadcrumb a {
  color: rgba(248, 236, 216, 0.92);
  text-decoration-color: rgba(248, 236, 216, 0.4);
}

.page-news .breadcrumb__sep {
  opacity: 0.6;
}

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

.page-news .news-hero h1 {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(28px, 5.2vw, 44px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff2da;
}

.page-news .news-hero__badge {
  font-size: 13px;
}

.page-news .news-hero__summary {
  max-width: 980px;
  margin: 2px 0 0;
  font-size: 15px;
  color: rgba(248, 236, 216, 0.88);
  border-left: 3px solid var(--status-new);
  padding-left: 12px;
}

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

.page-news .news-hero__cues a {
  font-size: 13px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(248, 236, 216, 0.4);
  color: #f8ecd8;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-news .news-hero__cues a:hover {
  background: rgba(248, 236, 216, 0.14);
  border-color: rgba(248, 236, 216, 0.8);
}

.page-news .news-section {
  padding: 34px 0;
  background-size: 36px 36px;
}

.page-news .news-section--live {
  background-color: var(--news-live-bg);
  background-image:
    linear-gradient(90deg, var(--news-grid) 1px, transparent 1px),
    linear-gradient(var(--news-grid) 1px, transparent 1px);
}

.page-news .news-section--batch {
  background-color: var(--news-batch-bg);
  border-top: 4px solid rgba(62, 43, 30, 0.12);
  border-bottom: 4px solid rgba(62, 43, 30, 0.12);
}

.page-news .news-section--version {
  background-color: var(--news-version-bg);
  border-bottom: 4px solid rgba(62, 43, 30, 0.12);
}

.page-news .news-section--archive {
  background-color: var(--news-archive-bg);
}

.page-news .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(62, 43, 30, 0.18);
}

.page-news .section-head__num {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.page-news .section-head__num .seq-num {
  margin-top: 8px;
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff2da;
}

.page-news .section-head h2 {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

.page-news .section-head p {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(62, 43, 30, 0.78);
  max-width: 640px;
}

.page-news .section-head__count {
  font-family: var(--title-font);
  font-size: 14px;
  color: var(--accent);
  background: rgba(139, 90, 43, 0.1);
  border: 1px solid rgba(139, 90, 43, 0.28);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.page-news .live-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-news .live-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: var(--news-card);
  border: 1px solid rgba(200, 176, 140, 0.68);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 10px 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.page-news .live-card__media {
  position: relative;
  width: 88px;
  height: 66px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e6d4bc;
}

.page-news .live-card__media img {
  width: 88px;
  height: 66px;
  object-fit: cover;
}

.page-news .live-card__media span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 18px;
  color: rgba(62, 43, 30, 0.72);
}

.page-news .live-card__media--60s {
  background: linear-gradient(135deg, #f6b578, #ead2a8);
}

.page-news .live-card__media--70s {
  background: linear-gradient(135deg, #a7cba7, #cfe4cf);
}

.page-news .live-card__media--80s {
  background: linear-gradient(135deg, #9ed0ea, #d2e9f7);
}

.page-news .live-card__media--90s {
  background: linear-gradient(135deg, #d9aee0, #efd9f2);
}

.page-news .live-card__content {
  min-width: 0;
}

.page-news .live-card__content h3 {
  margin: 0 0 6px;
  font-family: var(--title-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.page-news .live-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.page-news .time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(200, 176, 140, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.page-news .time-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-new);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

.page-news .live-card__asides {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-top: 2px;
}

.page-news .batch-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: #f6ead4;
  border: 1px solid rgba(139, 90, 43, 0.3);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}

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

.page-news .batch-card {
  perspective: 1400px;
}

.page-news .batch-card__flip {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.3, 1);
  min-height: 330px;
}

.page-news .batch-card:hover .batch-card__flip,
.page-news .batch-card:focus-within .batch-card__flip {
  transform: rotateY(180deg);
}

.page-news .batch-card__face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: absolute;
  inset: 0;
  background: var(--news-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 176, 140, 0.7);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-news .batch-card__face--front {
  z-index: 2;
}

.page-news .batch-card__face--back {
  transform: rotateY(180deg);
  z-index: 1;
  padding: 24px;
  justify-content: center;
  gap: 10px;
  background:
    linear-gradient(145deg, rgba(200, 176, 140, 0.2), transparent 40%),
    var(--news-card);
}

.page-news .batch-card__banner {
  position: relative;
  height: 96px;
  flex: 0 0 auto;
  overflow: hidden;
}

.page-news .batch-card__banner img {
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.page-news .batch-card__banner-no {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-family: var(--title-font);
  font-size: 28px;
  font-weight: 700;
  color: rgba(255, 248, 239, 0.92);
  text-shadow: 0 2px 8px rgba(62, 43, 30, 0.5);
}

.page-news .batch-card__content {
  padding: 14px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-news .batch-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-news .batch-card__head h3 {
  margin: 0;
  font-family: var(--title-font);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-news .batch-card__stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.page-news .stat {
  font-size: 13px;
  color: rgba(62, 43, 30, 0.82);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.page-news .stat b {
  font-family: var(--title-font);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.page-news .progress {
  position: relative;
  height: 6px;
  background: rgba(200, 176, 140, 0.5);
  border-radius: var(--radius-pill);
  overflow: visible;
  margin-top: 4px;
}

.page-news .progress__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
}

.page-news .progress--new .progress__bar {
  background: var(--status-new);
}

.page-news .progress--upd .progress__bar {
  background: var(--status-updating);
}

.page-news .progress--arch .progress__bar {
  background: var(--status-archived);
}

.page-news .progress__dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(62, 43, 30, 0.3);
}

.page-news .progress__bar--full {
  width: 100%;
}

.page-news .progress__bar--mid {
  width: 82%;
}

.page-news .progress__dot--full {
  left: 100%;
}

.page-news .progress__dot--mid {
  left: 82%;
}

.page-news .batch-card__finish {
  margin: 0;
  font-size: 13px;
  color: rgba(62, 43, 30, 0.72);
  border-top: 1px dashed rgba(200, 176, 140, 0.7);
  padding-top: 8px;
}

.page-news .batch-card__back-label {
  display: inline-block;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  border-bottom: 2px solid rgba(139, 90, 43, 0.35);
  padding-bottom: 2px;
  align-self: flex-start;
}

.page-news .batch-card__face--back p {
  margin: 0;
  font-size: 14px;
  color: rgba(62, 43, 30, 0.86);
}

.page-news .version-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-news .version-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
}

.page-news .version-item__rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.page-news .version-item__rail::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: -14px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(62, 43, 30, 0.25), rgba(62, 43, 30, 0.08));
}

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

.page-news .version-item__dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(62, 43, 30, 0.3);
  margin-top: 8px;
}

.page-news .version-item__dot--new {
  background: var(--status-new);
}

.page-news .version-item__dot--arch {
  background: var(--status-archived);
}

.page-news .version-item__dot--upd {
  background: var(--status-updating);
}

.page-news .version-item__card {
  background: var(--news-card);
  border: 1px solid rgba(200, 176, 140, 0.7);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px 16px 18px;
}

.page-news .version-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.page-news .version-item__head h3 {
  margin: 0;
  font-family: var(--title-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-news .version-changelog {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: rgba(62, 43, 30, 0.86);
}

.page-news .version-changelog li::marker {
  color: var(--accent);
}

.page-news .version-history {
  margin-left: 34px;
}

.page-news .version-history summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--title-font);
  font-size: 15px;
  color: var(--accent);
  background: rgba(255, 248, 239, 0.7);
  border: 1px dashed rgba(139, 90, 43, 0.42);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  width: fit-content;
  transition: background-color 0.2s ease;
}

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

.page-news .version-history summary:hover {
  background: var(--news-card);
}

.page-news .version-history ul {
  margin: 12px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: rgba(62, 43, 30, 0.82);
}

.page-news .version-history li::marker {
  color: var(--status-archived);
}

.page-news .archive-table-wrap {
  overflow-x: auto;
  background: var(--news-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 176, 140, 0.72);
  box-shadow: var(--shadow-sm);
}

.page-news .archive-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-news .archive-table th,
.page-news .archive-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(200, 176, 140, 0.45);
}

.page-news .archive-table thead th {
  background: var(--accent);
  color: #fff2da;
  font-family: var(--title-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-news .archive-table tbody tr:nth-child(even) {
  background: rgba(200, 176, 140, 0.1);
}

.page-news .archive-table tbody tr:hover {
  background: rgba(244, 164, 96, 0.12);
}

.page-news .archive-table tbody th {
  font-family: var(--title-font);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.page-news .archive-table td {
  color: var(--text-primary);
}

.page-news .archive-table tfoot th,
.page-news .archive-table tfoot td {
  background: #ead9be;
  font-family: var(--title-font);
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 0;
}

.page-news .archive-table .status-badge {
  white-space: nowrap;
}

.page-news .archive-deco {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.page-news .archive-deco img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  opacity: 0.9;
}

.page-news .news-coda {
  background:
    radial-gradient(circle at 12% 20%, rgba(244, 226, 204, 0.18), transparent 30%),
    var(--news-hero);
  color: var(--news-hero-text);
  padding: 26px 0;
}

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

.page-news .news-coda__title {
  margin: 0;
  font-family: var(--title-font);
  font-size: 20px;
  font-weight: 700;
}

.page-news .news-coda__text p:last-child {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(248, 236, 216, 0.82);
}

.page-news .news-coda__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .news-coda__actions .btn {
  font-family: var(--title-font);
  font-size: 15px;
  padding: 8px 20px;
}

.page-news .news-coda__actions .btn--primary {
  background: var(--accent);
  color: #fff2da;
}

@media (min-width: 620px) {
  .page-news .news-section {
    padding: 42px 0;
  }

  .page-news .live-card {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 10px 16px;
  }

  .page-news .live-card__asides {
    grid-column: auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .page-news .batch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 940px) {
  .page-news .news-section {
    padding: 52px 0;
  }

  .page-news .news-hero {
    padding: 36px 0 32px;
  }

  .page-news .news-hero__summary {
    font-size: 16px;
    max-width: 1100px;
  }

  .page-news .section-head {
    margin-bottom: 28px;
  }

  .page-news .batch-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .page-news .version-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 16px;
  }

  .page-news .version-item__rail::before {
    top: 26px;
    bottom: -14px;
  }

  .page-news .version-item__dot {
    width: 18px;
    height: 18px;
  }

  .page-news .version-item__card {
    padding: 20px 24px 22px;
  }

  .page-news .news-coda {
    padding: 32px 0;
  }

  .page-news .news-coda__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .batch-card__flip {
    transition: none;
  }

  .page-news .live-card,
  .page-news .batch-card__flip,
  .page-news .news-hero__cues a,
  .page-news .version-history summary {
    transition: none;
  }
}
