.page-news {
  --news-schedule: #800020;
  --news-panel: #2E6BFF;
  --news-team: #006B5E;
  --news-app: #FF6B35;
  --news-indigo: #3B0A5E;

  position: relative;
  background: var(--c-sand);
  color: var(--c-deep);
  overflow-x: hidden;
}

/* 面包屑 */
.page-news .breadcrumb {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 22px 20px 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-news .breadcrumb a {
  color: var(--c-flame);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.page-news .breadcrumb a:hover {
  color: var(--c-yellow);
}

.page-news .breadcrumb__sep {
  color: var(--c-gray);
}

.page-news .breadcrumb__current {
  color: var(--c-deep);
  font-weight: 600;
}

/* Hero */
.page-news .news-hero {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 36px 20px 56px;
  position: relative;
}

.page-news .news-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-news .news-hero__content {
  position: relative;
  z-index: 2;
}

.page-news .news-hero__content .section-head__kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-flame);
  background: rgba(255, 107, 53, 0.12);
  padding: 6px 12px;
  margin-bottom: 16px;
  border-left: 3px solid var(--c-flame);
}

.page-news .news-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5.2vw, 46px);
  line-height: 1.18;
  margin: 0 0 18px;
  color: var(--c-deep);
  max-width: 12em;
}

.page-news .news-hero__desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-ocean);
  margin: 0 0 28px;
  max-width: 42em;
}

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

.page-news .news-hero__visual {
  position: relative;
  min-height: 180px;
  display: none;
}

.page-news .news-hero__ticker {
  position: absolute;
  top: 18px;
  right: 12px;
  background: var(--c-deep);
  color: var(--c-white);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  padding: 18px 10px;
  display: flex;
  gap: 24px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  opacity: 0.92;
}

.page-news .news-hero__ticker span {
  display: block;
}

.page-news .news-hero__slope {
  position: absolute;
  top: 44px;
  right: 76px;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--c-flame) 0%, var(--c-yellow) 100%);
  clip-path: polygon(0 0, 100% 14%, 100% 100%, 20% 100%);
  opacity: 0.28;
}

.page-news .news-hero__dots {
  position: absolute;
  bottom: 12px;
  right: 20px;
  display: grid;
  grid-template-columns: repeat(5, 8px);
  gap: 8px;
}

.page-news .news-hero__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-deep);
  opacity: 0.35;
}

.page-news .news-hero__dots i:nth-child(2n) {
  background: var(--c-flame);
  opacity: 0.8;
}

@media (min-width: 768px) {
  .page-news .news-hero {
    padding: 52px 20px 72px;
  }

  .page-news .news-hero__inner {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
  }

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

  .page-news .news-hero h1 {
    font-size: clamp(34px, 4.4vw, 52px);
  }

  .page-news .news-hero__desc {
    font-size: 18px;
  }
}

/* 正文主体 */
.page-news .news-body {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px 64px;
}

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

/* 热门标签 */
.page-news .news-tags__inner {
  background: var(--c-white);
  padding: 24px 20px;
  border-left: 3px solid var(--c-flame);
  box-shadow: 0 6px 24px rgba(11, 30, 51, 0.06);
}

.page-news .news-tags h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 16px;
  color: var(--c-deep);
  position: relative;
  padding-left: 14px;
}

.page-news .news-tags h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 18px;
  background: linear-gradient(180deg, var(--c-flame), var(--c-yellow));
}

.page-news .news-tags__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-news .news-tags__list::-webkit-scrollbar {
  height: 4px;
}

.page-news .news-tags__list::-webkit-scrollbar-thumb {
  background: var(--c-gray);
  border-radius: 2px;
}

.page-news .news-tag {
  flex: 0 0 auto;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.page-news .news-tag--all {
  background: var(--c-deep);
  color: var(--c-white);
}

.page-news .news-tag--schedule {
  background: rgba(128, 0, 32, 0.1);
  color: var(--news-schedule);
}

.page-news .news-tag--panel {
  background: rgba(46, 107, 255, 0.1);
  color: var(--news-panel);
}

.page-news .news-tag--team {
  background: rgba(0, 107, 94, 0.1);
  color: var(--news-team);
}

.page-news .news-tag--app {
  background: rgba(255, 107, 53, 0.12);
  color: var(--news-app);
}

.page-news .news-tag--update {
  background: rgba(255, 215, 0, 0.2);
  color: #7a6400;
}

.page-news .news-tag--preview {
  background: rgba(59, 10, 94, 0.1);
  color: var(--news-indigo);
}

.page-news .news-tag--tutorial {
  background: rgba(30, 58, 95, 0.1);
  color: var(--c-ocean);
}

.page-news .news-tag:hover {
  box-shadow: 0 0 0 3px rgba(46, 107, 255, 0.18), 0 6px 20px rgba(255, 107, 53, 0.22);
  transform: translateY(-1px);
}

.page-news .news-tag.is-active {
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.28);
}

.page-news .news-tags__slash {
  height: 3px;
  margin-top: 20px;
  background: repeating-linear-gradient(135deg, var(--c-gray) 0 6px, transparent 6px 12px);
  opacity: 0.7;
}

.page-news .news-tags__tip {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-gray);
  line-height: 1.7;
  margin: 16px 0 0;
}

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

  .page-news .news-tags__inner {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .page-news .news-tags__list {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    overflow-x: visible;
  }

  .page-news .news-tag {
    display: block;
    text-align: left;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  }
}

/* 最新发布 */
.page-news .news-section .section-head {
  margin-bottom: 28px;
}

.page-news .news-section .section-head__kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-flame);
  margin-bottom: 10px;
}

.page-news .news-section .section-head h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--c-deep);
}

.page-news .news-section .section-head__desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-gray);
  line-height: 1.7;
  max-width: 40em;
}

.page-news .news-section .section-head::after {
  content: "";
  display: block;
  margin-top: 18px;
  height: 3px;
  background: repeating-linear-gradient(135deg, var(--c-flame) 0 8px, var(--c-yellow) 8px 16px, transparent 16px 28px);
  opacity: 0.75;
}

/* 文章瀑布流 */
.page-news .news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .page-news .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 28px;
  }

  .page-news .article-card:nth-child(2n) {
    margin-top: 36px;
  }
}

@media (min-width: 1200px) {
  .page-news .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 32px;
  }

  .page-news .article-card:nth-child(2n) {
    margin-top: 44px;
  }
}

/* 文章卡片 */
.page-news .article-card {
  position: relative;
  background: var(--c-white);
  box-shadow: 0 8px 28px rgba(11, 30, 51, 0.07);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.page-news .article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(11, 30, 51, 0.13);
}

.page-news .article-card__ribbon {
  height: 5px;
  width: 100%;
  flex-shrink: 0;
}

.page-news .article-card--schedule .article-card__ribbon {
  background: var(--news-schedule);
}

.page-news .article-card--panel .article-card__ribbon {
  background: var(--news-panel);
}

.page-news .article-card--app .article-card__ribbon {
  background: var(--news-app);
}

.page-news .article-card--team .article-card__ribbon {
  background: var(--news-team);
}

.page-news .article-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.page-news .article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.page-news .article-card:hover .article-card__image img {
  transform: scale(1.04);
}

.page-news .article-card__body {
  padding: 22px 20px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.page-news .article-card__body::before {
  content: "";
  position: absolute;
  top: -12px;
  right: 20px;
  width: 22px;
  height: 22px;
  background: var(--c-sand);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  opacity: 0.9;
}

.page-news .article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.page-news .article-card__time {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-gray);
  white-space: nowrap;
}

.page-news .article-card h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 12px;
  color: var(--c-deep);
}

.page-news .article-card__desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-ocean);
  margin: 0 0 16px;
}

.page-news .article-card__points {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-news .article-card__points li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-deep);
}

.page-news .article-card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--c-flame), var(--c-yellow));
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.page-news .article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-flame);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s ease, gap 0.2s ease;
}

.page-news .article-card__link:hover {
  color: var(--c-deep);
  gap: 10px;
}

/* 专题系列 */
.page-news .news-series {
  margin-top: 64px;
}

.page-news .news-series .section-head__kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 10px;
}

.page-news .news-series .section-head h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--c-deep);
}

.page-news .news-series .section-head__desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-gray);
  line-height: 1.7;
  max-width: 44em;
}

.page-news .news-series__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .page-news .news-series__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

.page-news .news-series__panel {
  position: relative;
  padding: 32px 26px 30px;
  overflow: hidden;
}

.page-news .news-series__panel::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--c-yellow), var(--c-flame));
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  opacity: 0.16;
}

.page-news .news-series__num {
  font-family: var(--font-heading);
  font-size: 42px;
  line-height: 1;
  color: var(--c-flame);
  opacity: 0.75;
  display: block;
  margin-bottom: 14px;
}

.page-news .news-series__bar {
  width: 52px;
  height: 4px;
  margin-bottom: 16px;
}

.page-news .news-series__bar--green {
  background: linear-gradient(90deg, var(--c-green), var(--c-yellow));
}

.page-news .news-series__bar--blue {
  background: linear-gradient(90deg, var(--c-electric), var(--c-flame));
}

.page-news .news-series__panel h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.35;
  color: var(--c-white);
  margin: 0 0 12px;
}

.page-news .news-series__panel > p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 18px;
}

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

.page-news .news-series__list li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.page-news .news-series__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 2px;
  background: var(--c-yellow);
}

/* 订阅更新 */
.page-news .news-subscribe {
  margin-top: 64px;
  background: var(--c-deep);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
}

.page-news .news-subscribe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 12px);
  pointer-events: none;
}

.page-news .news-subscribe__inner {
  position: relative;
  z-index: 1;
  padding: 36px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-news .news-subscribe h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.3;
  color: var(--c-white);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-news .news-subscribe h2::before {
  content: "";
  width: 6px;
  height: 28px;
  background: linear-gradient(180deg, var(--c-flame), var(--c-yellow));
}

.page-news .news-subscribe__content p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 48em;
}

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

.page-news .news-subscribe__secondary {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-yellow);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-news .news-subscribe__secondary:hover {
  color: var(--c-white);
}

.page-news .news-subscribe__mail {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 4px 0 0;
}

@media (min-width: 768px) {
  .page-news .news-subscribe__inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    padding: 44px 36px;
  }

  .page-news .news-subscribe__cta {
    align-items: flex-end;
  }

  .page-news .news-subscribe h2 {
    font-size: 32px;
  }
}

/* 数据注入过渡态 */
.page-news [data-reveal] {
  opacity: 1;
  transform: none;
}

.page-news [data-reveal="visible"] {
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

/* 窄屏安全 */
@media (max-width: 480px) {
  .page-news .news-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-news .article-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .page-news .news-subscribe__inner {
    padding: 30px 22px;
  }
}
