/* ==========================================================================
   歪歪漫画 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --accent: #0f766e;
  --accent-soft: #14b8a6;
  --page-bg: #f7fbfa;
  --surface: #ffffff;
  --text-main: #1f2d3d;
  --text-sub: #5b6b7a;
  --line: #d7e6e3;
  --tint: #eef7f5;
  --radius: 6px;
  --header-h: 88px;
  --container: 1120px;
  --shadow-soft: 0 1px 2px rgba(15, 118, 110, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, p, figure, figcaption, dl, dd, dt, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #0b5c56;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  display: block;
  min-height: 320px;
}

/* --- 页头 --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--container);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  color: var(--text-main);
}

.brand:hover,
.brand:focus-visible {
  color: var(--text-main);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent);
}

.brand-slogan {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-sub);
}

/* --- 主导航 --- */

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-group-title {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--text-main);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent-soft);
}

.nav-list a.is-current {
  color: var(--accent);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.nav-list-guide {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* --- 页脚 --- */

.site-footer {
  margin-top: 64px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.footer-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-sub);
  overflow-wrap: anywhere;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
}

.footer-terms,
.footer-copy {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* --- 内页骨架 --- */

.inner-main {
  padding-bottom: 8px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 13px;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-main);
}

.page-header {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 0;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

.page-lead,
.page-description,
.page-hero-desc {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-sub);
}

.page-title-block {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.page-hero {
  padding: 4px 0 0;
}

.page-hero .page-lead,
.page-hero .page-hero-desc {
  max-width: 880px;
}

/* --- 主内容 + 侧栏 --- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: start;
  margin-top: 32px;
}

.page-layout .layout-main {
  min-width: 0;
}

.page-layout .layout-aside {
  min-width: 0;
}

.page-main {
  min-width: 0;
}

/* 侧栏在前的变体 */
.sidebar-left .page-layout,
.sidebar-left.page-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.sidebar-left .page-layout > .layout-aside,
.sidebar-left.page-layout > .layout-aside,
.sidebar-left .page-layout > .page-aside,
.sidebar-left.page-layout > .page-aside {
  order: -1;
}

/* ==========================================================================
   components
   ========================================================================== */

/* --- 通用区块标题 --- */

.section-head {
  margin-bottom: 24px;
}

.section-title,
.section-head h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-main);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-note,
.section-lead,
.section-intro {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
}

.section-block {
  margin-top: 48px;
}

.section-block:first-child {
  margin-top: 0;
}

.section {
  margin-top: 52px;
}

/* --- 按钮 --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #0b5c56;
  border-color: #0b5c56;
  color: #ffffff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--tint);
  border-color: var(--accent-soft);
  color: var(--accent);
}

/* --- 文字链接 --- */

.text-link,
.entry-link,
.notice-link,
.note-bar-link,
.guide-link,
.recent-footnote a,
.tree-footnote a,
.feature-footnote a,
.archive-check-entry a {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.text-link:hover,
.entry-link:hover,
.notice-link:hover,
.note-bar-link:hover,
.guide-link:hover {
  color: #0b5c56;
}

/* --- 标签 --- */

.tag,
.tag-genre,
.tag-month {
  display: inline-block;
  padding: 1px 9px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--accent);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.tag-month {
  color: var(--text-sub);
  background: var(--surface);
}

/* --- 图片容器 --- */

.hero-media,
.entry-thumb,
.work-thumb,
.media-text-figure,
.intro-media,
.archive-intro-media,
.faq-intro-figure,
.guide-figure,
.split-media {
  margin: 0;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img,
.entry-thumb img,
.work-thumb img,
.media-text-figure img,
.intro-media img,
.archive-intro-media img,
.faq-intro-figure img,
.guide-figure img,
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/* --- 信息提示条 --- */

.note-bar,
.notice-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 20px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.note-bar-text,
.notice-bar p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
}

.note-bar-link {
  white-space: nowrap;
}

/* --- 字段说明表 --- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

.field-table caption {
  padding: 14px 18px;
  font-size: 14px;
  text-align: left;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.75;
}

.field-table thead th {
  background: var(--tint);
  font-weight: 700;
  color: var(--text-main);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* --- 字段列表 / 说明列表 --- */

.field-list,
.intro-list,
.archive-field-list,
.faq-intro-list,
.plain-list,
.guide-panel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-list li,
.intro-list li,
.archive-field-list li,
.faq-intro-list li,
.plain-list li,
.guide-panel-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
}

.field-list li::before,
.intro-list li::before,
.archive-field-list li::before,
.faq-intro-list li::before,
.plain-list li::before,
.guide-panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  background: var(--accent-soft);
  border-radius: 50%;
}

.field-list li strong,
.archive-field-list li strong {
  color: var(--text-main);
}

/* --- 编号步骤 --- */

.step-list,
.check-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  border-radius: 50%;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.step-body p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
}

.check-steps li {
  position: relative;
  padding: 12px 16px 12px 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
  counter-increment: step;
}

.check-steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  border-radius: 50%;
}

/* --- 相关入口条 --- */

.related-links,
.entry-bar,
.faq-next-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 40px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-links-label,
.faq-next-text {
  font-size: 15px;
  color: var(--text-sub);
}

.related-links-item,
.faq-next-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.faq-next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.entry-bar .entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}

.entry-bar .entry-link:hover,
.entry-bar .entry-link:focus-visible {
  border-color: var(--accent-soft);
}

/* --- 侧栏通用 --- */

.aside-block,
.aside-card {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-block:last-child,
.aside-card:last-child {
  margin-bottom: 0;
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.aside-note {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.aside-link-list,
.aside-list,
.anchor-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-link-list a,
.aside-list a,
.anchor-list a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  border-bottom: 1px dashed var(--line);
}

.aside-link-list li:last-child a,
.aside-list li:last-child a,
.anchor-list li:last-child a {
  border-bottom: 0;
}

.aside-link-list a:hover,
.aside-link-list a:focus-visible,
.aside-list a:hover,
.aside-list a:focus-visible,
.anchor-list a:hover,
.anchor-list a:focus-visible {
  color: var(--accent);
}

.anchor-list a.is-active {
  color: var(--accent);
  font-weight: 700;
}

/* --- 锚点偏移 --- */

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ==========================================================================
   pages
   ========================================================================== */

/* --- 首页：首屏档案索引 --- */

.hero-section {
  padding: 48px 0 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 48px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.hero-text h1 {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

.hero-lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-sub);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-fact dt {
  font-size: 13px;
  color: var(--text-sub);
}

.hero-fact dd {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.hero-media {
  aspect-ratio: 4 / 3;
}

/* --- 首页：年份归档条 --- */

.archive-bar-section {
  padding: 40px 0 8px;
}

.archive-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.archive-bar::-webkit-scrollbar {
  display: none;
}

.archive-bar li {
  flex: 0 0 auto;
}

.archive-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.archive-chip:hover,
.archive-chip:focus-visible {
  background: var(--tint);
  border-color: var(--accent-soft);
}

/* --- 首页：分类树与重点条目 --- */

.taxonomy-section {
  padding: 48px 0 8px;
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.tree-column,
.feature-column {
  min-width: 0;
}

.column-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.genre-tree {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tree-node {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.tree-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  color: var(--text-main);
}

.tree-toggle::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 400;
  color: var(--accent);
}

.tree-node.is-open .tree-toggle::after {
  content: "–";
}

.tree-toggle:hover,
.tree-toggle:focus-visible {
  color: var(--accent);
  background: var(--tint);
}

.tree-children,
.tree-node-body {
  padding: 4px 14px 14px;
  border-top: 1px solid var(--line);
}

.tree-children li,
.tree-branch {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.tree-children li:last-child,
.tree-branch:last-child {
  border-bottom: 0;
}

.tree-children a,
.tree-branch-name {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.tree-children a:hover,
.tree-children a:focus-visible {
  color: var(--accent);
}

.tree-branch-name {
  color: var(--accent);
}

.tree-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tree-footnote,
.feature-footnote,
.recent-footnote {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

/* --- 首页 / 作品目录：条目行 --- */

.entry-row {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.entry-row + .entry-row {
  margin-top: 12px;
}

.entry-row:hover {
  border-left-color: var(--accent);
  background: var(--tint);
}

.entry-row-featured {
  border-left-color: var(--accent-soft);
}

.entry-thumb {
  flex: 0 0 132px;
  width: 132px;
  aspect-ratio: 4 / 3;
}

.entry-body {
  min-width: 0;
}

.entry-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-main);
}

.entry-name a {
  color: inherit;
}

.entry-name a:hover,
.entry-name a:focus-visible {
  color: var(--accent);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-sub);
}

.meta-label {
  color: var(--text-sub);
}

.entry-desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
}

/* --- 首页：最近收录 --- */

.recent-section {
  padding: 48px 0 8px;
}

.recent-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.recent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.recent-row:last-child {
  border-bottom: 0;
}

.recent-row:hover {
  background: var(--tint);
}

.recent-name {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.recent-name:hover,
.recent-name:focus-visible {
  color: var(--accent);
}

.recent-genre {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--accent);
}

.recent-month {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--text-sub);
}

/* --- 首页：阅读指引摘要 --- */

.guide-section {
  padding: 48px 0 8px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-main);
}

.guide-card p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
}

.guide-card .guide-link {
  margin-top: auto;
}

/* --- 首页：常见问题摘要 --- */

.faq-summary-section {
  padding: 48px 0 8px;
}

.faq-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-summary-list li {
  min-width: 0;
}

.faq-summary-list a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-summary-list a:hover,
.faq-summary-list a:focus-visible {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: var(--tint);
}

/* --- 首页：版权与反馈说明条 --- */

.notice-bar-section {
  padding: 48px 0 0;
}

.notice-bar {
  margin-top: 0;
}

/* --- 作品目录 --- */

.page-works .page-layout {
  margin-top: 28px;
}

.media-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 32px;
  align-items: start;
}

.media-text-body {
  min-width: 0;
}

.media-text-body > p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.media-text-figure {
  aspect-ratio: 4 / 3;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-item {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.work-item:hover {
  border-left-color: var(--accent);
  background: var(--tint);
}

.work-item-feature {
  display: flex;
  gap: 16px;
}

.work-item-feature .work-thumb {
  flex: 0 0 132px;
  width: 132px;
  aspect-ratio: 4 / 3;
}

.work-body {
  min-width: 0;
}

.work-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-main);
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-sub);
}

.work-desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
}

.work-entry {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* --- 题材分类树 --- */

.tree-intro .intro-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 40px;
  align-items: start;
}

.intro-text {
  min-width: 0;
}

.intro-text > p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.intro-media {
  aspect-ratio: 4 / 3;
}

.tree-block .genre-tree {
  gap: 10px;
  margin-top: 20px;
}

.genre-tree .tree-node-title {
  font-size: inherit;
  font-weight: inherit;
}

.genre-tree .tree-branch {
  padding: 10px 0;
}

.genre-tree .tree-branch-name {
  display: block;
  font-size: 15px;
}

.rule-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.rule-col {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-col-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-list li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
}

.rule-key {
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
  color: var(--accent);
}

.rule-block .note-bar {
  margin-top: 24px;
}

/* --- 更新档案 --- */

.archive-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 40px;
  align-items: start;
}

.archive-intro-text {
  min-width: 0;
}

.archive-intro-text h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.archive-intro-text > p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.archive-intro-media {
  aspect-ratio: 4 / 3;
}

.month-anchor-bar {
  margin-top: 40px;
}

.month-anchor-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.month-anchor-list::-webkit-scrollbar {
  display: none;
}

.month-anchor-list li {
  flex: 0 0 auto;
}

.month-anchor {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.month-anchor:hover,
.month-anchor:focus-visible {
  background: var(--tint);
  border-color: var(--accent-soft);
}

.month-group {
  margin-top: 32px;
}

.month-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.record-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.record-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.record-row:last-child {
  border-bottom: 0;
}

.record-row:hover {
  background: var(--tint);
}

.record-object {
  flex: 1 1 180px;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.record-type {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--accent);
}

.record-detail {
  flex: 1 1 220px;
  min-width: 0;
  font-size: 14px;
  color: var(--text-sub);
}

.record-link {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.archive-check-entry {
  margin-top: 18px;
}

/* --- 阅读指引 --- */

.guide-article .guide-block + .guide-block {
  margin-top: 44px;
}

.guide-article .section-intro {
  margin-top: 14px;
}

.guide-order-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.guide-order-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-order-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-main);
}

.guide-order-card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
}

.guide-figure {
  margin-top: 20px;
  aspect-ratio: 16 / 9;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  counter-reset: gstep;
}

.guide-steps li {
  position: relative;
  padding: 16px 18px 16px 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: gstep;
}

.guide-steps li::before {
  content: counter(gstep);
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  border-radius: 50%;
}

.guide-steps h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-main);
}

.guide-steps p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
}

.guide-panel-list h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-main);
}

.guide-panel-list p {
  margin-top: 4px;
}

.guide-link-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 14px;
}

.guide-link-line a {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

/* --- 常见问题 --- */

.faq-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 40px;
  align-items: start;
  padding-top: 32px;
}

.faq-intro-text {
  min-width: 0;
}

.faq-intro-text h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.faq-intro-text > p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.faq-intro-figure {
  aspect-ratio: 4 / 3;
}

.faq-group {
  margin-top: 44px;
}

.faq-group h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  display: block;
  min-height: 48px;
  padding: 14px 48px 14px 18px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  color: var(--accent);
  background: var(--tint);
}

.faq-answer {
  padding: 4px 18px 18px;
  border-top: 1px solid var(--line);
}

.faq-answer p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-sub);
}

.faq-answer a {
  font-weight: 600;
}

.faq-next {
  margin-top: 44px;
}

/* --- 版权与反馈 --- */

.rights-correct .section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 36px;
  align-items: start;
}

.split-text {
  min-width: 0;
}

.split-text > p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-sub);
}

.split-text > p + p {
  margin-top: 12px;
}

.split-text .plain-list {
  margin-top: 14px;
}

.split-media {
  aspect-ratio: 4 / 3;
}

.content-section + .content-section {
  margin-top: 44px;
}

.rights-feedback .section-intro,
.rights-more .section-intro {
  margin-top: 14px;
}

.rights-feedback .step-list {
  margin-top: 20px;
}

.rights-notice .plain-list-notice {
  margin-top: 18px;
}

.rights-more .entry-bar {
  margin-top: 20px;
}

/* --- 404 --- */

.error-main {
  padding: 72px 0 24px;
}

.error-wrap {
  max-width: 680px;
  text-align: center;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.error-wrap h1 {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-main);
}

.error-lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-sub);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.error-tips {
  margin-top: 48px;
  padding: 24px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-tips h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.error-tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-tips-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
}

.error-tips-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  background: var(--accent-soft);
  border-radius: 50%;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 40px;
  }

  .taxonomy-grid {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 32px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-grid,
  .guide-order-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .header-inner {
    min-height: var(--header-h);
    padding: 10px 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: block;
    margin-left: 0;
    padding: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.08);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav-group-title {
    display: block;
    padding: 12px 4px 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    display: none;
  }

  .nav-list a {
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
  }

  .nav-list a.is-current {
    background: var(--tint);
    border-bottom-color: var(--line);
  }

  .nav-list-guide {
    padding-left: 0;
    border-left: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .breadcrumb,
  .page-header,
  .page-title-block {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 24px;
  }

  .sidebar-left .page-layout,
  .sidebar-left.page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-left .page-layout > .layout-aside,
  .sidebar-left.page-layout > .layout-aside,
  .sidebar-left .page-layout > .page-aside,
  .sidebar-left.page-layout > .page-aside {
    order: 0;
  }

  /* 首屏与分类模块在手机端纵向排列，文字在前、图片在后 */

  .hero-section {
    padding: 32px 0 8px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
  }

  .taxonomy-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .media-text,
  .intro-columns,
  .archive-intro-layout,
  .faq-intro-grid,
  .rights-correct .section-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .guide-grid,
  .guide-order-grid,
  .faq-summary-list,
  .rule-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-row-featured,
  .work-item-feature {
    flex-direction: column;
  }

  .entry-thumb,
  .work-item-feature .work-thumb {
    flex: 0 0 auto;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 16 / 10;
  }

  .recent-row,
  .record-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .error-main {
    padding: 48px 0 16px;
  }

  .error-code {
    font-size: 52px;
  }

  .error-wrap h1 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 24px;
  }

  .section-title,
  .section-head h2 {
    font-size: 20px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-actions .btn,
  .error-actions .btn {
    width: 100%;
  }

  .entry-thumb,
  .work-item-feature .work-thumb {
    max-width: none;
  }
}
