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

/* ============================================================
   CSS Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

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

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   Announce Bar
   ============================================================ */
.announce-bar {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 300;
}

.announce-bar p {
  margin: 0;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 2px solid #000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-decoration: none;
  color: #000;
}

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

.brand-name {
  white-space: nowrap;
}

/* Pill Nav */
.pill-nav {
  flex: 1;
  overflow: hidden;
}

.pill-nav ul {
  display: flex;
  gap: 0.4rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.pill-nav ul::-webkit-scrollbar {
  display: none;
}

.pill-nav li {
  flex-shrink: 0;
}

.pill-nav a.pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1.5px solid #000;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 220ms ease, color 220ms ease;
  min-height: 40px;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

.pill-nav a.pill:hover,
.pill-nav a.pill.active {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid #000;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 220ms ease;
}

.menu-toggle:hover {
  background: #000;
  color: #fff;
}

/* ============================================================
   Aside / Drawer Nav
   ============================================================ */
.site-aside {
  position: fixed;
  top: 0;
  left: -100%;
  width: min(320px, 88vw);
  height: 100vh;
  background: #fff;
  border-right: 2px solid #000;
  z-index: 400;
  overflow-y: auto;
  transition: left 280ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem 1.5rem;
}

.site-aside.is-open {
  left: 0;
}

.site-aside nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-aside nav ul li a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: color 200ms ease;
}

.site-aside nav ul li a:hover,
.site-aside nav ul li a[aria-current="page"] {
  color: #000;
  text-decoration: none;
  font-weight: 700;
}

.aside-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
}

.aside-overlay.is-open {
  display: block;
}

/* ============================================================
   Main Wrap
   ============================================================ */
main {
  min-height: 60vh;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   Eyebrow / Small Labels
   ============================================================ */
small.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.4rem;
}

/* ============================================================
   HOME: Hero
   ============================================================ */
.hero-section {
  border-bottom: 2px solid #000;
}

.hero-article {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.hero-media {
  border-right: 2px solid #000;
  overflow: hidden;
}

.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 3rem;
  gap: 1.5rem;
}

.hero-text-full {
  grid-column: 1 / -1;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  max-width: 36ch;
}

/* ============================================================
   CTA Button
   ============================================================ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  min-height: 48px;
  transition: background 220ms ease, color 220ms ease;
  text-decoration: none;
}

.cta-btn:hover {
  background: #fff;
  color: #000;
  text-decoration: none;
}

.cta-btn-inv {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.cta-btn-inv:hover {
  background: #000;
  color: #fff;
}

/* ============================================================
   HOME: Content prose section
   ============================================================ */
.home-content-section {
  padding: 4rem 0;
  border-bottom: 2px solid #000;
}

.home-content-article {
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
   HOME: Sections Grid
   ============================================================ */
.sections-section {
  padding: 4rem 0;
  border-bottom: 2px solid #000;
}

.sections-article h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.section-card {
  border: 2px solid #000;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 220ms ease;
}

.section-card:hover {
  transform: translateY(-3px);
}

.section-card-link {
  display: block;
  text-decoration: none;
  color: #000;
}

.section-card-link:hover {
  text-decoration: none;
}

.section-card-inner {
  padding: 1.8rem;
}

.section-card-inner h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.section-card-inner p {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.section-count {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1.5px solid #000;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

/* ============================================================
   HOME: Stories Grid
   ============================================================ */
.stories-section {
  padding: 4rem 0;
}

.stories-article h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.story-card {
  border: 2px solid #000;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 220ms ease;
}

.story-card:hover {
  transform: translateY(-3px);
}

.story-card .card-link {
  display: block;
  text-decoration: none;
  color: #000;
  height: 100%;
}

.story-card .card-link:hover {
  text-decoration: none;
}

.card-img-wrap {
  overflow: hidden;
  aspect-ratio: 16/9;
  border-bottom: 2px solid #000;
}

.card-img-wrap .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.story-card:hover .card-img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.4rem;
}

.card-date {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 0.4rem;
  font-weight: 300;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.6;
}

/* ============================================================
   Content + Sidebar Layout (section/story/tag/about/privacy)
   ============================================================ */
.content-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-aside {
  position: sticky;
  top: 80px;
  border: 2px solid #000;
  border-radius: 28px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.content-aside nav ul,
.content-aside .aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-aside nav ul li,
.content-aside .aside-nav-list li {
  border-bottom: 1px solid #e0e0e0;
}

.content-aside nav ul li:last-child,
.content-aside .aside-nav-list li:last-child {
  border-bottom: none;
}

.content-aside nav ul li a,
.content-aside .aside-nav-list li a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #000;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 200ms ease;
}

.content-aside nav ul li a:hover,
.content-aside .aside-nav-list li a:hover {
  color: #555;
  text-decoration: none;
}

.content-aside nav ul li small {
  display: block;
  font-size: 0.75rem;
  color: #777;
  padding-bottom: 0.4rem;
}

.aside-block {
  border-top: 2px solid #000;
  padding-top: 1rem;
}

/* ============================================================
   Section Page
   ============================================================ */
.section-hero {
  border-bottom: 2px solid #000;
  background: #000;
  color: #fff;
}

.section-hero-article {
  min-height: 38vh;
  display: flex;
  align-items: center;
}

.section-hero-inner {
  padding: 4rem 0;
  max-width: 700px;
}

.section-hero-inner .eyebrow {
  color: #aaa;
}

.section-hero-inner h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: #fff;
}

.section-lead {
  font-size: 1.05rem;
  color: #ccc;
  line-height: 1.7;
}

.section-body {
  padding: 4rem 0;
}

.section-content {
  width: 100%;
}

/* Children list */
.children-list {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid #000;
}

.children-list h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.child-ol {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.child-card {
  border: 2px solid #000;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 220ms ease;
}

.child-card:hover {
  transform: translateY(-2px);
}

.child-card > a {
  display: grid;
  grid-template-columns: 200px 1fr;
  text-decoration: none;
  color: #000;
  min-height: 120px;
}

.child-card > a:hover {
  text-decoration: none;
}

.child-card .card-img-wrap {
  border-right: 2px solid #000;
  border-bottom: none;
  aspect-ratio: auto;
  height: 100%;
}

.child-card .card-body {
  padding: 1.2rem 1.5rem;
}

.child-card .card-body small {
  font-size: 0.8rem;
  color: #666;
  font-weight: 400;
}

/* ============================================================
   Story Page
   ============================================================ */
.story-section {
  padding: 3rem 0 4rem;
}

.story-article {
  width: 100%;
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

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

.story-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: #666;
}

.breadcrumb-link {
  font-weight: 600;
  color: #000;
  border-bottom: 1.5px solid #000;
  padding-bottom: 1px;
}

.breadcrumb-link:hover {
  text-decoration: none;
  color: #555;
}

.pub-date, .mod-date {
  color: #777;
  font-weight: 300;
}

.story-hero-wrap {
  border: 2px solid #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
}

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

.story-h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.story-lead {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 2rem;
  border-left: 4px solid #000;
  padding-left: 1rem;
}

.back-link-wrap {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #000;
}

.back-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: #000;
}

/* ============================================================
   Tag Page
   ============================================================ */
.tag-header-section {
  border-bottom: 2px solid #000;
  background: #f5f5f5;
}

.tag-header-article {
  min-height: 30vh;
  display: flex;
  align-items: center;
}

.tag-header-inner {
  padding: 3rem 0;
}

.tag-header-inner h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.tag-header-inner p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.tag-body-section {
  padding: 3rem 0 4rem;
}

.tag-body-article {
  width: 100%;
}

.tag-list-wrap {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid #000;
}

.tag-list-wrap h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.tag-article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tag-article-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 0.9rem 0;
}

.tag-article-item a {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.2rem;
  transition: color 200ms ease;
}

.tag-article-item a:hover {
  color: #555;
  text-decoration: none;
}

.tag-article-item small {
  font-size: 0.78rem;
  color: #777;
  font-weight: 300;
}

/* ============================================================
   About Page
   ============================================================ */
.about-section {
  padding: 4rem 0;
}

.about-article {
  width: 100%;
}

.about-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #000;
}

.about-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.about-lead {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
}

/* ============================================================
   Privacy Page
   ============================================================ */
.privacy-section {
  padding: 4rem 0;
}

.privacy-article {
  width: 100%;
}

.privacy-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #000;
}

.privacy-header h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.privacy-date {
  font-size: 0.82rem;
  color: #777;
}

/* ============================================================
   Prose Styles
   ============================================================ */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: #111;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
  border-bottom: 2px solid #000;
  padding-bottom: 0.4rem;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.7rem;
}

.prose h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  margin-bottom: 1.2rem;
}

.prose ul, .prose ol {
  margin: 1rem 0 1.2rem 1.5rem;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose strong {
  font-weight: 700;
}

.prose em {
  font-style: italic;
}

.prose blockquote {
  border-left: 4px solid #000;
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  color: #444;
  font-style: italic;
}

.prose a {
  color: #000;
  border-bottom: 1.5px solid #000;
  padding-bottom: 1px;
}

.prose a:hover {
  color: #555;
  text-decoration: none;
}

.prose code {
  font-size: 0.88em;
  background: #f0f0f0;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background: #000;
  color: #fff;
  padding: 1.2rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.88rem;
  margin: 1.5rem 0;
}

.prose img {
  border: 2px solid #000;
  border-radius: 8px;
  margin: 1.5rem 0;
  max-width: 100%;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.prose th, .prose td {
  border: 1.5px solid #000;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.prose th {
  background: #000;
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 2px solid #000;
  margin-top: 4rem;
}

.footer-cta {
  background: #000;
  color: #fff;
  padding: 4rem 1.5rem;
}

.footer-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-cta h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.footer-cols {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-bottom: 2px solid #000;
  padding-bottom: 0.5rem;
}

.footer-col address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #333;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-col ul li {
  border-bottom: 1px solid #e0e0e0;
}

.footer-col ul li:last-child {
  border-bottom: none;
}

.footer-col ul li a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  color: #333;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 200ms ease;
}

.footer-col ul li a:hover {
  color: #000;
  text-decoration: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid #ccc;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: #777;
  text-align: center;
}

/* ============================================================
   Stagger Animation
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .stagger-item {
    opacity: 0;
    transform: translateY(16px);
    animation: staggerIn 380ms ease forwards;
    animation-delay: calc(var(--i, 0) * 80ms);
  }

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

/* ============================================================
   Responsive: Tablet 768px
   ============================================================ */
@media (max-width: 900px) {
  .content-sidebar-layout,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
    order: -1;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-media {
    border-right: none;
    border-bottom: 2px solid #000;
    min-height: 40vh;
  }

  .hero-text {
    padding: 3rem 2rem;
    min-height: 50vh;
  }

  .child-card > a {
    grid-template-columns: 1fr;
  }

  .child-card .card-img-wrap {
    border-right: none;
    border-bottom: 2px solid #000;
    height: 180px;
  }
}

/* ============================================================
   Responsive: Mobile 375px
   ============================================================ */
@media (max-width: 640px) {
  .pill-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-inner {
    justify-content: space-between;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-article {
    min-height: auto;
  }

  .hero-text {
    min-height: 60vh;
    padding: 3rem 1.5rem;
  }

  .hero-media {
    min-height: 45vw;
  }

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

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

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

  .section-hero-inner h1 {
    font-size: 1.6rem;
  }

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

  .wrap {
    padding: 0 1rem;
  }

  .footer-cta {
    padding: 2.5rem 1rem;
  }

  .footer-cols {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-bottom {
    padding: 1rem;
  }

  .site-aside nav ul li a {
    min-height: 52px;
  }

  .cta-btn {
    min-height: 52px;
    padding: 0.8rem 1.8rem;
    width: 100%;
    max-width: 320px;
  }
}
