/* =========================================================
   NG体育中国站 · 内容观察页面专属样式
   作用域：.page-news
   ========================================================= */
.page-news {
  --green-deep: #00A85A;
  --warm-deep: #E04E1A;
  --muted-text: #6A7B96;
  --card-shadow: 0 6px 20px rgba(11, 27, 58, 0.06);
  background: var(--c-bg-light);
  color: var(--c-text-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-news img {
  max-width: 100%;
  height: auto;
}

.page-news [id] {
  scroll-margin-top: 96px;
}

/* ---------- 1. 专题封面首屏 ---------- */
.news-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(0, 230, 118, 0.12), transparent 60%),
    linear-gradient(135deg, var(--c-bg-dark) 0%, #10244D 65%, var(--c-bg-dark) 100%);
  color: var(--c-white);
  padding: 36px 0 52px;
}

.news-hero__signal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent-warm) 50%, var(--c-accent) 100%);
  z-index: 2;
}

.news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 36px),
    repeating-linear-gradient(155deg, rgba(0, 230, 118, 0.035) 0 2px, transparent 2px 24px);
  pointer-events: none;
}

.news-hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-glow) 0%, transparent 65%);
  pointer-events: none;
}

.news-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  font-size: var(--fs-small);
}

.news-hero .breadcrumb a {
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-hero .breadcrumb a:hover {
  color: var(--c-accent);
}

.news-hero .breadcrumb__current {
  color: var(--c-white);
}

.news-hero__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.news-hero__eyebrow {
  display: inline-block;
  color: var(--c-accent);
  border: 1px solid rgba(0, 230, 118, 0.4);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.news-hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.5vw, var(--fs-hero));
  line-height: 1.15;
  max-width: 900px;
  margin: 0 0 16px;
}

.news-hero__title-accent {
  display: inline-block;
  background: linear-gradient(90deg, var(--c-accent) 0%, rgba(0, 230, 118, 0.4) 100%);
  color: #08152A;
  padding: 0 10px;
  transform: skew(var(--skew));
  border-radius: 4px;
}

.news-hero__lead {
  color: var(--c-muted);
  font-size: var(--fs-subtitle);
  line-height: 1.65;
  max-width: 640px;
  margin: 0;
}

.news-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.news-hero__actions .btn {
  position: relative;
  z-index: 1;
}

.news-hero__meta {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  color: var(--c-muted);
  font-size: var(--fs-small);
  position: relative;
  z-index: 1;
}

/* ---------- 2. 杂志目录式主布局 ---------- */
.news-wrap {
  padding: 48px 0 56px;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.news-main {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.page-news .section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0;
  transform: skew(var(--skew));
  border-left: 4px solid var(--c-accent);
  padding-left: 12px;
}

.page-news .chapter-index {
  background: var(--c-bg-dark);
  color: var(--c-accent);
  border-radius: var(--radius-pill);
  font-weight: 800;
  padding: 6px 14px;
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.page-news .link-arrow {
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news .link-arrow:hover {
  color: var(--c-accent-warm);
}

/* ---------- 3. 头条文章卡片 ---------- */
.post-card--feature {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border-left: 5px solid var(--c-accent);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  margin-bottom: 28px;
}

.post-card--feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(11, 27, 58, 0.12), 0 0 0 1px var(--c-glow);
  border-left-color: var(--c-accent-warm);
}

.post-card__media {
  position: relative;
}

.post-card__media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--c-accent-warm);
  color: var(--c-white);
  font-size: var(--fs-small);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transform: skew(var(--skew));
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

.post-card__body {
  padding: 24px 22px 28px;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-card__date {
  color: var(--muted-text);
  font-size: var(--fs-small);
}

.post-card__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--c-text-dark);
}

.post-card__excerpt {
  color: #34405A;
  line-height: 1.65;
  margin: 0 0 18px;
  font-size: 0.9375rem;
}

/* ---------- 4. 文章列表卡片 ---------- */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  background: var(--c-white);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--c-accent);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.post-item--guide {
  border-left-color: var(--c-accent-warm);
}

.post-item--topic {
  border-left-color: var(--c-border);
}

.post-item--topic::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-warm));
}

.post-item:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(11, 27, 58, 0.1);
  border-left-color: var(--c-accent-warm);
}

.post-item__thumb {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.post-item__thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.45s ease;
}

.post-item:hover .post-item__thumb img {
  transform: scale(1.04);
}

.post-item__content {
  min-width: 0;
}

.post-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-item--topic .post-item__meta::before {
  content: "◆";
  color: var(--c-accent);
  font-size: 0.8rem;
  margin-right: 2px;
}

.post-item__date {
  color: #8A9AB0;
  font-size: var(--fs-tiny);
}

.post-item__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 10px 0 6px;
  color: var(--c-text-dark);
}

.post-item__excerpt {
  color: #3A4A66;
  line-height: 1.6;
  font-size: 0.9rem;
  max-height: 3.4em;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.post-item:hover .post-item__excerpt,
.post-item:focus-within .post-item__excerpt {
  max-height: 16em;
  overflow: visible;
}

.post-item__link {
  display: inline-block;
  margin-top: 10px;
  color: var(--green-deep);
  font-weight: 700;
  font-size: var(--fs-small);
  text-decoration: none;
  position: relative;
}

.post-item__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-accent);
  transition: width 0.3s ease;
}

.post-item:hover .post-item__link::after,
.post-item__link:hover::after {
  width: 100%;
}

.news-note {
  margin-top: 28px;
  background: var(--c-bg-dark);
  color: var(--c-muted);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: var(--fs-small);
  line-height: 1.7;
  border-left: 4px solid var(--c-accent);
}

/* ---------- 5. 右侧索引栏 ---------- */
.news-aside__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aside-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--card-shadow);
  position: relative;
}

.aside-card--categories::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-warm));
  border-radius: 0 0 4px 4px;
}

.aside-card__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  margin: 0 0 6px;
  color: var(--c-text-dark);
  transform: skew(var(--skew));
}

.aside-card__hint {
  color: var(--muted-text);
  font-size: var(--fs-small);
  margin-bottom: 16px;
}

.category-ring__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px solid rgba(0, 230, 118, 0.45);
  background: rgba(244, 246, 250, 0.75);
  color: var(--c-text-dark);
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.category-ring:hover {
  border-color: var(--c-accent);
  background: var(--c-accent);
  color: #08152A;
  transform: rotate(-3deg) scale(1.05);
  box-shadow: 0 8px 20px var(--c-glow);
}

.category-ring__count {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.1;
}

.category-ring__label {
  font-size: var(--fs-tiny);
  margin-top: 4px;
  opacity: 0.85;
  white-space: nowrap;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.tag-cloud .tag {
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.tag-cloud .tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--c-glow);
}

/* ---------- 6. 更新订阅提醒卡片 ---------- */
.aside-card--subscribe {
  background: var(--c-bg-dark);
  color: var(--c-white);
  overflow: hidden;
  text-align: center;
  padding-top: 34px;
}

.aside-card--subscribe::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(155deg, rgba(0, 230, 118, 0.04) 0 2px, transparent 2px 20px);
  pointer-events: none;
}

.subscribe-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  border: 2px solid var(--c-accent);
  box-shadow: 0 0 0 6px rgba(0, 230, 118, 0.15);
}

.aside-card--subscribe .aside-card__title {
  position: relative;
  z-index: 1;
  color: var(--c-white);
  font-size: 1.25rem;
}

.aside-card--subscribe .aside-card__desc {
  position: relative;
  z-index: 1;
  color: var(--c-muted);
  font-size: var(--fs-small);
  line-height: 1.7;
  margin: 12px 0 18px;
}

.aside-card--subscribe .btn {
  position: relative;
  z-index: 1;
}

.page-news .btn--block {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.aside-card__note {
  position: relative;
  z-index: 1;
  color: rgba(176, 196, 222, 0.7);
  font-size: var(--fs-tiny);
  margin-top: 14px;
  line-height: 1.5;
}

/* ---------- 7. 底部支持指引 ---------- */
.news-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 12% 100%, rgba(0, 230, 118, 0.1), transparent 60%),
    var(--c-bg-dark);
  color: var(--c-white);
  padding: 56px 0 48px;
}

.news-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent-warm) 100%);
}

.news-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.news-cta .section-title {
  border-left-color: var(--c-accent-warm);
}

.page-news .section-title--light {
  color: var(--c-white);
}

.news-cta__text {
  color: var(--c-muted);
  font-size: 1rem;
  margin: 12px 0 0;
  max-width: 520px;
  line-height: 1.6;
}

.news-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.news-cta__footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--c-muted);
  font-size: var(--fs-tiny);
  word-break: break-all;
}

/* ---------- 8. 媒体查询：平板与桌面增强 ---------- */
@media (min-width: 768px) {
  .news-hero {
    padding: 56px 0 84px;
  }

  .post-card__body {
    padding: 32px;
  }

  .post-card__media img {
    aspect-ratio: 12 / 5;
  }

  .post-item {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: start;
    padding: 16px 20px;
  }

  .post-item--topic {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
  }

  .post-item__thumb img {
    aspect-ratio: 16 / 10;
  }
}

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

  .news-aside__inner {
    position: sticky;
    top: 32px;
  }

  .news-hero__grid {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
  }

  .news-hero__actions {
    justify-content: flex-end;
    padding-bottom: 8px;
  }

  .news-cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .page-news .section-title {
    font-size: 1.5rem;
  }

  .news-hero h1 {
    font-size: 1.75rem;
  }

  .post-card__body {
    padding: 20px 18px 24px;
  }

  .post-card__badge {
    top: 12px;
    left: 12px;
    font-size: var(--fs-tiny);
    padding: 5px 10px;
  }

  .category-ring {
    width: 76px;
    height: 76px;
  }
}
