/* ==========================================================================
   Vantage Digest — Futuristic Cyber-Editorial Style
   Deep Space Obsidian + Glassmorphism + Electric Cyan / Indigo Glow
   ========================================================================== */

:root {
  --ink: #f8fafc;
  --ink-soft: #cbd5e1;
  --body: #cbd5e1;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --rule: rgba(148, 163, 184, 0.16);
  --rule-strong: rgba(56, 189, 248, 0.35);

  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-dark: #0284c7;
  --gradient-brand: linear-gradient(135deg, #f8fafc 0%, #38bdf8 50%, #818cf8 100%);
  --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);

  --paper: #060913;
  --surface: rgba(15, 23, 42, 0.65);
  --surface-hover: rgba(20, 30, 54, 0.85);
  --tint: rgba(15, 23, 42, 0.72);
  --tint-2: rgba(30, 41, 59, 0.7);

  --serif: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           Helvetica, Arial, "PingFang SC", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, "PingFang SC", sans-serif;

  --wrap: 1140px;
  --reading: 740px;
  --radius: 14px;
}

/* ---------- 基础 ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -8%, rgba(56, 189, 248, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 15%, rgba(129, 140, 248, 0.10), transparent 65%),
    linear-gradient(to right, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 16px; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #7dd3fc; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

figure { margin: 0; }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #060913;
  font-weight: 700;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 6px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 报头 ---------- */

.masthead {
  position: relative;
  border-bottom: 1px solid var(--rule);
  padding: 28px 0 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(6, 9, 19, 0) 100%);
}

.masthead__brand {
  display: inline-block;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.2px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.22));
}
.masthead__brand:hover { filter: drop-shadow(0 0 26px rgba(56, 189, 248, 0.38)); }

.masthead__tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.3px;
}

.masthead__dateline {
  margin: 8px auto 0;
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ---------- 导航 ---------- */

.main-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 9, 19, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.main-nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.main-nav__inner::-webkit-scrollbar { display: none; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 9px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.main-nav a:hover {
  color: var(--ink);
  background: rgba(56, 189, 248, 0.1);
}
.main-nav a[aria-current="page"] {
  color: #060913;
  background: var(--gradient-accent);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

/* ---------- 版面 ---------- */

main { padding: 32px 0 56px; }

h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: -0.6px;
}

h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin: 40px 0 22px;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: var(--gradient-accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}
.section-title a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-left: auto;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.section-title a:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #ffffff;
}

/* ---------- 头条：未来感玻璃卡片 ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 28px;
  align-items: stretch;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.hero:hover {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 32px rgba(56, 189, 248, 0.12);
}

.hero__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  min-height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.5s ease;
}
.hero:hover .hero__media img { transform: scale(1.03); }

.hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 4px;
}

.kicker {
  display: inline-block;
  width: fit-content;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #7dd3fc;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.hero h1 { font-size: 34px; line-height: 1.2; margin-bottom: 14px; }
.hero h1 a { color: var(--ink); }
.hero h1 a:hover {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__dek {
  font-size: 16.5px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

/* ---------- 次级两条 ---------- */

.secondary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding: 28px 0 8px;
}

/* ---------- 卡片 ---------- */

.article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  background: var(--surface-hover);
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.1);
}

.article-card__media {
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.article-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card__media img { transform: scale(1.05); }

.article-card__cat {
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin-bottom: 4px;
}

.article-card h3 {
  margin: 4px 0 8px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--accent); }

.article-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.meta {
  margin-top: auto;
  color: var(--muted-2);
  font-size: 12.5px;
  font-weight: 500;
}

/* 横向卡片（次级区、栏目页用） */
.article-card--row {
  flex-direction: row;
  gap: 18px;
  align-items: center;
  padding: 16px;
}
.article-card--row .article-card__media {
  flex: 0 0 40%;
  max-width: 240px;
  margin-bottom: 0;
}
.article-card--row .article-card__text { min-width: 0; display: flex; flex-direction: column; }
.article-card--row h3 { font-size: 18.5px; }

/* ---------- 分类胶囊 ---------- */

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 8px;
}

.cat-chips a {
  background: var(--tint-2);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}
.cat-chips a:hover {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #060913;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

/* ---------- 热门列表 ---------- */

.most-read {
  counter-reset: mr;
  list-style: none;
  margin: 0;
  padding: 8px 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.most-read li {
  counter-increment: mr;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
}
.most-read li:last-child { border-bottom: 0; }
.most-read li::before {
  content: "0" counter(mr);
  flex: none;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: 30px;
}
.most-read a { color: var(--ink); font-weight: 600; }
.most-read a:hover { color: var(--accent); }

/* ---------- 文章页 ---------- */

.article-body {
  max-width: var(--reading);
  margin: 0 auto;
}

.article-body h1 { font-size: 36px; margin-bottom: 14px; line-height: 1.2; }

.article-dek {
  font-size: 18.5px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.55;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13.5px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
  margin-bottom: 26px;
}
.byline__author { color: var(--ink); font-weight: 600; }
.byline__dot { color: var(--muted-2); }

.article-hero {
  margin: 0 0 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article-body p { font-size: 17.5px; line-height: 1.8; color: var(--ink-soft); }

.article-body h2 {
  font-size: 24px;
  margin: 36px 0 14px;
  padding-top: 6px;
  color: var(--ink);
}

.article-body ul,
.article-body ol { margin: 0 0 20px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; font-size: 17px; color: var(--ink-soft); }

.article-body figure { margin: 28px 0; }
.article-body figure img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.article-body figcaption {
  color: var(--muted-2);
  font-size: 13px;
  margin-top: 8px;
  padding-left: 2px;
}

blockquote {
  border-left: 3px solid var(--accent);
  background: rgba(56, 189, 248, 0.06);
  border-radius: 0 12px 12px 0;
  padding: 16px 22px;
  margin: 28px 0;
  color: var(--ink);
  font-style: italic;
  font-size: 19.5px;
  line-height: 1.55;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.tags a {
  background: var(--tint-2);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
}
.tags a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #060913;
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin: 34px 0;
  padding: 18px 20px;
}
.author-box__avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #060913;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}
.author-box h4 { margin: 0 0 4px; font-size: 15.5px; color: var(--ink); }
.author-box p { margin: 0; font-size: 14px; color: var(--muted); }

.related {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 34px;
}
.related h3 {
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.related ul { margin: 0; padding-left: 20px; }
.related li { margin-bottom: 9px; }
.related a { color: var(--ink); font-weight: 600; }
.related a:hover { color: var(--accent); }

/* 面包屑 */
.breadcrumb {
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- 静态页 ---------- */

.page-body { max-width: var(--reading); margin: 0 auto; }
.page-body h1 { margin-bottom: 16px; }
.page-body h2 { font-size: 21px; margin-top: 30px; }
.page-body ul,
.page-body ol { margin: 0 0 16px; padding-left: 24px; }
.page-body li { margin-bottom: 6px; }

.contact-form label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
  font-size: 14.5px;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15.5px;
  font-family: inherit;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form button {
  margin-top: 18px;
  background: var(--gradient-accent);
  color: #060913;
  border: 0;
  padding: 13px 28px;
  font-size: 15.5px;
  font-family: inherit;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.45);
}

.form-note { color: var(--muted); font-size: 14px; margin-top: 12px; }

.notice {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #bae6fd;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
  margin: 20px 0;
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: rgba(4, 7, 15, 0.92);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  padding: 40px 0 30px;
  font-size: 14px;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 30px;
}

.site-footer h4 {
  color: var(--ink);
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

.site-footer__brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.site-footer p { margin: 0; max-width: 38ch; color: var(--muted); }

.site-footer__bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted-2);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1.15fr 1fr; gap: 22px; }
  .hero h1 { font-size: 29px; }
  .article-list { grid-template-columns: repeat(2, 1fr); }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__cols > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }
  .hero__media { min-height: 0; }
  .hero__media img { aspect-ratio: 16 / 9; }
  .hero h1 { font-size: 26px; }
  .hero__dek { font-size: 15.5px; }

  .secondary { grid-template-columns: 1fr; gap: 18px; }
  main { padding: 22px 0 40px; }

  .main-nav__inner { overflow: visible; justify-content: center; padding: 0 6px; }
  .main-nav ul { flex-wrap: wrap; justify-content: center; }
  .main-nav a { padding: 8px 12px; }

  .article-body h1 { font-size: 28px; }
  .article-dek { font-size: 17px; }
  .article-body p { font-size: 17px; }
  blockquote { font-size: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .container { padding: 0 16px; }

  .masthead { padding: 18px 0 12px; }
  .masthead__brand { font-size: 30px; }
  .masthead__tagline { font-size: 12.5px; padding: 0 8px; }
  .masthead__dateline { font-size: 11px; }

  h1 { font-size: 25px; }

  .main-nav a { padding: 8px 11px; font-size: 12px; letter-spacing: 0.4px; }

  .article-list { grid-template-columns: 1fr; gap: 18px; }
  .article-card h3 { font-size: 18px; }

  .article-card--row {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .article-card--row .article-card__media {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .section-title { font-size: 19px; margin: 28px 0 16px; }
  .section-title a { font-size: 11px; }

  .article-body h1 { font-size: 24px; }
  .byline { font-size: 13px; }
  .article-body p { font-size: 16.5px; line-height: 1.72; }
  .article-body li { font-size: 16px; }

  .related { padding: 16px; }
  .author-box { gap: 12px; }

  .site-footer { padding: 28px 0 22px; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 22px; }
  .site-footer__bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 380px) {
  .masthead__brand { font-size: 26px; }
  .hero h1 { font-size: 23px; }
  .article-card h3 { font-size: 17.5px; }
  .cat-chips a { padding: 8px 14px; font-size: 13px; }
}

@media (max-height: 460px) and (orientation: landscape) {
  .main-nav a { padding: 7px 12px; }
  .masthead { padding: 10px 0 6px; }
  .masthead__brand { font-size: 24px; }
}

@media print {
  .main-nav,
  .site-footer,
  .related,
  .cat-chips { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: none; }
  .article-body { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .article-card__media img, .hero__media img { transition: none; }
  .article-card:hover .article-card__media img, .hero:hover .hero__media img { transform: none; }
}

/* ==========================================================================
   广告位（Adsterra Dark Glass Edition）
   默认全部隐藏；只有 html[data-ads="on"] 时才占位显示
   ========================================================================== */

.ad-cage {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 26px auto;
  padding: 12px 10px;
  max-width: 100%;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(56, 189, 248, 0.22);
  border-radius: 12px;
}
.ad-cage[hidden] { display: none !important; }

html[data-ads="on"] .ad-cage { display: flex; }

.ad-label {
  display: block;
  margin-bottom: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.ad-slot { display: grid; place-items: center; text-align: center; }

.ad-slot--728x90  { width: 100%; max-width: 728px; min-height: 90px; }
.ad-slot--300x250 { width: 300px; max-width: 100%; min-height: 250px; }
.ad-slot--468x60  { width: 100%; max-width: 468px; min-height: 60px; }
.ad-slot--160x300 { width: 160px; min-height: 300px; }
.ad-slot--160x600 { width: 160px; min-height: 600px; }
.ad-slot--320x50  { width: 320px; height: 50px; }
.ad-slot--native  { width: 100%; min-height: 180px; }

/* 正文 + 右侧广告栏 */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 36px;
  align-items: start;
}
.article-layout .article-body { max-width: none; margin: 0; }

.article-rail {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 24px;
  justify-items: center;
}

/* 底部粘性条 320×50 */
.ad-anchor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 6px 12px 8px;
  background: rgba(6, 9, 19, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5);
}
html[data-ads="on"] .ad-anchor { display: flex; }
.ad-anchor[hidden] { display: none !important; }

.ad-anchor__close {
  position: absolute;
  top: 4px;
  right: 10px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.9);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.ad-anchor__close:hover { color: var(--ink); border-color: var(--accent); }

body.has-anchor { padding-bottom: 72px; }

@media (max-width: 1040px) {
  .article-layout { display: block; }
  .article-layout .article-body { max-width: var(--reading); margin: 0 auto; }
  .article-rail { display: none; }
}

@media (max-width: 640px) {
  .ad-slot--728x90 { min-height: 60px; }
  .ad-cage { margin: 20px auto; }
}

@media print {
  .ad-cage, .ad-anchor { display: none !important; }
  body.has-anchor { padding-bottom: 0; }
}
