@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

/* ===== 基础变量 ===== */
:root {
  --c-primary: #6514ff;
  --c-accent: #bf00ff;
  --c-dark: #1c1726;
  --c-dark80: rgba(28,23,38,0.85);
  --c-primary-light: #8b4dff;
  --c-accent-light: #d94dff;
  --c-bg: #0e0b18;
  --c-bg2: #181326;
  --c-surface: #221a38;
  --c-surface2: #2e2248;
  --c-text: #f0eaff;
  --c-text-muted: #b8a8d8;
  --c-border: rgba(101,20,255,0.35);
  --c-neon: #e040fb;
  --radius-card: 0px;
  --nav-h: 68px;
  --font-head: 'Nunito', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Nunito', system-ui, sans-serif;
  --gap-xl: 64px;
  --gap-lg: 48px;
  --gap-md: 32px;
  --gap-sm: 20px;
  --gap-xs: 12px;
  --max-w: 1200px;
  --trans: 220ms cubic-bezier(.4,0,.2,1);
}

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

/* ===== 背景装饰图案 ===== */
.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bp-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.13;
  animation: float-circle 12s ease-in-out infinite alternate;
}
.bp-c1 {
  width: 520px; height: 520px;
  background: var(--c-primary);
  top: -160px; left: -120px;
  animation-duration: 14s;
}
.bp-c2 {
  width: 380px; height: 380px;
  background: var(--c-accent);
  top: 30%; right: -80px;
  animation-duration: 10s;
  animation-delay: -4s;
}
.bp-c3 {
  width: 260px; height: 260px;
  background: var(--c-primary-light);
  bottom: 10%; left: 20%;
  animation-duration: 16s;
  animation-delay: -7s;
}
.bp-line {
  position: absolute;
  height: 3px;
  opacity: 0.08;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  animation: slide-line 8s linear infinite;
}
.bp-l1 { width: 600px; top: 25%; left: -100px; transform: rotate(-15deg); }
.bp-l2 { width: 400px; bottom: 35%; right: -80px; transform: rotate(20deg); animation-direction: reverse; }

@keyframes float-circle {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,40px) scale(1.08); }
}
@keyframes slide-line {
  from { transform: translateX(0) rotate(-15deg); }
  to   { transform: translateX(120px) rotate(-15deg); }
}

/* ===== 导航（底部固定条） ===== */
.site-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--c-dark80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nav-h);
  padding: 0 var(--gap-sm);
}
.site-nav ol {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  justify-content: flex-start;
}
.site-nav ol::-webkit-scrollbar { display: none; }
.site-nav ol li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 10px;
  min-height: 48px;
  min-width: 56px;
  color: var(--c-text-muted);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border-radius: 8px;
  transition: background var(--trans), color var(--trans);
  white-space: nowrap;
}
.site-nav ol li a:hover,
.site-nav ol li a:focus-visible {
  background: rgba(101,20,255,0.25);
  color: var(--c-accent-light);
}
.nav-num {
  font-size: 9px;
  font-weight: 900;
  color: var(--c-primary-light);
  font-family: var(--font-head);
  letter-spacing: .05em;
}
.nav-label {
  display: block;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-height: 48px;
  border-left: 2px solid var(--c-border);
  margin-left: 8px;
  color: var(--c-text);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}
.brand-text {
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 页面包裹 ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--nav-h) + 24px);
}

/* ===== HERO 首页 ===== */
.hero-block {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap-xl) var(--gap-md);
}
.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  align-items: flex-start;
  justify-content: center;
}
.hero-eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 4px 14px;
  border-radius: 99px;
  text-transform: uppercase;
}
.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--c-text);
  letter-spacing: -.01em;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 460px;
  line-height: 1.75;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 14px 32px;
  border-radius: 99px;
  min-height: 52px;
  transition: transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 8px 32px rgba(101,20,255,0.4);
}
.hero-cta:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 48px rgba(191,0,255,0.5);
}
.hero-media-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  border: 3px solid var(--c-primary);
  border-radius: 20px;
  overflow: hidden;
  background: var(--c-surface);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img, .art-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-placeholder {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, var(--c-surface), var(--c-surface2));
}
.hero-bg-text {
  position: absolute;
  bottom: -12px;
  right: -8px;
  font-family: var(--font-head);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  color: rgba(101,20,255,0.18);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -.04em;
}

/* ===== 内容区布局（aside 左侧） ===== */
.content-with-aside {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--gap-lg);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap-lg) var(--gap-md);
  align-items: start;
}
.page-aside {
  position: sticky;
  top: 24px;
}
.aside-inner {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: 12px;
  padding: var(--gap-sm);
}
.aside-label {
  display: block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--c-accent-light);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.aside-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aside-links li a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: 6px;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: background var(--trans), color var(--trans);
}
.aside-links li a:hover {
  background: rgba(101,20,255,0.2);
  color: var(--c-text);
}
.main-content {
  min-width: 0;
}

/* ===== 正文内容 ===== */
.page-content-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--c-text);
}
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--c-text);
  margin-top: 2.2em;
  margin-bottom: .7em;
  line-height: 1.25;
}
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.prose h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); }
.prose p { margin-bottom: 1.2em; }
.prose a { color: var(--c-accent-light); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-neon); }
.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
  list-style: revert;
}
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--c-accent-light); font-weight: 700; }
.prose blockquote {
  border-left: 4px solid var(--c-primary);
  padding: 12px 20px;
  background: var(--c-surface);
  border-radius: 0 8px 8px 0;
  margin: 1.5em 0;
  color: var(--c-text-muted);
  font-style: italic;
}
.prose code {
  background: var(--c-surface2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}
.prose pre {
  background: var(--c-surface2);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.2em;
}

/* ===== 日期 ===== */
.art-date {
  display: inline-block;
  font-size: 13px;
  color: var(--c-text-muted);
  font-weight: 500;
  margin-right: 12px;
}
.art-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }

/* ===== div 分区 ===== */
.content-section,
.art-body-section,
.about-body-section,
.privacy-body-section,
.default-body-section { padding-top: var(--gap-md); }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--c-accent-light);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--c-text);
  margin-bottom: var(--gap-md);
  line-height: 1.2;
}

/* ===== 卡片列表（首页） ===== */
.cards-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap-xl) var(--gap-md);
}
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap-md);
  margin-top: var(--gap-md);
}
.card-item {}
.card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--gap-md);
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-card);
  min-height: 160px;
  color: var(--c-text);
  transition: border-color var(--trans), background var(--trans), transform var(--trans);
  position: relative;
  overflow: hidden;
}
.card-link::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
}
.card-link:hover::before { transform: scaleX(1); }
.card-link:hover {
  border-color: var(--c-primary);
  background: var(--c-surface2);
  transform: translateY(-4px);
  color: var(--c-text);
}
.card-index {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.card-index::before {
  counter-increment: none;
  content: attr(data-n);
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--c-primary-light);
  font-weight: 900;
}
.card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--c-text);
}
.card-desc {
  font-size: .9rem;
  color: var(--c-text-muted);
  line-height: 1.55;
  flex: 1;
}
.card-arrow {
  font-size: 1.2rem;
  color: var(--c-accent-light);
  align-self: flex-end;
  transition: transform var(--trans);
}
.card-link:hover .card-arrow { transform: translateX(6px); }

/* ===== 相关列表 ===== */
.related-section,
.about-links-section,
.privacy-nav-section,
.default-nav-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap-xl) var(--gap-md);
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: related;
}
.related-list li {
  counter-increment: related;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  flex-wrap: wrap;
  transition: border-color var(--trans), background var(--trans);
}
.related-list li::before {
  content: counter(related, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 900;
  color: var(--c-primary-light);
  flex-shrink: 0;
}
.related-list li:hover {
  border-color: var(--c-primary);
  background: var(--c-surface2);
}
.related-list li a {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  flex: 1;
  min-width: 200px;
}
.related-list li a:hover { color: var(--c-accent-light); }
.related-list li small {
  font-size: .85rem;
  color: var(--c-text-muted);
  width: 100%;
  padding-left: 32px;
  line-height: 1.5;
}

/* ===== 文章 HERO ===== */
.art-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap-xl) var(--gap-md) var(--gap-lg);
}
.art-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gap-lg);
  align-items: center;
}
.art-hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
.art-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-text);
}
.art-hero-media {
  position: relative;
  width: 320px;
  flex-shrink: 0;
  border: 2px solid var(--c-primary);
  border-radius: 16px;
  overflow: hidden;
  background: var(--c-surface);
  min-height: 200px;
}

/* ===== 关于/隐私 HERO ===== */
.about-hero, .privacy-hero {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap-xl) var(--gap-md) var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  overflow: hidden;
}
.about-hero-decor, .privacy-hero-decor {
  position: absolute;
  right: var(--gap-md);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}
.decor-num {
  font-family: var(--font-head);
  font-size: clamp(5rem, 15vw, 11rem);
  font-weight: 900;
  color: rgba(101,20,255,0.12);
  line-height: 1;
  letter-spacing: -.04em;
}
.about-hero-text, .privacy-hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  max-width: 700px;
}
.about-h1, .privacy-h1, .default-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-text);
}

/* ===== 默认 HERO ===== */
.default-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap-xl) var(--gap-md) var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-dark);
  border-top: 2px solid var(--c-border);
  padding: var(--gap-lg) 0 calc(var(--gap-lg) + var(--nav-h));
  margin-top: var(--gap-xl);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap-md);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--gap-lg);
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 12px;
}
.footer-col address {
  font-style: normal;
  color: var(--c-text-muted);
  font-size: .9rem;
  line-height: 1.7;
}
.footer-label {
  display: block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--c-primary-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col ul li a {
  font-size: .9rem;
  color: var(--c-text-muted);
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 4px 0;
  transition: color var(--trans);
}
.footer-col ul li a:hover { color: var(--c-accent-light); }
.footer-copy {
  font-size: .8rem;
  color: var(--c-text-muted);
  margin-top: 20px;
  opacity: .7;
}

/* ===== Scroll Reveal 动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bp-circle, .bp-line { animation: none; }
  .hero-cta:hover { transform: none; }
  .card-link:hover { transform: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-block {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: var(--gap-lg) var(--gap-sm);
    gap: var(--gap-md);
  }
  .hero-media-col { order: -1; }
  .hero-img-wrap { max-width: 340px; margin: 0 auto; }
  .art-hero-inner { grid-template-columns: 1fr; }
  .art-hero-media { width: 100%; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
  }
  .footer-col-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .content-with-aside {
    grid-template-columns: 1fr;
    padding: var(--gap-md) var(--gap-sm);
  }
  .page-aside {
    position: static;
    order: 2;
  }
  .main-content { order: 1; }
  .aside-links { flex-direction: row; flex-wrap: wrap; }
  .aside-links li a { font-size: 13px; padding: 6px 10px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }
  .card-list { grid-template-columns: 1fr; }
  .site-nav ol li a { min-width: 48px; padding: 8px 6px; font-size: 10px; }
  .nav-label { max-width: 48px; font-size: 10px; }
}

@media (max-width: 480px) {
  :root {
    --gap-xl: 40px;
    --gap-lg: 32px;
    --gap-md: 20px;
    --nav-h: 60px;
  }
  .hero-h1 { font-size: 1.9rem; }
  .section-h2 { font-size: 1.4rem; }
  .about-h1, .privacy-h1, .art-h1, .default-h1 { font-size: 1.7rem; }
  .hero-block { padding: var(--gap-md) var(--gap-xs); }
  .cards-section,
  .related-section,
  .about-links-section,
  .privacy-nav-section,
  .default-nav-section {
    padding: var(--gap-lg) var(--gap-xs);
  }
  .content-with-aside { padding: var(--gap-md) var(--gap-xs); }
  .about-hero, .privacy-hero, .art-hero, .default-hero {
    padding: var(--gap-lg) var(--gap-xs) var(--gap-md);
  }
  .related-list li { flex-direction: column; gap: 6px; }
  .related-list li a { min-width: auto; }
  .site-nav { padding: 0 4px; }
}

/* ===== 无横向滚动保险 ===== */
.page-wrapper, main, .site-footer { max-width: 100vw; overflow-x: hidden; }
