/* ============================================================
   里番漫画大全 uxpzgy.com — 全站样式表
   视觉方向：清爽编辑式漫画资料站 / 纸张暖白底 / 杂志目录感
   ============================================================ */

/* ------------------------------------------------------------
   Base — 基础变量、Reset、字体、色彩
   ------------------------------------------------------------ */
:root {
  --paper: #FDFBF7;
  --ink: #262626;
  --brand: #A63A3A;
  --accent: #2A6A8A;
  --panel: #F3F1EC;
  --line: #D8D2C7;
  --white: #FFFFFF;
  --ink-soft: #55524C;
  --ink-light: #7A766E;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 4px rgba(38, 38, 38, 0.06);
  --shadow-hover: 0 6px 18px rgba(38, 38, 38, 0.09);
  --header-h: 72px;
  --transition: 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--ink);
}

ul,
ol {
  list-style: none;
}

figure {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 1.65rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

details summary {
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

/* 视觉隐藏，仅用于可访问性 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* ------------------------------------------------------------
   Layout — 全站共享布局骨架
   ------------------------------------------------------------ */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 100;
}

.header-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-logo:hover .brand-name {
  color: var(--brand);
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.site-nav .nav-list a:hover {
  color: var(--brand);
  background: var(--panel);
}

.site-nav .nav-list a.is-current {
  color: var(--brand);
  font-weight: 600;
  background: transparent;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--white);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.site-main {
  min-height: 60vh;
}

/* 内页主容器 */
.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 0;
  font-size: 0.9rem;
  color: var(--ink-light);
}

.breadcrumb a {
  color: var(--ink-light);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--line);
  font-size: 0.8rem;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  padding: 36px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.page-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.page-description {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 720px;
  line-height: 1.8;
  margin: 0;
}

/* 通用区块标题 */
.section-title {
  font-size: 1.55rem;
  color: var(--ink);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
}

.section-lead {
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 680px;
}

/* 全站页脚 */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 40px;
}

.footer-brand .footer-logo-text {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--ink-light);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

.footer-links-group h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.footer-link-list li {
  margin-bottom: 10px;
}

.footer-link-list a {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-link-list a:hover {
  color: var(--brand);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-light);
  margin: 0;
}

/* ------------------------------------------------------------
   Components — 通用组件
   ------------------------------------------------------------ */

/* 文本链接 */
.text-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brand);
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* 更多链接 */
.more-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 20px;
}

.more-link:hover {
  color: var(--brand);
}

/* 标签组 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-tag {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.95rem;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all var(--transition);
}

.genre-tag:hover {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

/* 正文图片容器 */
.content-media {
  margin: 20px 0;
}

.content-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.content-media figcaption {
  font-size: 0.85rem;
  color: var(--ink-light);
  padding: 8px 2px 0;
  line-height: 1.6;
}

.content-media-inline {
  max-width: 720px;
}

/* ------------------------------------------------------------
   Components — 首页专属
   ------------------------------------------------------------ */

/* 首屏 Hero */
.hero-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-slogan {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}

.btn-primary:hover {
  background: #8E3030;
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

.hero-note {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-figure {
  width: 100%;
  max-width: 480px;
}

.hero-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

/* 题材入口区 */
.genre-entry-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

.genre-entry-section .section-title {
  margin-bottom: 6px;
}

.genre-entry-section .section-lead {
  margin-bottom: 24px;
}

.genre-entry-section .more-link {
  display: inline-block;
  margin-top: 18px;
}

/* 近期关注 */
.recent-focus-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 52px 0;
}

.recent-focus-section .section-title,
.recent-focus-section .section-lead {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.focus-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.focus-item {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: box-shadow var(--transition);
}

.focus-item:hover {
  box-shadow: var(--shadow-hover);
}

.focus-figure {
  flex-shrink: 0;
  width: 120px;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.focus-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focus-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.focus-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.focus-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 10px;
  flex: 1;
}

.focus-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

.focus-link:hover {
  color: var(--brand);
}

/* 专题预览 */
.topic-preview-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 52px 24px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.topic-card:hover {
  box-shadow: var(--shadow-hover);
}

.topic-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.topic-card:hover .topic-media img {
  transform: scale(1.03);
}

.topic-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
}

.topic-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.topic-excerpt {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 12px;
}

.topic-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

.topic-link:hover {
  color: var(--brand);
}

/* 阅读提示 / FAQ 摘要 */
.reading-tips-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 48px 0;
}

.reading-tips-section .section-title {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.tips-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}

.tip-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.tip-item summary {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 0;
  position: relative;
  padding-right: 24px;
  list-style: none;
}

.tip-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--brand);
  transition: transform var(--transition);
}

.tip-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.tip-text {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 8px 24px 4px 0;
  line-height: 1.75;
}

.tip-text a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--accent);
}

.tip-text a:hover {
  color: var(--brand);
}

/* 版权反馈入口 */
.feedback-entry-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 24px 56px;
  text-align: left;
}

.feedback-entry-section .section-title {
  margin-bottom: 6px;
}

.feedback-entry-section .section-lead {
  margin-bottom: 8px;
}

.feedback-entry-section .more-link {
  margin-top: 8px;
}

/* 首页底部相关链接 */
.related-links {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 56px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.related-links-label {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-right: 4px;
}

.related-links-item {
  font-size: 0.9rem;
  color: var(--accent);
}

.related-links-item:hover {
  color: var(--brand);
}

/* ------------------------------------------------------------
   Pages — 漫画目录 lf/catalog.html
   ------------------------------------------------------------ */

/* 目录导读 */
.catalog-guide-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.catalog-guide-inner .section-title {
  margin-bottom: 16px;
}

.catalog-guide-inner p {
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.85;
}

.catalog-figure {
  border-radius: var(--radius);
  overflow: hidden;
}

.catalog-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.catalog-figure figcaption {
  font-size: 0.85rem;
  color: var(--ink-light);
  padding: 10px 2px 0;
}

/* 标签索引 */
.tag-index-section {
  margin-bottom: 48px;
}

.tag-index-note {
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.tag-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-index-list li a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.92rem;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all var(--transition);
}

.tag-index-list li a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* 场景分组 */
.scene-group-section {
  margin-bottom: 48px;
}

.scene-group-desc,
.order-group-desc {
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 720px;
}

.scene-block,
.order-block {
  margin-bottom: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.scene-block-title,
.order-block-title {
  font-size: 1.3rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--panel);
}

.tag-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tag-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.tag-item:last-child {
  border-bottom: none;
}

.tag-name {
  flex-shrink: 0;
  min-width: 150px;
}

.tag-name a {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--accent);
}

.tag-name a:hover {
  color: var(--brand);
}

.tag-desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* 阅读顺序分组内无链接时 */
.order-block .tag-name {
  color: var(--ink);
  font-weight: 600;
}

/* 场景底链 */
.scene-links-section {
  margin-bottom: 48px;
}

.scene-links-desc {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.scene-link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.scene-link-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}

.scene-link-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
}

.scene-link-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.scene-link-text {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

/* 内页导航区 */
.inner-nav-section {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 16px;
}

.inner-nav-section .section-title {
  margin-bottom: 10px;
}

.inner-nav-text {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.inner-nav-text a {
  display: inline-block;
  margin: 0 14px 8px 0;
  font-weight: 500;
  color: var(--accent);
}

.inner-nav-text a:hover {
  color: var(--brand);
}

/* ------------------------------------------------------------
   Pages — 专题阅读 lf/topic.html
   ------------------------------------------------------------ */

.topic-intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.topic-intro-text p {
  color: var(--ink-soft);
  margin-bottom: 12px;
  line-height: 1.85;
}

.topic-intro-links {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  align-self: start;
}

.topic-intro-links p {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.topic-intro-links a {
  display: inline-block;
  margin: 0 10px 8px 0;
  font-size: 0.92rem;
  color: var(--accent);
}

.topic-intro-links a:hover {
  color: var(--brand);
}

/* 主力主题块 */
.topic-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-block-media {
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-block-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.topic-block-title {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.topic-block-desc {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 12px;
}

.topic-block-audience {
  font-size: 0.92rem;
  color: var(--ink-light);
  border-left: 3px solid var(--brand);
  padding-left: 12px;
  margin-bottom: 16px;
}

.topic-block-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-block-tags span {
  font-size: 0.88rem;
  color: var(--ink-light);
  margin-right: 4px;
}

.topic-block-tags a {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  transition: all var(--transition);
}

.topic-block-tags a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* 延伸小入口 */
.topic-extension {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
  margin-bottom: 48px;
}

.topic-extension .section-title,
.topic-extension .extension-lead {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.extension-lead {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.extension-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.extension-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.extension-item-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.extension-item p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 14px;
}

.extension-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

.extension-link:hover {
  color: var(--brand);
}

/* 专题与指南衔接 */
.topic-guide-bridge {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 40px;
}

.bridge-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.bridge-content .section-title {
  margin-bottom: 12px;
}

.bridge-content p {
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0;
}

.bridge-content a {
  display: inline-block;
  margin: 16px 16px 0 0;
  font-weight: 500;
  color: var(--accent);
}

.bridge-content a:hover {
  color: var(--brand);
}

/* 补充入口 */
.topic-supplementary-links {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 16px;
  text-align: left;
}

.topic-supplementary-links p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.topic-supplementary-links a {
  display: inline-block;
  margin: 0 14px 8px 0;
  font-weight: 500;
  color: var(--accent);
}

.topic-supplementary-links a:hover {
  color: var(--brand);
}

/* ------------------------------------------------------------
   Pages — 术语词表 lf/glossary.html
   ------------------------------------------------------------ */

/* 词表导读 —— 独立单列布局，不使用网格分散标题与正文 */
.glossary-intro {
  display: block;
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.glossary-intro .section-title {
  margin-bottom: 16px;
}

.glossary-intro-content {
  max-width: 760px;
}

.glossary-intro-content p {
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 14px;
}

.glossary-figure {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

.glossary-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.glossary-figure figcaption {
  font-size: 0.85rem;
  color: var(--ink-light);
  padding: 10px 2px 0;
}

/* 术语分组 */
.glossary-group {
  margin-bottom: 44px;
}

.group-intro {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 20px;
  max-width: 680px;
}

.term-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.term-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.term-item:last-child {
  border-bottom: none;
}

.term-item dt {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.term-item dd {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* 术语相关目录入口 */
.glossary-links {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 16px;
}

.glossary-links .section-title {
  margin-bottom: 10px;
}

.glossary-links > p {
  color: var(--ink-soft);
  max-width: 680px;
}

.glossary-links > p a {
  color: var(--accent);
  font-weight: 500;
}

.glossary-links > p a:hover {
  color: var(--brand);
}

.term-catalog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.term-catalog-list li a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.92rem;
  color: var(--accent);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all var(--transition);
}

.term-catalog-list li a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.glossary-more-link {
  margin: 0;
}

.glossary-more-link a {
  display: inline-block;
  margin-right: 18px;
  font-weight: 500;
  color: var(--brand);
  font-size: 0.95rem;
}

.glossary-more-link a:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------
   Pages — 阅读指南 lf/guide.html
   ------------------------------------------------------------ */

/* 步骤区 */
.guide-steps-section {
  margin-bottom: 52px;
}

.guide-steps-section .section-lead {
  margin-bottom: 32px;
}

.guide-step-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guide-step-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.step-content p {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 8px;
}

.step-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.step-links .text-link {
  font-size: 0.92rem;
}

/* 目的建议区 */
.guide-purpose-section {
  margin-bottom: 52px;
}

.guide-purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.purpose-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.purpose-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.guide-figure {
  width: 100%;
  height: 100%;
}

.guide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purpose-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.purpose-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.purpose-card-content p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 12px;
}

/* 边界提示区 */
.guide-boundary-section {
  margin-bottom: 48px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
}

.guide-boundary-section .section-lead {
  max-width: 680px;
}

.boundary-tips {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.boundary-tip-item {
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 24px;
}

.boundary-tip-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.boundary-tip-item p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* 出口区 */
.guide-exit-section {
  margin-bottom: 16px;
}

.guide-exit-section p {
  color: var(--ink-soft);
}

.guide-exit-section a {
  display: inline-block;
  margin: 0 14px 8px 0;
  font-weight: 500;
  color: var(--accent);
}

.guide-exit-section a:hover {
  color: var(--brand);
}

/* ------------------------------------------------------------
   Pages — 常见问题 lf/faq.html
   ------------------------------------------------------------ */

/* 摘要区 */
.faq-summary-section {
  margin-bottom: 52px;
}

.faq-summary-section .content-media {
  max-width: 720px;
  margin: 0 0 24px;
}

.faq-summary-section .section-desc {
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 24px;
}

.faq-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-summary-list li a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.92rem;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all var(--transition);
}

.faq-summary-list li a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* 问答区 */
.faq-answer-section {
  margin-bottom: 52px;
}

.faq-group-title {
  font-size: 1.3rem;
  margin: 36px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--panel);
}

.faq-group-title:first-of-type {
  margin-top: 0;
}

.faq-group-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  position: relative;
  list-style: none;
  transition: background var(--transition);
}

.faq-item summary:hover {
  background: var(--panel);
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 20px 18px;
  border-top: 1px dashed var(--line);
}

.faq-answer p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  padding-top: 14px;
  margin: 0;
}

.faq-answer a {
  display: inline-block;
  margin: 10px 14px 0 0;
  font-weight: 500;
  color: var(--accent);
  font-size: 0.92rem;
}

.faq-answer a:hover {
  color: var(--brand);
}

/* 下一步操作区 */
.next-step-section {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 48px;
}

.next-step-section .section-desc {
  color: var(--ink-soft);
  max-width: 680px;
  margin-bottom: 24px;
}

.next-step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.next-step-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.next-step-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.next-step-item p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 12px;
}

.next-step-item a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

.next-step-item a:hover {
  color: var(--brand);
}

/* 更多帮助 */
.more-help-section {
  margin-bottom: 16px;
}

.more-help-section > p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.more-help-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.more-help-list li a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.92rem;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all var(--transition);
}

.more-help-list li a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ------------------------------------------------------------
   Pages — 版权反馈 lf/disclaimer.html
   ------------------------------------------------------------ */

.inner-container {
  max-width: 820px;
}

.content-section {
  margin-bottom: 44px;
}

.content-section .section-title {
  margin-bottom: 16px;
}

.content-section .content-media {
  margin: 0 0 20px;
}

.text-block p {
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 14px;
}

/* 原则列表 */
.principle-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.principle-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.principle-title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.principle-item p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* 反馈步骤 */
.feedback-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: feedback-step;
}

.step-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  align-items: start;
}

.step-item:last-child {
  border-bottom: none;
}

.step-item .step-number {
  counter-increment: feedback-step;
  font-size: 1.1rem;
}

.step-item .step-number::before {
  content: counter(feedback-step);
}

.step-content .step-title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.step-content .step-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* 边界说明 */
.content-section .boundary-text {
  font-size: 0.95rem;
}

/* 末尾入口 */
.back-entry {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 16px;
}

.back-entry p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.entry-links a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.92rem;
  color: var(--accent);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all var(--transition);
}

.entry-links a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ------------------------------------------------------------
   Pages — 404
   ------------------------------------------------------------ */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.error-section {
  max-width: 640px;
  text-align: center;
}

.error-code {
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 12px;
}

.error-section h1 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.error-lead {
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.error-help {
  color: var(--ink-light);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 500;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
  transition: background var(--transition);
}

.error-home-link:hover {
  background: #8E3030;
  color: var(--white);
}

.error-nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.error-nav-links a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.92rem;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all var(--transition);
}

.error-nav-links a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ------------------------------------------------------------
   Responsive — 响应式断点
   ------------------------------------------------------------ */

/* 平板：≤ 1024px */
@media (max-width: 1024px) {
  .hero-section {
    gap: 32px;
    padding-top: 40px;
  }

  .home-hero-title {
    font-size: 2.4rem;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-card:last-child {
    grid-column: 1 / -1;
    max-width: none;
  }

  .topic-card:last-child .topic-media {
    aspect-ratio: 21 / 8;
  }

  .scene-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-purpose-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .purpose-card:last-child {
    grid-column: 1 / -1;
  }

  .purpose-card:last-child .purpose-card-media {
    aspect-ratio: 21 / 8;
  }

  .next-step-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .next-step-item:last-child {
    grid-column: 1 / -1;
  }

  .footer-shell {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

/* 手机：≤ 768px */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  /* 导航切换 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .site-nav .nav-list li:last-child a {
    border-bottom: none;
  }

  .site-nav .nav-list a.is-current {
    background: var(--panel);
  }

  /* 首屏 */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px 32px;
  }

  .hero-text {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .home-hero-title {
    font-size: 2rem;
  }

  .hero-figure {
    max-width: 100%;
  }

  /* 首页通用容器收窄 */
  .genre-entry-section,
  .topic-preview-section,
  .feedback-entry-section,
  .related-links {
    padding-left: 20px;
    padding-right: 20px;
  }

  .focus-list {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
  }

  .recent-focus-section .section-title,
  .recent-focus-section .section-lead {
    padding-left: 20px;
    padding-right: 20px;
  }

  .focus-item {
    flex-direction: row;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card:last-child {
    grid-column: auto;
  }

  .topic-card:last-child .topic-media {
    aspect-ratio: 16 / 10;
  }

  .tips-grid {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
  }

  .reading-tips-section .section-title {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* 内页容器 */
  .inner-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-header {
    padding: 28px 0 24px;
    margin-bottom: 32px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  /* 目录页 */
  .catalog-guide-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tag-item {
    flex-direction: column;
    gap: 4px;
  }

  .tag-name {
    min-width: 0;
  }

  .scene-block {
    padding: 20px;
  }

  .scene-link-grid {
    grid-template-columns: 1fr;
  }

  /* 专题页 */
  .topic-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .topic-block {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .extension-list {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
  }

  .topic-extension .section-title,
  .topic-extension .extension-lead {
    padding-left: 20px;
    padding-right: 20px;
  }

  .topic-guide-bridge {
    padding-left: 20px;
    padding-right: 20px;
  }

  .topic-supplementary-links {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* 词表页 */
  .term-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 16px;
  }

  .glossary-links {
    padding: 24px 20px;
  }

  /* 指南页 */
  .guide-step-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .step-number {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .guide-purpose-grid {
    grid-template-columns: 1fr;
  }

  .purpose-card:last-child {
    grid-column: auto;
  }

  .purpose-card:last-child .purpose-card-media {
    aspect-ratio: 16 / 10;
  }

  .guide-boundary-section {
    padding: 24px 20px;
  }

  /* FAQ 页 */
  .next-step-list {
    grid-template-columns: 1fr;
  }

  .next-step-item:last-child {
    grid-column: auto;
  }

  .next-step-section {
    padding: 24px 20px;
  }

  /* 页脚 */
  .footer-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 20px 24px;
  }

  .copyright {
    padding-top: 20px;
  }

  /* 404 */
  .error-main {
    padding: 60px 20px;
  }

  .error-code {
    font-size: 4rem;
  }
}

/* 小屏手机：≤ 480px */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .focus-item {
    flex-direction: column;
  }

  .focus-figure {
    width: 100%;
    height: 180px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }
}
