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

/* ── 基础变量 ── */
:root {
  --mint: #b4fde1;
  --blue: #add8e6;
  --dark: #172620;
  --dark2: #1f3428;
  --dark3: #243d2e;
  --mint-dim: rgba(180,253,225,0.15);
  --blue-dim: rgba(173,216,230,0.15);
  --mint-border: rgba(180,253,225,0.6);
  --blue-border: rgba(173,216,230,0.6);
  --text-main: #e8f5ee;
  --text-mute: #a0c4b0;
  --text-dark: #172620;
  --radius-card: 20px;
  --radius-sm: 10px;
  --border-w: 3px;
  --shadow-outer: 4px 4px 10px rgba(0,0,0,0.45);
  --shadow-inner: inset -2px -2px 8px rgba(255,255,255,0.08);
  --shadow-clay: var(--shadow-inner), var(--shadow-outer);
  --nav-h: 68px;
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, sans-serif;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--blue); }
ul { list-style: none; }
dl { margin: 0; }
dt, dd { margin: 0; }

/* ── 辅助 ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── 站点包裹 ── */
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Clay Card ── */
.clay-card {
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
  border: var(--border-w) solid var(--mint-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-clay);
  padding: 1.4rem 1.6rem;
  transition: transform 200ms cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 200ms ease-out;
}
.clay-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: inset -2px -2px 8px rgba(255,255,255,0.1), 6px 6px 16px rgba(0,0,0,0.55);
}

/* ── Clay Buttons ── */
.clay-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--mint) 0%, var(--blue) 100%);
  color: var(--dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  border: var(--border-w) solid rgba(255,255,255,0.4);
  box-shadow: var(--shadow-clay);
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 200ms ease-out;
  min-height: 44px;
  line-height: 1.3;
}
.clay-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: inset -2px -2px 8px rgba(255,255,255,0.2), 5px 5px 14px rgba(0,0,0,0.5);
  color: var(--dark);
}
.clay-btn-sm {
  display: inline-block;
  background: linear-gradient(135deg, var(--mint-dim) 0%, var(--blue-dim) 100%);
  color: var(--mint);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  border: 2px solid var(--mint-border);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  transition: transform 200ms cubic-bezier(0.34,1.56,0.64,1);
  min-height: 36px;
  line-height: 1.4;
}
.clay-btn-sm:hover {
  transform: scale(1.05);
  color: var(--mint);
}

/* ── 顶部导航 ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23,38,32,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--mint-border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-center {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.brand-mark { border-radius: 8px; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--mint);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand-name:hover { color: var(--blue); }
.nav-left, .nav-right { flex: 1; }
.nav-right { display: flex; justify-content: flex-end; }
.nav-left dl, .nav-right dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.nav-left dt, .nav-right dt { display: flex; }
.nav-pill {
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  padding: 0.42rem 1rem;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  white-space: nowrap;
  min-height: 40px;
}
.nav-pill:hover {
  background: var(--mint-dim);
  border-color: var(--mint-border);
  color: var(--mint);
}

/* ── Hero (home) ── */
.hero-band {
  position: relative;
  min-height: 45vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg-wrap .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0.35;
}
.hero-diagonal {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(23,38,32,0.95) 0%,
    rgba(23,38,32,0.6) 50%,
    rgba(180,253,225,0.08) 100%
  );
  clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  display: flex;
  justify-content: flex-end;
}
.hero-copy {
  max-width: 520px;
  text-align: right;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-mute);
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

/* ── Section Hero ── */
.section-hero {
  position: relative;
  min-height: 32vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.section-hero-bg {
  position: absolute;
  inset: 0;
}
.section-hero-bg .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0.28;
}
.section-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(23,38,32,0.92) 0%,
    rgba(180,253,225,0.06) 100%
  );
}
.section-hero-copy {
  position: relative;
  z-index: 2;
  padding: 2rem 2rem 2.5rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  text-align: right;
}
.section-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}
.section-date { font-size: 0.85rem; color: var(--text-mute); }

/* ── Main Content Layout ── */
.main-content {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.2rem 3rem;
}

/* ── content-section: aside + main col ── */
.page-content-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── Left Aside ── */
.left-aside {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.aside-card {
  padding: 1.2rem 1.4rem;
}
.aside-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 0.8rem;
}
.aside-links { display: flex; flex-direction: column; gap: 0.4rem; }
.aside-link {
  display: block;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-mute);
  border: 1px solid transparent;
  transition: background 150ms, color 150ms, border-color 150ms;
  min-height: 36px;
  line-height: 1.6;
}
.aside-link:hover, .aside-link.active {
  background: var(--mint-dim);
  color: var(--mint);
  border-color: var(--mint-border);
}
.tag-link {
  display: inline-block;
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  border: 1px solid var(--blue-border);
  color: var(--blue);
  min-height: 32px;
}
.tag-link:hover {
  background: var(--blue-dim);
  color: var(--blue);
}

/* ── Main col ── */
.main-col { min-width: 0; }

/* ── Eyebrow labels ── */
.eyebrow-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mint);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.eyebrow-center { display: block; text-align: center; }

/* ── Section headings ── */
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.4rem;
}
.center-heading { text-align: center; }

/* ── Prose Content ── */
.prose-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-main);
}
.prose-content h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mint);
  margin: 1.8rem 0 0.7rem;
}
.prose-content h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue);
  margin: 1.4rem 0 0.5rem;
}
.prose-content p { margin-bottom: 1rem; }
.prose-content ul, .prose-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.prose-content li { margin-bottom: 0.4rem; }
.prose-content a { color: var(--mint); border-bottom: 1px solid var(--mint-border); }
.prose-content a:hover { color: var(--blue); border-bottom-color: var(--blue-border); }
.prose-content strong { color: var(--mint); font-weight: 600; }
.prose-content blockquote {
  border-left: 4px solid var(--mint-border);
  padding-left: 1rem;
  color: var(--text-mute);
  margin: 1rem 0;
  font-style: italic;
}

/* ── Page header cards ── */
.story-header-box,
.about-header,
.privacy-header,
.tag-header,
.page-header {
  margin-bottom: 1.8rem;
}
.story-h1, .about-h1, .privacy-h1, .tag-h1, .page-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
.story-section-tag, .story-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--dark);
  background: var(--mint);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
}
.story-meta, .privacy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.meta-item time { color: var(--text-mute); }
.page-date { font-size: 0.85rem; color: var(--text-mute); margin-top: 0.4rem; }
.story-date { font-size: 0.82rem; color: var(--text-mute); display: block; margin-top: 0.5rem; }
.tag-desc { color: var(--text-mute); font-size: 0.95rem; margin-top: 0.4rem; }

/* ── story body / privacy / about sections ── */
.story-body-section,
.about-body-section,
.privacy-body-section,
.default-body-section {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.story-body-figure,
.about-figure,
.privacy-figure,
.default-figure {
  /* figure as structural anchor; aside inside */
}
.about-aside-note,
.privacy-aside-note,
.default-aside-note {
  border-color: var(--blue-border);
  background: linear-gradient(135deg, rgba(173,216,230,0.08) 0%, rgba(23,38,32,0.9) 100%);
  margin-bottom: 0;
}
.about-aside-note p,
.privacy-aside-note p,
.default-aside-note p {
  font-size: 0.9rem;
  color: var(--text-mute);
  margin: 0;
}

/* ── Story hero figure ── */
.story-hero-fig {
  margin-bottom: 1.4rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: var(--border-w) solid var(--mint-border);
  box-shadow: var(--shadow-outer);
}
.story-hero-fig img { width: 100%; height: auto; border-radius: 0; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--mint); }
.bc-sep { color: var(--mint); opacity: 0.5; }

/* ── Featured Grid (home) ── */
.featured-sections {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mint-border);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1rem;
}
.feat-card {
  display: flex;
  flex-direction: column;
}
.feat-card-body { flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.feat-card-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
}
.feat-card-title a { color: var(--text-main); }
.feat-card-title a:hover { color: var(--mint); }
.feat-card-desc { font-size: 0.9rem; color: var(--text-mute); flex: 1; }

/* ── Latest stories grid ── */
.latest-stories {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(180,253,225,0.12);
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}
.story-card { overflow: hidden; }
.story-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
}
.story-card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}
.story-card-title a { color: var(--text-main); }
.story-card-title a:hover { color: var(--mint); }
.story-card-desc { font-size: 0.88rem; color: var(--text-mute); }

/* ── Children cards (article/tag) ── */
.children-section,
.related-section,
.tag-articles {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mint-border);
}
.child-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  margin-bottom: 1.2rem;
  border-radius: var(--radius-card);
  border-color: var(--blue-border);
}
.child-card:last-child { margin-bottom: 0; }
.child-thumb-fig {
  width: 140px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
}
.child-thumb-fig img { width: 100%; height: auto; border-radius: 0; }
.child-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.child-card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
}
.child-card-title a { color: var(--text-main); }
.child-card-title a:hover { color: var(--mint); }
.child-card-desc { font-size: 0.9rem; color: var(--text-mute); }

/* ── Story main + col ── */
.story-main { display: flex; flex-direction: column; gap: 0; }
.story-header-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}
.story-col { min-width: 0; }
.story-prose { margin-top: 1.4rem; }

/* ── Footer ── */
.site-footer {
  background: rgba(15,28,22,0.98);
  border-top: 3px solid var(--mint-border);
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}
.footer-brand {
  margin-bottom: 1rem;
}
.footer-big-brand {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
}
.footer-nav-dl {
  margin-bottom: 1rem;
}
.footer-nav-dl dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}
.footer-nav-dl dt { display: flex; }
.footer-nav-dl a {
  font-size: 0.88rem;
  color: var(--text-mute);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 150ms;
}
.footer-nav-dl a:hover { color: var(--mint); }
.footer-address {
  margin-bottom: 0.8rem;
  font-style: normal;
}
.footer-address ul {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.footer-address li { display: flex; }
.footer-address a {
  font-size: 0.85rem;
  color: var(--text-mute);
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 0.4rem;
}
.footer-address a:hover { color: var(--mint); }
.footer-copy p {
  font-size: 0.82rem;
  color: rgba(160,196,176,0.55);
  margin-top: 0.5rem;
}

/* ── Reveal animation ── */
.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal-section.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .clay-card, .clay-btn, .clay-btn-sm, .nav-pill, .aside-link {
    transition: none !important;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .featured-grid,
  .story-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .nav-inner { gap: 0.5rem; }
  .nav-left dl, .nav-right dl { gap: 0.2rem; }
  .nav-pill {
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem;
  }
  .brand-name { font-size: 1.1rem; }

  .hero-content { padding: 2rem 1.2rem 3rem; }
  .hero-copy { max-width: 100%; text-align: right; }

  .section-hero-copy { padding: 1.5rem 1.2rem 2rem; }

  .page-content-section,
  .story-header-section {
    grid-template-columns: 1fr;
  }
  .left-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  .left-aside .aside-card {
    flex: 1 1 200px;
    min-width: 180px;
  }

  .featured-grid { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr 1fr; }

  .child-card {
    grid-template-columns: 1fr;
  }
  .child-thumb-fig { width: 100%; }

  .footer-big-brand { font-size: 2rem; }
}

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

  .nav-left { display: none; }
  .nav-right { flex: unset; }
  .nav-inner { justify-content: space-between; }

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

  .featured-grid,
  .story-grid { grid-template-columns: 1fr; }

  .main-content { padding: 1.2rem 1rem 2rem; }
}
