/* ========== Zhuangzi Section CSS ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Noto Serif SC", "Source Han Serif CN", Georgia, serif;
  color: #2c2c2c; background: #faf8f5; line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: #3a2a5a; text-decoration: none; transition: color .2s; }
a:hover { color: #6a4a8a; }
.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* Nav */
.site-nav {
  background: #1a1a2e; color: #e0d8f0; padding: .6rem 0;
  position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-nav .logo { font-size: 1.2rem; color: #e0d8f0; font-weight: 700; }
.site-nav .logo:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-links { display: flex; gap: 1.2rem; list-style: none; flex-wrap: wrap; }
.nav-links a { color: #b0a8c8; font-size: .85rem; }
.nav-links a:hover { color: #fff; }

/* Breadcrumb */
.breadcrumb { padding: 1rem 0; font-size: .85rem; color: #8a7a9a; }
.breadcrumb a { color: #8a7a9a; }
.breadcrumb a:hover { color: #3a2a5a; }
.breadcrumb .sep { margin: 0 .4rem; }

/* Hero */
.hero {
  text-align: center; padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #f0ecf5 0%, #e8e0f0 50%, #f5f0fa 100%);
  border-bottom: 1px solid #d8d0e8;
}
.hero-icon { font-size: 3rem; margin-bottom: .5rem; }
.hero h1 { font-size: 2.5rem; color: #1a1a2e; margin-bottom: .3rem; line-height: 1.3; }
.hero .cn-title { font-size: 1.8rem; color: #4a3a6a; display: block; margin-top: .2rem; }
.hero-subtitle { font-size: .95rem; color: #6a5a8a; letter-spacing: .15em; margin-bottom: 1rem; }
.hero-desc { max-width: 640px; margin: 0 auto; color: #5a4a6a; font-size: .92rem; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 2rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: #3a2a5a; }
.stat-label { font-size: .78rem; color: #8a7a9a; text-transform: uppercase; letter-spacing: .1em; }

/* About */
.about-section { padding: 2.5rem 0; border-bottom: 1px solid #e8e0f0; }
.about-section h2 { font-size: 1.4rem; color: #1a1a2e; margin-bottom: 1rem; }
.about-section p { font-size: .92rem; color: #4a3a5a; margin-bottom: 1rem; }
.en-only { font-style: italic; color: #6a5a8a; }

/* Concepts */
.concepts-section { padding: 2.5rem 0; border-bottom: 1px solid #e8e0f0; }
.concepts-section h2 { font-size: 1.4rem; color: #1a1a2e; margin-bottom: .5rem; }
.section-desc { font-size: .88rem; color: #7a6a8a; margin-bottom: 1.5rem; }
.concept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.concept-card {
  background: #fff; border: 1px solid #e8e0f0; border-radius: 10px;
  padding: 1.2rem; text-align: center; transition: transform .2s, box-shadow .2s;
}
.concept-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(60,40,80,.1); }
.concept-icon { font-size: 1.5rem; margin-bottom: .4rem; }
.concept-cn { font-size: 1rem; color: #1a1a2e; font-weight: 600; }
.concept-en { font-size: .78rem; color: #6a5a8a; margin-bottom: .4rem; }
.concept-desc { font-size: .78rem; color: #7a6a8a; }

/* Chapter Sections */
.chapter-section { padding: 2.5rem 0; border-bottom: 1px solid #e8e0f0; }
.section-header { margin-bottom: 1.5rem; }
.section-header h2 { font-size: 1.4rem; color: #1a1a2e; }
.section-header p { font-size: .88rem; color: #5a4a6a; margin-top: .3rem; }
.section-header .en-desc { font-size: .82rem; color: #7a6a8a; }

.chapter-list { display: flex; flex-direction: column; gap: .8rem; }
.chapter-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid #e8e0f0; border-radius: 10px;
  padding: 1.2rem 1.5rem; transition: all .2s;
}
.chapter-card:hover { border-color: #6a4a8a; box-shadow: 0 4px 16px rgba(60,40,80,.1); transform: translateX(4px); }
.ch-num {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: #3a2a5a; color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: .85rem; font-weight: 700;
}
.ch-body { flex: 1; }
.ch-title { font-size: 1.15rem; color: #1a1a2e; font-weight: 600; }
.ch-en { font-size: .85rem; color: #6a5a8a; }
.ch-subtitle { font-size: .82rem; color: #7a6a8a; margin-top: .2rem; }
.ch-tags { margin-top: .4rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.tag {
  display: inline-block; padding: .15rem .6rem; background: #f0ecf5;
  border-radius: 12px; font-size: .72rem; color: #4a3a6a;
}
.ch-famous { font-size: .8rem; color: #8a7a9a; margin-top: .3rem; }
.ch-arrow { color: #b0a0c0; font-size: 1.2rem; align-self: center; }

/* Chapter Detail Page */
.ch-header {
  text-align: center; padding: 3rem 0 2rem;
  background: linear-gradient(135deg, #f0ecf5 0%, #e8e0f0 100%);
  border-bottom: 1px solid #d8d0e8;
}
.ch-header-section { font-size: .82rem; color: #6a5a8a; letter-spacing: .1em; margin-bottom: .5rem; }
.ch-header h1 { font-size: 2.2rem; color: #1a1a2e; }
.ch-header-en { font-size: 1.1rem; color: #6a5a8a; font-style: italic; margin-top: .2rem; }
.ch-header-subtitle { font-size: .9rem; color: #5a4a6a; margin-top: .5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.ch-header-tags { margin-top: 1rem; display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }

.ch-body-content { padding: 2.5rem 0; }
.ch-section { margin-bottom: 2.5rem; }
.ch-section h2 {
  font-size: 1.15rem; color: #3a2a5a; margin-bottom: 1rem;
  padding-bottom: .4rem; border-bottom: 1px solid #e8e0f0;
}
.ch-section h2 .icon { margin-right: .4rem; }
.ch-overview { font-size: .95rem; color: #3a2a4a; }
.ch-section p { font-size: .92rem; color: #4a3a5a; margin-bottom: .8rem; }

.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.story-item {
  background: #fdfbf8; border: 1px solid #e8e0f0; border-radius: 8px;
  padding: 1rem; font-size: .9rem; color: #3a2a4a;
}
.ch-concepts { display: flex; flex-wrap: wrap; gap: .6rem; }
.tag-lg {
  display: inline-block; padding: .4rem 1rem; background: #f0ecf5;
  border: 1px solid #d8d0e8; border-radius: 20px; font-size: .85rem; color: #3a2a5a;
  transition: all .2s;
}
.tag-lg:hover { background: #3a2a5a; color: #fff; border-color: #3a2a5a; }

/* Reading Grid */
.further-reading { padding: 2.5rem 0; }
.further-reading h2 { font-size: 1.3rem; color: #1a1a2e; margin-bottom: 1.5rem; }
.reading-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.reading-card {
  background: #fff; border: 1px solid #e8e0f0; border-radius: 10px;
  padding: 1.5rem; transition: all .2s;
}
.reading-card:hover { border-color: #6a4a8a; box-shadow: 0 4px 16px rgba(60,40,80,.1); }
.reading-icon { font-size: 1.5rem; margin-bottom: .4rem; }
.reading-title { font-size: .95rem; color: #1a1a2e; font-weight: 600; }
.reading-desc { font-size: .8rem; color: #7a6a8a; margin-top: .2rem; }

/* Prev/Next */
.page-nav { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0; border-top: 1px solid #e8e0f0; }
.page-nav a {
  flex: 1; padding: 1rem; background: #fff; border: 1px solid #e8e0f0;
  border-radius: 8px; transition: border-color .2s;
}
.page-nav a:hover { border-color: #3a2a5a; }
.page-nav .label { font-size: .75rem; color: #7a6a8a; text-transform: uppercase; letter-spacing: .1em; }
.page-nav .title { font-size: .95rem; color: #1a1a2e; margin-top: .2rem; }
.page-nav .next { text-align: right; }

/* Footer */
.site-footer {
  background: #1a1a2e; color: #b0a8c8; padding: 3rem 0 0;
  margin-top: 3rem; font-size: .82rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding-bottom: 2.5rem; }
.footer-col h4 { color: #e0d8f0; font-size: .88rem; margin-bottom: 1rem; padding-bottom: .4rem; border-bottom: 1px solid #2a2a3e; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #8a7a9a; font-size: .8rem; transition: color .2s; }
.footer-col a:hover { color: #e0d8f0; }
.footer-bottom {
  border-top: 1px solid #2a2a3e; padding: 1.2rem 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .8rem; font-size: .75rem; color: #5a4a6a;
}
.footer-bottom a { color: #7a6a8a; }
.footer-bottom a:hover { color: #e0d8f0; }
.footer-bottom .footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-quote { text-align: center; padding: 1.5rem 0; font-size: .78rem; color: #4a3a5a; font-style: italic; border-top: 1px solid #2a2a3e; }

/* Responsive */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .hero h1 { font-size: 1.8rem; }
  .hero .cn-title { font-size: 1.3rem; }
  .hero-stats { gap: 1.5rem; }
  .concept-grid { grid-template-columns: repeat(2, 1fr); }
  .chapter-card { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .ch-arrow { display: none; }
  .page-nav { flex-direction: column; }
  .reading-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .concept-grid { grid-template-columns: 1fr; }
  .nav-links { gap: .6rem; }
}

@media (prefers-color-scheme: dark) {
  body { background: #12101a; color: #c8c0d8; }
  .hero, .ch-header { background: linear-gradient(135deg, #1a1828 0%, #1e1a2a 100%); border-color: #2a2838; }
  .chapter-card, .concept-card, .reading-card, .story-item, .page-nav a { background: #1a1828; border-color: #2a2838; }
  h1, h2, .ch-title, .stat-num, .concept-cn, .reading-title { color: #e0d8f0; }
  .site-nav { background: #0e0c14; }
  .site-footer { background: #0a0810; }
  .ch-section h2 { border-color: #2a2838; }
  .tag { background: #2a2838; color: #a090c0; }
  .tag-lg { background: #2a2838; border-color: #3a3848; color: #b0a0d0; }
  .tag-lg:hover { background: #6a4a8a; color: #fff; }
}
