/* ==========================================================================
   漫画台 dg2048.com — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base — 变量、重置、排版、全站骨架
   -------------------------------------------------------------------------- */

:root {
  --bg-page: #F4FAF9;
  --bg-card: #FFFFFF;
  --ink: #17302E;
  --ink-soft: #5B7473;
  --brand: #0F8F86;
  --brand-deep: #0B6A63;
  --accent-blue: #3B7DD8;
  --warn: #B87333;
  --line: #DCE9E7;
  --line-strong: #C3DAD7;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(23, 48, 46, 0.05);
  --shadow-hover: 0 4px 12px rgba(23, 48, 46, 0.09);
  --shell: 1180px;
  --reading: 760px;
  --aside-w: 300px;
  --gap-col: 32px;
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brand-deep);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* 全站骨架：页头 / 主区 / 页脚 容器宽度统一 */
.site-header,
.site-main,
.site-footer {
  width: 100%;
}

.header-inner,
.site-main,
.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-main {
  display: block;
  padding-top: 28px;
  padding-bottom: 56px;
}

.inner-main {
  padding-top: 22px;
}

/* 数字对齐：序号、章节号、表格数值 */
.rank-num,
.update-chapter,
.step-num,
.note-index,
.schedule-index,
.join-index,
.step-index,
.notice-index,
.timeline-batch,
.param-table td,
.data-table td {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   2. layout — 页头、导航、抽屉、通用双栏、页脚
   -------------------------------------------------------------------------- */

/* --- 页头 --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.1) blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 700;
}

.brand:hover {
  color: var(--brand-deep);
}

.brand-mark {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-sub {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 400;
}

/* --- 主导航：两组场景 --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.site-nav .nav-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-group-creator {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.site-nav .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}

.site-nav .nav-link:hover {
  color: var(--brand-deep);
  background-color: #EAF5F3;
}

.site-nav .nav-group-creator .nav-link:hover {
  color: #2A5FA8;
  background-color: #EDF3FC;
}

.site-nav .nav-link.is-current {
  color: var(--brand-deep);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 0 var(--brand);
}

.site-nav .nav-group-creator .nav-link.is-current {
  color: #2A5FA8;
  box-shadow: inset 0 -2px 0 0 var(--accent-blue);
}

/* --- 汉堡按钮 --- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--ink);
}

/* --- 移动抽屉 --- */
.mobile-drawer {
  border-top: 1px solid var(--line);
  background-color: var(--bg-card);
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer nav {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 24px 20px;
}

.drawer-group-title {
  margin: 12px 0 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.drawer-list {
  display: flex;
  flex-direction: column;
}

.drawer-list li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
}

.drawer-list li a:hover {
  color: var(--brand-deep);
}

/* --- 通用双栏：主内容在前，aside 在后 --- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside-w);
  gap: var(--gap-col);
  align-items: start;
}

.page-layout.layout-main,
.page-layout.content-column,
.page-layout.content-main {
  min-width: 0;
}

.layout-main,
.content-column,
.content-main {
  min-width: 0;
}

.layout-aside,
.side-column,
.content-aside {
  min-width: 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--brand-deep);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页标题区 */
.page-header {
  margin-bottom: 18px;
}

.page-title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.page-head {
  margin-bottom: 22px;
}

.page-lead,
.page-description {
  max-width: var(--reading);
  color: var(--ink-soft);
  font-size: 15.5px;
}

.page-note {
  margin-top: 10px;
  max-width: var(--reading);
  padding-left: 12px;
  border-left: 3px solid var(--warn);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* 提示条 */
.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.notice-mark,
.notice-index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: #FBF0E4;
  color: var(--warn);
  font-size: 12px;
  font-weight: 600;
}

.notice-bar a {
  color: var(--brand);
}

/* 通用 section 间距 */
.section,
.genre-section,
.gallery-section,
.related-section,
.topic-method,
.topic-list,
.archive-timeline,
.topic-routes,
.related-entry,
.section-notes,
.section-craft,
.section-next,
.params-section,
.compare-section,
.discuss-section,
.diff-section,
.prepare-checklist,
.layout-sample,
.format-list,
.submit-flow,
.faq-section,
.related-links,
.schedule-section,
.rules-section,
.join-section {
  margin-top: 40px;
}

.section-head {
  margin-bottom: 16px;
}

.genre-section > h2,
.gallery-section > h2,
.related-section > h2,
.topic-method > h2,
.topic-list > h2,
.archive-timeline > h2,
.topic-routes > h2,
.related-entry > h2,
.section-notes h2,
.section-craft h2,
.section-next h2,
.params-section h2,
.compare-section h2,
.discuss-section h2,
.diff-section h2,
.prepare-checklist h2,
.layout-sample h2,
.format-list h2,
.submit-flow h2,
.faq-section h2,
.related-links h2,
.schedule-section h2,
.rules-section h2,
.join-section h2,
.creation-line > h2,
.feature-topics > h2,
.site-notes > h2,
.layout-main > h2,
.layout-aside > h2 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
}

.section-lead,
.section-intro,
.section-desc,
.archive-lead {
  max-width: var(--reading);
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

.section-foot {
  margin-top: 16px;
  font-size: 14.5px;
}

/* --------------------------------------------------------------------------
   3. components — 卡片、标签、榜单、表格、列表、页脚
   -------------------------------------------------------------------------- */

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
}

.tag-genre {
  background-color: #E8F4F2;
  color: var(--brand-deep);
}

.tag-status {
  background-color: #EDF3FC;
  color: #2A5FA8;
}

.tag-progress {
  background-color: #FBF0E4;
  color: var(--warn);
}

/* 题材索引（首页 / 作品展台） */
.genre-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.genre-index .genre-link,
.genre-index-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  color: var(--ink);
  font-size: 14px;
}

.genre-index .genre-link:hover,
.genre-index-list a:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.genre-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 题材说明（首页） */
.genre-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.genre-note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.genre-note h3 {
  font-size: 16px;
}

.genre-note p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* 最近更新（首页 aside） */
.update-list {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow: hidden;
}

.update-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.update-row:last-child {
  border-bottom: 0;
}

.update-name {
  color: var(--ink);
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-name:hover {
  color: var(--brand-deep);
}

.update-chapter {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.update-status {
  padding: 0 6px;
  border-radius: 4px;
  background-color: #E8F4F2;
  color: var(--brand-deep);
  font-size: 12px;
  line-height: 20px;
}

.aside-foot {
  margin-top: 12px;
  font-size: 14px;
}

/* 封面卡（首页封面墙 / 作品展台题材区块） */
.cover-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.cover-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cover-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.cover-link {
  display: block;
  color: inherit;
}

.cover-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #EAF3F1;
}

.cover-img,
.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-title {
  padding: 10px 12px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.cover-meta,
.cover-progress {
  padding: 4px 12px 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.cover-progress {
  padding-bottom: 12px;
  font-weight: 600;
}

.cover-card .tag {
  margin: 8px 12px 0;
}

/* 榜单（首页 aside） */
.rank-block {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.rank-block:first-of-type {
  margin-top: 14px;
}

.rank-heading {
  font-size: 16px;
  font-weight: 600;
}

.rank-list {
  margin-top: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rank-num {
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.rank-name {
  color: var(--ink);
  font-size: 14.5px;
}

.rank-name:hover {
  color: var(--brand-deep);
}

.rank-note {
  grid-column: 2;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* 步骤纵线（首页创作纵线 / 内页流程） */
.step-line,
.flow-steps,
.join-steps {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  counter-reset: none;
}

.step-line {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-item,
.flow-step,
.join-step {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.step-num,
.step-index,
.join-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #E8F4F2;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
}

.step-title,
.join-title {
  margin-top: 10px;
  font-size: 16px;
}

.step-desc,
.join-desc {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.step-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 8px;
  font-size: 14px;
}

/* 专题卡（首页三卡 / 追更专题五卡） */
.topic-cards {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.feature-topics .topic-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.topic-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.topic-img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background-color: #EAF3F1;
}

.topic-name {
  padding: 12px 14px 0;
  font-size: 16px;
}

.topic-name a {
  color: var(--ink);
}

.topic-name a:hover {
  color: var(--brand-deep);
}

.topic-genre {
  padding: 8px 14px 0;
}

.topic-desc {
  padding: 8px 14px 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* 站内说明（首页） */
.note-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.site-notes .note-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.note-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: #E8F4F2;
  color: var(--brand-deep);
  font-size: 12.5px;
  font-weight: 600;
}

.note-item p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* 语义表格 */
.table-scroll {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}

.param-table,
.data-table {
  min-width: 640px;
}

.param-table caption,
.data-table caption {
  padding: 12px 14px;
  color: var(--ink-soft);
  font-size: 13.5px;
  text-align: left;
}

.param-table th,
.param-table td,
.data-table th,
.data-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.param-table thead th,
.data-table thead th {
  background-color: #EFF7F5;
  color: var(--brand-deep);
  font-weight: 600;
  white-space: nowrap;
}

.param-table tbody tr:hover,
.data-table tbody tr:hover {
  background-color: #F7FCFB;
}

.param-table td:first-child,
.data-table td:first-child {
  color: var(--ink);
  font-weight: 600;
}

/* 素材讨论条目 */
.discuss-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.discuss-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.discuss-item h3 {
  font-size: 16px;
}

.discuss-item > p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.discuss-scene {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin-top: 10px;
  padding: 0 8px;
  border-radius: 4px;
  background-color: #EDF3FC;
  color: #2A5FA8;
  font-size: 12.5px;
  line-height: 1;
}

/* 差异提示列表 */
.notice-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
}

.notice-item p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* 相关栏目入口 */
.related-list,
.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.related-list li a,
.next-links li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  color: var(--ink);
  font-size: 14.5px;
}

.related-list li a:hover,
.next-links li a:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.related-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.related-note {
  color: var(--ink-soft);
  font-size: 13px;
}

/* 侧栏区块 */
.side-block,
.aside-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.side-block + .side-block,
.aside-block + .aside-block {
  margin-top: 16px;
}

.side-title,
.aside-title {
  font-size: 16px;
  font-weight: 600;
}

.side-text,
.aside-text {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.side-link-list,
.aside-list {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.side-link-list li a,
.aside-list li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14.5px;
}

.side-link-list li:last-child a,
.aside-list li:last-child a {
  border-bottom: 0;
}

.side-link-list li a:hover,
.aside-list li a:hover {
  color: var(--brand-deep);
}

.side-step-list {
  margin-top: 10px;
}

.side-step-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.side-step-list li:last-child {
  border-bottom: 0;
}

/* --- 页脚 --- */
.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background-color: #FFFFFF;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--gap-col);
  padding-top: 32px;
  padding-bottom: 28px;
}

.footer-group-title {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.footer-group-title + .footer-list {
  margin-bottom: 18px;
}

.footer-list {
  display: flex;
  flex-direction: column;
}

.footer-list li a {
  display: flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-list li a:hover {
  color: var(--brand-deep);
}

.footer-brand {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.footer-desc {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.75;
}

.footer-copy {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   4. pages — 首页与内页业务模块
   -------------------------------------------------------------------------- */

/* --- 首页首屏 --- */
.hero {
  padding-bottom: 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 36px;
  align-items: center;
  min-height: 520px;
}

.hero-copy {
  max-width: 560px;
}

.hero-copy h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.3;
}

.hero-lead {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-weight: 600;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background-color: var(--brand);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--brand-deep);
  color: #FFFFFF;
}

.btn-secondary {
  border-color: var(--line-strong);
  background-color: var(--bg-card);
  color: var(--brand-deep);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 26px 0 0;
}

.hero-fact dt {
  color: var(--ink-soft);
  font-size: 12.5px;
}

.hero-fact dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
  color: var(--ink-soft);
  font-size: 13px;
}

/* 栏目索引带 */
.channel-strip {
  margin-top: 26px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.channel-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.channel-item:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.channel-note {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
}

/* 首页双栏段落间距 */
.home-main .page-layout {
  margin-top: 40px;
}

.home-main .page-layout + .page-layout {
  margin-top: 44px;
}

/* --- 作品展台 --- */
.genre-index[aria-label="题材索引"] {
  margin-top: 4px;
}

.genre-block {
  margin-top: 28px;
}

.genre-block h3 {
  font-size: 17px;
}

.genre-desc {
  max-width: var(--reading);
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.cover-grid .cover-card {
  display: flex;
  flex-direction: column;
}

.cover-grid .cover-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.cover-grid .cover-figure {
  aspect-ratio: 4 / 3;
}

.cover-grid .cover-title {
  padding: 12px 14px 0;
}

.cover-grid .cover-meta {
  padding: 6px 14px 0;
}

.cover-grid .cover-progress {
  padding: 6px 14px 14px;
}

/* 精选封面画廊 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  overflow: hidden;
  text-align: left;
}

.gallery-thumb:hover {
  border-color: var(--brand);
}

.gallery-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background-color: #EAF3F1;
}

.gallery-caption {
  display: block;
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 13px;
}

.gallery-hint {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13.5px;
}

/* --- 追更专题 --- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.method-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.method-item h3 {
  font-size: 16px;
}

.method-item p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.topic-list .topic-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.topic-card-media {
  overflow: hidden;
  background-color: #EAF3F1;
}

.topic-card-media img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.topic-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}

.topic-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background-color: #EDF3FC;
  color: #2A5FA8;
  font-size: 12.5px;
  line-height: 1;
}

.topic-card-title {
  font-size: 16px;
}

.topic-card-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* 归档时间线 */
.timeline-list {
  position: relative;
  margin-top: 16px;
  padding-left: 20px;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 18px 4px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -27px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background-color: var(--bg-page);
}

.timeline-batch {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background-color: #E8F4F2;
  color: var(--brand-deep);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
}

.timeline-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-left: 8px;
  font-size: 15px;
  font-weight: 600;
}

.timeline-desc {
  margin-top: 4px;
  max-width: var(--reading);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* 追更路线建议 */
.route-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.route-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.route-item h3 {
  font-size: 16px;
}

.route-item p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* 专题页相关入口 */
.related-entry .related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-entry .related-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  color: var(--ink);
  font-size: 15px;
}

.related-entry .related-item a:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

/* --- 创作手记 --- */
.section-notes .note-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.section-notes .note-item {
  align-items: flex-start;
}

.note-body {
  min-width: 0;
}

.note-title {
  font-size: 16px;
  line-height: 1.45;
}

.note-summary {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.note-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 6px;
  font-size: 14px;
}

.craft-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-col);
  align-items: start;
  margin-top: 16px;
}

.craft-text h3 {
  font-size: 16px;
}

.craft-text h3 + p {
  margin-top: 6px;
}

.craft-text p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.craft-text h3:not(:first-child) {
  margin-top: 18px;
}

.craft-figures {
  display: grid;
  gap: 16px;
}

.craft-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow: hidden;
}

.craft-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background-color: #EAF3F1;
}

.craft-figure figcaption {
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.section-next .next-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.section-next .next-links li a {
  justify-content: center;
  min-height: 46px;
}

/* --- 画风与素材 --- */
.compare-figure {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.figure-large {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow: hidden;
}

.figure-large img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background-color: #EAF3F1;
}

.figure-large figcaption {
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* --- 连载企划 --- */
.section-figure {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow: hidden;
}

.section-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background-color: #EAF3F1;
}

.section-figure figcaption {
  padding: 10px 14px;
  color: var(--ink-soft);
  font-size: 13px;
}

.schedule-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.schedule-step {
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.schedule-step:nth-child(2) {
  border-top-color: var(--accent-blue);
}

.schedule-step:nth-child(3) {
  border-top-color: var(--warn);
}

.schedule-step:nth-child(4) {
  border-top-color: var(--line-strong);
}

.schedule-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #E8F4F2;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
}

.schedule-title {
  margin-top: 10px;
  font-size: 16px;
}

.schedule-desc {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* --- 投稿指南 --- */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.checklist-group {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.checklist-group h3 {
  font-size: 16px;
}

.check-list {
  margin-top: 10px;
}

.check-list li {
  position: relative;
  padding: 6px 0 6px 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 2px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--brand);
  border-radius: 2px;
}

.sample-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-col);
  align-items: start;
  margin-top: 16px;
}

.sample-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow: hidden;
}

.sample-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background-color: #EAF3F1;
}

.sample-figure figcaption {
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.sample-text p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.sample-text p + p {
  margin-top: 12px;
}

.format-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.format-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.format-item h3 {
  font-size: 15.5px;
}

.format-item p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.submit-flow .flow-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* FAQ 折叠 */
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  padding-left: 12px;
  color: var(--brand);
  font-size: 18px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 16px 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* --- 404 --- */
.error-main {
  padding-top: 40px;
  padding-bottom: 64px;
}

.error-block {
  max-width: 640px;
}

.error-code {
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.error-block h1 {
  margin-top: 8px;
  font-size: clamp(26px, 3.4vw, 34px);
}

.error-desc {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.75;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  color: var(--ink);
  font-size: 15px;
}

.error-btn:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.error-hint {
  margin-top: 40px;
}

.error-hint h2 {
  font-size: clamp(20px, 2.2vw, 24px);
}

.error-hint-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.error-hint-list li a,
.error-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  color: var(--ink);
  font-size: 14.5px;
}

.error-hint-list li a:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

/* --------------------------------------------------------------------------
   5. responsive — 1024 / 760 / 480
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .layout-aside,
  .side-column,
  .content-aside {
    width: 100%;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    min-height: 0;
    padding-top: 8px;
  }

  .hero-media img {
    height: 320px;
  }

  .channel-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .genre-notes,
  .route-list,
  .checklist-grid,
  .format-items,
  .step-line,
  .submit-flow .flow-steps,
  .schedule-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-list .topic-cards,
  .feature-topics .topic-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-notes .note-list,
  .craft-layout,
  .sample-body,
  .compare-figure,
  .method-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-next .next-links,
  .error-hint-list,
  .related-entry .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .site-main,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-main {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-media img {
    height: 240px;
  }

  .channel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-wall,
  .cover-grid,
  .gallery-grid,
  .genre-notes,
  .route-list,
  .checklist-grid,
  .format-items,
  .step-line,
  .submit-flow .flow-steps,
  .schedule-track,
  .topic-list .topic-cards,
  .feature-topics .topic-cards,
  .section-next .next-links,
  .error-hint-list,
  .related-entry .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-thumb img {
    height: 200px;
  }

  .topic-img,
  .topic-card-media img {
    height: 180px;
  }

  .craft-figure img,
  .figure-large img,
  .sample-figure img,
  .section-figure img {
    height: 200px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .footer-list li a {
    min-height: 44px;
  }

  .related-list li a,
  .next-links li a,
  .error-btn,
  .error-hint-list li a,
  .btn {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .channel-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-facts {
    gap: 16px;
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 4px;
  }

  .update-status {
    grid-column: 2;
    justify-self: end;
  }

  .rank-row {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .timeline-list {
    padding-left: 16px;
  }

  .timeline-item::before {
    left: -23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cover-card,
  .topic-card,
  a,
  .btn {
    transition: none;
  }

  .cover-card:hover,
  .topic-card:hover {
    transform: none;
  }
}
