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

/* =====================
   CSS 自定义属性
   ===================== */
:root {
  --green: #87ff71;
  --yellow: #ffce5c;
  --dark: #192617;
  --dark2: #1f3019;
  --dark3: #243b20;
  --text: #e8f5e4;
  --text-muted: #a8c4a2;
  --border: #87ff71;
  --card-bg: #1f3019;
  --nav-width: 220px;
  --font-serif: 'Noto Serif TC', 'Georgia', serif;
  --font-sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --radius: 0;
  --transition: 0.22s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--dark);
  color: var(--text);
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  background: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

a:hover { color: var(--yellow); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--green);
}

p { line-height: 1.75; }

/* =====================
   Memphis 装饰元素
   ===================== */
.memphis-tri {
  width: 0;
  height: 0;
  position: absolute;
  pointer-events: none;
}

.tri-header {
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--yellow);
  top: 0;
  right: 60px;
  opacity: 0.7;
  transform: rotate(15deg);
}

.tri-footer {
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 50px solid var(--green);
  bottom: 0;
  right: 80px;
  opacity: 0.5;
  transform: rotate(-10deg);
}

.memphis-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.c1 {
  width: 80px; height: 80px;
  border: 6px solid var(--green);
  top: -20px; right: -20px;
  opacity: 0.6;
}

.c2 {
  width: 50px; height: 50px;
  background: var(--yellow);
  bottom: 20px; left: 10px;
  opacity: 0.5;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.c3 {
  width: 60px; height: 60px;
  border: 5px dashed var(--yellow);
  top: 30px; right: 10px;
  opacity: 0.5;
}

.c4 {
  width: 40px; height: 40px;
  background: var(--green);
  opacity: 0.3;
  border-radius: 50%;
  top: 10px; left: 5px;
}

.memphis-zigzag {
  position: absolute;
  pointer-events: none;
  width: 120px;
  height: 20px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0px, var(--yellow) 10px,
    transparent 10px, transparent 20px
  );
  transform: rotate(-6deg);
  bottom: 10px; right: 0;
  opacity: 0.5;
}

.zz-small {
  width: 60px;
  height: 12px;
}

.memphis-dot-cluster {
  position: absolute;
  pointer-events: none;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, var(--green) 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.4;
}

.dot-hero { bottom: 20px; left: 20px; }
.dot-sec { top: 20px; right: 20px; }
.dot-story { bottom: 10px; right: 10px; }
.dot-about { top: 10px; left: 10px; }
.dot-tag { bottom: 20px; left: 20px; }
.dot-priv { top: 20px; right: 20px; }

/* =====================
   布局骨架：左侧固定导航
   ===================== */
.site-wrap {
  display: flex;
  min-height: 100vh;
  flex-direction: row;
}

/* Header 左侧竖排 */
.site-header {
  width: var(--nav-width);
  min-height: 100vh;
  background: var(--dark2);
  border-right: 3px solid var(--green);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 16px 24px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
  word-break: break-all;
}

.brand-name:hover { color: var(--yellow); }

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border-radius: 50%;
  flex-shrink: 0;
}

.main-nav {
  width: 100%;
  flex: 1;
}

.main-nav > p {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.main-nav > p > a {
  display: block;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--text);
  border-left: 3px solid transparent;
  min-height: 40px;
  line-height: 1.4;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.main-nav > p > a:hover,
.main-nav > p > a[aria-current="page"] {
  color: var(--green);
  border-left-color: var(--green);
  background: rgba(135, 255, 113, 0.07);
}

.cta-nav-btn {
  display: block;
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--green);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  min-height: 44px;
  width: 100%;
  border: 3px solid var(--dark);
  box-shadow: 4px 4px 0 var(--yellow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.cta-nav-btn:hover {
  color: var(--dark);
  box-shadow: 2px 2px 0 var(--yellow);
  transform: translate(2px, 2px);
}

/* 主内容区偏移 */
.home-main,
.section-main,
.story-main,
.tag-main,
.about-main,
.privacy-main {
  margin-left: var(--nav-width);
  flex: 1;
  min-width: 0;
}

/* =====================
   Hero — 首页
   ===================== */
.hero-section {
  display: flex;
  min-height: 70vh;
  align-items: stretch;
  border-bottom: 4px solid var(--green);
  overflow: hidden;
}

.hero-fig {
  flex: 1 1 55%;
  position: relative;
  overflow: hidden;
  background: var(--dark3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-fig .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border: 3px solid var(--dark);
  box-shadow: 3px 3px 0 var(--green);
  transform: rotate(-2deg);
}

.hero-text-aside {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 40px;
  background: var(--dark2);
  border-left: 4px dotted var(--yellow);
  position: relative;
  overflow: hidden;
}

.hero-h1 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: var(--green);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 360px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  border: 3px solid var(--dark);
  box-shadow: 5px 5px 0 var(--green);
  min-height: 48px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.hero-cta:hover {
  box-shadow: 2px 2px 0 var(--green);
  transform: translate(3px, 3px);
  color: var(--dark);
}

/* =====================
   正文容器 (通用)
   ===================== */
.page-content-block {
  display: flex;
  gap: 0;
  align-items: flex-start;
  padding: 48px 40px;
  border-bottom: 3px solid var(--dark3);
}

.page-content-body {
  flex: 1;
  min-width: 0;
  max-width: 800px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-content-body h2 {
  font-size: 1.4rem;
  margin: 28px 0 10px;
  color: var(--yellow);
}

.page-content-body h3 {
  font-size: 1.15rem;
  margin: 20px 0 8px;
  color: var(--green);
}

.page-content-body p {
  margin-bottom: 16px;
}

.page-content-body a {
  color: var(--yellow);
  border-bottom: 1px dashed var(--yellow);
}

.page-content-body a:hover { color: var(--green); border-bottom-color: var(--green); }

.page-content-body img {
  max-width: 100%;
  margin: 16px 0;
  border: 3px solid var(--green);
}

/* =====================
   aside 通用
   ===================== */
.hero-text-aside,
.sec-meta-aside,
.story-meta-aside,
.story-sidebar,
.tag-aside,
.tag-nav-aside,
.about-aside,
.about-detail-aside,
.privacy-aside,
.privacy-toc-aside,
.sibling-aside,
.page-aside {
  position: relative;
}

.aside-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--yellow);
}

.aside-link {
  display: block;
  padding: 8px 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  min-height: 40px;
  line-height: 1.5;
  margin-bottom: 4px;
  transition: border-color var(--transition), color var(--transition);
}

.aside-link:hover {
  color: var(--green);
  border-left-color: var(--green);
}

/* =====================
   侧边栏布局
   ===================== */
.page-aside,
.sibling-aside,
.sec-meta-aside,
.story-sidebar,
.tag-aside,
.tag-nav-aside,
.about-aside,
.about-detail-aside,
.privacy-aside,
.privacy-toc-aside {
  width: 180px;
  flex-shrink: 0;
  margin-right: 32px;
  background: var(--dark2);
  border: 2px solid var(--dark3);
  border-right: 4px solid var(--green);
  padding: 20px 16px;
  order: -1; /* 左侧 */
  position: relative;
}

.aside-stat {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.aside-stat strong {
  color: var(--green);
  font-size: 1.4rem;
}

/* =====================
   figure 装饰区
   ===================== */
.content-deco,
.tag-content-fig,
.tag-deco-fig,
.about-deco-fig,
.privacy-body-fig,
.about-fig,
.story-body-fig,
.sec-hero-fig,
.privacy-deco-fig {
  position: relative;
}

.content-deco {
  width: 60px;
  flex-shrink: 0;
  margin-right: 24px;
  position: relative;
  min-height: 80px;
}

/* =====================
   卡片 — 底部强调线 / 圆角0
   ===================== */
.section-card,
.story-card,
.child-card,
.related-card,
.tag-story-card,
.about-sec-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px;
  background: var(--card-bg);
  border: 2px solid var(--dark3);
  border-bottom: 5px solid var(--green);
  color: var(--text);
  transition: border-bottom-color var(--transition), transform var(--transition), box-shadow var(--transition);
  border-radius: 0;
  text-decoration: none;
}

.section-card:hover,
.story-card:hover,
.child-card:hover,
.related-card:hover,
.tag-story-card:hover,
.about-sec-card:hover {
  border-bottom-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 6px 0 var(--yellow);
  color: var(--text);
}

.section-card > strong,
.story-card > strong,
.child-card > strong,
.related-card > strong,
.tag-story-card > strong,
.about-sec-card > strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.35;
}

.sc-desc, .cc-desc, .rc-desc, .tc-desc, .asc-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.sc-meta, .cc-meta, .tc-meta, .rc-meta {
  font-size: 0.8rem;
  color: var(--yellow);
}

.sc-img img, .cc-img img, .tc-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border: 2px solid var(--dark3);
  margin-bottom: 4px;
}

/* =====================
   网格
   ===================== */
.sections-grid,
.stories-grid,
.children-grid,
.related-grid,
.tag-stories-grid,
.about-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* =====================
   各区段 section 内部
   ===================== */
.sections-row-section,
.recent-stories-section,
.children-section,
.related-section,
.tag-stories-section,
.about-links-section {
  padding: 48px 40px;
  border-bottom: 3px solid var(--dark3);
}

.sections-row-section h2,
.recent-stories-section h2,
.children-section h2,
.related-section h2,
.tag-stories-section h2,
.about-links-section h2,
.tag-title-block h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: var(--green);
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* =====================
   h2 + p.subtitle 契约
   ===================== */
h2 + p.subtitle { margin-top: 6px; }

/* =====================
   首页 Hero content block
   ===================== */
.content-section {
  position: relative;
}

/* =====================
   Section 页 Hero
   ===================== */
.sec-hero-section {
  display: flex;
  min-height: 50vh;
  align-items: stretch;
  border-bottom: 4px solid var(--green);
  overflow: hidden;
}

.sec-hero-fig {
  flex: 1 1 60%;
  position: relative;
  background: var(--dark3);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.sec-hero-fig .sec-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sec-hero-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(25,38,23,0.92));
  padding: 32px 28px 24px;
}

.sec-hero-cap h1 {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  color: var(--green);
  margin-bottom: 8px;
}

.sec-hero-cap .subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.sec-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--green);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border: 2px solid var(--dark);
  box-shadow: 3px 3px 0 var(--yellow);
  transform: rotate(3deg);
}

.sec-meta-aside {
  flex: 0 0 280px;
  padding: 36px 24px;
  background: var(--dark2);
  border-left: 4px dashed var(--yellow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.sec-meta-aside > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =====================
   Story 页
   ===================== */
.story-hero-section {
  display: flex;
  min-height: 40vh;
  border-bottom: 4px solid var(--yellow);
  overflow: hidden;
}

.story-hero-fig {
  flex: 1 1 60%;
  position: relative;
  background: var(--dark3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.story-meta-aside {
  flex: 0 0 260px;
  padding: 32px 20px;
  background: var(--dark2);
  border-left: 4px solid var(--green);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.story-dates {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.story-date, .story-mod-date {
  font-size: 0.85rem;
  color: var(--yellow);
  font-family: var(--font-sans);
}

.breadcrumb-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.story-body-section {
  display: flex;
  align-items: flex-start;
  padding: 48px 40px;
  gap: 0;
  border-bottom: 3px solid var(--dark3);
}

.story-sidebar {
  margin-right: 32px;
}

.story-body-fig {
  width: 80px;
  flex-shrink: 0;
  position: relative;
  margin-right: 24px;
  min-height: 80px;
}

.story-body-fig .story-inline-img {
  width: 100%;
  border: 3px solid var(--green);
  margin-bottom: 8px;
}

.story-content {
  flex: 1;
  min-width: 0;
  max-width: 800px;
}

.story-h1 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin-bottom: 10px;
}

.story-lead {
  margin-bottom: 28px;
  font-size: 1rem;
}

.story-article {
  font-size: 1.05rem;
  line-height: 1.85;
}

.story-article p { margin-bottom: 18px; }

.story-article h2 {
  font-size: 1.35rem;
  color: var(--yellow);
  margin: 28px 0 10px;
}

.story-article h3 {
  font-size: 1.1rem;
  color: var(--green);
  margin: 20px 0 8px;
}

.story-article a { color: var(--yellow); border-bottom: 1px dashed; }
.story-article a:hover { color: var(--green); }

.story-article img {
  max-width: 100%;
  border: 3px solid var(--green);
  margin: 16px 0;
}

/* =====================
   Tag 页
   ===================== */
.tag-hero-section {
  display: flex;
  min-height: 35vh;
  align-items: stretch;
  border-bottom: 4px solid var(--yellow);
  overflow: hidden;
}

.tag-deco-fig {
  flex: 0 0 200px;
  position: relative;
  background: var(--dark3);
  overflow: hidden;
  border-right: 3px dashed var(--green);
}

.tag-aside {
  flex: 0 0 200px;
  padding: 28px 16px;
  background: var(--dark2);
  border-right: 3px solid var(--green);
  display: flex;
  flex-direction: column;
  margin-right: 0;
  width: auto;
}

.tag-badge {
  background: var(--dark3);
  border: 2px solid var(--green);
  margin-bottom: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.tag-title-block {
  flex: 1;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag-title-block h1 {
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  margin-bottom: 8px;
}

.tag-title-block .subtitle {
  font-size: 1rem;
  margin-bottom: 12px;
}

.tag-count {
  font-size: 0.9rem;
  color: var(--yellow);
  font-weight: 700;
}

.tag-content-section {
  background: var(--dark2);
}

.tag-nav-aside {
  margin-right: 32px;
}

.tag-content-fig {
  width: 60px;
  flex-shrink: 0;
  position: relative;
  margin-right: 24px;
  min-height: 60px;
}

/* =====================
   About 页
   ===================== */
.about-intro-section {
  display: flex;
  min-height: 40vh;
  border-bottom: 4px solid var(--green);
  overflow: hidden;
}

.about-fig {
  flex: 1 1 60%;
  background: var(--dark3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-fig .about-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-aside {
  flex: 0 0 240px;
  padding: 32px 20px;
  background: var(--dark2);
  border-left: 4px dotted var(--yellow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  margin-right: 0;
  width: auto;
  order: 1;
}

.about-content-section {
  display: flex;
  align-items: flex-start;
  padding: 48px 40px;
  gap: 0;
  border-bottom: 3px solid var(--dark3);
}

.about-detail-aside {
  margin-right: 32px;
  order: -1;
}

.about-deco-fig {
  width: 80px;
  flex-shrink: 0;
  margin-right: 24px;
  position: relative;
  min-height: 80px;
}

.about-content-section .page-content-body h1 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin-bottom: 10px;
}

.about-lead { margin-bottom: 24px; }

/* =====================
   Privacy 页
   ===================== */
.privacy-top-section {
  display: flex;
  min-height: 28vh;
  border-bottom: 4px solid var(--yellow);
  overflow: hidden;
}

.privacy-deco-fig {
  flex: 1;
  background: var(--dark3);
  position: relative;
  overflow: hidden;
  border-right: 3px solid var(--dark3);
}

.privacy-aside {
  flex: 0 0 220px;
  padding: 28px 16px;
  background: var(--dark2);
  border-left: 4px solid var(--green);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-right: 0;
  width: auto;
  order: 1;
}

.privacy-content-section {
  display: flex;
  align-items: flex-start;
  padding: 48px 40px;
  gap: 0;
  border-bottom: 3px solid var(--dark3);
}

.privacy-toc-aside {
  margin-right: 32px;
  order: -1;
}

.privacy-body-fig {
  width: 60px;
  flex-shrink: 0;
  margin-right: 24px;
  position: relative;
  min-height: 60px;
}

.privacy-content-section .page-content-body h1 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin-bottom: 10px;
}

.privacy-lead { margin-bottom: 24px; }

/* =====================
   页脚
   ===================== */
.site-footer {
  margin-left: var(--nav-width);
  background: var(--dark2);
  border-top: 4px solid var(--green);
  padding: 32px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.footer-form-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
}

.footer-slogan {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 8px 4px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--green); }

.footer-copy {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--yellow);
  font-size: 0.82rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.footer-copy a:hover { color: var(--green); }

/* =====================
   动效：Stagger + Scroll Reveal
   ===================== */
@media (prefers-reduced-motion: no-preference) {
  .section-card,
  .story-card,
  .child-card,
  .related-card,
  .tag-story-card,
  .about-sec-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease, transform 0.4s ease, border-bottom-color 0.22s ease, box-shadow 0.22s ease;
  }

  .section-card.visible,
  .story-card.visible,
  .child-card.visible,
  .related-card.visible,
  .tag-story-card.visible,
  .about-sec-card.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-text-aside {
    animation: fadeInRight 0.6s ease both;
  }

  @keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  .sec-hero-cap {
    animation: fadeInUp 0.55s ease both;
  }

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

/* =====================
   Memphis 装饰 — 局部重复图案
   ===================== */
.hero-text-aside::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px;
  height: 100px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 6px,
    rgba(135,255,113,0.08) 6px,
    rgba(135,255,113,0.08) 12px
  );
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  height: 40px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0, var(--yellow) 8px,
    transparent 8px, transparent 16px
  );
  opacity: 0.12;
  pointer-events: none;
}

/* =====================
   empty hint
   ===================== */
.empty-hint {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
}

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

/* 平板 */
@media (max-width: 1024px) {
  :root { --nav-width: 180px; }

  .hero-section { flex-direction: column; min-height: auto; }
  .hero-fig { min-height: 40vh; flex: none; }
  .hero-text-aside {
    flex: none;
    border-left: none;
    border-top: 4px dotted var(--yellow);
    padding: 32px 28px;
  }

  .sec-hero-section { flex-direction: column; min-height: auto; }
  .sec-meta-aside { flex: none; border-left: none; border-top: 4px dashed var(--yellow); }

  .story-hero-section { flex-direction: column; min-height: auto; }
  .story-hero-fig { min-height: 35vh; flex: none; }
  .story-meta-aside { flex: none; border-left: none; border-top: 4px solid var(--green); }

  .tag-hero-section { flex-wrap: wrap; }
  .tag-deco-fig { flex: 0 0 100%; min-height: 120px; border-right: none; border-bottom: 3px dashed var(--green); }
  .tag-aside { flex: 0 0 180px; border-right: none; }
}

/* 手机 */
@media (max-width: 768px) {
  :root { --nav-width: 0px; }

  .site-wrap { flex-direction: column; }

  .site-header {
    position: static;
    width: 100%;
    min-height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 3px solid var(--green);
    gap: 8px;
    align-items: center;
  }

  .brand-block { margin-bottom: 0; flex: 0 0 auto; }
  .brand-name { font-size: 0.9rem; }

  .main-nav { flex: 1; width: auto; }
  .main-nav > p {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
  }

  .main-nav > p > a {
    padding: 8px 10px;
    font-size: 0.8rem;
    min-height: 40px;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .main-nav > p > a:hover,
  .main-nav > p > a[aria-current="page"] {
    border-left-color: transparent;
    border-bottom-color: var(--green);
  }

  .cta-nav-btn {
    margin-top: 0;
    width: auto;
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .tri-header { display: none; }

  .home-main,
  .section-main,
  .story-main,
  .tag-main,
  .about-main,
  .privacy-main {
    margin-left: 0;
  }

  .site-footer {
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 16px;
    gap: 16px;
  }

  /* Page content blocks mobile */
  .page-content-block,
  .story-body-section,
  .about-content-section,
  .privacy-content-section,
  .tag-content-section {
    flex-direction: column;
    padding: 24px 16px;
  }

  .page-aside,
  .sibling-aside,
  .sec-meta-aside,
  .story-sidebar,
  .tag-aside,
  .tag-nav-aside,
  .about-aside,
  .about-detail-aside,
  .privacy-aside,
  .privacy-toc-aside {
    width: 100%;
    margin-right: 0;
    margin-bottom: 16px;
    border-right: none;
    border-bottom: 3px solid var(--green);
    order: 0;
  }

  .content-deco,
  .story-body-fig,
  .about-deco-fig,
  .privacy-body-fig,
  .tag-content-fig {
    display: none;
  }

  .hero-text-aside { padding: 24px 16px; }
  .hero-h1 { font-size: 1.5rem; }

  .sections-row-section,
  .recent-stories-section,
  .children-section,
  .related-section,
  .tag-stories-section,
  .about-links-section {
    padding: 28px 16px;
  }

  .sections-grid,
  .stories-grid,
  .children-grid,
  .related-grid,
  .tag-stories-grid,
  .about-sections-grid {
    grid-template-columns: 1fr;
  }

  .story-body-section { padding: 24px 16px; }
  .story-h1 { font-size: 1.4rem; }

  .sec-hero-cap h1 { font-size: 1.4rem; }

  .tag-hero-section { flex-direction: column; }
  .tag-aside { width: 100%; border-right: none; border-bottom: 3px solid var(--green); }
  .tag-title-block { padding: 24px 16px; }

  .about-intro-section { flex-direction: column; }
  .about-aside {
    flex: none; width: 100%;
    border-left: none; border-top: 4px dotted var(--yellow);
    order: 0;
  }

  .privacy-top-section { flex-direction: column; }
  .privacy-aside { flex: none; width: 100%; border-left: none; border-top: 3px solid var(--green); order: 0; }

  .footer-nav { gap: 2px 12px; }
  .footer-copy { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 480px) {
  .main-nav > p > a { font-size: 0.75rem; padding: 6px 8px; }
  .hero-h1 { font-size: 1.3rem; }
  .page-content-body { font-size: 1rem; }
  .story-article { font-size: 1rem; }
}
