/* ==========================================================================
   歪歪漫画sss · 全站样式
   base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
:root {
  --ink: #15161a;
  --paper: #f4f0e7;
  --muted: #a7a39a;
  --accent: #ff5b35;
  --lime: #d8f36b;
  --line: #33353c;
  --footer-bg: #efe9dc;
  --footer-ink: #1b1c20;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --max-width: 1180px;
  --pad: 24px;
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
dt {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--paper);
  border-radius: var(--radius);
  transition: top .18s ease;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--radius);
}

.brand-slogan {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .02em;
}

.role-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.role-link {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}

.role-link:hover {
  color: var(--paper);
  border-color: var(--line);
}

.role-link.is-current {
  color: var(--accent);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--paper);
}

.main-nav {
  border-top: 1px solid var(--line);
}

.main-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.main-nav-list > li {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}

.main-nav-list > li:first-child .nav-link {
  padding-left: 0;
}

.nav-link:hover {
  color: var(--paper);
}

.nav-link.is-current {
  color: var(--paper);
  border-bottom-color: var(--accent);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px var(--pad) 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}

.breadcrumb a:hover {
  color: var(--paper);
  border-color: var(--line);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--paper);
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 650;
  line-height: 1.24;
  color: var(--paper);
}

/* 页脚 */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-top: 1px solid var(--line);
  padding: 48px 0 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad) 36px;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px 28px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #5b574e;
  max-width: 28ch;
}

.footer-group-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #6d685d;
  margin-bottom: 12px;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--footer-ink);
  border-bottom: 1px solid transparent;
  transition: border-color .16s ease, color .16s ease;
}

.footer-list a:hover {
  border-color: var(--accent);
  color: #b8381b;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--pad) 28px;
  border-top: 1px solid #d7cfbe;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 12px;
  color: #6d685d;
}

.footer-tagline {
  font-weight: 500;
  color: #4d493f;
}

.footer-copy {
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   components · 通用章节件
   -------------------------------------------------------------------------- */
.chapter-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 10px;
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.chapter-rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--line);
}

.chapter-label {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 650;
  line-height: 1.3;
  color: var(--paper);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 62ch;
}

.section-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 650;
  line-height: 1.32;
  color: var(--paper);
  margin-bottom: 10px;
}

.section-intro {
  font-size: 14px;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color .16s ease;
}

.text-link::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 13px;
}

.text-link:hover {
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #ff7250;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 封面卡（首页 + 作品索引共用基础） */
.cover-card {
  background: #1c1d22;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s ease, transform .16s ease;
}

.cover-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cover-card-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  min-height: 44px;
}

.cover-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: #26282e;
}

.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-num,
.cover-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--accent);
}

.cover-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--paper);
}

.cover-tag {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.cover-flag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--lime);
  border-radius: var(--radius);
}

.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tag-state {
  color: var(--lime);
  border-color: #3d4a1e;
}

.tag-oneshot {
  color: var(--accent);
  border-color: #4a2a22;
}

.cover-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* 侧栏（works/calendar/help/submit 共用） */
.page-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 220px minmax(0, 1fr);
}

.page-layout.sidebar-left .sidebar,
.page-layout.sidebar-left .side-tree {
  grid-column: 1;
  grid-row: 1;
}

.page-layout.sidebar-left .content-main,
.page-layout.sidebar-left .main-column,
.page-layout.sidebar-left .page-content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.side-tree,
.sidebar {
  position: sticky;
  top: 132px;
  font-size: 13px;
}

.side-tree-title,
.sidebar-group-title,
.side-tree-group-title,
.side-tree-heading,
.tree-group-title,
.tree-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.side-tree-group,
.sidebar-group,
.side-tree-head,
.tree-group {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.side-tree-list li + li,
.sidebar-list li + li,
.tree-list li + li {
  margin-top: 6px;
}

.side-tree-link,
.sidebar-list a,
.tree-list a {
  display: block;
  padding: 6px 0 6px 10px;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}

.side-tree-link:hover,
.sidebar-list a:hover,
.tree-list a:hover {
  color: var(--paper);
  border-left-color: var(--line);
}

.side-tree-link.is-current {
  color: var(--paper);
  border-left-color: var(--accent);
}

.side-tree-note,
.sidebar-note,
.tree-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 4px;
}

.side-tree-note a,
.sidebar-note a,
.tree-note a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.side-tree-note a:hover,
.sidebar-note a:hover,
.tree-note a:hover {
  border-color: var(--accent);
}

.sidebar-toggle,
.tree-toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  margin-bottom: 12px;
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar-toggle::after,
.tree-toggle::after {
  content: "+";
  float: right;
  font-family: var(--font-mono);
  color: var(--accent);
}

.sidebar-toggle[aria-expanded="true"]::after,
.tree-toggle[aria-expanded="true"]::after {
  content: "−";
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-main {
  display: block;
}

/* 主推作品带 */
.hero-band {
  border-bottom: 1px solid var(--line);
  padding: 40px 0 32px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.hero-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #26282e;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--paper);
  background: rgba(21, 22, 26, .82);
  letter-spacing: .02em;
}

.hero-info {
  min-width: 0;
}

.hero-info h1 {
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 650;
  line-height: 1.18;
  margin-bottom: 16px;
  color: var(--paper);
}

.hero-lead {
  font-size: 15px;
  line-height: 1.78;
  color: #cdc8bd;
  max-width: 52ch;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.fact-item dt {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.fact-item dd {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--paper);
}

.hero-scroll-hint {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 0 var(--pad);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* 封面更新带 */
.update-strip {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px var(--pad) 40px;
  position: relative;
}

.strip-controls {
  position: absolute;
  top: 56px;
  right: var(--pad);
  display: flex;
  gap: 8px;
}

.strip-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  transition: border-color .16s ease, color .16s ease;
}

.strip-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.strip-btn-prev::before {
  content: "←";
}

.strip-btn-next::before {
  content: "→";
}

.strip-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 200px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.strip-track > .cover-card {
  scroll-snap-align: start;
}

.strip-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
}

/* 题材速览 */
.genre-glance {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px var(--pad) 52px;
}

.genre-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.genre-item {
  padding: 20px 18px 22px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-width: 0;
}

.genre-item:first-child {
  border-left: 1px solid var(--line);
}

.genre-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 6px;
}

.genre-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 8px;
}

.genre-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 12px;
}

.genre-link {
  display: inline-flex;
  font-size: 12px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .16s ease;
}

.genre-link:hover {
  border-color: var(--accent);
}

/* 更新日历摘要 */
.week-summary {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px var(--pad) 52px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.week-cell {
  padding: 14px 12px 16px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.week-cell:last-child {
  border-right: 0;
}

.week-day {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 2px;
}

.week-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.week-entries .week-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}

.entry-name {
  font-size: 12px;
  color: var(--paper);
  line-height: 1.5;
}

.entry-tag {
  font-size: 11px;
  color: var(--muted);
}

.week-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.week-note a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.week-note a:hover {
  border-color: var(--accent);
}

/* 编辑短评 + 阅读入口 */
.editor-picks {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px var(--pad) 52px;
}

.picks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.review-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.review-tag {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--accent);
  margin-bottom: 6px;
}

.review-text {
  font-size: 14px;
  line-height: 1.78;
  color: #cdc8bd;
  max-width: 60ch;
}

.read-panel {
  background: #1c1d22;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}

.read-panel-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 14px;
}

.read-panel-list li + li {
  margin-top: 8px;
}

.read-panel-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s ease, color .16s ease;
}

.read-panel-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.read-panel-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* 站内观察榜 */
.observation-board {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px var(--pad) 52px;
}

.board-table {
  border-top: 1px solid var(--line);
}

.board-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, 2fr);
  gap: 16px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.board-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 10px;
  padding-bottom: 10px;
}

.board-cell {
  min-width: 0;
}

.board-rank {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--lime);
  font-weight: 500;
}

.board-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
}

.board-tag {
  font-size: 12px;
  color: var(--muted);
}

.board-reason {
  font-size: 13px;
  line-height: 1.7;
  color: #cdc8bd;
}

/* 创作者手记摘要 */
.notes-preview {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px var(--pad) 52px;
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.notes-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.notes-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 4px;
}

.notes-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 6px;
}

.notes-text {
  font-size: 13px;
  line-height: 1.78;
  color: #cdc8bd;
  max-width: 60ch;
}

.notes-aside {
  background: #1c1d22;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.notes-aside-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 10px;
}

.notes-aside-text {
  font-size: 13px;
  line-height: 1.78;
  color: var(--muted);
  margin-bottom: 16px;
}

.notes-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s ease, color .16s ease;
}

.notes-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 收录与纠错说明条 */
.scope-banner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #1a1b20;
}

.scope-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.scope-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 4px;
}

.scope-text {
  font-size: 13px;
  color: var(--muted);
  max-width: 62ch;
}

.scope-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s ease, color .16s ease;
}

.scope-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 作品索引 works
   -------------------------------------------------------------------------- */
.page-works .page-title-block {
  margin-bottom: 28px;
}

.page-title-block .chapter-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.page-title-block .page-lead {
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
  max-width: 62ch;
  margin-top: 12px;
}

.page-title-block .page-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-top: 10px;
}

.filter-bar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 44px;
}

.filter-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}

.filter-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  min-width: 52px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s ease, color .16s ease;
}

.filter-tags a:hover {
  border-color: var(--accent);
  color: var(--paper);
}

.wall-section {
  margin-bottom: 48px;
}

.cover-wall {
  display: grid;
  gap: 20px;
}

.cover-wall-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cover-wall-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cover-wall .cover-card-link {
  gap: 10px;
}

.reading-order {
  margin-top: 8px;
}

.order-list {
  border-top: 1px solid var(--line);
}

.order-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 16px;
}

.order-no {
  grid-row: span 3;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.2;
}

.order-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 4px;
}

.order-links {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.order-links a {
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .16s ease, color .16s ease;
}

.order-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.order-sep {
  color: var(--line);
  margin: 0 6px;
}

.order-reason {
  font-size: 13px;
  color: #cdc8bd;
  line-height: 1.7;
}

.order-footer {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.order-footer a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.order-footer a:hover {
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 题材图谱 genres
   -------------------------------------------------------------------------- */
.page-genres .page-title-area {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.page-title-inner .chapter-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.page-title-desc {
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
  max-width: 62ch;
  margin-top: 12px;
}

.page-title-inner .page-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-top: 10px;
}

.genre-intro {
  margin-bottom: 44px;
}

.genre-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: #cdc8bd;
  max-width: 68ch;
  margin-bottom: 14px;
}

.genre-intro-link {
  margin-top: 4px;
}

.genre-intro-link a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.genre-intro-link a:hover {
  border-color: var(--accent);
}

.genre-chapters {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.genre-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.genre-section.genre-reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.genre-reverse .genre-media {
  order: 2;
}

.genre-reverse .genre-body {
  order: 1;
}

.genre-media {
  min-width: 0;
}

.genre-figure {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #26282e;
}

.genre-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.genre-body {
  min-width: 0;
}

.genre-body .genre-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 6px;
}

.genre-body .genre-name {
  font-size: 22px;
  font-weight: 650;
  color: var(--paper);
  margin-bottom: 12px;
}

.genre-def,
.genre-mood,
.genre-visual,
.genre-pick,
.genre-tip {
  font-size: 14px;
  line-height: 1.8;
  color: #cdc8bd;
  margin-bottom: 10px;
  max-width: 62ch;
}

.genre-pick a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.genre-pick a:hover {
  border-color: var(--accent);
}

.genre-tip {
  color: var(--muted);
  font-size: 13px;
}

.reading-order-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 62ch;
}

.reading-order-list {
  border-top: 1px solid var(--line);
}

.reading-order-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.reading-order-num {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  line-height: 1.2;
}

.reading-order-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 4px;
}

.reading-order-body {
  font-size: 13px;
  line-height: 1.75;
  color: #cdc8bd;
}

.reading-order-more {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.reading-order-more a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.reading-order-more a:hover {
  border-color: var(--accent);
}

.related-links {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
  font-size: 13px;
}

.related-links-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

.related-links-item {
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .16s ease, color .16s ease;
}

.related-links-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 更新日历 calendar
   -------------------------------------------------------------------------- */
.page-calendar .page-title {
  margin-bottom: 0;
}

.page-title {
  margin-bottom: 0;
}

.page-title .page-title-inner {
  display: block;
}

.page-title .chapter-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.page-title-desc {
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
  max-width: 62ch;
  margin-top: 12px;
}

.page-title .page-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-top: 10px;
}

.featured-week {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  align-items: start;
}

.featured-figure {
  min-width: 0;
}

.media-figure {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #26282e;
  position: relative;
}

.media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--paper);
  background: rgba(21, 22, 26, .82);
}

.featured-info {
  min-width: 0;
}

.entry-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}

.featured-info h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 650;
  color: var(--paper);
  margin-bottom: 12px;
  line-height: 1.3;
}

.featured-info p {
  font-size: 14px;
  line-height: 1.8;
  color: #cdc8bd;
  margin-bottom: 10px;
  max-width: 62ch;
}

.week-section {
  margin-bottom: 48px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.week-col {
  padding: 14px 12px 16px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.week-col:last-child {
  border-right: 0;
}

.week-col .week-day {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 2px;
}

.week-col .week-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.week-items .week-item {
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.55;
  color: var(--paper);
}

.week-item .item-name {
  display: block;
  margin-bottom: 2px;
}

.week-item .tag-genre {
  display: inline-flex;
  font-size: 11px;
  color: var(--muted);
}

.week-item .mark-update {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  margin-left: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink);
  background: var(--lime);
  border-radius: var(--radius);
}

.week-footnote {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.week-footnote a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.week-footnote a:hover {
  border-color: var(--accent);
}

.batch-section {
  margin-bottom: 48px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.batch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.batch-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #1a1b20;
  white-space: nowrap;
}

.batch-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: #cdc8bd;
  vertical-align: top;
}

.batch-table tbody tr:last-child td {
  border-bottom: 0;
}

.batch-table .cell-code {
  font-family: var(--font-mono);
  color: var(--accent);
  white-space: nowrap;
}

.batch-table .cell-date {
  font-family: var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
}

.scope-section {
  margin-bottom: 8px;
}

.scope-list {
  border-top: 1px solid var(--line);
}

.scope-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.scope-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 6px;
}

.scope-item p {
  font-size: 14px;
  line-height: 1.78;
  color: #cdc8bd;
  max-width: 68ch;
}

.scope-footnote {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.scope-footnote a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.scope-footnote a:hover {
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 创作者手记 notes
   -------------------------------------------------------------------------- */
.page-notes .page-title-block {
  margin-bottom: 32px;
}

.chapter-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.chapter-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--line);
}

.page-notes .page-lead,
.page-help .page-lead,
.page-submit .page-lead {
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
  max-width: 62ch;
  margin-top: 12px;
}

.page-pager {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.pager-label {
  letter-spacing: .04em;
}

.pager-num {
  color: var(--accent);
  font-size: 14px;
}

.notes-list {
  margin-bottom: 48px;
}

.note-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.note-article:last-child {
  border-bottom: 1px solid var(--line);
}

.note-article:has(.note-figure) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: start;
}

.note-article .note-figure {
  order: 1;
  min-width: 0;
}

.note-article .note-body {
  order: 2;
  min-width: 0;
}

.note-figure {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #26282e;
  position: relative;
}

.note-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.note-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--paper);
  background: rgba(21, 22, 26, .82);
  line-height: 1.5;
}

.note-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: .04em;
}

.note-date {
  color: var(--muted);
  margin-left: 8px;
}

.note-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 8px;
  line-height: 1.4;
}

.note-summary {
  font-size: 14px;
  line-height: 1.8;
  color: #cdc8bd;
  max-width: 62ch;
  margin-bottom: 10px;
}

.note-tag {
  display: inline-flex;
  padding: 2px 8px;
  margin-right: 6px;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-link a {
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.note-link a:hover {
  border-color: var(--accent);
}

.notes-method {
  margin-bottom: 44px;
}

.method-list {
  border-top: 1px solid var(--line);
}

.method-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.method-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
}

.method-text {
  font-size: 14px;
  line-height: 1.78;
  color: #cdc8bd;
  max-width: 68ch;
}

.notes-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  background: #1c1d22;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.notes-entry-text .section-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.notes-entry-text p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

.notes-entry-link {
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages · 投稿与收录 submit
   -------------------------------------------------------------------------- */
.page-submit .page-title {
  margin-bottom: 0;
}

.page-submit .page-title .chapter-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
  margin-top: 20px;
}

.page-index-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-top: 10px;
}

.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 650;
  color: var(--paper);
  margin-bottom: 12px;
  line-height: 1.32;
}

.content-section > p {
  font-size: 14px;
  line-height: 1.8;
  color: #cdc8bd;
  max-width: 68ch;
  margin-bottom: 20px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.compare-col {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #1c1d22;
}

.compare-col-in {
  border-top: 3px solid var(--lime);
}

.compare-col-out {
  border-top: 3px solid var(--accent);
}

.compare-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 12px;
}

.compare-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.75;
  color: #cdc8bd;
}

.compare-list li + li {
  margin-top: 8px;
}

.compare-col-in .compare-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--lime);
  font-weight: 700;
}

.compare-col-out .compare-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

.scope-criteria,
.status-mark {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: #1a1b20;
  border-radius: var(--radius);
}

.scope-criteria h3,
.status-mark h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 6px;
}

.scope-criteria p,
.status-mark p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 68ch;
}

.standards-figure {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #26282e;
  position: relative;
  margin-bottom: 20px;
}

.standards-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.standards-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--paper);
  background: rgba(21, 22, 26, .82);
}

.standards-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.standards-table caption {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  padding: 0 0 10px;
  letter-spacing: .02em;
}

.standards-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 12px 14px;
  background: #1a1b20;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.standards-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: #cdc8bd;
  vertical-align: top;
  line-height: 1.7;
}

.standards-table tbody tr:last-child td {
  border-bottom: 0;
}

.flow-list {
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}

.flow-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.flow-step-no {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.2;
}

.flow-step-body {
  min-width: 0;
}

.flow-step-body strong,
.flow-step-body h3 {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 4px;
}

.flow-step-body p {
  font-size: 13px;
  line-height: 1.75;
  color: #cdc8bd;
  max-width: 62ch;
}

.flow-step-body a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.flow-step-body a:hover {
  border-color: var(--accent);
}

.works-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 22px;
  background: #1c1d22;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.works-entry p {
  font-size: 13px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

.works-entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s ease, color .16s ease;
}

.works-entry-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.correction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.correction-col {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #1c1d22;
}

.correction-col h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 8px;
}

.correction-col p {
  font-size: 13px;
  line-height: 1.75;
  color: #cdc8bd;
}

.correction-footnote {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.correction-footnote a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.correction-footnote a:hover {
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 阅读帮助 help
   -------------------------------------------------------------------------- */
.page-help .page-head {
  margin-bottom: 32px;
}

.chapter-dash {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--line);
}

.page-help .page-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-top: 10px;
}

.help-paths {
  margin-bottom: 48px;
}

.path-list {
  border-top: 1px solid var(--line);
}

.path-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.path-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
}

.path-scene {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.path-steps {
  font-size: 13px;
  line-height: 1.7;
  color: #cdc8bd;
}

.path-steps a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.path-steps a:hover {
  border-color: var(--accent);
}

.path-result {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.help-glossary {
  margin-bottom: 48px;
}

.glossary-list {
  border-top: 1px solid var(--line);
}

.glossary-row {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.glossary-row dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
}

.glossary-row dd {
  font-size: 13px;
  line-height: 1.78;
  color: #cdc8bd;
}

.glossary-row dd a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.glossary-row dd a:hover {
  border-color: var(--accent);
}

.help-card-fields {
  margin-bottom: 48px;
}

.card-fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}

.card-fields-figure {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #26282e;
  position: relative;
}

.card-fields-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-fields-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--paper);
  background: rgba(21, 22, 26, .82);
}

.card-fields-notes {
  min-width: 0;
}

.field-list {
  border-top: 1px solid var(--line);
}

.field-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.field-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.field-desc {
  font-size: 13px;
  line-height: 1.75;
  color: #cdc8bd;
}

.help-faq {
  margin-bottom: 48px;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  cursor: pointer;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 18px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.8;
  color: #cdc8bd;
  max-width: 68ch;
}

.faq-answer a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.faq-answer a:hover {
  border-color: var(--accent);
}

.help-more {
  margin-bottom: 8px;
}

.help-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.help-more-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s ease, color .16s ease;
}

.help-more-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.site-error .error-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px var(--pad) 88px;
}

.error-block {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.error-block h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 650;
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 16px;
}

.error-lead {
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 24px;
}

.error-actions {
  margin: 0;
}

.error-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  background: var(--accent);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background .16s ease, transform .16s ease;
}

.error-actions .btn-primary:hover {
  background: #ff7250;
  transform: translateY(-1px);
}

.error-paths h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 16px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.error-path-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--paper);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s ease, color .16s ease;
}

.error-path-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.error-note {
  font-size: 13px;
  color: var(--muted);
}

.error-note a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.error-note a:hover {
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .header-top {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .role-nav {
    order: 4;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
  }

  .main-nav {
    display: none;
    border-top: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav-list {
    flex-direction: column;
    padding: 8px 0;
  }

  .main-nav-list > li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0 4px;
    min-height: 48px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav-list > li:last-child .nav-link {
    border-bottom: 0;
  }

  .main-nav-list > li:first-child .nav-link {
    padding-left: 4px;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
    color: var(--accent);
  }

  /* 主推带 */
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-band {
    padding: 28px 0 24px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .fact-item dd {
    font-size: 18px;
  }

  /* 封面更新带 */
  .strip-controls {
    position: static;
    margin-bottom: 12px;
    justify-content: flex-end;
  }

  .strip-track {
    grid-auto-columns: 180px;
  }

  /* 题材速览 */
  .genre-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .genre-item:first-child {
    border-left: 1px solid var(--line);
  }

  /* 周历 */
  .week-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .week-cell:nth-child(4n) {
    border-right: 0;
  }

  .week-col:nth-child(4n) {
    border-right: 0;
  }

  /* 编辑短评 + 阅读入口 */
  .picks-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  /* 观察榜 */
  .board-row {
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 12px;
  }

  .board-reason {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .board-head .board-reason {
    display: none;
  }

  /* 手记摘要 */
  .notes-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  /* 内页布局：侧栏折叠，主内容在上 */
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-layout.sidebar-left .content-main,
  .page-layout.sidebar-left .main-column,
  .page-layout.sidebar-left .page-content {
    grid-column: 1;
    grid-row: 1;
  }

  .page-layout.sidebar-left .sidebar,
  .page-layout.sidebar-left .side-tree {
    grid-column: 1;
    grid-row: 2;
    position: static;
    top: auto;
  }

  .sidebar-toggle,
  .tree-toggle {
    display: block;
  }

  .sidebar-tree,
  .tree-body {
    display: none;
  }

  .sidebar-tree.is-open,
  .tree-body.is-open {
    display: block;
  }

  /* 分类树：展开为两列 */
  .side-tree-group,
  .sidebar-group,
  .tree-group {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .side-tree-list,
  .sidebar-list,
  .tree-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
  }

  .side-tree-list li + li,
  .sidebar-list li + li,
  .tree-list li + li {
    margin-top: 0;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-copy {
    margin-left: 0;
  }

  /* 作品索引 */
  .cover-wall-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-wall-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 题材图谱 */
  .genre-section,
  .genre-section.genre-reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .genre-section .genre-media,
  .genre-section.genre-reverse .genre-media {
    order: 1;
  }

  .genre-section .genre-body,
  .genre-section.genre-reverse .genre-body {
    order: 2;
  }

  /* 更新日历 */
  .featured-week {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* 手记 */
  .note-article:has(.note-figure) {
    grid-template-columns: minmax(0, 1fr);
  }

  .note-article .note-figure,
  .note-article .note-body {
    order: initial;
  }

  .notes-entry {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 投稿 */
  .correction-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 16px;
  }

  .card-fields-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .card-fields-figure {
    max-width: 260px;
  }

  /* 404 */
  .error-path-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 18px;
  }

  body {
    font-size: 15px;
  }

  .header-top {
    padding: 12px 0 10px;
    gap: 12px;
  }

  .brand-slogan {
    display: none;
  }

  .role-nav {
    gap: 14px;
  }

  .role-link {
    font-size: 12px;
  }

  .site-main,
  .inner-main {
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  .inner-main {
    padding-top: 20px;
    padding-bottom: 56px;
  }

  .page-title {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.25;
  }

  .breadcrumb {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .page-header {
    margin-bottom: 20px;
  }

  /* 首页 */
  .hero-band {
    padding: 20px 0 20px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-info h1 {
    font-size: clamp(26px, 7vw, 34px);
    margin-bottom: 12px;
  }

  .hero-lead {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .hero-actions {
    margin-bottom: 20px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 16px;
  }

  .fact-item dt {
    font-size: 11px;
  }

  .fact-item dd {
    font-size: 16px;
  }

  .hero-scroll-hint {
    font-size: 11px;
    margin-top: 16px;
  }

  .update-strip {
    padding: 32px var(--pad) 28px;
  }

  .strip-track {
    grid-auto-columns: 160px;
    gap: 12px;
  }

  .strip-hint {
    font-size: 11px;
  }

  .genre-glance,
  .week-summary,
  .editor-picks,
  .observation-board,
  .notes-preview {
    padding: 28px var(--pad) 36px;
  }

  .genre-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-item {
    padding: 16px 14px 18px;
  }

  .genre-item:first-child {
    border-left: 1px solid var(--line);
  }

  .genre-item:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .genre-item:nth-child(even) {
    border-left: 0;
  }

  /* 周历摘要：改为两列堆叠 */
  .week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .week-cell {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px 10px 14px;
  }

  .week-cell:nth-child(2n) {
    border-right: 0;
  }

  .week-cell:nth-last-child(-n+1) {
    border-bottom: 0;
  }

  .week-cell:last-child {
    border-bottom: 0;
  }

  /* 观察榜 */
  .board-row {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 12px 4px;
  }

  .board-tag {
    grid-column: 2;
    font-size: 11px;
  }

  .board-reason {
    grid-column: 2;
    font-size: 12px;
  }

  .board-head {
    display: none;
  }

  .board-name {
    font-size: 14px;
  }

  /* 说明条 */
  .scope-inner {
    padding: 20px var(--pad);
  }

  .scope-link {
    width: 100%;
    justify-content: center;
  }

  /* 页脚 */
  .site-footer {
    padding-top: 32px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    padding-bottom: 24px;
  }

  .footer-brand-desc {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    padding: 16px var(--pad) 22px;
  }

  /* 内页标题区 */
  .page-title-block .page-lead,
  .page-lead {
    font-size: 14px;
  }

  /* 作品索引 */
  .filter-bar {
    padding: 14px 14px;
    margin-bottom: 28px;
  }

  .filter-row {
    flex-direction: column;
    gap: 6px;
  }

  .filter-label {
    min-width: 0;
  }

  .cover-wall-3,
  .cover-wall-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .wall-section {
    margin-bottom: 32px;
  }

  .order-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .order-no {
    font-size: 18px;
  }

  /* 题材图谱 */
  .page-title-area {
    margin-bottom: 24px;
    padding-bottom: 18px;
  }

  .genre-section {
    padding: 26px 0;
  }

  .genre-body .genre-name {
    font-size: 20px;
  }

  .reading-order-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .reading-order-num {
    font-size: 18px;
  }

  /* 更新日历 */
  .featured-week {
    padding-bottom: 24px;
    margin-bottom: 28px;
  }

  .week-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .week-col {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
  }

  .week-col:last-child {
    border-bottom: 0;
  }

  .week-col .week-day {
    display: inline;
    margin-right: 6px;
  }

  .week-col .week-date {
    display: inline;
    margin-bottom: 0;
  }

  .week-items {
    margin-top: 8px;
  }

  .week-items .week-item {
    padding: 6px 0;
  }

  .batch-table thead th,
  .batch-table tbody td {
    padding: 10px 10px;
    font-size: 12px;
  }

  /* 手记 */
  .note-article {
    padding: 20px 0;
  }

  .note-title {
    font-size: 16px;
  }

  .note-summary {
    font-size: 13px;
  }

  .method-item {
    padding: 14px 0;
  }

  .notes-entry {
    padding: 18px;
  }

  /* 投稿 */
  .content-section {
    margin-bottom: 32px;
  }

  .compare-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .compare-col {
    padding: 16px;
  }

  .standards-table thead th,
  .standards-table tbody td {
    padding: 10px 10px;
    font-size: 12px;
  }

  .flow-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
  }

  .flow-step-no {
    font-size: 18px;
  }

  .works-entry {
    padding: 16px;
  }

  .works-entry-link {
    width: 100%;
    justify-content: center;
  }

  /* 帮助 */
  .path-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 0;
  }

  .path-name {
    font-size: 14px;
    color: var(--accent);
  }

  .glossary-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 0;
  }

  .glossary-row dt {
    font-size: 13px;
    color: var(--accent);
  }

  .card-fields-figure {
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }

  .faq-question {
    font-size: 14px;
    min-height: 48px;
    padding: 12px 0;
  }

  .help-more-links {
    flex-direction: column;
  }

  .help-more-links a {
    justify-content: center;
  }

  /* 404 */
  .site-error .error-main {
    padding: 48px var(--pad) 56px;
  }

  .error-block h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .error-block {
    margin-bottom: 36px;
  }

  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  /* 相关链接 */
  .related-links {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
