.page-news {
  --news-blue: #1a2a6c;
  --news-blue-deep: #101b47;
  --news-gold: #f9d342;
  --news-gold-deep: #c9a227;
  --news-red: #e63946;
  --news-red-deep: #b02a35;
  --news-paper: #f5f0e8;
  --news-paper-light: #faf8f3;
  --news-ink: #1a1a2e;
  --news-gray: #4a4a4a;
  --news-gray-light: #e8e6e0;
  --news-white: #ffffff;
  --news-font-display: "Montserrat", "Helvetica Neue", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --news-font-body: "Open Sans", "Helvetica Neue", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --news-font-mono: "Source Code Pro", "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  background: var(--news-paper);
  font-family: var(--news-font-body);
  color: var(--news-ink);
}

/* ===== 容器 ===== */
.page-news__container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* ===== Hero ===== */
.page-news__hero {
  position: relative;
  padding-top: 32px;
  padding-bottom: 48px;
  background: var(--news-blue);
  color: #fff;
  overflow: hidden;
}
.page-news__hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 36%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 0%, transparent 14%, rgba(26, 42, 108, 0.9) 14%, rgba(26, 42, 108, 0.92) 36%, transparent 36%);
  pointer-events: none;
}
.page-news__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--news-font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}
.page-news__breadcrumb .breadcrumb__link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 150ms ease;
}
.page-news__breadcrumb .breadcrumb__link:hover {
  color: var(--news-gold);
}
.page-news__breadcrumb .breadcrumb__sep {
  color: var(--news-gold);
}
.page-news__hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.page-news__hero-copy {
  position: relative;
}
.page-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-gold);
  margin: 0 0 14px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(249, 211, 66, 0.4);
}
.page-news__eyebrow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--news-gold);
  border-radius: 50%;
}
.page-news__hero-title {
  font-family: var(--news-font-display);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.page-news__hero-title-amp {
  color: var(--news-gold);
  font-weight: 400;
}
.page-news__hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 580px;
  margin: 0;
}
.page-news__hero-visual {
  display: none;
}
.page-news__hero-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  display: flex;
  z-index: 2;
}
.page-news__strip-gold {
  flex: 0 0 40%;
  background: var(--news-gold);
}
.page-news__strip-blue {
  flex: 1;
  background: #4a5bb0;
}
.page-news__strip-red {
  flex: 0 0 25%;
  background: var(--news-red);
}

/* ===== 综合布局 ===== */
.page-news__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 64px;
}

/* ===== 区块标题 ===== */
.page-news__section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 8px;
  border-top: 2px solid var(--news-blue);
}
.page-news__section-head--sm {
  border-top: 1px solid var(--news-gray-light);
}
.page-news__section-num {
  font-family: var(--news-font-mono);
  font-size: 42px;
  font-weight: 700;
  color: var(--news-gray-light);
  line-height: 1;
  letter-spacing: -0.05em;
  transition: color 280ms ease;
  min-width: 70px;
}
.page-news__section-head:hover .page-news__section-num {
  color: var(--news-gold-deep);
}
.page-news__section-num--sm {
  font-size: 26px;
  min-width: 42px;
  color: var(--news-gray-light);
}
.page-news__section-head:hover .page-news__section-num--sm {
  color: var(--news-gold-deep);
}
.page-news__section-head-body {
  padding-top: 6px;
}
.page-news__section-title {
  font-family: var(--news-font-display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--news-ink);
}
.page-news__section-title--sm {
  font-size: 18px;
  margin-bottom: 0;
}
.page-news__section-desc {
  font-size: 14px;
  color: var(--news-gray);
  line-height: 1.6;
  margin: 0;
}

/* ===== 最新文章 —— 精选大卡 ===== */
.page-news__feature-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--news-white);
  border: 1px solid var(--news-gray-light);
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.07);
  margin-bottom: 28px;
  transition: box-shadow 280ms ease, transform 280ms ease;
  position: relative;
}
.page-news__feature-card:hover {
  box-shadow: 0 14px 40px rgba(26, 26, 46, 0.14);
  transform: translateY(-2px);
}
.page-news__feature-media {
  position: relative;
  overflow: hidden;
}
.page-news__feature-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: filter 280ms ease, transform 280ms ease;
}
.page-news__feature-card:hover .page-news__feature-img {
  filter: saturate(1.1) contrast(1.06) brightness(1.04);
  transform: scale(1.015);
}
.page-news__feature-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--news-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--news-font-mono);
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 2px;
}
.page-news__feature-body {
  padding: 20px 20px 24px;
}
.page-news__feature-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.page-news__meta-time {
  font-size: 12px;
  font-family: var(--news-font-mono);
  color: var(--news-gray);
  letter-spacing: 0.02em;
}
.page-news__feature-title {
  font-family: var(--news-font-display);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--news-ink);
}
.page-news__feature-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--news-gray);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.page-news__feature-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--news-gray-light);
  flex-wrap: wrap;
}
.page-news__readtime {
  font-size: 13px;
  font-family: var(--news-font-mono);
  color: var(--news-gray);
}
.page-news__more {
  font-size: 14px;
  font-weight: 700;
  color: var(--news-blue);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.page-news__more:hover {
  color: var(--news-gold-deep);
  border-color: var(--news-gold);
}

/* ===== 文章列表 ===== */
.page-news__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.page-news__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--news-white);
  border: 1px solid var(--news-gray-light);
  border-left: 4px solid var(--news-blue);
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.05);
  position: relative;
  transition: box-shadow 280ms ease, border-left-color 280ms ease;
}
.page-news__item:hover {
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.1);
  border-left-color: var(--news-gold);
}
.page-news__item-idx {
  position: absolute;
  top: -12px;
  right: 12px;
  font-family: var(--news-font-mono);
  font-weight: 700;
  font-size: 30px;
  color: rgba(26, 42, 108, 0.1);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  transition: color 280ms ease;
  z-index: 2;
}
.page-news__item:hover .page-news__item-idx {
  color: rgba(249, 211, 66, 0.35);
}
.page-news__item-media {
  overflow: hidden;
}
.page-news__item-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transition: filter 280ms ease, transform 280ms ease;
}
.page-news__item:hover .page-news__item-img {
  filter: saturate(1.08) brightness(1.03);
  transform: scale(1.01);
}
.page-news__item-body {
  padding: 18px 18px 20px;
}
.page-news__item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.page-news__item-title {
  font-family: var(--news-font-display);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--news-ink);
}
.page-news__item-excerpt {
  font-size: 14px;
  color: var(--news-gray);
  line-height: 1.6;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.page-news__item-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--news-blue);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 1px;
  transition: border-color 150ms ease, color 150ms ease;
}
.page-news__item-link:hover {
  color: var(--news-gold-deep);
  border-color: var(--news-gold);
}

/* ===== 分页 ===== */
.page-news__pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--news-gray-light);
}
.page-news__page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  background: var(--news-white);
  color: var(--news-blue);
  border: 1px solid var(--news-gray-light);
  font-family: var(--news-font-display);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.page-news__page-btn:hover {
  border-color: var(--news-gold);
  color: var(--news-gold-deep);
  transform: translateY(-1px);
}
.page-news__page-btn.is-current {
  background: var(--news-blue);
  color: #fff;
  border-color: var(--news-blue);
}
.page-news__page-btn--next {
  margin-left: auto;
  font-size: 14px;
}
.page-news__page-more {
  font-family: var(--news-font-mono);
  color: var(--news-gray);
  padding: 0 2px;
}

/* ===== 侧栏 ===== */
.page-news__aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.page-news__side-section {
  background: var(--news-white);
  border: 1px solid var(--news-gray-light);
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.05);
  padding: 16px;
}
.page-news__side-section + .page-news__side-section {
  margin-top: 0;
}
.page-news__section-head--sm {
  margin-bottom: 16px;
}
.page-news__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-news__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--news-paper-light);
  border: 1px solid var(--news-gray-light);
  font-size: 14px;
  font-weight: 600;
  color: var(--news-ink);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  font-family: var(--news-font-body);
}
.page-news__cat:hover {
  border-color: var(--news-gold);
  box-shadow: 0 2px 6px rgba(201, 162, 39, 0.16);
}
.page-news__cat.is-active {
  background: var(--news-blue);
  border-color: var(--news-blue);
  color: #fff;
}
.page-news__cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50px;
  flex-shrink: 0;
}
.page-news__cat-dot--all {
  background: var(--news-blue);
}
.page-news__cat-dot--migrate {
  background: var(--news-gold-deep);
}
.page-news__cat-dot--update {
  background: var(--news-red);
}
.page-news__cat-dot--tutorial {
  background: #4a90d9;
}
.page-news__cat-dot--match {
  background: #2fbf8f;
}
.page-news__cat.is-active .page-news__cat-dot {
  background: var(--news-gold);
}
.page-news__cat-count {
  font-family: var(--news-font-mono);
  font-size: 12px;
  color: var(--news-gray);
}
.page-news__cat.is-active .page-news__cat-count {
  color: rgba(255, 255, 255, 0.75);
}

/* ===== 推荐文章 ===== */
.page-news__rec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-news__rec {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--news-gray-light);
}
.page-news__rec:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.page-news__rec-idx {
  font-family: var(--news-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--news-gray-light);
  line-height: 1.4;
  min-width: 24px;
  letter-spacing: 0.02em;
  transition: color 280ms ease;
}
.page-news__rec:hover .page-news__rec-idx {
  color: var(--news-gold-deep);
}
.page-news__rec-body {
  flex: 1;
}
.page-news__rec-tagwrap {
  margin-bottom: 4px;
}
.page-news__rec-title {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  margin: 0 0 4px;
}
.page-news__rec-title a {
  color: var(--news-ink);
  text-decoration: none;
  transition: color 150ms ease;
}
.page-news__rec-title a:hover {
  color: var(--news-blue);
  text-decoration: underline;
  text-decoration-color: var(--news-gold);
  text-underline-offset: 3px;
}
.page-news__rec-meta {
  font-size: 12px;
  font-family: var(--news-font-mono);
  color: var(--news-gray);
  margin: 0;
}

/* ===== 侧栏服务卡 ===== */
.page-news__side-card {
  position: relative;
  background: var(--news-blue);
  overflow: hidden;
}
.page-news__side-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  background: rgba(249, 211, 66, 0.12);
  transform: rotate(45deg);
}
.page-news__side-card-line {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--news-gold) 0%, var(--news-red) 100%);
}
.page-news__side-card-body {
  padding: 20px 20px 24px;
  position: relative;
  z-index: 1;
  color: #fff;
}
.page-news__side-card-label {
  font-family: var(--news-font-mono);
  font-size: 12px;
  color: var(--news-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.page-news__side-card-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.page-news__side-card-link {
  color: var(--news-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(249, 211, 66, 0.6);
  transition: color 150ms ease, border-color 150ms ease;
}
.page-news__side-card-link:hover {
  color: #fff;
  border-color: #fff;
}

/* ===== 共享 tag 色彩微调（保持与全站一致） ===== */
.page-news .tag {
  font-family: var(--news-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  display: inline-block;
  line-height: 1.3;
}

/* ===== 桌面 768px+ ===== */
@media (min-width: 768px) {
  .page-news__hero {
    padding-top: 44px;
    padding-bottom: 64px;
  }
  .page-news__hero-title {
    font-size: 42px;
  }
  .page-news__hero-inner {
    grid-template-columns: 1fr 260px;
    align-items: center;
  }
  .page-news__hero-visual {
    display: block;
    position: relative;
    height: 180px;
  }
  .page-news__hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(249, 211, 66, 0.4);
    backdrop-filter: blur(2px);
  }
  .page-news__hero-card--back {
    width: 120px;
    height: 160px;
    top: 20px;
    left: 40px;
    transform: rotate(8deg);
    border-color: rgba(255, 255, 255, 0.14);
  }
  .page-news__hero-card--front {
    width: 120px;
    height: 160px;
    top: 4px;
    left: 96px;
    transform: rotate(-6deg);
    background: rgba(249, 211, 66, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 16px;
  }
  .page-news__hero-card-idx {
    font-family: var(--news-font-mono);
    font-size: 34px;
    font-weight: 700;
    color: var(--news-gold);
  }
  .page-news__hero-card-line {
    width: 24px;
    height: 2px;
    background: var(--news-gold);
  }
  .page-news__hero-card-text {
    font-family: var(--news-font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
  }
  .page-news__layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 80px;
  }
  .page-news__section-head {
    gap: 20px;
    margin-bottom: 28px;
  }
  .page-news__section-num {
    font-size: 52px;
    min-width: 84px;
  }
  .page-news__section-title {
    font-size: 28px;
  }
  .page-news__feature-card {
    grid-template-columns: 1fr 1fr;
  }
  .page-news__feature-body {
    padding: 28px 28px 30px;
  }
  .page-news__feature-title {
    font-size: 23px;
  }
  .page-news__feature-excerpt {
    font-size: 15px;
  }
  .page-news__item {
    grid-template-columns: 280px 1fr;
    gap: 16px;
  }
  .page-news__item-media {
    height: 100%;
    min-height: 170px;
  }
  .page-news__item-img {
    height: 100%;
    min-height: 170px;
    object-fit: cover;
  }
  .page-news__item-body {
    padding: 22px 24px 22px 0;
  }
  .page-news__item-idx {
    top: auto;
    right: 16px;
    bottom: 10px;
    font-size: 36px;
    color: rgba(26, 42, 108, 0.08);
  }
  .page-news__item:hover .page-news__item-idx {
    color: rgba(249, 211, 66, 0.4);
  }
  .page-news__side-card {
    margin-top: 0;
  }
}

/* ===== 桌面 1024px+ ===== */
@media (min-width: 1024px) {
  .page-news__container {
    padding-inline: 24px;
  }
  .page-news__hero {
    padding-top: 52px;
    padding-bottom: 72px;
  }
  .page-news__hero-title {
    font-size: 48px;
    line-height: 1.12;
  }
  .page-news__hero-desc {
    font-size: 17px;
  }
  .page-news__hero-visual {
    height: 200px;
  }
  .page-news__hero-card--back {
    width: 140px;
    height: 180px;
    left: 48px;
  }
  .page-news__hero-card--front {
    width: 140px;
    height: 180px;
    left: 118px;
    padding: 20px;
  }
  .page-news__hero-card-idx {
    font-size: 42px;
  }
  .page-news__layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
  }
  .page-news__feature-body {
    padding: 32px 32px 34px;
  }
  .page-news__feature-title {
    font-size: 26px;
    line-height: 1.25;
  }
  .page-news__item {
    grid-template-columns: 320px 1fr;
  }
  .page-news__item-title {
    font-size: 18px;
  }
  .page-news__side-section {
    padding: 20px;
  }
  .page-news__side-card-body {
    padding: 24px 24px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news__feature-card,
  .page-news__item,
  .page-news__section-num,
  .page-news__hero-card,
  .page-news__rec-idx {
    transition: none !important;
    transform: none !important;
  }
}
