:root {
  --inner-reading: 840px;
  --inner-shadow: 0 20px 50px -34px rgba(64, 39, 21, .55);
}

.inner-page { background: var(--paper); }
.inner-page .section { padding: 64px 0; }
.inner-page main > .section:nth-child(even) { background: var(--panel); }
.inner-page .wrap { width: min(1180px, calc(100% - 48px)); }
.inner-page .prose { max-width: var(--inner-reading); overflow-wrap: anywhere; }
.inner-page .prose > * + * { margin-top: 20px; }
.inner-page .prose p, .inner-page .prose li, .inner-page p.prose { font-size: 18px; line-height: 1.9; }
.inner-page .prose ul, .inner-page .prose ol { padding-left: 1.5em; }
.inner-page .prose li + li { margin-top: 10px; }
.inner-page .prose a { color: var(--red); text-underline-offset: 4px; }
.inner-page .prose p a, .inner-page .prose li a { display: inline-flex; align-items: center; min-height: 44px; }
.inner-page h1, .inner-page h2, .inner-page h3 {
  font-family: "Songti SC", "SimSun", serif;
  font-weight: 600;
}
.inner-page main h2 {
  margin-bottom: 22px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  color: var(--red-dark);
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: 1px;
}
.inner-page main h3 { color: var(--red-dark); font-size: 22px; line-height: 1.5; }
.inner-page strong { font-weight: 700; }
.inner-page [id] { scroll-margin-top: 104px; }

.inner-page .page-hero {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}
.inner-page .page-hero .prose { margin: 0 auto; }
.inner-page h1, .inner-page h2, .inner-page h3 { text-wrap: balance; }
.inner-page .page-hero h1 {
  color: var(--red-dark);
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.35;
  letter-spacing: 2px;
}
.inner-page .page-hero h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 20px auto 0;
  background: var(--red);
}
.inner-page .page-hero-lead {
  max-width: 780px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.inner-page .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.inner-page .info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  background: var(--panel);
  box-shadow: var(--inner-shadow);
}
.inner-page main > .section:nth-child(even) .info-card { background: var(--paper); }
.inner-page .info-card h3 { margin-bottom: 12px; }
.inner-page .info-card p { color: var(--muted); font-size: 16px; line-height: 1.9; }
.inner-page .info-card p + p { margin-top: 12px; }
.inner-page .info-card a { display: inline-flex; align-items: center; min-height: 44px; color: var(--red); text-underline-offset: 4px; }

.inner-page .info-list { display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.inner-page .info-list li {
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: var(--panel);
  overflow-wrap: anywhere;
}
.inner-page main > .section:nth-child(even) .info-list li { background: var(--paper); }
.inner-page .line-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}
.inner-page .cta-row { margin-top: 28px; }
.inner-page .cta-row--left { justify-content: flex-start; }
.inner-page .btn-secondary {
  min-height: 50px;
  background: var(--panel);
  color: var(--red);
  border-color: var(--red);
}
.inner-page .btn-secondary:hover { background: var(--paper-deep); }
.inner-page .prose a.btn-primary { color: var(--white); }
.inner-page .prose a.btn-secondary { color: var(--red); }
.inner-page .text-link { font-weight: 700; }
.inner-page .cta-hint { color: var(--muted); font-size: 16px; }
.inner-page .icon { width: 20px; height: 20px; flex: none; }

.inner-page .article { border-top: 1px solid var(--line); }
.inner-page .article .prose { max-width: var(--inner-reading); }
.inner-page .article-meta {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px !important;
}
.inner-page .article-summary {
  padding: 20px 22px;
  border-left: 4px solid var(--red);
  background: var(--paper-deep);
}
.inner-page .article-source { font-size: 16px !important; overflow-wrap: anywhere; }
.inner-page .article-source a { max-width: 100%; overflow-wrap: anywhere; }
.inner-page .article-toc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 !important; list-style: none; }
.inner-page .article-toc li { margin: 0 !important; border: 1px solid var(--line); background: var(--panel); }
.inner-page .article-toc a, .inner-page .prose .article-toc a {
  display: flex;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  text-decoration: none;
}
.inner-page .notice {
  padding: 18px 20px;
  border-left: 4px solid var(--red);
  background: var(--paper-deep);
  color: var(--ink);
}
.inner-page .notice-list > li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.inner-page .notice-list > li > p { margin-top: 8px; }

.inner-page .top-bar { padding: 14px 24px; background: var(--red); color: var(--white); text-align: center; }
.inner-page .top-bar-text { font-size: 16px; font-weight: 700; }
.inner-page .wecom-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--red); font-weight: 700; text-underline-offset: 4px; }
.inner-page .visit-card { margin-top: 36px; }
.inner-page .visit .section-head { margin-bottom: 30px; }

.inner-page .footer .footer-links { align-items: flex-start; }
.inner-page .bottom-bar { display: none; }

.inner-page .error-main { min-height: 62vh; display: flex; align-items: center; padding: 72px 0; text-align: center; }
.inner-page .error-main .prose { margin: 0 auto; }
.inner-page .error-main .cta-row { justify-content: center; }
.inner-page .error-main h1 { color: var(--red-dark); font-size: clamp(30px, 5vw, 46px); }
.inner-page .error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 30px;
  padding: 0 !important;
  list-style: none;
}
.inner-page .error-links li { margin: 0 !important; }
.inner-page .error-links a, .inner-page .prose .error-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--red);
  text-decoration: none;
}

.inner-page .library-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.inner-page .library-jump a {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--red);
  background: var(--panel);
  color: var(--red);
  text-decoration: none;
}
.inner-page .library-intro {
  max-width: var(--inner-reading);
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  text-align: center;
}
.inner-page .library-category + .library-category { margin-top: 46px; }
.inner-page .library-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.inner-page .library-category-head h3 { font-size: 26px; text-wrap: balance; }
.inner-page .library-category-head span { color: var(--gold-text); font-size: 14px; white-space: nowrap; }
.inner-page a.library-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  transition: background .2s ease;
}
.inner-page a.library-card:hover { background: var(--paper-deep); }
.inner-page .library-card time {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.inner-page .library-card h4 {
  margin-bottom: 12px;
  color: var(--red-dark);
  font-family: "Songti SC", "SimSun", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
}
.inner-page .library-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--red);
  font-weight: 700;
}
.inner-page .science-back { margin-bottom: 20px; text-align: left; }
.inner-page .science-back a { display: inline-flex; align-items: center; min-height: 44px; color: var(--red); }
.inner-page .science-article-meta { margin-top: 20px; padding-bottom: 0; border-bottom: 0; }
.inner-page .science-detail-section + .science-detail-section {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.inner-page .science-safety { margin-top: 36px; font-size: 18px; line-height: 1.9; }

@media (max-width: 900px) {
  .inner-page { padding-bottom: 150px; }
  .inner-page .bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px 14px;
    gap: 10px;
    border-top: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--inner-shadow);
  }
  .inner-page .bottom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    text-decoration: none;
    font-weight: 700;
  }
  .inner-page .bottom-call { background: var(--red); color: var(--white); }
  .inner-page .bottom-visit { border: 1px solid var(--red); color: var(--red); }
  .inner-page .bottom-hint { display: none; }
}

@media (max-width: 700px) {
  .inner-page .section { padding: 48px 0; }
  .inner-page .page-hero { padding: 52px 0; }
  .inner-page .card-grid, .inner-page .article-toc { grid-template-columns: 1fr; }
  .inner-page .library-jump a { flex: 1 1 220px; }
  .inner-page .library-category-head h3 { font-size: 24px; }
  .inner-page .info-card { padding: 24px; }
  .inner-page .cta-row--left { width: 100%; margin: 28px 0 0; }
  .inner-page .cta-row--left .btn { width: 100%; min-height: 52px; }
  .inner-page [id] { scroll-margin-top: 88px; }
}

@media (max-width: 560px) {
  .inner-page .wrap { width: min(100% - 28px, 1180px); }
  .inner-page .page-hero h1 { letter-spacing: 1px; }
  .inner-page main h2 { font-size: 30px; }
  .inner-page .error-links { grid-template-columns: 1fr 1fr; }
}
