/* ==========================================================================
   news.css — 新闻列表 / 分类 / 文章详情
   ========================================================================== */

/* --------------------------------------------------------------------------
   新闻首页
   -------------------------------------------------------------------------- */

.news-hero h1 {
  max-width: 820px;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.news-filter a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: #fff;
  font-size: 13px;
  color: var(--ink-2);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}

.news-filter a:hover {
  border-color: rgba(75, 69, 255, 0.35);
  color: var(--brand-ink);
  transform: translateY(-1px);
}

.news-filter a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.news-filter a span {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.6;
}

.news-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--grad-soft);
}

.news-featured__body {
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
}

.news-featured__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.news-featured__meta .cat {
  padding: 4px 9px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid rgba(75, 69, 255, 0.2);
  color: var(--brand-ink);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.news-featured h2 {
  margin-top: 16px;
  max-width: 620px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.32;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.news-featured h2 a:hover {
  color: var(--brand-ink);
}

.news-featured__summary {
  margin-top: 12px;
  max-width: 600px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.news-featured__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 26px;
}

.news-featured__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-featured__tags span {
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(12, 13, 18, 0.06);
  font-size: 10px;
  color: var(--muted);
}

.news-featured__visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  min-height: 280px;
  background: linear-gradient(150deg, #443dff 0%, #5a4cff 55%, #7c63ff 100%);
  color: #fff;
}

.news-featured__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 100% at 80% 20%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 80% 20%, #000, transparent 80%);
}

.news-featured__visual span,
.news-featured__visual strong {
  position: relative;
  z-index: 1;
}

.news-featured__visual span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.news-featured__visual strong {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.9);
  max-width: 100%;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.news-grid--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(38px, 5vw, 52px);
}

.news-grid--category {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.news-card--quote {
  background: var(--grad-soft);
  border-color: rgba(75, 69, 255, 0.2);
}

.news-card--quote .news-card__visual {
  background: linear-gradient(145deg, #e9e7ff, #f8f7ff 70%, #f1efff);
}

.news-card--quote .news-card__index {
  color: rgba(75, 69, 255, 0.24);
}

.news-card--quote .news-card__more {
  color: var(--brand-ink);
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(75, 69, 255, 0.28);
  box-shadow: var(--shadow-md);
}

.news-card__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 124px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(150deg, #f1f0ff, #fbfaff 65%, #f6f4ff);
  overflow: hidden;
}

.news-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(12, 13, 18, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 13, 18, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(135deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%);
}

.news-card__visual--ai {
  background: linear-gradient(150deg, #eef0ff, #f8f7ff 60%, #eee9ff);
}

.news-card__visual--geo {
  background: linear-gradient(150deg, #e9f1ff, #f7faff 60%, #e8edff);
}

.news-card__visual--growth {
  background: linear-gradient(150deg, #eafaf4, #f7fffb 60%, #e8f6ff);
}

.news-card__visual--content {
  background: linear-gradient(150deg, #fff3ea, #fffaf5 60%, #fff0f6);
}

.news-card__badge {
  position: relative;
  z-index: 1;
  padding: 4px 9px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(12, 13, 18, 0.07);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-2);
}

.news-card__index {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(12, 13, 18, 0.1);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.news-card__date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.news-card h3 {
  margin-top: 9px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.news-card h3 a:hover {
  color: var(--brand-ink);
}

.news-card p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.news-card__tags span {
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--bg-soft);
  font-size: 9.5px;
  color: var(--muted-2);
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-ink);
}

.news-card__more .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.news-card:hover .news-card__more .icon {
  transform: translateX(3px);
}

.news-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  margin-top: clamp(40px, 5vw, 56px);
  align-items: start;
}

.news-side__main .section-head h2 {
  font-size: clamp(24px, 2.6vw, 32px);
}

.news-tags-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}

.news-tags-card h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.news-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.news-tag-cloud span,
.news-tag-cloud a {
  padding: 5px 10px;
  border-radius: var(--r-full);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.news-tag-cloud a:hover {
  border-color: rgba(75, 69, 255, 0.35);
  color: var(--brand-ink);
}

.news-tags-card p {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted-2);
}

.news-cat-intro {
  margin-top: 20px;
  max-width: 780px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   文章详情
   -------------------------------------------------------------------------- */

.article-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(48px, 6vw, 76px)) 0 clamp(40px, 5vw, 56px);
  background: linear-gradient(180deg, #fafafd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.article-hero .container {
  position: relative;
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.article-cat {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 600;
}

.article-kicker time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.article-hero h1 {
  margin-top: 18px;
  max-width: 940px;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.042em;
  font-weight: 800;
}

.article-hero .lead {
  margin-top: 20px;
  max-width: 780px;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted-2);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta .icon {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 290px;
  gap: 64px;
  justify-content: center;
  padding: clamp(44px, 6vw, 64px) 0 clamp(64px, 8vw, 96px);
  align-items: start;
}

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

.article-body {
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink-2);
}

.article-body > p {
  margin: 0 0 22px;
}

.article-body h2 {
  margin: 46px 0 16px;
  font-size: clamp(23px, 2.4vw, 29px);
  line-height: 1.38;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.article-body h3 {
  margin: 32px 0 12px;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}

.article-body ul,
.article-body ol {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.article-body ul li {
  position: relative;
  padding-left: 22px;
  margin-top: 9px;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.article-body ol {
  counter-reset: item;
}

.article-body ol li {
  position: relative;
  padding-left: 30px;
  margin-top: 10px;
  counter-increment: item;
}

.article-body ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.18em;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--brand);
  background: var(--bg-soft);
  border-radius: 0 14px 14px 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
}

.article-body blockquote p {
  margin: 0;
}

.article-body a {
  color: var(--brand-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--brand);
}

.article-body strong {
  color: var(--ink);
  font-weight: 600;
}

.article-body hr {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 38px 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-tags__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-right: 4px;
}

.article-tags span,
.article-tags a {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: #fff;
  font-size: 11px;
  color: var(--muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.article-tags a:hover {
  border-color: rgba(75, 69, 255, 0.35);
  color: var(--brand-ink);
}

.article-aside {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toc {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}

.toc h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.toc ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-top: 7px;
}

.toc a {
  display: block;
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.toc a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 1px;
  background: var(--line-strong);
}

.toc a:hover {
  color: var(--brand);
}

.aside-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
}

.aside-card h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.aside-services {
  margin-top: 12px;
}

.aside-services a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}

.aside-services a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.aside-services a:hover {
  color: var(--brand);
}

.aside-services .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
  flex: none;
}

.aside-cta {
  background: var(--grad-soft);
  border-color: rgba(75, 69, 255, 0.18);
}

.aside-cta p {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.aside-cta .btn {
  width: 100%;
  margin-top: 14px;
  height: 40px;
  font-size: 12.5px;
}

.article-mobile-toc {
  display: none;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
}

.article-mobile-toc summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.article-mobile-toc summary::-webkit-details-marker {
  display: none;
}

.article-mobile-toc ol {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
}

.article-mobile-toc li + li {
  margin-top: 8px;
}

.article-mobile-toc a {
  font-size: 12.5px;
  color: var(--muted);
}

.article-related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.article-related__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.article-related h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.article-related__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.related-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(75, 69, 255, 0.28);
  box-shadow: var(--shadow-sm);
}

.related-card__cat {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.related-card h3 {
  margin-top: 9px;
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.related-card p {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.category-related {
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(26px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--grad-soft);
}

.category-related h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.category-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.category-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(75, 69, 255, 0.14);
  border-radius: 12px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.category-related a:hover {
  border-color: rgba(75, 69, 255, 0.35);
  color: var(--brand-ink);
}

.category-related .icon {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
  flex: none;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-layout {
    grid-template-columns: minmax(0, 760px);
    gap: 40px;
  }

  .article-aside {
    display: none;
  }

  .article-mobile-toc {
    display: block;
  }

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

@media (max-width: 820px) {
  .news-featured {
    grid-template-columns: 1fr;
  }

  .news-featured__visual {
    min-height: 160px;
    order: -1;
  }

  .news-featured__visual strong {
    font-size: 64px;
  }

  .category-related__grid {
    grid-template-columns: 1fr;
  }

  .article-related__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .news-grid,
  .news-grid--category {
    grid-template-columns: 1fr;
  }

  .news-filter {
    gap: 6px;
  }

  .news-filter a {
    padding: 7px 11px;
    font-size: 12px;
  }

  .article-body {
    font-size: 16px;
  }

  .article-hero h1 {
    font-size: 30px;
  }
}
