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

/* ============================================================
   CSS 变量 & 基础重置
   ============================================================ */
:root {
  --c-green: #87ff71;
  --c-blue: #01cdfe;
  --c-dark: #192617;
  --c-dark2: #0f1a0e;
  --c-dark3: #1e3018;
  --c-purple: #b967ff;
  --c-pink: #ff71ce;
  --c-text: #d8f5d0;
  --c-text-dim: #7db87a;
  --c-border: rgba(135, 255, 113, 0.18);
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans: 'Lato', system-ui, sans-serif;
  --header-h: 110px;
  --wrap-max: 1080px;
  --wrap-narrow: 760px;
  --radius-pill: 100px;
  --transition: 0.25s ease;
}

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

html {
  font-size: 17px;
  line-height: 1.7;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--c-dark);
  color: var(--c-text);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    linear-gradient(180deg, rgba(1, 205, 254, 0.04) 0%, transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(135, 255, 113, 0.015) 3px,
      rgba(135, 255, 113, 0.015) 4px
    );
}

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

a {
  color: var(--c-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--c-green); }

ul, ol { list-style: none; }

/* ============================================================
   全站容器
   ============================================================ */
.vw-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

/* ============================================================
   站头：两行（品牌行 + 菜单行）
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(15, 26, 14, 0.98) 0%, rgba(25, 38, 23, 0.95) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 2px 24px rgba(135, 255, 113, 0.07);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem 0.3rem;
  border-bottom: 1px solid rgba(135, 255, 113, 0.08);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--c-green), var(--c-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
}

/* 药丸胶囊按钮 */
.nav-pill {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-text-dim);
  border: 1px solid rgba(135, 255, 113, 0.2);
  background: rgba(135, 255, 113, 0.04);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.nav-pill:hover,
.nav-pill--active {
  background: rgba(135, 255, 113, 0.14);
  border-color: var(--c-green);
  color: var(--c-green);
  text-shadow: 0 0 8px rgba(135, 255, 113, 0.5);
  box-shadow: 0 0 12px rgba(135, 255, 113, 0.15);
}

/* ============================================================
   Hero（首页）：文在上 图在下 约70vh 文案居中
   ============================================================ */
.hero-wrap {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #0f1a0e 0%, #1a0a2e 50%, #0a1f1f 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media--empty {
  background: linear-gradient(135deg, #1a0a2e 0%, #0f3028 50%, #192617 100%);
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(25, 38, 23, 0.7) 0%,
    rgba(1, 205, 254, 0.08) 40%,
    rgba(185, 103, 255, 0.1) 70%,
    rgba(25, 38, 23, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.25rem 4rem;
  max-width: 780px;
  animation: heroFadeIn 0.9s ease both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  padding: 0.22rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(1, 205, 254, 0.15);
  border: 1px solid var(--c-blue);
  color: var(--c-blue);
  text-shadow: 0 0 8px rgba(1, 205, 254, 0.6);
  margin-bottom: 1rem;
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow:
    0 0 20px rgba(135, 255, 113, 0.4),
    0 0 60px rgba(1, 205, 254, 0.2);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero-sub {
  font-size: 1rem;
  color: var(--c-text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 首页区块卡片（无边框、圆角0） */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--c-border);
}

.section-card {
  background: var(--c-dark3);
}

.section-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}

.section-card a:hover {
  background: rgba(135, 255, 113, 0.06);
}

.card-img-wrap {
  overflow: hidden;
  aspect-ratio: 16/9;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.section-card a:hover .card-thumb {
  transform: scale(1.04);
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-green);
  line-height: 1.4;
}

.card-desc {
  font-size: 0.83rem;
  color: var(--c-text-dim);
  line-height: 1.5;
}

/* ============================================================
   栏目页 Hero
   ============================================================ */
.section-hero {
  position: relative;
  min-height: 36vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1a0e 0%, #1a0a2e 60%, #0a1f1f 100%);
}

.section-hero-inner {
  position: relative;
  z-index: 2;
  padding: 3rem 1.25rem 2.5rem;
  max-width: var(--wrap-max);
  margin: 0 auto;
  width: 100%;
}

.section-h1,
.inner-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 16px rgba(135, 255, 113, 0.35);
  margin: 0.6rem 0 0.5rem;
  line-height: 1.3;
}

.section-hero-desc {
  color: var(--c-text-dim);
  font-size: 0.95rem;
  max-width: 600px;
}

/* ============================================================
   内页 Banner（about/privacy）
   ============================================================ */
.inner-page-banner {
  position: relative;
  min-height: 30vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #192617 0%, #1a0a2e 100%);
}

.inner-banner-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.25rem;
  max-width: var(--wrap-max);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.inner-page-banner--legal .inner-banner-content {
  text-align: left;
}

.policy-date {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--c-text-dim);
  font-family: var(--font-sans);
}

/* 扫描线装饰 */
.scanline-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(1, 205, 254, 0.025) 2px,
    rgba(1, 205, 254, 0.025) 4px
  );
  pointer-events: none;
}

/* ============================================================
   main 内容区
   ============================================================ */
main {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

.home-content-section,
.section-prose-block,
.about-section,
.privacy-section,
.default-section,
.story-section {
  margin-bottom: 3rem;
}

/* 正文 article 容器 */
.home-prose,
.section-prose,
.about-article,
.privacy-article,
.default-article,
.story-article {
  padding: 0;
}

/* 标题装饰：h2 后紧跟 hr */
.section-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-green);
  letter-spacing: 0.03em;
  text-shadow: 0 0 12px rgba(135, 255, 113, 0.3);
  margin-bottom: 0.4rem;
}

.neon-hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--c-green), var(--c-blue), transparent);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

/* prose 正文排版 */
.prose-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
}

.prose-body h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--c-green);
  margin: 2rem 0 0.3rem;
  text-shadow: 0 0 10px rgba(135, 255, 113, 0.25);
}

.prose-body h2 + hr,
.prose-body h2::after {
  display: none;
}

.prose-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-blue);
  margin: 1.5rem 0 0.3rem;
}

.prose-body p {
  margin-bottom: 1.1rem;
}

.prose-body a {
  color: var(--c-blue);
  text-decoration: underline;
  text-decoration-color: rgba(1, 205, 254, 0.35);
}

.prose-body a:hover {
  color: var(--c-green);
}

.prose-body ul,
.prose-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
  list-style: disc;
}

.prose-body ol {
  list-style: decimal;
}

.prose-body li {
  margin-bottom: 0.4rem;
}

.prose-body strong {
  color: var(--c-green);
  font-weight: 700;
}

.prose-body em {
  color: var(--c-blue);
  font-style: italic;
}

.prose-body blockquote {
  border-left: 3px solid var(--c-blue);
  padding: 0.6rem 1rem;
  margin: 1.2rem 0;
  background: rgba(1, 205, 254, 0.05);
  color: var(--c-text-dim);
  font-style: italic;
}

.prose-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2rem;
  font-size: 0.93rem;
}

.prose-body th {
  background: rgba(135, 255, 113, 0.1);
  color: var(--c-green);
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}

.prose-body td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(135, 255, 113, 0.08);
}

.prose-body--legal {
  font-family: var(--font-serif);
  font-size: 1rem;
}

/* ============================================================
   栏目页子页列表
   ============================================================ */
.child-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--c-border);
}

.child-item {
  background: var(--c-dark3);
}

.child-item a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}

.child-item a:hover {
  background: rgba(135, 255, 113, 0.07);
}

.child-thumb-wrap {
  flex-shrink: 0;
  width: 90px;
  height: 60px;
  overflow: hidden;
}

.child-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.child-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.child-title {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
}

.child-item a:hover .child-title {
  color: var(--c-green);
}

.child-date {
  font-size: 0.78rem;
  color: var(--c-blue);
  letter-spacing: 0.03em;
}

.child-desc {
  font-size: 0.83rem;
  color: var(--c-text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   文章页 Hero
   ============================================================ */
.story-hero {
  position: relative;
  height: 42vh;
  overflow: hidden;
  background: #0f1a0e;
}

.story-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.story-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--c-dark) 100%);
}

.story-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-border);
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.83rem;
  color: var(--c-text-dim);
  margin-bottom: 0.75rem;
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb-link:hover { color: var(--c-green); }

.story-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-blue);
  text-shadow: 0 0 8px rgba(1, 205, 254, 0.5);
  margin-bottom: 0.5rem;
}

.story-h1,
.default-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 14px rgba(135, 255, 113, 0.3);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.story-date {
  font-size: 0.82rem;
  color: var(--c-text-dim);
  font-family: var(--font-sans);
}

.story-date--mod {
  color: var(--c-blue);
}

.story-body {
  margin-top: 0.5rem;
}

/* ============================================================
   相关推荐块
   ============================================================ */
.related-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}

.related-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--c-green);
  margin-bottom: 0.4rem;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--c-border);
}

.related-item {
  background: var(--c-dark3);
}

.related-item a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}

.related-item a:hover {
  background: rgba(1, 205, 254, 0.07);
}

.related-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--c-text);
  font-weight: 600;
}

.related-item a:hover .related-title {
  color: var(--c-blue);
}

.related-desc {
  font-size: 0.82rem;
  color: var(--c-text-dim);
}

/* ============================================================
   About 导航列表
   ============================================================ */
.about-nav-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--c-border);
}

.about-nav-item {
  background: var(--c-dark3);
}

.about-nav-item a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: background var(--transition);
}

.about-nav-item a:hover { background: rgba(135, 255, 113, 0.07); }

.about-nav-item strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--c-green);
}

.about-nav-item small {
  font-size: 0.82rem;
  color: var(--c-text-dim);
  line-height: 1.5;
}

/* ============================================================
   Privacy 链接列表
   ============================================================ */
.privacy-links-section { margin-top: 2.5rem; }

.privacy-links-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--c-border);
}

.privacy-links-list li {
  background: var(--c-dark3);
}

.privacy-links-list li a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}

.privacy-links-list li a:hover { background: rgba(135, 255, 113, 0.07); }

.privacy-links-list strong {
  font-family: var(--font-serif);
  color: var(--c-text);
  font-size: 1rem;
}

.privacy-links-list li a:hover strong { color: var(--c-green); }

.privacy-links-list small {
  font-size: 0.82rem;
  color: var(--c-text-dim);
}

/* ============================================================
   首页分类区块
   ============================================================ */
.section-index {
  margin-top: 3rem;
}

/* ============================================================
   页脚：三个 dl 并排（四栏降三栏，按结构抽签）
   ============================================================ */
.site-footer {
  background: var(--c-dark2);
  border-top: 1px solid var(--c-border);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.footer-col dt {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: 0.06em;
  text-shadow: 0 0 8px rgba(135, 255, 113, 0.3);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(135, 255, 113, 0.15);
}

.footer-col dd {
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.footer-col dd a {
  color: var(--c-text-dim);
  text-decoration: none;
  transition: color var(--transition);
  display: inline-block;
  min-height: 28px;
  line-height: 28px;
}

.footer-col dd a:hover { color: var(--c-blue); }

.footer-note {
  font-size: 0.78rem;
  color: rgba(125, 184, 122, 0.5);
  line-height: 1.5;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(125, 184, 122, 0.45);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(135, 255, 113, 0.08);
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ============================================================
   Stagger 动效
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.5s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.08s);
  }

  @keyframes staggerIn {
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .stagger-item {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ============================================================
   视差感（纯 CSS：背景 attachment）
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-wrap {
    background-attachment: fixed;
  }
}

/* ============================================================
   移动端响应
   ============================================================ */
@media (max-width: 768px) {
  .nav-row {
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .nav-row::-webkit-scrollbar { display: none; }

  .nav-pill {
    height: 44px;
    padding: 0 0.85rem;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .hero-wrap { min-height: 70vh; }

  .hero-h1 { font-size: 1.8rem; }

  .section-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .child-thumb-wrap {
    width: 72px;
    height: 50px;
  }

  .about-nav-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  html { font-size: 16px; }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-nav-list {
    grid-template-columns: 1fr;
  }

  .child-item a {
    flex-direction: column;
    align-items: flex-start;
  }

  .child-thumb-wrap {
    width: 100%;
    height: 160px;
  }

  .story-h1 { font-size: 1.55rem; }
}

/* ============================================================
   霓虹光晕辅助效果
   ============================================================ */
.site-header::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--c-green) 30%,
    var(--c-blue) 70%,
    transparent 100%
  );
  opacity: 0.4;
}

/* 复古网格底纹（首页背景）*/
.page-home .hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(1, 205, 254, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 205, 254, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  perspective: 400px;
  transform: perspective(400px) rotateX(30deg) translateY(30%);
  transform-origin: bottom center;
  opacity: 0.5;
}
