@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-primary: #99ffcc;
  --c-accent: #00ff41;
  --c-dark: #001e3c;
  --c-dark2: #002a52;
  --c-dark3: #003666;
  --c-text: #e8f4f0;
  --c-text-muted: #8ab8a0;
  --c-text-dim: #5a8870;
  --c-border: rgba(153, 255, 204, 0.15);
  --c-glow: rgba(153, 255, 204, 0.08);
  --c-glow-strong: rgba(0, 255, 65, 0.12);
  --font-head: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', system-ui, -apple-system, sans-serif;
  --radius-blob: 60% 40% 55% 45% / 45% 55% 40% 60%;
  --radius-blob2: 40% 60% 45% 55% / 55% 45% 60% 40%;
  --max-w: 1200px;
  --max-w-prose: 720px;
  --gap: 2rem;
  --gap-sm: 1rem;
  --gap-lg: 3rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   重置与基础
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--c-dark);
  color: var(--c-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(153, 255, 204, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0, 255, 65, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* =============================================
   排版
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-primary);
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

ul, ol {
  padding-left: 1.5rem;
}

li { margin-bottom: 0.4rem; }

time {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  font-family: var(--font-body);
}

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

/* =============================================
   导航 —— header > nav > p > a
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 30, 60, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-height: 64px;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-primary);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.5rem 0;
  text-shadow: 0 0 20px rgba(153, 255, 204, 0.4);
}

.brand:hover { color: var(--c-accent); }

.main-nav {
  flex: 1;
  overflow: hidden;
}

.main-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.main-nav p a {
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--c-text-muted);
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.main-nav p a:hover,
.main-nav p a[aria-current="page"] {
  color: var(--c-primary);
  background: var(--c-glow);
}

.nav-contact {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-dark);
  background: var(--c-primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  flex-shrink: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: background var(--transition), color var(--transition);
}

.nav-contact:hover {
  background: var(--c-accent);
  color: var(--c-dark);
}

/* 锚点条 */
.anchor-bar {
  background: var(--c-dark2);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 64px;
  z-index: 90;
}

.anchor-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  min-height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-inner::-webkit-scrollbar { display: none; }

.anchor-label {
  font-size: 0.8rem;
  color: var(--c-text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.anchor-inner a {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  white-space: nowrap;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  transition: color var(--transition), background var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.anchor-inner a:hover {
  color: var(--c-primary);
  background: var(--c-glow);
}

/* =============================================
   主容器 —— main > section.wrap > article > div
   ============================================= */
main {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* =============================================
   按钮
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: var(--c-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  min-height: 48px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 20px rgba(153, 255, 204, 0.2);
}

.btn-primary:hover {
  background: var(--c-accent);
  color: var(--c-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 30px rgba(0, 255, 65, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  min-height: 48px;
  transition: background var(--transition), color var(--transition);
}

.btn-secondary:hover {
  background: var(--c-glow);
  color: var(--c-accent);
  border-color: var(--c-accent);
}

/* =============================================
   Hero —— 首页 (右图左文, 45vh, 浮动徽章)
   ============================================= */
.hero-section {
  padding: var(--gap-lg) 0 var(--gap);
}

.hero-article {
  /* 满足 article > div */
}

.hero-section > .hero-article,
.hero-section div.hero-article {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  min-height: 45vh;
  position: relative;
}

.hero-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(153, 255, 204, 0.12);
  border: 1px solid var(--c-border);
  color: var(--c-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  align-self: flex-start;
  animation: breath 3s ease-in-out infinite;
}

@keyframes breath {
  0%, 100% { box-shadow: 0 0 8px rgba(153, 255, 204, 0.2); opacity: 1; }
  50% { box-shadow: 0 0 20px rgba(153, 255, 204, 0.5); opacity: 0.85; }
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

.hero-media {
  flex: 0 0 42%;
  max-width: 42%;
  position: relative;
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(153, 255, 204, 0.1) 0%, transparent 70%);
  border-radius: var(--radius-blob);
  animation: morph 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes morph {
  0%, 100% { border-radius: var(--radius-blob); }
  50% { border-radius: var(--radius-blob2); }
}

.hero-img {
  width: 100%;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  animation: morph 8s ease-in-out infinite;
  filter: brightness(0.9) saturate(1.1);
  box-shadow: 0 0 60px rgba(153, 255, 204, 0.15);
}

/* =============================================
   page.content 容器
   ============================================= */
.content-section {
  padding: var(--gap) 0;
}

.content-section div {
  /* article > div */
}

.page-content {
  color: var(--c-text);
}

.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.page-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1rem;
}

.page-content a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 65, 0.3);
}

.page-content a:hover {
  color: var(--c-primary);
  text-decoration-color: var(--c-primary);
}

.prose {
  font-size: 1rem;
  line-height: 1.8;
  max-width: var(--max-w-prose);
}

.prose h2 + p,
.prose h3 + p {
  margin-top: 0.5rem;
}

/* =============================================
   副标题 (h2 + p.subtitle)
   ============================================= */
.subtitle {
  color: var(--c-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

h2 + .subtitle {
  margin-top: 0.3rem;
}

/* =============================================
   版块网格 (首页)
   ============================================= */
.sections-grid-section {
  padding: var(--gap-lg) 0;
}

.sections-grid-article {
  /* article > div */
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}

.sec-card {
  background: var(--c-dark2);
  padding: 1.5rem;
  border: 1px solid var(--c-border);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.sec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.sec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(153, 255, 204, 0.3);
  box-shadow: 0 8px 30px rgba(153, 255, 204, 0.08);
}

.sec-card:hover::before {
  opacity: 1;
}

.sec-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.sec-card h3 a {
  color: var(--c-primary);
}

.sec-card-list {
  list-style: none;
  padding: 0;
  margin: var(--gap-sm) 0;
}

.sec-card-list li {
  margin-bottom: 0.3rem;
}

.sec-card-list a {
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.sec-card-list a:hover { color: var(--c-primary); }

.sec-card-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-accent);
}

/* =============================================
   文章列表布局 (stories with sidebar)
   ============================================= */
.stories-section {
  padding: var(--gap-lg) 0;
}

.stories-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--gap-lg);
  align-items: start;
}

.stories-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin-top: var(--gap);
}

.story-item {
  display: flex;
  gap: var(--gap-sm);
  padding-bottom: var(--gap);
  border-bottom: 1px solid var(--c-border);
}

.story-item:last-child { border-bottom: none; }

.story-thumb-wrap {
  flex-shrink: 0;
  width: 120px;
}

.story-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
}

.story-body {
  flex: 1;
  min-width: 0;
}

.story-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}

.story-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.story-body p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

/* =============================================
   侧边栏 (aside 在内容右侧)
   ============================================= */
.sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.sidebar-widget {
  background: var(--c-dark2);
  border: 1px solid var(--c-border);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.sidebar-widget::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--c-primary), transparent);
  opacity: 0.5;
}

.sidebar-widget h3 {
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--c-primary);
  margin-bottom: var(--gap-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
}

.sidebar-links {
  list-style: none;
  padding: 0;
}

.sidebar-links li { margin-bottom: 0.4rem; }

.sidebar-links a {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  transition: color var(--transition), padding-left var(--transition);
  display: block;
  padding: 0.2rem 0;
}

.sidebar-links a:hover {
  color: var(--c-primary);
  padding-left: 4px;
}

.sidebar-section-link {
  display: block;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 0.5rem;
}

.sidebar-more {
  font-size: 0.8rem;
  color: var(--c-accent);
  font-weight: 700;
}

.sidebar-notice {
  background: rgba(0, 255, 65, 0.04);
}

.sidebar-notice p {
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-link {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  background: rgba(153, 255, 204, 0.08);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  border-radius: 3px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.tag-link:hover {
  background: rgba(153, 255, 204, 0.15);
  color: var(--c-primary);
  border-color: var(--c-primary);
}

/* =============================================
   Section 页面
   ============================================= */
.section-hero {
  padding: var(--gap-lg) 0 var(--gap);
}

.section-hero-article {
  max-width: 700px;
}

.section-eyebrow,
.tag-eyebrow,
.about-eyebrow,
.privacy-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  border-left: 3px solid var(--c-accent);
  padding-left: 0.6rem;
  margin-bottom: 0.75rem;
}

.section-lead,
.tag-desc,
.about-lead {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 600px;
}

.section-body {
  padding-bottom: var(--gap-lg);
}

.section-layout,
.about-layout,
.privacy-layout,
.default-layout,
.tag-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--gap-lg);
  align-items: start;
}

/* 子页列表 ol > li > a + small */
.child-listing {
  margin-top: var(--gap-lg);
}

.child-list {
  list-style: none;
  padding: 0;
  margin-top: var(--gap);
  counter-reset: child-counter;
}

.child-list > li {
  display: flex;
  gap: var(--gap-sm);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--c-border);
  counter-increment: child-counter;
  position: relative;
  transition: background var(--transition);
}

.child-list > li:first-child { border-top: 1px solid var(--c-border); }

.child-list > li::before {
  content: counter(child-counter, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: rgba(153, 255, 204, 0.2);
  min-width: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.child-thumb-wrap {
  flex-shrink: 0;
  width: 100px;
}

.child-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 3px;
}

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

.child-info > a {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1.3;
}

.child-info > a:hover { color: var(--c-accent); }

.child-info > small {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.child-info > time {
  font-size: 0.8rem;
  color: var(--c-text-dim);
}

/* =============================================
   Story 页面
   ============================================= */
.story-intro {
  padding: var(--gap-lg) 0 var(--gap);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--c-text-dim);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--c-text-muted);
}

.breadcrumb a:hover { color: var(--c-primary); }

.breadcrumb span { color: var(--c-text-dim); }

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

.story-section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-dark);
  background: var(--c-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
}

.story-section-tag:hover {
  background: var(--c-accent);
  color: var(--c-dark);
}

.story-desc {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 680px;
  margin-top: 0.5rem;
}

.story-hero-media {
  margin-top: 1.5rem;
  border-radius: 6px;
  overflow: hidden;
}

.story-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  filter: brightness(0.85) saturate(1.05);
}

.story-content-section {
  padding-bottom: var(--gap-lg);
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--gap-lg);
  align-items: start;
}

.story-body {
  min-width: 0;
}

.story-dates {
  display: flex;
  gap: var(--gap);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--c-text-dim);
  margin-top: var(--gap);
  padding-top: var(--gap);
  border-top: 1px solid var(--c-border);
}

/* 延伸阅读 */
.related-section {
  padding: var(--gap-lg) 0;
  border-top: 1px solid var(--c-border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}

.related-card {
  background: var(--c-dark2);
  padding: 1.25rem;
  border: 1px solid var(--c-border);
  transition: transform var(--transition), border-color var(--transition);
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(153, 255, 204, 0.25);
}

.related-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.related-card p {
  font-size: 0.82rem;
  color: var(--c-text-muted);
}

/* =============================================
   About 页面
   ============================================= */
.about-hero {
  padding: var(--gap-lg) 0 var(--gap);
}

.about-body { padding-bottom: var(--gap); }

.about-sections {
  padding: var(--gap-lg) 0;
  border-top: 1px solid var(--c-border);
}

.about-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}

.about-sec-item {
  background: var(--c-dark2);
  padding: 1.25rem;
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-primary);
}

.about-sec-item h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.about-sec-item p { font-size: 0.875rem; color: var(--c-text-muted); }

/* =============================================
   Privacy 页面
   ============================================= */
.privacy-hero {
  padding: var(--gap-lg) 0 var(--gap);
}

.privacy-updated {
  font-size: 0.85rem;
  color: var(--c-text-dim);
  margin-top: 0.5rem;
}

.privacy-body { padding-bottom: var(--gap-lg); }

.prose-legal {
  max-width: var(--max-w-prose);
  color: var(--c-text-muted);
}

.prose-legal h2 { margin-top: 2.5rem; font-size: 1.3rem; }
.prose-legal h3 { margin-top: 1.5rem; font-size: 1.1rem; }

/* =============================================
   Tag 页面
   ============================================= */
.tag-hero {
  padding: var(--gap-lg) 0 var(--gap);
}

.tag-body { padding-bottom: var(--gap-lg); }

.tag-listing {
  margin-top: var(--gap-lg);
}

/* =============================================
   页脚 —— footer > article×n
   ============================================= */
.site-footer {
  background: var(--c-dark2);
  border-top: 1px solid var(--c-border);
  position: relative;
  z-index: 1;
  margin-top: var(--gap-lg);
}

.footer-cta {
  text-align: center;
  padding: var(--gap-lg) var(--gap);
  background: linear-gradient(180deg, rgba(153, 255, 204, 0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--c-border);
}

.footer-cta h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.footer-cta p {
  color: var(--c-text-muted);
  margin-bottom: var(--gap);
  font-size: 1rem;
}

.footer-cols {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap-lg) var(--gap);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--gap-lg);
  border-bottom: 1px solid var(--c-border);
}

.footer-col strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--c-primary);
  margin-bottom: var(--gap-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
}

.footer-col p {
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li { margin-bottom: 0.4rem; }

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--c-primary); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem var(--gap);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--c-text-dim);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--gap-sm);
  margin: 0;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--c-text-dim);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.footer-links a:hover { color: var(--c-primary); }

/* =============================================
   Scroll Reveal 动效
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-list > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-list.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-list.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-list.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-list.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-list.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-list.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-list.visible > *:nth-child(n+7) { transition-delay: 0.35s; }

.stagger-list.visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .stagger-list > *,
  .hero-img,
  .hero-media::before,
  .hero-badge,
  .sec-card,
  .related-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =============================================
   有机背景装饰（纯CSS气泡）
   ============================================= */
.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  right: -150px;
  top: -100px;
  background: radial-gradient(ellipse, rgba(153, 255, 204, 0.03) 0%, transparent 70%);
  border-radius: var(--radius-blob);
  animation: morph 12s ease-in-out infinite;
  pointer-events: none;
}

/* =============================================
   移动端响应式
   ============================================= */
@media (max-width: 1024px) {
  .stories-layout,
  .section-layout,
  .story-layout,
  .about-layout,
  .privacy-layout,
  .default-layout,
  .tag-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-widget {
    flex: 1;
    min-width: 220px;
  }

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

  .footer-cols .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --gap: 1.25rem;
    --gap-lg: 2rem;
  }

  html { font-size: 16px; }

  .header-inner {
    flex-wrap: wrap;
    padding: 0.5rem var(--gap);
    gap: 0.5rem;
    min-height: auto;
  }

  .brand {
    flex: 1;
  }

  .main-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .main-nav p {
    gap: 0.15rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
  }

  .main-nav p::-webkit-scrollbar { display: none; }

  .main-nav p a {
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
    flex-shrink: 0;
    min-height: 40px;
  }

  .nav-contact {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    min-height: 40px;
  }

  .hero-section div.hero-article {
    flex-direction: column-reverse;
    min-height: auto;
    gap: var(--gap);
  }

  .hero-media {
    flex: none;
    max-width: 80%;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

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

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

  .child-list > li::before {
    display: none;
  }

  .story-thumb-wrap {
    width: 80px;
  }

  .sidebar {
    flex-direction: column;
  }

  .sidebar-widget {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .child-list > li {
    flex-direction: column;
  }

  .child-thumb-wrap {
    width: 100%;
    max-width: 200px;
  }

  .story-item {
    flex-direction: column;
  }

  .story-thumb-wrap {
    width: 100%;
    max-width: 200px;
  }
}
