.page-news {
  --metric: 0%;
  --grid-line: rgba(0, 176, 255, 0.06);
  --glow-green: 0 0 12px rgba(77, 255, 77, 0.35);
  --glow-orange: 0 0 12px rgba(255, 140, 26, 0.35);
  --glow-yellow: 0 0 12px rgba(255, 210, 63, 0.35);
  --glow-magenta: 0 0 12px rgba(255, 46, 99, 0.35);
  padding-top: 28px;
  color: var(--text-main);
}

.page-news .news-hero {
  padding: 12px 0 26px;
}

.page-news .news-hero-desc {
  color: var(--text-dim);
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.8;
  margin: 12px 0 0;
}

.page-news .filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.page-news .filter-chip {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.page-news .filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-news .filter-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-dark);
  font-weight: 700;
}

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

.page-news .section-block {
  border-radius: 14px;
  padding: 20px;
}

.page-news [data-tone="grid"] {
  background-color: var(--bg-page);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 26px 26px;
  border: 1px solid var(--border-line);
}

.page-news [data-tone="a"] {
  background: var(--bg-zone-a);
  border: 1px solid rgba(0, 229, 160, 0.18);
}

.page-news [data-tone="b"] {
  background: var(--bg-zone-b);
  border: 1px solid rgba(255, 46, 99, 0.18);
}

.page-news .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
}

.page-news .section-head h2 {
  font-family: var(--font-head);
  font-size: 20px;
  margin: 0;
  flex: 1 1 auto;
}

.page-news .section-head .more-link {
  margin-left: auto;
}

.page-news .timeline-wrap {
  display: flex;
  gap: 18px;
  position: relative;
}

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

.page-news .timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.page-news .timeline-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--primary),
    rgba(0, 176, 255, 0.25) 60%,
    rgba(0, 176, 255, 0.05)
  );
}

.page-news .timeline-item {
  position: relative;
  margin-bottom: 14px;
}

.page-news .timeline-item details {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 10px;
  margin-left: 30px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.page-news .timeline-item details:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.page-news .timeline-item summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

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

.page-news .timeline-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
}

.page-news .timeline-item details[open] summary::after {
  content: "–";
}

.page-news .timeline-node {
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 176, 255, 0.15);
  z-index: 1;
}

.page-news .timeline-item[data-type="sync"] .timeline-node {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 176, 255, 0.15);
}

.page-news .timeline-item[data-type="new"] .timeline-node {
  background: var(--status-new);
  box-shadow: var(--glow-yellow);
}

.page-news .timeline-item[data-type="refill"] .timeline-node {
  background: var(--status-refill);
  box-shadow: var(--glow-orange);
}

.page-news .timeline-item[data-type="fix"] .timeline-node {
  background: var(--status-fix);
  box-shadow: var(--glow-magenta);
}

.page-news .timeline-item[data-type="update"] .timeline-node {
  background: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(0, 229, 160, 0.15);
}

.page-news .tl-batch {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.page-news .tl-title {
  font-weight: 700;
  font-size: 15px;
}

.page-news .tl-meta {
  color: var(--text-dim);
  font-size: 12px;
  width: 100%;
}

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

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

.page-news .tl-detail li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
}

.page-news .news-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-news .side-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 16px;
}

.page-news .side-card h2 {
  font-family: var(--font-head);
  font-size: 16px;
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
}

.page-news .side-diagram-img {
  margin: -16px -16px 14px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  height: 140px;
}

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

.page-news .side-card .tag-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-news .side-card .tag-block {
  font-size: 13px;
}

.page-news .tag-count {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-left: 4px;
}

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

.page-news .rhythm-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

.page-news .rhythm-list .label-chip {
  flex: 0 0 auto;
}

.page-news .records-zone {
  margin-top: 22px;
  overflow: hidden;
}

.page-news .table-frame {
  overflow-x: auto;
  border: 1px solid var(--border-line);
  border-radius: 10px;
  background: rgba(15, 46, 36, 0.65);
}

.page-news .data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.page-news .data-table th,
.page-news .data-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

.page-news .data-table thead th {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  border-bottom: 2px solid var(--primary);
  white-space: nowrap;
}

.page-news .data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.page-news .data-table tbody tr:hover {
  background: rgba(0, 176, 255, 0.06);
}

.page-news .data-table td:last-child {
  color: var(--text-dim);
  white-space: nowrap;
}

.page-news .tl-relative {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.page-news .table-texture {
  margin-top: 12px;
  border: 1px dashed var(--border-line);
  border-radius: 10px;
  overflow: hidden;
}

.page-news .table-texture img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.55;
}

.page-news .hot-zone {
  margin-top: 22px;
}

.page-news .hot-deco {
  display: none;
}

.page-news .hot-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  -webkit-overflow-scrolling: touch;
}

.page-news .hot-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 2px solid var(--border-line);
  border-radius: 12px;
  padding: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.page-news .hot-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-2px);
}

.page-news .hot-card:nth-child(4n + 1) {
  border-color: rgba(255, 94, 58, 0.55);
}

.page-news .hot-card:nth-child(4n + 2) {
  border-color: rgba(255, 210, 63, 0.55);
}

.page-news .hot-card:nth-child(4n + 3) {
  border-color: rgba(0, 229, 160, 0.55);
}

.page-news .hot-card:nth-child(4n + 4) {
  border-color: rgba(255, 46, 99, 0.55);
}

.page-news .hot-card .img-frame {
  position: relative;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 176, 255, 0.08), transparent),
    #181c2b;
}

.page-news .hot-card .img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-news .frame-no {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(18, 21, 31, 0.82);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 160, 0.35);
  z-index: 1;
}

.page-news .hot-card h3 {
  font-size: 15px;
  margin: 0 0 6px;
  font-family: var(--font-head);
}

.page-news .hot-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.page-news .hot-meta a {
  color: var(--primary);
  text-decoration: none;
}

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

.page-news .metric-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.page-news .metric-bar-fill {
  display: block;
  height: 100%;
  width: var(--metric);
  border-radius: 4px;
  background: var(--accent-yellow);
}

.page-news .metric-bar[data-color="orange"] .metric-bar-fill {
  background: var(--accent-orange);
}

.page-news .metric-bar[data-color="cyan"] .metric-bar-fill {
  background: var(--accent-cyan);
}

.page-news .metric-bar[data-color="magenta"] .metric-bar-fill {
  background: var(--accent-magenta);
}

.page-news .hot-metric {
  margin: 8px 0 0;
  text-align: right;
}

.page-news .metric-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

@media (min-width: 720px) {
  .page-news .tl-meta {
    width: auto;
  }

  .page-news .timeline-item summary::after {
    font-size: 22px;
  }

  .page-news .side-diagram-img {
    height: 170px;
  }
}

@media (min-width: 960px) {
  .page-news .news-main-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
  }

  .page-news .timeline-art {
    display: block;
    flex: 0 0 120px;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-line);
    position: sticky;
    top: 114px;
    align-self: flex-start;
  }

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

  .page-news .hot-deco {
    display: block;
    margin-left: auto;
    width: 300px;
    height: 80px;
    overflow: hidden;
    border: 1px solid var(--border-line);
    border-radius: 8px;
  }

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