.page-news {
  --news-blue: #0B1B3A;
  --news-blue-2: #1E3A6E;
  --news-orange: #FF6B35;
  --news-green: #39FF14;
  --news-white: #FFFFFF;
  --news-moon: #F4F7FC;
  --news-line: #D0D6E0;
  --news-ink: #111827;
  --news-trans: rgba(255, 255, 255, 0.12);
  --news-font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --news-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  background: var(--news-blue);
  color: var(--news-white);
  overflow-x: hidden;
}

.page-news .container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

@keyframes news-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.25); }
}

.page-news .news-ticker {
  background: var(--news-green);
  color: var(--news-ink);
  position: relative;
  z-index: 2;
}

.page-news .news-ticker-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.page-news .ticker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--news-ink);
  animation: news-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.page-news .ticker-message {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
}

.page-news .ticker-message strong {
  font-family: var(--news-font-mono);
  font-weight: 700;
}

.page-news .ticker-link {
  color: var(--news-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--news-ink);
  padding: 4px 14px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.page-news .ticker-link:hover {
  background: var(--news-ink);
  color: var(--news-green);
}

.page-news .news-header {
  padding-top: 32px;
  padding-bottom: 28px;
}

.page-news .breadcrumbs {
  font-size: 13px;
  margin-bottom: 18px;
  font-family: var(--news-font-mono);
}

.page-news .breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.page-news .breadcrumbs a:hover {
  color: var(--news-orange);
}

.page-news .bc-sep {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.4);
}

.page-news .bc-current {
  color: var(--news-orange);
}

.page-news .news-title {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  max-width: 900px;
  font-family: var(--news-font-sans);
}

.page-news .news-lead {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
  margin: 0;
}

.page-news .news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 56px;
}

.page-news .filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  flex-wrap: nowrap;
}

.page-news .filter-bar::-webkit-scrollbar {
  display: none;
}

.page-news .filter-btn {
  font-family: var(--news-font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  background: var(--news-blue-2);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.page-news .filter-btn:hover {
  border-color: var(--news-orange);
  color: var(--news-orange);
}

.page-news .filter-btn.is-active {
  background: var(--news-orange);
  border-color: var(--news-orange);
  color: var(--news-white);
}

.page-news .news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-news .news-item {
  background: var(--news-blue-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 22px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
  position: relative;
}

.page-news .news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 107, 53, 0.4);
}

.page-news .news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 3px;
  background: var(--news-orange);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.page-news .news-item:hover::before {
  opacity: 1;
}

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

.page-news .news-index {
  font-family: var(--news-font-mono);
  font-size: 13px;
  color: var(--news-orange);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.page-news .news-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  font-family: var(--news-font-sans);
}

.page-news .tag-version {
  background: rgba(57, 255, 20, 0.15);
  color: var(--news-green);
  border: 1px solid rgba(57, 255, 20, 0.4);
}

.page-news .tag-data {
  background: rgba(255, 107, 53, 0.15);
  color: var(--news-orange);
  border: 1px solid rgba(255, 107, 53, 0.4);
}

.page-news .tag-feature {
  background: rgba(255, 255, 255, 0.1);
  color: var(--news-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.page-news .tag-research {
  background: rgba(11, 27, 58, 0.5);
  color: #9db2d6;
  border: 1px solid rgba(157, 178, 214, 0.4);
}

.page-news .news-item-title {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
  margin: 0;
  flex-basis: 100%;
  font-family: var(--news-font-sans);
}

.page-news .news-item-body {
  display: block;
}

.page-news .news-item-text p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.page-news .news-details {
  margin-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 10px;
}

.page-news .news-details summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--news-green);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--news-font-mono);
}

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

.page-news .news-details summary::before {
  content: "▸";
  transition: transform 0.2s;
  display: inline-block;
}

.page-news .news-details[open] summary::before {
  transform: rotate(90deg);
}

.page-news .news-details p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  margin: 10px 0 0;
}

.page-news .news-figure {
  margin: 16px 0 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-news .news-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.35);
  line-height: 1.5;
}

.page-news .news-more-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--news-orange);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.page-news .news-more-link:hover {
  border-bottom-color: var(--news-orange);
}

.page-news .news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-news .sidebar-card {
  background: var(--news-blue-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 22px;
}

.page-news .sidebar-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--news-orange);
  font-family: var(--news-font-sans);
}

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

.page-news .hot-tag {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  transition: all 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-news .hot-tag:hover {
  background: var(--news-orange);
  border-color: var(--news-orange);
  color: var(--news-white);
}

.page-news .stats-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-news .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.page-news .stat-row dt {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.page-news .stat-row dd {
  font-family: var(--news-font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--news-green);
  margin: 0;
  white-space: nowrap;
}

.page-news .quick-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-news .quick-link-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.page-news .quick-link-list a::before {
  content: "›";
  color: var(--news-orange);
  font-weight: 700;
}

.page-news .quick-link-list a:hover {
  color: var(--news-orange);
}

.page-news .changelog-section {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  background: var(--news-blue);
}

.page-news .changelog-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-news .changelog-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 58, 0.94) 0%, rgba(11, 27, 58, 0.82) 100%);
}

.page-news .changelog-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  display: block;
}

.page-news .changelog-inner {
  position: relative;
  z-index: 1;
}

.page-news .changelog-section .section-tag {
  color: var(--news-green);
  border-color: rgba(57, 255, 20, 0.5);
  font-family: var(--news-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  border: 1px solid rgba(57, 255, 20, 0.5);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.page-news .changelog-title {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 10px;
  font-family: var(--news-font-sans);
}

.page-news .changelog-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 32px;
  max-width: 640px;
}

.page-news .timeline {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  position: relative;
}

.page-news .timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--news-green), var(--news-orange));
  opacity: 0.4;
}

.page-news .timeline-item {
  position: relative;
  padding-left: 26px;
  margin-bottom: 22px;
}

.page-news .timeline-item:last-child {
  margin-bottom: 0;
}

.page-news .timeline-marker {
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--news-green);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.6);
  border: 2px solid var(--news-blue);
}

.page-news .timeline-content {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px 18px;
  backdrop-filter: blur(4px);
}

.page-news .timeline-phase {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--news-orange);
  font-family: var(--news-font-mono);
}

.page-news .timeline-content p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.page-news .changelog-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.page-news .metric {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
}

.page-news .metric-num {
  display: block;
  font-family: var(--news-font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--news-green);
  line-height: 1.2;
}

.page-news .metric-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

.page-news .changelog-note {
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
}

.page-news .changelog-note summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--news-orange);
  list-style: none;
  font-family: var(--news-font-sans);
}

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

.page-news .changelog-note p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin: 10px 0 0;
}

.page-news .rules-section {
  background: var(--news-moon);
  color: var(--news-ink);
  padding: 56px 0;
}

.page-news .rules-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.page-news .rules-text .section-tag {
  display: inline-block;
  color: var(--news-orange);
  border: 1px solid rgba(255, 107, 53, 0.6);
  font-family: var(--news-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.page-news .rules-title {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--news-ink);
  font-family: var(--news-font-sans);
}

.page-news .rules-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(17, 24, 39, 0.8);
  margin: 0 0 20px;
}

.page-news .rules-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-news .rules-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--news-ink);
  padding-left: 22px;
  position: relative;
}

.page-news .rules-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--news-orange);
  font-weight: 700;
}

.page-news .rules-text .btn-primary {
  display: inline-block;
  background: var(--news-orange);
  color: var(--news-white);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
}

.page-news .rules-text .btn-primary:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.page-news .rules-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--news-line);
  border: 1px solid var(--news-line);
  box-shadow: 0 8px 28px rgba(11, 27, 58, 0.12);
}

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

.page-news .rules-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(17, 24, 39, 0.65);
  background: var(--news-moon);
  border-top: 1px solid var(--news-line);
}

@media (min-width: 768px) {
  .page-news .news-header {
    padding-top: 44px;
    padding-bottom: 36px;
  }

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

  .page-news .news-lead {
    font-size: 17px;
  }

  .page-news .news-item {
    padding: 28px;
  }

  .page-news .news-item-title {
    font-size: 20px;
    flex-basis: auto;
    flex: 1;
  }

  .page-news .news-item-body {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 24px;
    align-items: start;
  }

  .page-news .news-figure {
    margin: 0;
  }

  .page-news .figure-phone .news-img {
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .page-news .figure-landscape .news-img {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .page-news .changelog-section {
    padding: 72px 0;
  }

  .page-news .changelog-title {
    font-size: 32px;
  }

  .page-news .timeline {
    max-width: 720px;
  }

  .page-news .changelog-metrics {
    grid-template-columns: repeat(3, 200px);
    gap: 18px;
  }

  .page-news .metric-num {
    font-size: 30px;
  }

  .page-news .rules-section {
    padding: 72px 0;
  }

  .page-news .rules-inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .page-news .rules-title {
    font-size: 32px;
  }
}

@media (min-width: 1024px) {
  .page-news .news-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
  }

  .page-news .news-sidebar {
    position: sticky;
    top: 100px;
  }

  .page-news .filter-bar {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .page-news .news-item:hover {
    transform: translateY(-4px);
  }

  .page-news .changelog-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }

  .page-news .changelog-section .section-tag,
  .page-news .changelog-title,
  .page-news .changelog-desc {
    grid-column: 1;
  }

  .page-news .changelog-inner .timeline {
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 0;
  }

  .page-news .changelog-metrics {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
  }

  .page-news .changelog-note {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    margin-top: 16px;
  }

  .page-news .rules-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}
