/* ============================================================
   抖漫官网 · 全站样式表
   数字出版风 · 暖白纸底 · 墨色正文 · 期号红强调
   ============================================================ */

/* ============================================================
   Base · 基础变量、重置、字体与通用元素
   ============================================================ */
:root {
  --paper: #faf6ef;
  --ink: #22201d;
  --issue-red: #a33327;
  --guide-blue: #3f5f7a;
  --muted-gray: #8a8174;
  --card-bg: #f0e8dc;
  --border-line: #e0d6c6;
  --white: #ffffff;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --container-width: 1080px;
  --radius: 8px;
  --transition: 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--guide-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--issue-red);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

p {
  margin-bottom: 0.5em;
}

/* 通用文本链接（带箭头） */
.text-link {
  display: inline-block;
  font-weight: 600;
  color: var(--guide-blue);
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.text-link:hover {
  color: var(--issue-red);
  border-bottom-color: var(--issue-red);
}

.text-link::after {
  content: " →";
  font-weight: 400;
}

/* 期号标记 */
.issue-tag,
.topic-issue {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--issue-red);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* 区块标题通用 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background-color: var(--issue-red);
  margin-top: 8px;
}

.section-lead,
.section-desc,
.section-intro {
  color: var(--muted-gray);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ============================================================
   Layout · 全站布局骨架：页头、主容器、页脚
   ============================================================ */

/* 页头 */
.site-header {
  background-color: var(--paper);
  border-bottom: 1px solid var(--border-line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.brand-name::after {
  content: "官网";
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-gray);
  margin-left: 4px;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-list li a:hover {
  color: var(--issue-red);
  border-bottom-color: var(--issue-red);
}

.nav-list li a.is-current {
  color: var(--issue-red);
  font-weight: 700;
  border-bottom-color: var(--issue-red);
}

/* 主容器 */
.site-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.home-main {
  padding-top: 0;
}

.inner-main {
  padding-top: 24px;
  padding-bottom: 60px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-gray);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--guide-blue);
}

.breadcrumb a:hover {
  color: var(--issue-red);
}

.breadcrumb-sep {
  color: var(--muted-gray);
  font-size: 12px;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 内页标题区 */
.page-header {
  border-bottom: 2px solid var(--issue-red);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.page-description {
  font-size: 15px;
  color: var(--muted-gray);
  max-width: 640px;
}

/* 页脚 */
.site-footer {
  background-color: #efe8dc;
  border-top: 1px solid var(--border-line);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.7;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--ink);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--issue-red);
}

.lang-status {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-tip {
  font-size: 13px;
  color: var(--muted-gray);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border-line);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted-gray);
  margin: 0;
}

/* 相关内容链接（内页底部） */
.related-links {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.related-links-item {
  font-size: 14px;
  color: var(--guide-blue);
  padding: 4px 0;
}

.related-links-item:hover {
  color: var(--issue-red);
}

/* ============================================================
   Components · 通用组件：封面卡、标签、条目、步骤、入口卡
   ============================================================ */

/* 封面卡（首页专题焦点 / 专题页） */
.topic-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-line);
  transition: transform var(--transition), box-shadow var(--transition);
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(34, 32, 29, 0.08);
}

.topic-card img,
.topic-card figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.topic-info {
  padding: 16px;
}

.topic-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 6px 0;
}

.topic-info p {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.6;
  margin-bottom: 8px;
}

.progress-mark {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--guide-blue);
  background-color: rgba(63, 95, 122, 0.1);
  padding: 2px 10px;
  border-radius: 20px;
}

.topic-info a {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* 封面卡（专题页变体） */
.topic-cover {
  overflow: hidden;
}

.topic-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition);
}

.topic-card:hover .topic-cover img {
  transform: scale(1.02);
}

.topic-name {
  font-size: 17px;
  font-weight: 700;
  margin: 6px 0 4px;
}

.topic-note {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.6;
  margin-bottom: 8px;
}

.topic-progress {
  font-size: 13px;
  color: var(--guide-blue);
  font-weight: 600;
}

/* 题材标签 */
.tag-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: background-color var(--transition), transform var(--transition);
}

.tag-item:hover {
  background-color: #e8dfd0;
  transform: translateY(-2px);
}

.tag-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.tag-desc {
  font-size: 13px;
  color: var(--muted-gray);
}

/* 更新动态条目 */
.update-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-line);
}

.update-list li:last-child {
  border-bottom: none;
}

.update-type {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--issue-red);
  background-color: rgba(163, 51, 39, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.update-list li a {
  font-size: 14px;
  color: var(--ink);
  flex: 1;
}

.update-list li a:hover {
  color: var(--issue-red);
}

/* 排行条目 */
.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-line);
}

.rank-list li:last-child {
  border-bottom: none;
}

.rank-list li::before {
  content: attr(data-rank);
  display: none;
}

.rank-list li a {
  font-size: 14px;
  color: var(--ink);
}

.rank-list li a:hover {
  color: var(--issue-red);
}

/* 步骤条（首页阅读路径） */
.step-item {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-line);
  position: relative;
}

.step-num {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--issue-red);
  margin-bottom: 8px;
}

.step-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.6;
  margin-bottom: 8px;
}

.step-item a {
  font-size: 13px;
  font-weight: 600;
}

/* 入口卡（首页规则/反馈、更新页） */
.entry-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(34, 32, 29, 0.06);
}

.entry-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.entry-card p {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* 卡片通用图片约束 */
figure img {
  background-color: var(--card-bg);
}

/* ============================================================
   Pages · 首页
   ============================================================ */

/* 杂志目录首屏 */
.hero-magazine {
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--border-line);
}

.magazine-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.current-cover {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-line);
}

.cover-figure {
  overflow: hidden;
}

.cover-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cover-caption {
  padding: 20px 24px 24px;
}

.cover-caption .issue-tag {
  margin-bottom: 8px;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-lead {
  font-size: 15px;
  color: var(--muted-gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* 栏目目录 */
.section-directory {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 24px;
}

.directory-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--issue-red);
}

.directory-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-line);
}

.directory-list li:last-child {
  border-bottom: none;
}

.directory-list li a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}

.directory-list li a:hover {
  color: var(--issue-red);
}

.directory-desc {
  font-size: 13px;
  color: var(--muted-gray);
  line-height: 1.5;
  margin: 0;
}

/* 题材分类速览 */
.category-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-line);
}

.tag-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* 封面专题焦点 */
.feature-topic {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-line);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-card-main {
  grid-column: span 1;
}

/* 最近更新与排行双栏 */
.updates-rank {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-line);
}

.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.two-column-layout .col-updates h3,
.two-column-layout .col-rank h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--issue-red);
}

.col-updates .text-link,
.col-rank .text-link {
  margin-top: 12px;
}

/* 阅读路径步骤条 */
.reading-steps {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-line);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 规则与反馈入口 */
.rule-feedback {
  padding: 40px 0;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ============================================================
   Pages · 封面专题页 dm/zhuanti.html
   ============================================================ */

.topic-list {
  margin-bottom: 40px;
}

.topic-list .topic-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-list .topic-card {
  background-color: var(--card-bg);
}

.progress-note {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 8px;
}

.progress-note .section-title {
  font-size: 20px;
}

.progress-note p {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ============================================================
   Pages · 题材分类页 dm/fenlei.html
   ============================================================ */

.category-grid {
  margin-bottom: 32px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(34, 32, 29, 0.06);
}

.category-cover {
  overflow: hidden;
}

.category-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.category-info {
  padding: 14px 16px 16px;
}

.category-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-desc {
  font-size: 13px;
  color: var(--muted-gray);
  line-height: 1.6;
  margin-bottom: 8px;
}

.category-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--guide-blue);
}

.category-link:hover {
  color: var(--issue-red);
}

/* 题材选择建议侧栏 */
.suggestion {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 8px;
}

.suggestion-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--issue-red);
}

.suggestion-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-line);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-heading {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.suggestion-item p {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   Pages · 阅读排行页 dm/paihang.html
   ============================================================ */

.hot-category {
  margin-bottom: 40px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background-color: var(--issue-red);
  margin-top: 8px;
}

.section-desc {
  font-size: 14px;
  color: var(--muted-gray);
  margin-top: 8px;
}

/* 热门题材榜 */
.rank-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border-line);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--issue-red);
  background-color: rgba(163, 51, 39, 0.08);
  border-radius: 4px;
}

.rank-content {
  flex: 1;
}

.rank-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.rank-audience {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.6;
  margin-bottom: 6px;
}

.rank-link {
  font-size: 13px;
  font-weight: 600;
}

/* 专题热度参考 */
.hot-topic {
  margin-bottom: 40px;
}

.topic-rank-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.topic-rank-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.topic-rank-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(34, 32, 29, 0.06);
}

.topic-rank-card .topic-cover img {
  aspect-ratio: 1 / 1;
}

.topic-card-body {
  padding: 12px 14px 14px;
}

.topic-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.topic-progress {
  font-size: 12px;
  color: var(--guide-blue);
  font-weight: 600;
  margin-bottom: 6px;
}

.topic-desc {
  font-size: 13px;
  color: var(--muted-gray);
  line-height: 1.6;
  margin-bottom: 6px;
}

.topic-link {
  font-size: 13px;
  font-weight: 600;
}

/* 追更清单说明 */
.tracking-note {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 8px;
}

.tracking-note-inner h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tracking-note-inner h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background-color: var(--issue-red);
  margin-top: 8px;
}

.tracking-note-inner p {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ============================================================
   Pages · 更新动态页 dm/gengxin.html
   ============================================================ */

.update-types {
  margin-bottom: 40px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head .section-title {
  margin-bottom: 0;
}

.section-intro {
  font-size: 14px;
  color: var(--muted-gray);
  margin-top: 8px;
}

.update-type-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.update-type-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.update-type-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(34, 32, 29, 0.06);
}

.update-type-media {
  overflow: hidden;
}

.update-type-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.update-type-body {
  padding: 16px;
}

.update-type-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.update-type-desc {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.7;
  margin-bottom: 8px;
}

.update-type-desc a {
  font-weight: 600;
}

.update-type-note {
  font-size: 13px;
  color: var(--guide-blue);
  font-weight: 600;
}

/* 查看更新入口 */
.view-entry {
  margin-bottom: 8px;
}

.entry-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

.entry-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.entry-card-desc {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

.entry-card-link {
  font-size: 14px;
  font-weight: 600;
}

.entry-note {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.7;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid var(--border-line);
}

/* ============================================================
   Pages · 阅读指南页 dm/yuedu.html
   ============================================================ */

.reading-steps-section {
  margin-bottom: 40px;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(34, 32, 29, 0.06);
}

.step-number {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--issue-red);
  margin-bottom: 8px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-text {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.6;
  margin-bottom: 8px;
}

.step-link {
  font-size: 13px;
  font-weight: 600;
}

/* 进度说明与侧栏 */
.layout-shell {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 8px;
}

.progress-guide {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.progress-media {
  overflow: hidden;
}

.guide-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.progress-content {
  padding: 20px 24px 24px;
}

.progress-content .section-title {
  font-size: 20px;
}

.progress-content p {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* 阅读提示侧栏 */
.reading-tips {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 24px;
}

.aside-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--issue-red);
}

.tip-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px dashed var(--border-line);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}

.tip-list li:last-child {
  border-bottom: none;
}

.tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  background-color: var(--issue-red);
  border-radius: 50%;
}

.tips-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   Pages · 内容规则页 dm/guize.html
   ============================================================ */

.summary-section {
  margin-bottom: 40px;
}

.summary-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: center;
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 24px;
}

.summary-figure {
  overflow: hidden;
  border-radius: var(--radius);
}

.summary-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.summary-content .section-title {
  font-size: 20px;
}

.summary-content p {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* 详细条款 */
.terms-section {
  margin-bottom: 40px;
}

.terms-group {
  margin-bottom: 24px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.terms-group-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-line);
}

.terms-list li {
  position: relative;
  padding: 8px 0 8px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  border-bottom: 1px dashed var(--border-line);
}

.terms-list li:last-child {
  border-bottom: none;
}

.terms-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--issue-red);
  font-weight: 700;
}

/* 可展开条款 */
.terms-detail {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-top: 8px;
}

.terms-detail summary {
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 0;
}

.terms-detail summary:hover {
  color: var(--issue-red);
}

.detail-text {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.7;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px dashed var(--border-line);
}

/* 相关帮助 */
.help-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.help-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.help-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(34, 32, 29, 0.06);
}

.help-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.help-card-text {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

.help-card-link {
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   Pages · 问题反馈页 dm/fankui.html
   ============================================================ */

.feedback-types {
  margin-bottom: 40px;
}

.feedback-types > h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feedback-types > h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background-color: var(--issue-red);
  margin-top: 8px;
}

.feedback-types > p {
  font-size: 14px;
  color: var(--muted-gray);
  margin: 10px 0 24px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.type-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.type-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(34, 32, 29, 0.06);
}

.type-card-media {
  overflow: hidden;
}

.type-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.type-card h3 {
  font-size: 17px;
  font-weight: 700;
  padding: 16px 16px 0;
  margin-bottom: 6px;
}

.type-card > p {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.6;
  padding: 0 16px;
  margin-bottom: 8px;
}

.type-path {
  font-size: 13px;
  font-weight: 600;
  color: var(--guide-blue);
  padding: 0 16px 16px;
  margin: 0;
}

/* 处理流程 */
.process {
  margin-bottom: 40px;
}

.process > h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.process > h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background-color: var(--issue-red);
  margin-top: 8px;
}

.process > p {
  font-size: 14px;
  color: var(--muted-gray);
  margin: 10px 0 24px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-step {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 20px;
}

.process-step .step-number {
  display: block;
  margin-bottom: 8px;
}

.process-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.6;
  margin: 0;
}

.process-note {
  font-size: 14px;
  color: var(--muted-gray);
  line-height: 1.7;
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 20px;
}

/* 帮助入口 */
.help-entry {
  background-color: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 24px;
}

.help-entry h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.help-entry > p {
  font-size: 14px;
  color: var(--muted-gray);
  margin-bottom: 16px;
}

.help-links li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-line);
}

.help-links li:last-child {
  border-bottom: none;
}

.help-links li a {
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   Pages · 404 页面
   ============================================================ */

.error-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 80px 24px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-section {
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.error-code {
  font-family: "Courier New", Courier, monospace;
  font-size: 72px;
  font-weight: 800;
  color: var(--issue-red);
  line-height: 1;
  margin-bottom: 16px;
}

.error-section h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--muted-gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-home,
.btn-topic {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: background-color var(--transition), color var(--transition);
}

.btn-home {
  background-color: var(--issue-red);
  color: var(--white);
}

.btn-home:hover {
  background-color: #8a2b21;
  color: var(--white);
}

.btn-topic {
  background-color: var(--card-bg);
  color: var(--ink);
  border: 1px solid var(--border-line);
}

.btn-topic:hover {
  background-color: #e8dfd0;
  color: var(--ink);
}

.error-help {
  font-size: 14px;
  color: var(--muted-gray);
}

.error-help a {
  font-weight: 600;
}

/* ============================================================
   Responsive · 响应式断点（768px 移动端）
   ============================================================ */

@media (max-width: 768px) {
  /* 布局骨架 */
  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .site-main {
    padding: 0 16px;
  }

  .inner-main {
    padding-top: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 16px 20px;
  }

  /* 移动端导航 */
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: var(--paper);
    border-bottom: 1px solid var(--border-line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    box-shadow: 0 4px 12px rgba(34, 32, 29, 0.06);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-line);
    font-size: 15px;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav-list li a.is-current {
    border-bottom-color: var(--issue-red);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* 首页 */
  .magazine-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-magazine {
    padding: 24px 0 32px;
  }

  .tag-list {
    grid-template-columns: 1fr 1fr;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  /* 内页通用 */
  .breadcrumb {
    margin-bottom: 16px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  /* 专题页 */
  .topic-list .topic-grid {
    grid-template-columns: 1fr;
  }

  /* 分类页 */
  .category-list {
    grid-template-columns: 1fr 1fr;
  }

  /* 排行页 */
  .topic-rank-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rank-item {
    flex-direction: row;
  }

  /* 更新页 */
  .update-type-list {
    grid-template-columns: 1fr;
  }

  .entry-card-grid {
    grid-template-columns: 1fr;
  }

  /* 指南页 */
  .steps-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .layout-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* 规则页 */
  .summary-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .help-cards {
    grid-template-columns: 1fr;
  }

  /* 反馈页 */
  .type-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 404 */
  .error-main {
    padding: 48px 16px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-home,
  .btn-topic {
    width: 100%;
    max-width: 240px;
    text-align: center;
  }
}

/* 超小屏幕（390px）额外保护 */
@media (max-width: 420px) {
  .tag-list {
    grid-template-columns: 1fr;
  }

  .category-list {
    grid-template-columns: 1fr;
  }

  .topic-rank-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .brand-name {
    font-size: 20px;
  }
}
