/* ===== page-news 专属样式 ===== */
.page-news {
  --news-orange: #FF4E00;
  --news-navy: #0B1B3F;
  --news-green: #00FF88;
  --news-black: #0A0F1E;
  --news-card: #151B2E;
  --news-text: #F5F7FA;
  --news-dim: #A0AABF;
  --news-red: #FF2D78;
  --news-yellow: #FFB800;
  --news-grad: linear-gradient(135deg, #FF4E00 0%, #FF2D78 100%);
  --news-border: 1px solid rgba(245, 247, 250, 0.14);
  --news-radius: 4px;
  --news-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --news-font-head: "Barlow Condensed", "Noto Sans SC", "PingFang SC", sans-serif;
  --news-font-body: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  --news-font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.page-news .news-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* 面包屑 */
.page-news .breadcrumb {
  margin-bottom: 24px;
}

/* Hero */
.page-news .news-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px 0 40px;
  margin-bottom: 48px;
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--news-grad);
  transform: skewX(-12deg);
  transform-origin: left;
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 2px;
  background: rgba(0, 255, 136, 0.5);
  transform: skewX(-12deg);
}

.page-news .news-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--news-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--news-green);
  margin: 0 0 12px;
}

.page-news .news-eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--news-green);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}

.page-news .news-title {
  font-family: var(--news-font-head);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--news-text);
  margin: 0 0 16px;
}

.page-news .news-title span {
  color: var(--news-orange);
}

.page-news .news-lead {
  font-family: var(--news-font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--news-dim);
  max-width: 680px;
  margin: 0 0 24px;
}

.page-news .news-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-news .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--news-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--news-radius);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.page-news .btn-primary {
  background: var(--news-grad);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(255, 78, 0, 0.35);
}

.page-news .btn-primary:hover,
.page-news .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 78, 0, 0.5);
}

.page-news .btn-ghost {
  background: transparent;
  color: var(--news-text);
  border: 1px solid rgba(245, 247, 250, 0.4);
}

.page-news .btn-ghost:hover,
.page-news .btn-ghost:focus-visible {
  border-color: var(--news-orange);
  color: var(--news-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Hero 右侧装饰 */
.page-news .news-hero-aside {
  display: none;
}

/* Section 通用 */
.page-news .section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.page-news .section-title {
  position: relative;
  font-family: var(--news-font-head);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--news-text);
  margin: 0;
  padding-left: 14px;
}

.page-news .section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--news-grad);
  transform: skewX(-8deg);
}

.page-news .section-sub {
  font-family: var(--news-font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--news-dim);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.1em;
  margin: 2px 0 0;
  opacity: 0.8;
}

/* 分类筛选 */
.page-news .news-category-section {
  margin-bottom: 56px;
}

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

.page-news .news-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-family: var(--news-font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--news-text);
  background: var(--news-card);
  border: 1px solid rgba(245, 247, 250, 0.18);
  border-radius: var(--news-radius);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.page-news .news-filter-btn:focus-visible {
  outline: 2px solid var(--news-green);
  outline-offset: 2px;
}

.page-news .news-filter-btn.is-active {
  background: var(--news-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 78, 0, 0.3);
}

/* 最新文章列表 */
.page-news .news-latest-section {
  position: relative;
  margin-bottom: 64px;
  padding-top: 8px;
}

.page-news .news-latest-count {
  display: inline-block;
  font-family: var(--news-font-mono);
  font-size: 12px;
  color: var(--news-green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 2px;
  padding: 4px 10px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

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

.page-news .news-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: var(--news-card);
  border: var(--news-border);
  border-radius: var(--news-radius);
  padding: 20px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news .news-item:hover {
  border-color: rgba(255, 78, 0, 0.5);
  box-shadow: var(--news-shadow);
  transform: translateY(-3px);
}

.page-news .news-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--news-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.page-news .news-item:hover::after {
  transform: scaleX(1);
}

.page-news .news-item-featured {
  border-top: 3px solid var(--news-orange);
}

.page-news .news-item-num {
  font-family: var(--news-font-head);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 78, 0, 0.15);
  -webkit-text-stroke: 1px rgba(255, 78, 0, 0.5);
  position: absolute;
  top: 12px;
  right: 16px;
  user-select: none;
  pointer-events: none;
}

.page-news .news-item-image {
  border-radius: var(--news-radius);
  overflow: hidden;
  background: var(--news-black);
}

.page-news .news-item-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.page-news .news-item:hover .news-item-img {
  opacity: 0.9;
}

.page-news .news-item-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.page-news .news-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-family: var(--news-font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.page-news .tag-yellow {
  background: rgba(255, 184, 0, 0.12);
  color: var(--news-yellow);
  border: 1px solid rgba(255, 184, 0, 0.4);
}

.page-news .tag-red {
  background: rgba(255, 45, 120, 0.12);
  color: var(--news-red);
  border: 1px solid rgba(255, 45, 120, 0.4);
}

.page-news .tag-green {
  background: rgba(0, 255, 136, 0.1);
  color: var(--news-green);
  border: 1px solid rgba(0, 255, 136, 0.35);
}

.page-news .news-item-readtime {
  font-family: var(--news-font-mono);
  font-size: 12px;
  color: var(--news-dim);
}

.page-news .news-item-title {
  font-family: var(--news-font-head);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--news-text);
  margin: 0;
}

.page-news .news-item-desc {
  font-family: var(--news-font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--news-dim);
  margin: 0;
}

.page-news .news-item-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--news-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--news-orange);
  text-decoration: none;
  margin-top: 4px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.page-news .news-item-link:hover,
.page-news .news-item-link:focus-visible {
  gap: 10px;
  border-bottom-color: var(--news-orange);
}

.page-news .news-item-link:focus-visible {
  outline: 2px solid var(--news-green);
  outline-offset: 2px;
  border-radius: 2px;
}

.page-news .news-item-preview {
  display: none;
  font-family: var(--news-font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--news-dim);
  background: var(--news-black);
  border-left: 2px solid var(--news-orange);
  padding: 12px 16px;
  border-radius: 0 var(--news-radius) var(--news-radius) 0;
  margin-top: 4px;
}

/* 分页 */
.page-news .news-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 247, 250, 0.1);
}

.page-news .news-pagination-status {
  font-family: var(--news-font-mono);
  font-size: 12px;
  color: var(--news-dim);
}

.page-news .news-pagination-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-news .news-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-family: var(--news-font-mono);
  font-size: 13px;
  color: var(--news-text);
  background: var(--news-card);
  border: 1px solid rgba(245, 247, 250, 0.18);
  border-radius: var(--news-radius);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

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

.page-news .news-pagination-btn.is-active {
  background: var(--news-grad);
  border-color: transparent;
  color: #fff;
}

.page-news .news-pagination-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 热读推荐 */
.page-news .news-hot-section {
  padding: 56px 0;
  border-top: 1px solid rgba(245, 247, 250, 0.1);
  border-bottom: 1px solid rgba(245, 247, 250, 0.1);
  margin-bottom: 64px;
}

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

.page-news .news-hot-card {
  position: relative;
  display: block;
  background: var(--news-card);
  border: var(--news-border);
  border-radius: var(--news-radius);
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.page-news .news-hot-card:hover,
.page-news .news-hot-card:focus-visible {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 4px 24px rgba(0, 255, 136, 0.12);
  transform: translateY(-3px);
}

.page-news .news-hot-card:focus-visible {
  outline: 2px solid var(--news-green);
  outline-offset: 2px;
}

.page-news .news-hot-card-img {
  background: var(--news-black);
  overflow: hidden;
}

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

.page-news .news-hot-body {
  padding: 20px;
}

.page-news .news-hot-body .tag {
  margin-bottom: 10px;
}

.page-news .news-hot-title {
  font-family: var(--news-font-head);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--news-text);
  margin: 0 0 8px;
}

.page-news .news-hot-desc {
  font-family: var(--news-font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--news-dim);
  margin: 0;
}

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

/* 阅读生态 */
.page-news .news-extra-section {
  margin-bottom: 64px;
}

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

.page-news .news-extra-card {
  position: relative;
  padding: 24px;
  background: var(--news-card);
  border: var(--news-border);
  border-radius: var(--news-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.page-news .news-extra-card:hover {
  box-shadow: var(--news-shadow);
  transform: translateY(-3px);
}

.page-news .card-accent {
  border-top: 3px solid var(--news-orange);
}

.page-news .news-extra-num {
  font-family: var(--news-font-head);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 78, 0, 0.35);
  display: block;
  margin-bottom: 12px;
}

.page-news .news-extra-title {
  font-family: var(--news-font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--news-text);
  margin: 0 0 8px;
}

.page-news .news-extra-desc {
  font-family: var(--news-font-body);
  font-size: 13px;
  line-height: 1.65;
  color: var(--news-dim);
  margin: 0;
}

/* CTA 区块 */
.page-news .news-cta-inner {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 78, 0, 0.15) 0%, rgba(255, 45, 120, 0.08) 100%);
  border: 1px solid rgba(255, 78, 0, 0.3);
  border-radius: var(--news-radius);
  padding: 32px 24px;
  text-align: center;
  overflow: hidden;
}

.page-news .news-cta-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--news-grad);
  transform: skewX(-20deg);
  transform-origin: left;
}

.page-news .news-cta-title {
  font-family: var(--news-font-head);
  font-size: 26px;
  font-weight: 900;
  color: var(--news-text);
  margin: 0 0 8px;
}

.page-news .news-cta-desc {
  font-family: var(--news-font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--news-dim);
  max-width: 560px;
  margin: 0 auto 20px;
}

.page-news .news-cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* 响应式：桌面端 */
@media (min-width: 768px) {
  .page-news .news-shell {
    padding: 32px 24px 80px;
  }

  .page-news .news-hero {
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 48px 0 56px;
  }

  .page-news .news-hero-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    padding-right: 8px;
  }

  .page-news .news-hero-index {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 3px solid var(--news-orange);
    padding-left: 16px;
  }

  .page-news .news-hero-num {
    font-family: var(--news-font-head);
    font-size: 88px;
    font-weight: 900;
    line-height: 0.9;
    color: var(--news-orange);
  }

  .page-news .news-hero-label {
    font-family: var(--news-font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--news-green);
    text-transform: uppercase;
  }

  .page-news .news-hero-vertical-text {
    font-family: var(--news-font-head);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--news-dim);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-right: 1px solid rgba(245, 247, 250, 0.2);
    padding-right: 8px;
    height: 160px;
    display: flex;
    align-items: center;
  }

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

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

  .page-news .news-filter {
    gap: 12px;
  }

  .page-news .news-list {
    grid-template-columns: 1fr;
  }

  .page-news .news-item {
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 24px;
  }

  .page-news .news-item-featured {
    grid-template-columns: 240px 1fr;
  }

  .page-news .news-item-num {
    font-size: 72px;
    top: 16px;
    right: 24px;
  }

  .page-news .news-item-img {
    height: 100%;
    min-height: 160px;
    object-fit: cover;
  }

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

  .page-news .news-hot-card:first-child {
    grid-column: span 1;
  }

  .page-news .news-hot-card:nth-child(3),
  .page-news .news-hot-card:nth-child(5) {
    grid-column: span 1;
  }

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

  .page-news .news-cta-inner {
    padding: 48px 40px;
  }
}

@media (min-width: 1200px) {
  .page-news .news-item {
    grid-template-columns: 280px 1fr;
  }

  .page-news .news-item-featured {
    grid-template-columns: 320px 1fr;
  }

  .page-news .news-item:nth-child(odd) {
    grid-template-columns: 1fr 280px;
  }

  .page-news .news-item:nth-child(odd) .news-item-image {
    grid-column: 2;
    grid-row: 1;
  }

  .page-news .news-item:nth-child(odd) .news-item-body {
    grid-column: 1;
    grid-row: 1;
  }

  .page-news .news-item:nth-child(odd) .news-item-num {
    left: 24px;
    right: auto;
  }
}
