@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&family=Barlow:wght@300;400;500;600;700&display=swap');

/* ─── 变量 ─── */
:root {
  --c-primary: #6514ff;
  --c-accent: #bf00ff;
  --c-dark: #1c1726;
  --c-dark2: #251e33;
  --c-dark3: #2f2740;
  --c-light: #f0eaff;
  --c-white: #ffffff;
  --c-border: rgba(101,20,255,0.45);
  --c-text: #e8e0f7;
  --c-text-muted: #9b8fc0;
  --c-grad: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  --nav-w: 240px;
  --font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Barlow', 'Arial', sans-serif;
  --gap-lg: 48px;
  --gap-md: 24px;
  --gap-sm: 16px;
  --radius-0: 0;
  --trans: 200ms ease;
}

/* ─── 重置 ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-dark);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-light); text-decoration: none; }
a:hover { color: var(--c-accent); }
ul { list-style: none; }

/* ─── 图案背景动效 ─── */
@keyframes patternMove {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 29px,
      rgba(101,20,255,0.06) 29px,
      rgba(101,20,255,0.06) 30px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 29px,
      rgba(101,20,255,0.06) 29px,
      rgba(101,20,255,0.06) 30px
    );
  animation: patternMove 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* ─── 布局 ─── */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: var(--c-dark2);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  padding: 32px 20px 24px;
  z-index: 100;
  overflow-y: auto;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}
.site-logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.site-header__name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-white);
  line-height: 1.2;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--c-text-muted);
  border: 1px solid transparent;
  border-radius: 100px;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
  min-height: 40px;
}
.nav-link:hover,
.nav-link--active {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-accent);
}

.nav-contact {
  display: block;
  margin-top: 24px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--c-accent);
  border-radius: 100px;
  color: var(--c-accent);
  transition: background var(--trans), color var(--trans);
  min-height: 40px;
}
.nav-contact:hover {
  background: var(--c-accent);
  color: var(--c-white);
}

.page-main {
  margin-left: var(--nav-w);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.page-article {
  max-width: 960px;
  margin: 0 auto;
}

/* ─── Hero（首页）─── */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--c-dark);
}
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(28,23,38,0.92) 40%, rgba(101,20,255,0.55) 100%);
}
.hero__slash {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--c-dark);
  clip-path: polygon(0 40px, 100% 0, 100% 80px, 0 80px);
  z-index: 2;
}
.hero__content {
  position: relative;
  z-index: 3;
  padding: 56px 56px 96px;
  max-width: 680px;
}
.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
  border-left: 3px solid var(--c-accent);
  padding-left: 10px;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--c-white);
  margin-bottom: 18px;
}
.hero__sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  margin-bottom: 28px;
  max-width: 520px;
}
.hero__btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--c-grad);
  color: var(--c-white);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: none;
  border-radius: var(--radius-0);
  transition: opacity var(--trans), transform var(--trans);
  min-height: 44px;
}
.hero__btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  color: var(--c-white);
}

/* ─── 首页各 section ─── */
.home-content.prose,
.home-topics,
.home-nav-topics,
.home-about-strip {
  padding: var(--gap-lg) 56px;
}

/* ─── Topic Hero ─── */
.topic-hero {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--c-dark2);
  padding: 40px 56px 48px;
}
.topic-hero__geo {
  position: absolute;
  top: -30px;
  width: 260px;
  height: 260px;
  opacity: 0.18;
  border-radius: 0;
}
.geo--left {
  left: -60px;
  background: var(--c-primary);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.geo--right {
  right: -40px;
  background: var(--c-accent);
  clip-path: polygon(0 0, 100% 0, 60% 100%);
}
.topic-hero__inner { position: relative; z-index: 2; }
.topic-hero__label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 10px;
  border-left: 3px solid var(--c-accent);
  padding-left: 10px;
}
.topic-hero__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-white);
}

.topic-content.prose,
.topic-children,
.topic-nav-strip {
  padding: var(--gap-lg) 56px;
}

/* ─── Article ─── */
.article-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--c-dark3);
}
.article-hero--no-img {
  height: 12px;
  background: var(--c-grad);
}
.article-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,23,38,0.85) 0%, transparent 60%);
}

.article-header-section { padding: 0 56px; }
.article-title-block {
  padding: 32px 0 0;
}
.article-title-block__label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 10px;
  border-left: 3px solid var(--c-accent);
  padding-left: 10px;
}
.article-title-block__h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--c-white);
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 8px;
}
.article-meta__label {
  font-size: 12px;
  color: var(--c-text-muted);
  font-weight: 500;
}
.article-meta__date {
  font-size: 14px;
  color: var(--c-accent);
  font-weight: 600;
}

.article-body.prose,
.article-related,
.article-footer-nav {
  padding: var(--gap-lg) 56px;
}

/* ─── About ─── */
.about-hero {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--c-dark2);
  padding: 48px 56px;
}
.about-hero__stripe {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.about-hero__stripe--a {
  background: linear-gradient(135deg, var(--c-primary) 0%, transparent 55%);
  opacity: 0.35;
}
.about-hero__stripe--b {
  background: linear-gradient(-45deg, var(--c-accent) 0%, transparent 45%);
  opacity: 0.18;
}
.about-hero__inner { position: relative; z-index: 2; }
.about-hero__eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 10px;
}
.about-hero__title {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.1;
  margin-bottom: 12px;
}
.about-hero__desc { font-size: 16px; color: var(--c-text); max-width: 560px; }
.about-content.prose,
.about-links { padding: var(--gap-lg) 56px; }

/* ─── Privacy ─── */
.privacy-header {
  padding: 40px 56px 32px;
  border-bottom: 1px solid var(--c-border);
}
.privacy-header__bar {
  width: 64px;
  height: 4px;
  background: var(--c-grad);
  margin-bottom: 20px;
}
.privacy-header__title {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.1;
  margin-bottom: 10px;
}
.privacy-header__date { font-size: 14px; color: var(--c-text-muted); }
.privacy-content.prose,
.privacy-nav { padding: var(--gap-lg) 56px; }

/* ─── Prose 正文 ─── */
.prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  max-width: 780px;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.15;
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.prose h2 { font-size: clamp(22px, 3vw, 32px); }
.prose h3 { font-size: clamp(18px, 2.5vw, 26px); }
.prose h4 { font-size: 18px; }
.prose p { margin-bottom: 1.2em; }
.prose a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-light); }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  border-left: 4px solid var(--c-primary);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: rgba(101,20,255,0.1);
  color: var(--c-text);
  font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--c-border); font-size: 15px; }
.prose th { background: var(--c-primary); color: var(--c-white); font-family: var(--font-head); font-weight: 600; }
.prose tr:nth-child(even) td { background: rgba(101,20,255,0.06); }
.prose code { background: rgba(101,20,255,0.2); padding: 2px 6px; font-size: 14px; border-radius: 2px; }
.prose pre { background: var(--c-dark3); padding: 20px; overflow-x: auto; margin-bottom: 1.5em; border: 1px solid var(--c-border); }
.prose hr { border: none; border-top: 1px solid var(--c-border); margin: 2em 0; }
.prose time { color: var(--c-accent); font-weight: 600; }

/* ─── h2 + hr 装饰 ─── */
h2 {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.2em;
}
h2 + hr,
h2 hr {
  border: none;
  height: 3px;
  background: var(--c-grad);
  margin-bottom: var(--gap-md);
  margin-top: 0.3em;
  width: 56px;
}

/* ─── 面包屑 ─── */
.breadcrumb {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 20px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span { color: var(--c-text-muted); }

/* ─── 卡片网格 ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap-md);
  margin-top: var(--gap-md);
}
.card {
  border: 1px solid var(--c-border);
  background: var(--c-dark2);
  padding: 24px;
  transition: border-color var(--trans), transform var(--trans);
  border-radius: var(--radius-0);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover {
  border-color: var(--c-primary);
  transform: translateY(-4px);
}
.card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
}
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--c-accent); }
.card p { font-size: 14px; color: var(--c-text-muted); line-height: 1.55; flex: 1; }
.card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
  font-family: var(--font-head);
  letter-spacing: 0.04em;
}
.card__cta:hover { color: var(--c-white); }

/* ─── 子页列表 ─── */
.child-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  margin-top: var(--gap-md);
}
.child-card {
  display: flex;
  gap: 20px;
  border: 1px solid var(--c-border);
  background: var(--c-dark2);
  padding: 20px 24px;
  transition: border-color var(--trans);
  border-radius: var(--radius-0);
}
.child-card:hover { border-color: var(--c-primary); }
.child-card__img { flex-shrink: 0; width: 120px; }
.child-card__img img { width: 120px; height: 80px; object-fit: cover; }
.child-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.child-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
}
.child-card h3 a { color: inherit; }
.child-card h3 a:hover { color: var(--c-accent); }
.child-card p { font-size: 14px; color: var(--c-text-muted); line-height: 1.55; }
.child-date { font-size: 13px; color: var(--c-accent); font-weight: 600; }

/* ─── 相关阅读 ─── */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--gap-md);
  margin-top: var(--gap-md);
}
.related-card {
  border: 1px solid var(--c-border);
  background: var(--c-dark2);
  padding: 18px;
  transition: border-color var(--trans);
  border-radius: var(--radius-0);
}
.related-card:hover { border-color: var(--c-primary); }
.related-card h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 6px;
  line-height: 1.25;
}
.related-card h3 a { color: inherit; }
.related-card h3 a:hover { color: var(--c-accent); }
.related-card p { font-size: 13px; color: var(--c-text-muted); line-height: 1.5; }

/* ─── 标签列表 ─── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--gap-md);
}
.tag-pill {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
  min-height: 40px;
  line-height: 1.4;
}
.tag-pill:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

/* ─── Strip ─── */
.home-about-strip {
  background: var(--c-dark3);
  border-top: 2px solid var(--c-primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.strip__lead { font-size: 16px; color: var(--c-text); max-width: 560px; }
.strip__link {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-accent);
  white-space: nowrap;
}
.strip__link:hover { color: var(--c-white); }

/* ─── Article footer nav ─── */
.article-footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
}
.back-link {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-accent);
  padding: 10px 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.back-link:hover { color: var(--c-white); }

/* ─── 页脚 ─── */
.site-footer {
  background: var(--c-dark2);
  border-top: 2px solid var(--c-primary);
  padding: var(--gap-lg) 56px 32px;
  margin-left: var(--nav-w);
  position: relative;
  z-index: 1;
}
.footer__brand-block {
  margin-bottom: 40px;
  overflow: hidden;
}
.footer__bigname {
  font-family: var(--font-head);
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-border);
  letter-spacing: -0.02em;
  line-height: 0.9;
  display: block;
  user-select: none;
}
.footer__cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer__dl { flex: 1 1 180px; min-width: 160px; }
.footer__dl dt {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}
.footer__dl dd {
  font-size: 14px;
  color: var(--c-text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}
.footer__dl dd a {
  color: var(--c-text-muted);
  transition: color var(--trans);
}
.footer__dl dd a:hover { color: var(--c-accent); }

.footer__bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__copy { font-size: 13px; color: var(--c-text-muted); }
.footer__legal a { font-size: 13px; color: var(--c-text-muted); }
.footer__legal a:hover { color: var(--c-accent); }

/* ─── Scroll Reveal ─── */
.card, .child-card, .related-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 300ms ease, transform 300ms ease, border-color var(--trans);
}
.card.revealed, .child-card.revealed, .related-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .card, .child-card, .related-card {
    opacity: 1;
    transform: none;
    transition: border-color var(--trans);
  }
}

/* ─── 移动端 ─── */
@media (max-width: 768px) {
  :root { --nav-w: 0px; }

  .site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    overflow-x: auto;
    overflow-y: visible;
  }
  .site-header__brand { margin-bottom: 0; flex-shrink: 0; }
  .site-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    flex: 1;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-link { white-space: nowrap; font-size: 12px; padding: 8px 12px; }
  .nav-contact { margin-top: 0; flex-shrink: 0; white-space: nowrap; }

  .page-main, .site-footer { margin-left: 0; padding-top: 72px; }
  .site-footer { padding-top: var(--gap-lg); }

  .hero__content { padding: 32px 20px 80px; }
  .hero__title { font-size: 28px; }

  .topic-hero { padding: 32px 20px 36px; }
  .topic-hero__title { font-size: 26px; }

  .article-header-section,
  .article-body.prose,
  .article-related,
  .article-footer-nav,
  .about-content.prose,
  .about-links,
  .about-hero,
  .privacy-header,
  .privacy-content.prose,
  .privacy-nav,
  .home-content.prose,
  .home-topics,
  .home-nav-topics,
  .home-about-strip,
  .topic-content.prose,
  .topic-children,
  .topic-nav-strip {
    padding-left: 20px;
    padding-right: 20px;
  }

  .card-grid { grid-template-columns: 1fr; }
  .child-card { flex-direction: column; }
  .child-card__img { width: 100%; }
  .child-card__img img { width: 100%; height: 160px; }
  .related-list { grid-template-columns: 1fr 1fr; }
  .footer__cols { flex-direction: column; gap: 28px; }
  .footer__bigname { font-size: 40px; }
  .site-footer { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 480px) {
  .related-list { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
