/* ==========================================================================
   奇漫屋 yzxcpx.cn — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #f4f1ea;
  color: #1f2b38;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", "SimSun", serif;
  font-weight: 700;
  color: #1f2b38;
  line-height: 1.4;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: #2f5d7c;
  text-decoration: none;
}

a:hover {
  color: #b4382f;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

dl,
dd {
  margin: 0;
}

strong {
  font-weight: 700;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #b4382f;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout — 容器与骨架
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: #fffdf8;
  border-bottom: 1px solid #ded6c8;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  color: #1f2b38;
}

.brand:hover {
  color: #1f2b38;
}

.brand-name {
  font-family: "Songti SC", "Noto Serif SC", "SimSun", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-tag {
  font-size: 12px;
  color: #5a6672;
  letter-spacing: 0.04em;
}

.main-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  display: inline-block;
  padding: 6px 2px;
  font-size: 15px;
  color: #1f2b38;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: #b4382f;
}

.site-nav a.is-current {
  color: #1f2b38;
  font-weight: 700;
  border-bottom-color: #b4382f;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  background-color: #fffdf8;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #1f2b38;
}

.mobile-nav {
  border-top: 1px solid #ded6c8;
  background-color: #fffdf8;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 24px 12px;
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  min-height: 48px;
  font-size: 16px;
  color: #1f2b38;
  border-bottom: 1px solid #e8e1d4;
}

.mobile-nav li:last-child a {
  border-bottom: 0;
}

.site-main {
  display: block;
}

.inner-main {
  padding-bottom: 64px;
}

.home-main {
  padding-bottom: 64px;
}

.site-footer {
  background-color: #fffdf8;
  border-top: 1px solid #ded6c8;
  padding-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 32px;
}

.footer-brand-name {
  font-family: "Songti SC", "Noto Serif SC", "SimSun", serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  color: #5a6672;
  line-height: 1.7;
}

.footer-group-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  font-size: 14px;
  color: #5a6672;
}

.footer-group a:hover {
  color: #b4382f;
}

.footer-bottom {
  border-top: 1px solid #ded6c8;
  padding-top: 16px;
  padding-bottom: 24px;
}

.footer-bottom p {
  font-size: 13px;
  color: #5a6672;
}

/* 内页面包屑与标题区 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 4px;
  font-size: 13px;
  color: #5a6672;
}

.breadcrumb a {
  color: #5a6672;
}

.breadcrumb a:hover {
  color: #b4382f;
}

.breadcrumb-sep {
  color: #ded6c8;
}

.breadcrumb-current {
  color: #1f2b38;
}

.page-header {
  padding: 4px 0 12px;
}

.page-title {
  font-family: "Songti SC", "Noto Serif SC", "SimSun", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2b38;
}

.page-lead {
  max-width: 760px;
  font-size: 15px;
  color: #5a6672;
  line-height: 1.8;
}

.page-code,
.archive-code,
.archive-no {
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #b4382f;
  margin-bottom: 6px;
}

.page-title-band {
  padding: 8px 0 16px;
}

.page-title-band .archive-code {
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #b4382f;
  margin-bottom: 6px;
}

/* 内页两栏布局 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
  padding-top: 12px;
}

.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.page-layout.layout-shell {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.content-column,
.content-main,
.page-content {
  min-width: 0;
  max-width: 720px;
}

.content-side {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   components — 通用组件
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background-color: #b4382f;
  border-color: #b4382f;
  color: #fffdf8;
}

.btn-primary:hover {
  background-color: #96302a;
  border-color: #96302a;
  color: #fffdf8;
}

.btn-ghost {
  background-color: transparent;
  border-color: #1f2b38;
  color: #1f2b38;
}

.btn-ghost:hover {
  border-color: #b4382f;
  color: #b4382f;
}

/* 区块标题 */
.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.section-note {
  font-size: 13px;
  color: #5a6672;
  max-width: 720px;
}

/* 档案编号前缀 */
.title-index,
.code-prefix,
.rule-no,
.section-no,
.topic-code {
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #b4382f;
  margin-right: 8px;
}

/* 状态胶囊 */
.status,
.status-pill {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 999px;
  border: 1px solid #ded6c8;
  background-color: #e8e1d4;
  color: #1f2b38;
  white-space: nowrap;
}

.status-serial,
.status-ongoing {
  background-color: #e4eef5;
  border-color: #b9d3e2;
  color: #2f5d7c;
}

.status-rest,
.status-pause {
  background-color: #f6e9d8;
  border-color: #e0c9a6;
  color: #8a5a20;
}

.status-done,
.status-finish {
  background-color: #e6ece6;
  border-color: #c3d3c3;
  color: #3f5c40;
}

.status-volume,
.status-batch,
.status-resume {
  background-color: #f3e2e0;
  border-color: #e0bdb8;
  color: #b4382f;
}

/* 标签 */
.tag,
.topic-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 4px;
  background-color: #e8e1d4;
  border: 1px solid #ded6c8;
  color: #2f5d7c;
}

a.topic-tag:hover {
  border-color: #b4382f;
  color: #b4382f;
}

/* 更多链接 */
.more-link,
.note-link,
.feature-link,
.link-more {
  display: inline-block;
  font-size: 14px;
  color: #2f5d7c;
  border-bottom: 1px solid #b9d3e2;
}

.more-link:hover,
.note-link:hover,
.feature-link:hover,
.link-more:hover {
  color: #b4382f;
  border-bottom-color: #e0bdb8;
}

/* 图片容器 */
.hero-figure,
.cover-figure,
.feature-figure,
.topic-figure,
.media-figure,
.block-figure {
  overflow: hidden;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  background-color: #fffdf8;
}

.hero-figure img,
.cover-figure img,
.feature-figure img,
.topic-figure img,
.media-figure img,
.block-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  padding: 8px 12px;
  font-size: 13px;
  color: #5a6672;
  border-top: 1px solid #ded6c8;
}

/* 侧栏 */
.side-rail,
.sidebar,
.content-side,
.page-aside {
  font-size: 14px;
}

.rail-block,
.side-block,
.aside-block {
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.rail-title,
.side-title,
.sidebar-title,
.aside-title,
.aside-block-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.rail-anchor-list,
.rail-link-list,
.rail-tag-list,
.side-catalog ul,
.side-index ul,
.aside-index ul,
.aside-links,
.side-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-anchor-list a,
.rail-link-list a,
.rail-tag-list a,
.side-catalog a,
.side-index a,
.aside-index a,
.aside-links a,
.side-list a {
  display: block;
  padding: 7px 8px;
  min-height: 36px;
  font-size: 14px;
  color: #1f2b38;
  border-radius: 4px;
  border-left: 2px solid transparent;
}

.rail-anchor-list a:hover,
.rail-link-list a:hover,
.rail-tag-list a:hover,
.side-catalog a:hover,
.side-index a:hover,
.aside-index a:hover,
.aside-links a:hover,
.side-list a:hover {
  background-color: #f4f1ea;
  border-left-color: #b4382f;
  color: #b4382f;
}

.side-note,
.sidebar-note {
  font-size: 13px;
  color: #5a6672;
  margin-top: 10px;
}

/* 说明步骤条 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-item .step-no {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
  font-size: 13px;
  color: #b4382f;
  border: 1px solid #e0bdb8;
  border-radius: 50%;
  background-color: #fffdf8;
}

.step-item .step-body {
  min-width: 0;
}

.step-item .step-name {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

/* 项目符号列表 */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bullet-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: #1f2b38;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background-color: #b4382f;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.faq-item {
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  padding: 0 16px;
}

.faq-item summary {
  padding: 14px 0;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
  color: #b4382f;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 0 14px;
  font-size: 14px;
  color: #5a6672;
}

/* 表格 */
.table-scroll,
.tag-table-wrap {
  overflow-x: auto;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  background-color: #fffdf8;
}

.entry-table,
.batch-table,
.tag-table {
  min-width: 640px;
  font-size: 14px;
}

.entry-table caption,
.batch-table caption,
.tag-table caption {
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  color: #5a6672;
  border-bottom: 1px solid #ded6c8;
}

.entry-table th,
.entry-table td,
.batch-table th,
.batch-table td,
.tag-table th,
.tag-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid #e8e1d4;
  vertical-align: top;
}

.entry-table thead th,
.batch-table thead th,
.tag-table thead th {
  background-color: #f4f1ea;
  font-size: 13px;
  color: #5a6672;
  font-weight: 700;
  white-space: nowrap;
}

.entry-table tbody tr:last-child td,
.batch-table tbody tr:last-child td,
.tag-table tbody tr:last-child td {
  border-bottom: 0;
}

.entry-table tbody tr:hover,
.batch-table tbody tr:hover,
.tag-table tbody tr:hover {
  background-color: #faf7f0;
}

.cell-code,
.entry-code {
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #b4382f;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

/* 首屏 */
.hero {
  padding: 40px 0 48px;
  border-bottom: 1px solid #ded6c8;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px;
  align-items: start;
}

.hero-copy {
  max-width: 620px;
}

.hero-kicker {
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #b4382f;
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-size: 40px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  color: #5a6672;
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-figure {
  aspect-ratio: 16 / 10;
}

/* 档案登记卡 */
.record-card {
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  padding: 18px;
}

.record-card-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.record-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #e8e1d4;
}

.record-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e8e1d4;
}

.record-row dt {
  font-size: 13px;
  color: #5a6672;
}

.record-row dd {
  font-size: 14px;
  color: #1f2b38;
}

.record-hint {
  margin-top: 12px;
  font-size: 13px;
  color: #5a6672;
}

/* 题材索引标签带 */
.topic-band {
  padding: 40px 0;
  border-bottom: 1px solid #ded6c8;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-tags .topic-tag {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
}

/* 封面档案墙 */
.cover-wall {
  padding: 40px 0;
  border-bottom: 1px solid #ded6c8;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cover-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  padding: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.cover-card:hover {
  border-color: #b4382f;
  transform: translateY(-2px);
}

.cover-code {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  padding: 2px 8px;
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #fffdf8;
  background-color: #b4382f;
  border-radius: 4px;
}

.cover-figure {
  aspect-ratio: 3 / 4;
  margin-bottom: 12px;
}

.cover-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5a6672;
  margin-bottom: 12px;
}

.cover-link {
  margin-top: auto;
  font-size: 14px;
  color: #2f5d7c;
  border-bottom: 1px solid #b9d3e2;
  align-self: flex-start;
}

.cover-link:hover {
  color: #b4382f;
  border-bottom-color: #e0bdb8;
}

/* 更新登记与书架编排 */
.register-shelf {
  padding: 40px 0;
  border-bottom: 1px solid #ded6c8;
}

.register-shelf-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.register-col {
  min-width: 0;
}

.batch-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e8e1d4;
  margin-bottom: 16px;
}

.batch-row {
  display: grid;
  grid-template-columns: 90px 84px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #e8e1d4;
  font-size: 14px;
}

.batch-code {
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #b4382f;
}

.batch-topic {
  font-size: 13px;
  color: #2f5d7c;
}

.batch-name {
  min-width: 0;
  color: #1f2b38;
}

.shelf-col {
  min-width: 0;
}

.shelf-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: shelf;
}

.shelf-item {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid #e8e1d4;
}

.shelf-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.shelf-item p {
  font-size: 14px;
  color: #5a6672;
}

/* 专题企划横条 */
.feature-band {
  padding: 40px 0;
  border-bottom: 1px solid #ded6c8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  padding: 16px;
  transition: border-color 0.18s ease;
}

.feature-card:hover {
  border-color: #b4382f;
}

.feature-figure {
  aspect-ratio: 4 / 3;
  height: 100%;
}

.feature-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.feature-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-body p {
  font-size: 14px;
  color: #5a6672;
  margin-bottom: 10px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.feature-link {
  margin-top: auto;
  align-self: flex-start;
}

/* 阅读说明摘要 */
.read-notes {
  padding: 40px 0 48px;
}

.read-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.note-col {
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.note-col h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.note-col p {
  font-size: 14px;
  color: #5a6672;
  margin-bottom: 14px;
}

.note-link {
  margin-top: auto;
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   pages — 作品档案 qmw/zuopin.html
   -------------------------------------------------------------------------- */

.page-zuopin .page-title-band {
  padding-bottom: 20px;
}

.content-block {
  margin-bottom: 40px;
}

.block-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.block-lead {
  font-size: 15px;
  color: #5a6672;
  margin-bottom: 18px;
}

.block-lead a {
  color: #2f5d7c;
  border-bottom: 1px solid #b9d3e2;
}

.block-lead a:hover {
  color: #b4382f;
  border-bottom-color: #e0bdb8;
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.explain-col {
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  padding: 18px;
}

.explain-col h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.explain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.explain-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: #5a6672;
}

.explain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background-color: #b4382f;
}

.entry-group {
  margin-bottom: 28px;
}

.entry-group-title {
  font-size: 17px;
  margin-bottom: 10px;
  scroll-margin-top: 90px;
}

.entry-group .entry-table {
  min-width: 680px;
}

.block-figure {
  margin: 0 0 20px;
}

.block-figure img {
  aspect-ratio: 16 / 9;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
}

.status-list li p {
  min-width: 0;
  font-size: 14px;
  color: #5a6672;
}

/* --------------------------------------------------------------------------
   pages — 题材索引 qmw/timu.html
   -------------------------------------------------------------------------- */

.page-timu .block {
  margin-bottom: 44px;
}

.page-timu .block > h2 {
  font-size: 22px;
  margin-bottom: 10px;
  scroll-margin-top: 90px;
}

.page-timu .block > p {
  font-size: 15px;
  color: #5a6672;
  margin-bottom: 16px;
}

.topic-section {
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  padding: 20px;
}

.topic-figure {
  margin-bottom: 16px;
}

.topic-figure img {
  aspect-ratio: 16 / 9;
}

.topic-scope {
  font-size: 15px;
  color: #1f2b38;
  margin-bottom: 16px;
}

.topic-scope strong {
  color: #b4382f;
  margin-right: 6px;
}

.topic-section h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.entry-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e8e1d4;
  border-radius: 4px;
  font-size: 14px;
}

.entry-meta {
  font-size: 13px;
  color: #5a6672;
}

.topic-usage {
  font-size: 14px;
  color: #5a6672;
  padding-top: 14px;
  border-top: 1px dashed #ded6c8;
}

.topic-usage strong {
  color: #1f2b38;
  margin-right: 6px;
}

.usage-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.usage-item {
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  padding: 16px;
}

.usage-item h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.usage-item p {
  font-size: 14px;
  color: #5a6672;
}

.block-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   pages — 更新记录 qmw/genxin.html
   -------------------------------------------------------------------------- */

.page-head {
  border-bottom: 1px solid #ded6c8;
}

.page-head .container {
  padding-top: 24px;
  padding-bottom: 20px;
}

.page-genxin .page-layout {
  grid-template-columns: minmax(0, 1fr) 260px;
  padding-top: 20px;
}

.module {
  margin-bottom: 40px;
}

.module h2 {
  font-size: 22px;
  margin-bottom: 8px;
  scroll-margin-top: 90px;
}

.module-desc {
  font-size: 15px;
  color: #5a6672;
  margin-bottom: 16px;
}

.batch-group {
  margin-bottom: 24px;
  scroll-margin-top: 90px;
}

.batch-group-head {
  padding-bottom: 8px;
  border-bottom: 1px solid #ded6c8;
  margin-bottom: 10px;
}

.batch-group-head h3 {
  font-size: 17px;
}

.batch-group-note {
  font-size: 13px;
  color: #5a6672;
  margin: 4px 0 0;
}

.batch-group-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.batch-group-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  font-size: 14px;
}

.batch-group-info {
  min-width: 0;
}

.batch-group-name {
  display: block;
  color: #1f2b38;
  font-weight: 700;
}

.batch-group-meta {
  display: block;
  font-size: 13px;
  color: #5a6672;
}

.batch-cover {
  width: 100%;
  max-width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ded6c8;
}

.batch-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pace-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pace-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
}

.pace-item p {
  min-width: 0;
  font-size: 14px;
  color: #5a6672;
}

.side-status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-status-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #5a6672;
}

.side-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.side-links a {
  font-size: 14px;
  color: #2f5d7c;
}

.side-links a:hover {
  color: #b4382f;
}

/* --------------------------------------------------------------------------
   pages — 专题企划 qmw/zhuanti.html
   -------------------------------------------------------------------------- */

.section-block {
  margin-bottom: 44px;
}

.section-block > h2 {
  font-size: 22px;
  margin-bottom: 10px;
  scroll-margin-top: 90px;
}

.section-block > p {
  font-size: 15px;
  color: #5a6672;
  margin-bottom: 18px;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rule-item {
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  padding: 18px;
}

.rule-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.rule-item p {
  font-size: 14px;
  color: #5a6672;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.topic-card:hover {
  border-color: #b4382f;
}

.topic-card .topic-figure {
  border: 0;
  border-bottom: 1px solid #ded6c8;
  border-radius: 0;
  margin: 0;
}

.topic-card .topic-figure img {
  aspect-ratio: 16 / 9;
}

.topic-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.topic-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.topic-idea {
  font-size: 14px;
  color: #5a6672;
  margin-bottom: 12px;
}

.topic-card .topic-tags {
  margin-bottom: 14px;
}

.topic-card .link-more {
  margin-top: auto;
  align-self: flex-start;
}

.path-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.path-item {
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  padding: 18px;
}

.path-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.path-seq {
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #b4382f;
  margin-bottom: 8px;
}

.path-arrow {
  color: #ded6c8;
  margin: 0 4px;
}

.path-note {
  font-size: 14px;
  color: #5a6672;
}

/* --------------------------------------------------------------------------
   pages — 阅读说明 qmw/yuedu.html
   -------------------------------------------------------------------------- */

.page-hero {
  border-bottom: 1px solid #ded6c8;
}

.page-hero-inner {
  padding-top: 24px;
  padding-bottom: 20px;
}

.page-yuedu .page-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  padding-top: 20px;
}

.content-section {
  margin-bottom: 44px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 10px;
  scroll-margin-top: 90px;
}

.content-section > p {
  font-size: 15px;
  color: #5a6672;
  margin-bottom: 16px;
}

.media-figure {
  margin-bottom: 18px;
}

.media-figure img {
  aspect-ratio: 16 / 9;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.col-block {
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  padding: 18px;
}

.col-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feedback-item {
  background-color: #fffdf8;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  padding: 18px;
}

.feedback-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.feedback-item p {
  font-size: 14px;
  color: #5a6672;
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  padding: 72px 0 88px;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.error-code {
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
  font-size: 48px;
  letter-spacing: 0.08em;
  color: #b4382f;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 30px;
  margin-bottom: 14px;
}

.error-text {
  font-size: 15px;
  color: #5a6672;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.error-hint {
  font-size: 13px;
  color: #5a6672;
}

.error-hint a {
  margin: 0 6px;
  color: #2f5d7c;
  border-bottom: 1px solid #b9d3e2;
}

.error-hint a:hover {
  color: #b4382f;
  border-bottom-color: #e0bdb8;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    gap: 36px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .register-shelf-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .page-layout,
  .page-layout.sidebar-left,
  .page-layout.layout-shell,
  .page-genxin .page-layout,
  .page-yuedu .page-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  /* 主内容排在辅助侧栏之前，正文宽度放开 */
  .page-layout .content-column,
  .page-layout .content-main,
  .page-layout .page-content {
    order: 1;
    width: 100%;
    max-width: none;
  }

  .page-layout .side-rail,
  .page-layout .sidebar,
  .page-layout .content-side,
  .page-layout .page-aside {
    order: 2;
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .read-notes-grid,
  .usage-columns,
  .rule-list,
  .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explain-grid,
  .two-col,
  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .header-inner {
    padding: 12px 16px;
    gap: 12px;
  }

  .brand-name {
    font-size: 19px;
  }

  .mobile-nav ul {
    padding: 6px 16px 12px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero {
    padding: 28px 0 32px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .topic-band,
  .cover-wall,
  .register-shelf,
  .feature-band,
  .read-notes {
    padding: 28px 0;
  }

  .topic-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .topic-tags li {
    flex: 0 0 auto;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cover-card {
    padding: 10px;
  }

  .cover-code {
    top: 16px;
    left: 16px;
  }

  .cover-title {
    font-size: 15px;
  }

  .batch-row {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas:
      "code topic"
      "name name"
      "status status";
    gap: 6px 12px;
  }

  .batch-row .batch-code {
    grid-area: code;
  }

  .batch-row .batch-topic {
    grid-area: topic;
  }

  .batch-row .batch-name {
    grid-area: name;
  }

  .batch-row .status {
    grid-area: status;
    justify-self: start;
  }

  .feature-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .feature-figure {
    aspect-ratio: 16 / 9;
  }

  .read-notes-grid,
  .usage-columns,
  .rule-list,
  .feedback-grid,
  .two-col,
  .explain-grid,
  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-group-item {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "cover info"
      "status status";
    gap: 10px 12px;
  }

  .batch-group-item .batch-cover {
    grid-area: cover;
    max-width: 72px;
  }

  .batch-group-item .batch-group-info {
    grid-area: info;
  }

  .batch-group-item .status {
    grid-area: status;
    justify-self: start;
  }

  .status-list li,
  .pace-item {
    flex-direction: column;
    gap: 8px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .error-code {
    font-size: 38px;
  }

  .error-panel h1 {
    font-size: 24px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn {
    width: 100%;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
