:root {
  --bg: #f5f1e6;
  --paper: #fbf8ef;
  --line: rgba(52, 68, 46, 0.14);
  --ink: #223024;
  --muted: #687265;
  --gold: #b89b5c;
  --gold-deep: #8f7137;
  --seal: #8d2f28;
  --shadow: 0 20px 44px rgba(40, 52, 35, 0.08);
  --font-sans: "PingFang SC", "Source Han Sans SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", "Microsoft JhengHei", "STHeiti", "Heiti SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(72, 86, 60, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 86, 60, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  font-family: var(--font-sans);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
}

.site-header,
.site-footer,
.hero,
.section {
  padding-left: 7%;
  padding-right: 7%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
  background: rgba(245, 241, 230, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), rgba(245, 241, 230, 0.78));
  border: 1px solid rgba(184, 155, 92, 0.18);
  box-shadow: 0 12px 28px rgba(40, 52, 35, 0.12);
}

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

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong,
.hero h1,
.hero-panel h2,
.section-head h2,
.card h3,
.list-card h3 {
  font-family: var(--font-sans);
}

.brand-copy strong {
  font-size: 24px;
  letter-spacing: 3px;
}

.brand-copy small {
  color: var(--muted);
  letter-spacing: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.site-nav a {
  position: relative;
  padding-bottom: 3px;
  color: #42513f;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--seal);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 28px;
}

.hero-single {
  grid-template-columns: minmax(0, 1fr);
}

.home-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.article-hero {
  grid-template-columns: minmax(0, 1fr);
}

.article-hero .hero-copy {
  text-align: center;
}

.article-hero .hero-copy .eyebrow {
  display: block;
  text-align: left;
}

.article-hero .hero-copy p,
.article-hero .article-meta {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.eyebrow,
.section-head small {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--seal);
  letter-spacing: 3px;
  font-size: 13px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 56px;
  line-height: 1.18;
  letter-spacing: 4px;
}

.hero p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(184, 155, 92, 0.24);
}

.button.primary {
  background: var(--gold);
  color: #342914;
  border-color: transparent;
}

.button.secondary {
  background: transparent;
  color: var(--gold-deep);
}

.hero-panel,
.card,
.list-card {
  background: rgba(251, 248, 239, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 26px;
  overflow: hidden;
}

.home-carousel {
  position: relative;
  min-height: 420px;
  padding: 0;
  background: #e8dcc2;
}

.home-carousel-slides {
  position: relative;
  height: 100%;
  min-height: 420px;
}

.home-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.home-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home-carousel-link,
.home-carousel-slide > img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-carousel-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 24px 22px;
  color: #fff7ec;
  background: linear-gradient(180deg, rgba(16, 20, 14, 0), rgba(16, 20, 14, 0.76));
}

.home-carousel-overlay small {
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 2px;
  color: rgba(255, 244, 225, 0.82);
}

.home-carousel-overlay h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-family: var(--font-sans);
}

.home-carousel-dots {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.home-carousel-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 244, 225, 0.35);
  cursor: pointer;
  padding: 0;
  transition: transform 160ms ease, background-color 160ms ease;
}

.home-carousel-dot.is-active {
  background: #fff4e1;
  transform: scale(1.15);
}

.home-carousel-empty {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 420px;
  padding: 34px;
  background:
    radial-gradient(circle at top, rgba(255, 251, 243, 0.5), transparent 60%),
    linear-gradient(135deg, rgba(184, 155, 92, 0.22), rgba(141, 47, 40, 0.14));
}

.home-carousel-empty small {
  color: var(--seal);
  letter-spacing: 2px;
}

.home-carousel-empty h2 {
  margin: 0;
  font-size: 30px;
  font-family: var(--font-sans);
}

.home-carousel-empty p {
  margin: 0;
  color: #4e5f4b;
}

.hero-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.hero-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.panel-slides {
  display: grid;
}

.panel-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateX(12px);
  animation: panel-rotate 15s infinite;
}

.panel-slide:nth-child(2) {
  animation-delay: 5s;
}

.panel-slide:nth-child(3) {
  animation-delay: 10s;
}

.panel-slide small {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--seal);
  letter-spacing: 2px;
}

.panel-slide p {
  margin: 0;
  color: var(--muted);
}

.panel-dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.panel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(141, 47, 40, 0.18);
  animation: panel-dot 15s infinite;
}

.panel-dots span:nth-child(2) {
  animation-delay: 5s;
}

.panel-dots span:nth-child(3) {
  animation-delay: 10s;
}

.section {
  padding-top: 24px;
  padding-bottom: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 34px;
}

.section-head p {
  margin: 0;
  max-width: 540px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 18px;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card,
.list-card {
  padding: 22px;
}

.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(184, 155, 92, 0.12);
  color: var(--gold-deep);
  font-size: 12px;
}

.card h3,
.list-card h3 {
  margin: 12px 0 10px;
  font-size: 24px;
}

.card p,
.list-card p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 48px rgba(40, 52, 35, 0.12);
}

.list-card-link {
  display: block;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.about-list-stack {
  grid-auto-rows: 1fr;
}

.about-list-stack .list-card {
  height: 100%;
}

.about-card-grid {
  grid-auto-rows: 1fr;
}

.about-card-grid .card {
  height: 100%;
}

.compact-list-stack {
  grid-auto-rows: 1fr;
}

.compact-list-card {
  display: flex;
  min-height: 154px;
}

.compact-list-card .list-card-link,
.compact-list-card > *:not(.empty-card) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.compact-list-card h3,
.compact-list-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.compact-list-card h3 {
  min-height: 1.5em;
  -webkit-line-clamp: 1;
}

.compact-list-card p {
  -webkit-line-clamp: 2;
}

.section-actions {
  margin-top: 20px;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.search-input {
  flex: 1 1 320px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(251, 248, 239, 0.92);
  color: var(--ink);
  font-size: 15px;
  box-shadow: var(--shadow);
}

.search-input:focus {
  outline: 2px solid rgba(141, 47, 40, 0.18);
  border-color: var(--seal);
}

.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(251, 248, 239, 0.92);
  border: 1px solid var(--line);
  color: var(--muted);
}

.category-chip.is-active {
  background: var(--seal);
  border-color: var(--seal);
  color: #fff7ec;
}

.article-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.herb-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.pager-status {
  color: var(--muted);
  font-size: 14px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.72fr);
  gap: 22px;
}

.article-main,
.article-side {
  min-width: 0;
}

.article-cover {
  margin-top: 22px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.article-prose {
  padding: 28px;
  background: rgba(251, 248, 239, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.article-cover + .article-prose {
  margin-top: 22px;
}

.article-prose p:first-child {
  margin-top: 0;
}

.article-prose p:last-child {
  margin-bottom: 0;
}

.article-prose img {
  max-width: 100%;
  height: auto;
}

.article-prose p > img:only-child {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.article-prose p:has(> img:only-child) + p {
  text-align: center;
}

.article-prose p:has(> img:only-child) + p em:only-child,
.article-prose p:has(> img:only-child) + p strong:only-child {
  display: inline-block;
}

.aside-panel {
  padding: 22px;
}

.aside-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.mini-list {
  display: grid;
  gap: 14px;
}

.mini-item {
  display: block;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.mini-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mini-item strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 18px;
}

.mini-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.book-layout,
.chapter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
}

.book-layout {
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.chapter-layout {
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
}

.chapter-layout > aside {
  align-self: stretch;
}

.book-layout > aside {
  align-self: start;
}

.book-layout > aside,
.book-layout > div {
  display: grid;
  gap: 22px;
  align-content: start;
}

.book-intro,
.catalog-panel,
.chapter-panel {
  padding: 28px;
  background: rgba(251, 248, 239, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.book-intro p:first-child,
.chapter-panel p:first-child {
  margin-top: 0;
}

.catalog-panel h2,
.book-intro h2,
.chapter-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
  font-family: var(--font-sans);
}

.compact-section-head {
  margin-bottom: 18px;
}

.compact-section-head h2 {
  margin-bottom: 0;
}

.compact-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.book-catalog-panel {
  padding: 24px;
  position: static;
}

.chapter-catalog-panel {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 124px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.catalog-list {
  display: grid;
  gap: 10px;
}

.chapter-catalog-panel .catalog-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}

.catalog-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.catalog-item:last-child {
  border-bottom: 0;
}

.catalog-order {
  color: var(--seal);
  font-size: 13px;
  letter-spacing: 1px;
}

.catalog-title {
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 17px;
}

.compact-pager {
  justify-content: flex-start;
  margin-top: 18px;
}

.catalog-title.is-current {
  color: var(--seal);
}

.chapter-body {
  line-height: 1.9;
}

.chapter-body p {
  margin: 0 0 1em;
  text-indent: 2em;
}

.chapter-body p:last-child {
  margin-bottom: 0;
}

.chapter-sections {
  display: grid;
  gap: 30px;
}

.chapter-section {
  scroll-margin-top: 104px;
}

.chapter-section + .chapter-section {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.chapter-section-head {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  margin-bottom: 14px;
}

.chapter-section-head h3 {
  margin: 0;
}

.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
}

.fangji-detail-layout {
  grid-template-columns: minmax(0, 1.62fr) minmax(240px, 0.72fr);
}

.herb-detail-layout {
  grid-template-columns: minmax(0, 1.62fr) minmax(240px, 0.72fr);
}

.detail-grid > div,
.detail-grid > aside {
  display: grid;
  gap: 24px;
  align-content: start;
}

.fangji-detail-layout > aside {
  position: sticky;
  top: 108px;
}

.herb-detail-layout > aside {
  position: sticky;
  top: 108px;
}

.detail-panel {
  padding: 32px;
  background: rgba(251, 248, 239, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-family: var(--font-sans);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.info-item {
  min-width: 0;
}

.info-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--seal);
  font-size: 13px;
  letter-spacing: 1px;
}

.stacked-info {
  display: grid;
  gap: 26px;
}

.stacked-info strong {
  display: block;
  margin-bottom: 8px;
  color: var(--seal);
  font-size: 13px;
  letter-spacing: 1px;
}

.prose-block {
  color: var(--muted);
  line-height: 1.9;
}

.source-list {
  display: grid;
  gap: 22px;
}

.source-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.8);
}

.source-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 14px;
}

.source-card-head strong {
  color: var(--seal);
  font-size: 18px;
}

.source-card-head span {
  color: var(--muted);
  font-size: 13px;
}

.source-row + .source-row {
  margin-top: 18px;
}

.source-row strong {
  display: block;
  margin-bottom: 6px;
  color: var(--seal);
  font-size: 13px;
  letter-spacing: 1px;
}

.detail-image {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: rgba(255, 252, 245, 0.8);
}

.detail-image img {
  display: block;
  width: 100%;
  height: auto;
}

.empty-card {
  text-align: center;
}

.site-footer {
  padding-top: 24px;
  padding-bottom: 28px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(184, 155, 92, 0.08), rgba(184, 155, 92, 0)),
    rgba(251, 248, 239, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.9fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 12px 0 24px;
}

.footer-brand {
  display: flex;
  align-items: start;
  gap: 16px;
}

.footer-logo {
  width: 58px;
  height: 58px;
}

.footer-brand p,
.footer-meta p {
  margin: 8px 0 0;
  line-height: 1.9;
}

.footer-title {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--seal);
  font-size: 13px;
  letter-spacing: 2px;
}

.footer-link-list {
  display: grid;
  gap: 10px;
}

.footer-link-list a {
  color: #42513f;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-link-list a:hover {
  color: var(--seal);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(52, 68, 46, 0.1);
}

.site-footer strong {
  color: var(--ink);
  font-size: 24px;
  letter-spacing: 2px;
  font-family: var(--font-sans);
}

.footer-note {
  margin: 0;
  font-size: 14px;
}

.footer-copy {
  margin: 0;
  color: rgba(104, 114, 101, 0.78);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes panel-rotate {
  0%,
  30% {
    opacity: 1;
    transform: translateX(0);
  }
  33.33%,
  100% {
    opacity: 0;
    transform: translateX(12px);
  }
}

@keyframes panel-dot {
  0%,
  30% {
    background: var(--seal);
    transform: scale(1.1);
  }
  33.33%,
  100% {
    background: rgba(141, 47, 40, 0.18);
    transform: scale(1);
  }
}

@media (max-width: 1100px) {
  .hero,
  .split-section,
  .article-grid,
  .book-grid,
  .article-list-grid,
  .book-list-grid,
  .herb-list-grid,
  .article-layout,
  .chapter-layout,
  .fangji-detail-layout,
  .herb-detail-layout,
  .detail-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .fangji-detail-layout > aside {
    position: static;
  }

  .herb-detail-layout > aside {
    position: static;
  }

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

  .chapter-catalog-panel {
    top: 104px;
    max-height: calc(100vh - 124px);
  }

  .chapter-section {
    scroll-margin-top: 104px;
  }
}

@media (max-width: 960px) {
  .book-layout {
    grid-template-columns: 1fr;
  }

  .book-catalog-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  .site-header,
  .site-footer,
  .hero,
  .section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-panel,
  .card,
  .list-card,
  .article-prose,
  .aside-panel,
  .book-intro,
  .catalog-panel,
  .chapter-panel,
  .book-catalog-panel,
  .detail-panel,
  .source-card {
    padding: 16px;
    border-radius: 18px;
  }

  .detail-grid,
  .article-layout,
  .book-layout,
  .chapter-layout {
    padding-left: 8px;
    padding-right: 8px;
  }

  .detail-grid > div,
  .detail-grid > aside,
  .book-layout > aside,
  .book-layout > div {
    gap: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 38px;
    letter-spacing: 2px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .chapter-catalog-panel {
    position: static;
    max-height: none;
  }

  .chapter-catalog-panel .catalog-list {
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .site-header,
  .site-footer,
  .hero,
  .section {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero-panel,
  .card,
  .list-card,
  .article-prose,
  .aside-panel,
  .book-intro,
  .catalog-panel,
  .chapter-panel,
  .book-catalog-panel,
  .detail-panel,
  .source-card {
    padding: 14px;
    border-radius: 16px;
  }

  .detail-grid,
  .article-layout,
  .book-layout,
  .chapter-layout {
    padding-left: 6px;
    padding-right: 6px;
  }
}
