/* ==========================================================================
   香香漫画 · 整站样式表
   设计方向：低饱和多彩 · 米白纸感 · 摄影册式留白
   色彩令牌：
     --paper:      #F7F3EC  米白纸感底色
     --ink:        #262F33  墨青正文色
     --line-blue:  #DCE3E4  蓝灰标题线
     --tag-green:  #E0E5D9  绿灰标签底
     --tag-orange: #F0E0D3  橙灰角标底
     --line-purple:#E0DEEE  紫灰作者区线
     --accent:     #C97B57  弱强调色（仅关键焦点与 CTA）
   ========================================================================== */

/* ==========================================================================
   1. Base —— 重置、字体、色彩、通用元素
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #262F33;
  background-color: #F7F3EC;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: #262F33;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #C97B57;
}

a:focus-visible {
  outline: 2px solid #C97B57;
  outline-offset: 2px;
  border-radius: 2px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.4;
  font-weight: 600;
}

h1 {
  font-size: 1.875rem; /* 30px */
}

h2 {
  font-size: 1.375rem; /* 22px */
}

h3 {
  font-size: 1.125rem; /* 18px */
}

small {
  font-size: 0.875em;
}

/* 数字与编号：等宽数字，便于期次与排名对齐 */
.timeline-index,
.pick-number,
.path-number,
.issue-label,
.footer-columns .footer-note {
  font-variant-numeric: tabular-nums;
}

/* 隐藏但可被读屏器识别的文本 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   2. Layout —— 全站骨架、页头、页脚、通用容器
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #F7F3EC;
}

.site-header {
  background-color: #F7F3EC;
  border-bottom: 1px solid #DCE3E4;
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand a {
  color: #262F33;
  text-decoration: none;
}

.brand a:hover {
  color: #C97B57;
}

/* 桌面主导航 */
.site-nav .nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
}

.site-nav .nav-list a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #3F4A4E;
  border-radius: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav .nav-list a:hover {
  color: #262F33;
  border-bottom-color: #C97B57;
}

.site-nav .nav-list a.is-current {
  color: #262F33;
  font-weight: 600;
  border-bottom-color: #C97B57;
}

/* 移动端汉堡按钮，桌面隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid #DCE3E4;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #262F33;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 主内容区 */
.site-main {
  flex: 1;
  width: 100%;
}

.site-main.home-main {
  background-color: #F7F3EC;
}

/* 内页统一骨架 */
.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 4px;
  font-size: 0.875rem;
  color: #5A666B;
}

.breadcrumb a {
  color: #5A666B;
}

.breadcrumb a:hover {
  color: #C97B57;
}

.breadcrumb-sep {
  color: #A9B2B5;
}

.breadcrumb-current {
  color: #262F33;
  font-weight: 500;
}

/* 内页统一标题区 */
.page-header {
  padding: 12px 0 28px;
}

.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #262F33;
  margin-bottom: 6px;
}

.page-description {
  font-size: 1rem;
  color: #5A666B;
  margin: 0;
  max-width: 720px;
  line-height: 1.8;
}

/* 页脚 */
.site-footer {
  background-color: #262F33;
  color: #DCE3E4;
  margin-top: 72px;
}

.site-footer .footer-columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-column .footer-heading {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-brand {
  font-size: 1.375rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: #A9B2B5;
  line-height: 1.7;
  margin: 0;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-column ul a {
  color: #DCE3E4;
  font-size: 0.9375rem;
}

.footer-column ul a:hover {
  color: #C97B57;
}

.footer-note {
  font-size: 0.875rem;
  color: #A9B2B5;
  line-height: 1.7;
  margin: 0;
}

/* 页脚版权行 */
.copyright {
  border-top: 1px solid #3F4A4E;
  padding: 16px 24px 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: #8A969B;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   3. Components —— 按钮、标签、卡片、列表等共用组件
   ========================================================================== */

/* 主按钮 / 次按钮 */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: #C97B57;
  color: #FFFFFF;
  border: 1px solid #C97B57;
}

.btn-primary:hover {
  background-color: #B56A47;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: #262F33;
  border: 1px solid #A9B2B5;
}

.btn-secondary:hover {
  border-color: #C97B57;
  color: #C97B57;
  transform: translateY(-1px);
}

/* 文字链接按钮 */
.btn-text {
  display: inline-block;
  padding: 8px 0;
  color: #C97B57;
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.btn-text:hover {
  color: #B56A47;
  border-bottom-color: #C97B57;
}

.text-link {
  display: inline-block;
  color: #C97B57;
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  color: #B56A47;
  border-bottom-color: #C97B57;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 4px;
  font-size: 0.8125rem;
  line-height: 1.6;
  background-color: #E0E5D9;
  color: #3F4A4E;
  white-space: nowrap;
}

.topic-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8125rem;
  background-color: #E0E5D9;
  color: #3F4A4E;
}

.topic-tag.small {
  font-size: 0.75rem;
  padding: 2px 10px;
}

/* 封面卡通用 */
.showcase-card,
.featured-card,
.topic-mini-card,
.topic-grid-card,
.topic-vertical-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(38, 47, 51, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-card:hover,
.featured-card:hover,
.topic-mini-card:hover,
.topic-grid-card:hover,
.topic-vertical-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(38, 47, 51, 0.12);
}

.showcase-card figure,
.topic-mini-card figure,
.topic-grid-card figure,
.topic-vertical-card figure {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #E0E5D9;
}

.showcase-card img,
.topic-mini-card img,
.topic-grid-card img,
.topic-vertical-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-body .tag {
  margin-bottom: 8px;
}

.card-body h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
  line-height: 1.5;
}

.card-body p {
  font-size: 0.875rem;
  color: #5A666B;
  margin-bottom: 0;
  line-height: 1.7;
}

/* 通用 section 标题区 */
.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 1.5rem;
  position: relative;
  padding-left: 16px;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 4px;
  height: 1.1em;
  background-color: #C97B57;
  border-radius: 2px;
}

.section-heading p {
  color: #5A666B;
  font-size: 0.9375rem;
  margin: 8px 0 0 16px;
}

.section-title {
  font-size: 1.375rem;
  margin-bottom: 16px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 4px;
  height: 1em;
  background-color: #C97B57;
  border-radius: 2px;
}

/* 区块通用标题（专题策划页） */
.topic-section-title {
  font-size: 1.375rem;
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
}

.topic-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 4px;
  height: 1em;
  background-color: #C97B57;
  border-radius: 2px;
}

/* 底部相关链接 */
.related-links {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 20px 24px;
  border-top: 1px solid #DCE3E4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.related-links-label {
  font-size: 0.875rem;
  color: #5A666B;
  font-weight: 600;
}

.related-links-item {
  font-size: 0.875rem;
  color: #5A666B;
  border-bottom: 1px solid transparent;
}

.related-links-item:hover {
  color: #C97B57;
  border-bottom-color: #C97B57;
}

/* ==========================================================================
   4. Pages —— 首页
   ========================================================================== */

/* 首页首屏：站台标题区 */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 40px;
  align-items: end;
}

.hero-copy h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-copy .slogan {
  font-size: 1.1875rem;
  color: #C97B57;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-copy .hero-description {
  color: #5A666B;
  max-width: 640px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 首页第一屏工具区：左标签 / 中焦点 / 右更新 */
.home-toolbox {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px 32px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

/* 左列：题材定向 */
.topic-orientation {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #E0E5D9;
}

.topic-orientation h2 {
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.topic-tag-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-tag-list li a {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #3F4A4E;
  background-color: #F0F2F0;
  border-left: 3px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.topic-tag-list li a:hover {
  background-color: #E0E5D9;
  border-left-color: #C97B57;
}

/* 中列：本期焦点大卡 */
.featured-issue {
  min-width: 0;
}

.featured-card-link {
  display: block;
  height: 100%;
}

.featured-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #DCE3E4;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-info {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.issue-label {
  display: inline-block;
  font-size: 0.8125rem;
  color: #C97B57;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured-info h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.featured-summary {
  font-size: 0.9375rem;
  color: #5A666B;
  margin-bottom: 12px;
}

.cta-text {
  display: inline-block;
  color: #C97B57;
  font-size: 0.9375rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
}

.featured-card-link:hover .cta-text {
  border-bottom-color: #C97B57;
}

/* 右列：最近更新 */
.recent-updates {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #DCE3E4;
}

.recent-updates h2 {
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-list li {
  padding: 12px 0;
  border-bottom: 1px solid #F0F2F0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.update-list li:last-child {
  border-bottom: none;
}

.update-type {
  font-size: 0.75rem;
  color: #8A969B;
}

.update-list a {
  font-size: 0.9375rem;
  color: #262F33;
  line-height: 1.5;
}

.update-list a:hover {
  color: #C97B57;
}

/* 首页：题材专题精选墙 */
.topic-showcase {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.showcase-card {
  display: flex;
  flex-direction: column;
}

.showcase-card figure {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #E0E5D9;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-card .card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.showcase-card h3 {
  font-size: 1rem;
  line-height: 1.5;
}

.showcase-card .card-body .tag {
  align-self: flex-start;
}

.showcase-card .card-body p {
  font-size: 0.875rem;
  color: #5A666B;
  margin: 0;
}

/* 首页：编辑精选榜 */
.editor-picks {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.picks-heading-wrapper {
  margin-bottom: 24px;
}

.picks-heading-wrapper h2 {
  font-size: 1.5rem;
  position: relative;
  padding-left: 16px;
}

.picks-heading-wrapper h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 4px;
  height: 1.1em;
  background-color: #C97B57;
}

.picks-heading-wrapper p {
  color: #5A666B;
  margin: 8px 0 0 16px;
}

.picks-list {
  display: flex;
  flex-direction: column;
}

.picks-list li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #DCE3E4;
}

.picks-list li:last-child {
  border-bottom: none;
}

.pick-number {
  font-size: 2rem;
  font-weight: 700;
  color: #DCE3E4;
  line-height: 1;
  min-width: 48px;
}

.pick-content h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.pick-content p {
  color: #5A666B;
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.pick-content a {
  color: #C97B57;
  font-size: 0.875rem;
  font-weight: 500;
}

.pick-content a:hover {
  color: #B56A47;
}

/* 首页：栏目导览带 */
.channel-guide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.channel-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  border-top: 3px solid;
  border-top-color: #DCE3E4;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:nth-child(1) {
  border-top-color: #DCE3E4;
}

.channel-card:nth-child(2) {
  border-top-color: #E0E5D9;
}

.channel-card:nth-child(3) {
  border-top-color: #F0E0D3;
}

.channel-card:nth-child(4) {
  border-top-color: #E0DEEE;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(38, 47, 51, 0.08);
}

.channel-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.channel-card p {
  font-size: 0.875rem;
  color: #5A666B;
  margin-bottom: 16px;
  line-height: 1.7;
}

.channel-card a {
  font-size: 0.875rem;
  color: #C97B57;
  font-weight: 500;
}

.channel-card a:hover {
  color: #B56A47;
}

/* ==========================================================================
   4. Pages —— 最新一期（xxmh/latest.html）
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding: 0 0 48px;
}

.main-content {
  min-width: 0;
}

/* 本期主图与编辑手记 */
.issue-lead {
  margin-bottom: 48px;
}

.issue-figure {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background-color: #DCE3E4;
  margin-bottom: 24px;
}

.issue-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.issue-lead p {
  color: #3F4A4E;
  line-height: 1.9;
  max-width: 720px;
}

/* 本期推荐漫画清单 */
.issue-recommendations {
  margin-bottom: 40px;
}

.section-intro {
  color: #5A666B;
  margin-bottom: 20px;
}

.recommend-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #DCE3E4;
}

.recommend-item:last-child {
  border-bottom: none;
}

.recommend-cover {
  flex-shrink: 0;
  width: 140px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
  background-color: #E0E5D9;
}

.recommend-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommend-info {
  min-width: 0;
  flex: 1;
}

.recommend-info h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.recommend-info p {
  color: #5A666B;
  font-size: 0.9375rem;
  margin-bottom: 8px;
  line-height: 1.7;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 底部导航按钮 */
.bottom-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
}

/* 右侧侧栏 */
.sidebar-content {
  min-width: 0;
}

.sidebar-inner {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #DCE3E4;
  position: sticky;
  top: 24px;
}

.sidebar-inner h2 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.sidebar-inner > p {
  font-size: 0.875rem;
  color: #5A666B;
  margin-bottom: 20px;
}

.sidebar-card {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #F0F2F0;
}

.sidebar-card:last-of-type {
  border-bottom: none;
}

.sidebar-card-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #262F33;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.sidebar-card:hover .sidebar-card-title {
  color: #C97B57;
}

.sidebar-card-meta {
  display: block;
  font-size: 0.8125rem;
  color: #8A969B;
}

.sidebar-more {
  margin-top: 12px;
}

/* ==========================================================================
   4. Pages —— 往期目录（xxmh/archive.html）
   ========================================================================== */

.archive-guide-section {
  margin-bottom: 48px;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.guide-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  border-top: 3px solid #DCE3E4;
}

.guide-card:nth-child(2) {
  border-top-color: #E0E5D9;
}

.guide-card:nth-child(3) {
  border-top-color: #F0E0D3;
}

.guide-card:nth-child(4) {
  border-top-color: #E0DEEE;
}

.guide-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 0.875rem;
  color: #5A666B;
  margin: 0;
  line-height: 1.7;
}

/* 时间线 */
.archive-timeline-section {
  margin-bottom: 48px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #DCE3E4;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-index {
  flex-shrink: 0;
  width: 56px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #C97B57;
  line-height: 1.2;
}

.timeline-body {
  min-width: 0;
}

.timeline-body h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.timeline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.timeline-tags a {
  font-size: 0.8125rem;
  background-color: #E0E5D9;
  padding: 2px 10px;
  border-radius: 4px;
  color: #3F4A4E;
}

.timeline-tags a:hover {
  background-color: #DCE3E4;
}

.timeline-summary {
  font-size: 0.9375rem;
  color: #5A666B;
  margin-bottom: 8px;
}

.timeline-link {
  font-size: 0.875rem;
  color: #C97B57;
  font-weight: 500;
}

.timeline-link:hover {
  color: #B56A47;
}

/* 目录页视觉图 */
.archive-visual {
  max-width: 720px;
  margin: 48px auto;
  text-align: center;
}

.archive-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background-color: #DCE3E4;
}

.archive-visual figcaption {
  font-size: 0.875rem;
  color: #8A969B;
  margin-top: 8px;
}

/* 进入最新一期提示带 */
.latest-cta-band {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #DCE3E4;
}

.cta-text h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.cta-text p {
  color: #5A666B;
  margin: 0;
  font-size: 0.9375rem;
}

.cta-link {
  color: #C97B57;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.cta-link:hover {
  color: #B56A47;
  border-bottom-color: #C97B57;
}

/* ==========================================================================
   4. Pages —— 专题策划（xxmh/topics.html）
   ========================================================================== */

.topic-tag-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0 32px;
}

.topic-section {
  margin-bottom: 56px;
  padding-top: 8px;
}

.topic-section-header {
  margin-bottom: 20px;
}

.topic-section-desc {
  color: #5A666B;
  font-size: 0.9375rem;
  margin: 0;
}

/* 恋爱：主卡 + 副卡 */
.topic-layout-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.topic-feature-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #F0E0D3;
}

.feature-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #F0E0D3;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content {
  padding: 20px;
}

.feature-content h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.feature-content p {
  color: #5A666B;
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.topic-side-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.topic-mini-card {
  display: flex;
  gap: 16px;
  padding: 12px;
  background-color: #FFFFFF;
  border: 1px solid #F0F2F0;
  border-radius: 8px;
}

.topic-mini-card img {
  width: 90px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.topic-mini-card h3 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.mini-desc {
  font-size: 0.8125rem;
  color: #5A666B;
  margin-bottom: 8px;
  line-height: 1.6;
}

/* 科幻：三张横卡 */
.topic-layout-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-h-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #DCE3E4;
}

.topic-h-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background-color: #DCE3E4;
}

.topic-h-card h3 {
  font-size: 1rem;
  padding: 12px 16px 0;
  margin-bottom: 4px;
}

.topic-h-card p {
  font-size: 0.875rem;
  color: #5A666B;
  padding: 0 16px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.topic-h-card .text-link {
  margin: 0 16px 16px;
}

/* 日常：2×2 网格 */
.topic-layout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.topic-grid-card {
  background-color: #FFFFFF;
  border: 1px solid #E0E5D9;
}

.topic-grid-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.topic-grid-card h3 {
  font-size: 0.9375rem;
  padding: 12px 14px 0;
  margin-bottom: 4px;
}

.topic-grid-card p {
  font-size: 0.8125rem;
  color: #5A666B;
  padding: 0 14px;
  margin-bottom: 8px;
}

.topic-grid-card .text-link {
  margin: 0 14px 14px;
  font-size: 0.8125rem;
}

/* 悬疑：宽幅卡 + 链接行 */
.topic-layout-wide {
  background-color: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #DCE3E4;
  overflow: hidden;
}

.topic-wide-card {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.topic-wide-card img {
  width: 45%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  flex-shrink: 0;
}

.wide-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wide-content h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.wide-content p {
  color: #5A666B;
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.topic-link-row {
  display: flex;
  gap: 20px;
  padding: 16px 24px;
  border-top: 1px solid #F0F2F0;
}

/* 冒险：三张竖卡 */
.topic-layout-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-vertical-card {
  background-color: #FFFFFF;
  border: 1px solid #F0E0D3;
}

.topic-vertical-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.topic-vertical-card h3 {
  font-size: 1rem;
  padding: 12px 16px 0;
  margin-bottom: 4px;
}

.topic-vertical-card p {
  font-size: 0.875rem;
  color: #5A666B;
  padding: 0 16px;
  margin-bottom: 8px;
}

.topic-vertical-card .topic-tag {
  margin: 0 16px 8px;
}

.topic-vertical-card .text-link {
  margin: 0 16px 16px;
}

/* 奇幻：左右两栏 */
.topic-layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #E0DEEE;
}

.topic-editorial h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.topic-editorial p {
  color: #5A666B;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.topic-link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topic-link-list li {
  border-bottom: 1px solid #F0F2F0;
  padding-bottom: 12px;
}

.topic-link-list a {
  color: #262F33;
  font-weight: 500;
  font-size: 0.9375rem;
}

.topic-link-list a:hover {
  color: #C97B57;
}

/* 运动：三行文字列表 */
.topic-layout-list {
  display: flex;
  flex-direction: column;
}

.topic-list-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid #DCE3E4;
}

.topic-list-item:last-child {
  border-bottom: none;
}

.topic-list-item h3 {
  font-size: 1rem;
  margin: 0;
}

.topic-list-item p {
  color: #5A666B;
  font-size: 0.9375rem;
  margin: 0;
}

/* 阅读路径卡 */
.reading-path {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #DCE3E4;
  margin-top: 16px;
}

.reading-path-title {
  font-size: 1.375rem;
  margin-bottom: 24px;
}

.path-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.path-card {
  padding: 20px;
  background-color: #F7F3EC;
  border-radius: 8px;
}

.path-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #C97B57;
  margin-bottom: 8px;
}

.path-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.path-card p {
  font-size: 0.875rem;
  color: #5A666B;
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================================
   4. Pages —— 作者栏目（xxmh/authors.html）
   ========================================================================== */

.page-lead-figure {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 8px;
  background-color: #E0DEEE;
  margin: 0 0 32px;
}

.page-lead-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 侧栏布局（作者页） */
.layout-shell.sidebar-left {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.sidebar-column {
  min-width: 0;
}

.intro-panel {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #E0DEEE;
  margin-bottom: 24px;
}

.intro-panel h2 {
  font-size: 1.0625rem;
  margin-bottom: 12px;
}

.intro-panel p {
  font-size: 0.875rem;
  color: #5A666B;
  margin-bottom: 12px;
  line-height: 1.7;
}

.author-topic-link {
  background-color: #F7F3EC;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #DCE3E4;
}

.author-topic-link h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.author-topic-link p {
  font-size: 0.875rem;
  color: #5A666B;
  margin-bottom: 8px;
}

/* 作者方向区块 */
.content-column {
  min-width: 0;
}

.author-direction-block {
  margin-bottom: 48px;
}

.direction-heading {
  margin-bottom: 16px;
}

.direction-heading h2 {
  font-size: 1.25rem;
  position: relative;
  padding-left: 14px;
}

.direction-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 4px;
  height: 1em;
  background-color: #C97B57;
}

.direction-heading p {
  color: #5A666B;
  font-size: 0.9375rem;
  margin: 0;
}

/* 少年热血：两卡一组 */
.author-card-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.author-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #F0E0D3;
}

.author-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.author-style-tags {
  font-size: 0.8125rem;
  color: #C97B57;
  font-weight: 500;
  margin-bottom: 8px;
}

.author-note {
  font-size: 0.875rem;
  color: #5A666B;
  margin-bottom: 12px;
  line-height: 1.7;
}

.author-related {
  font-size: 0.875rem;
  color: #8A969B;
  margin: 0;
}

.direction-entry {
  margin-top: 16px;
}

.direction-entry a {
  color: #C97B57;
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.direction-entry a:hover {
  color: #B56A47;
  border-bottom-color: #C97B57;
}

/* 作者与专题桥接 */
.author-topic-bridge {
  margin-top: 16px;
}

.author-topic-bridge > h2 {
  font-size: 1.25rem;
  position: relative;
  padding-left: 14px;
  margin-bottom: 20px;
}

.author-topic-bridge > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 4px;
  height: 1em;
  background-color: #C97B57;
}

.bridge-card-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bridge-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #DCE3E4;
}

.bridge-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.bridge-card p {
  font-size: 0.875rem;
  color: #5A666B;
  margin-bottom: 8px;
  line-height: 1.7;
}

.bridge-card p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   4. Pages —— 阅读说明（xxmh/read-guide.html）
   ========================================================================== */

.read-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.guide-section {
  min-width: 0;
  margin-bottom: 48px;
}

.guide-section h2 {
  font-size: 1.375rem;
  position: relative;
  padding-left: 14px;
  margin-bottom: 12px;
}

.guide-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 4px;
  height: 1em;
  background-color: #C97B57;
}

.section-lead {
  color: #5A666B;
  font-size: 0.9375rem;
  margin-bottom: 20px;
  max-width: 640px;
}

/* 栏目关系卡 */
.relation-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.relation-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #DCE3E4;
}

.relation-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.relation-card p {
  font-size: 0.875rem;
  color: #5A666B;
  margin-bottom: 12px;
  line-height: 1.7;
}

.relation-arrow {
  color: #C97B57;
  font-size: 1.5rem;
  line-height: 1;
  margin: 0 0 8px;
}

.relation-card a {
  color: #C97B57;
  font-size: 0.875rem;
  font-weight: 500;
}

.relation-summary {
  font-size: 0.875rem;
  color: #5A666B;
  background-color: #F7F3EC;
  border-radius: 8px;
  padding: 16px;
  line-height: 1.8;
}

.relation-summary a {
  color: #C97B57;
  margin-right: 12px;
  white-space: nowrap;
}

/* 右侧插图 */
.guide-figure {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background-color: #E0DEEE;
  margin: 0 0 32px;
  position: sticky;
  top: 24px;
}

.guide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-figure figcaption {
  font-size: 0.8125rem;
  color: #8A969B;
  padding: 8px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
}

/* FAQ 手风琴 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #DCE3E4;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #262F33;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: #C97B57;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background-color: #F7F3EC;
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 0.9375rem;
  color: #5A666B;
  margin: 0;
  line-height: 1.8;
}

/* 内容边界 */
.boundary-section {
  background-color: #F7F3EC;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #DCE3E4;
}

.boundary-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.boundary-text p {
  font-size: 0.9375rem;
  color: #3F4A4E;
  line-height: 1.8;
  margin-bottom: 12px;
}

.boundary-note {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
}

.boundary-note h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.boundary-note ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boundary-note li {
  font-size: 0.875rem;
  color: #5A666B;
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.boundary-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #C97B57;
}

/* 站点地图出口 */
.map-exit {
  margin-bottom: 0;
}

.map-exit h2 {
  margin-bottom: 0;
}

.map-exit-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #FFFFFF;
  border: 1px solid #DCE3E4;
  border-radius: 8px;
  padding: 24px 32px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.map-exit-link:hover {
  border-color: #C97B57;
  box-shadow: 0 4px 12px rgba(38, 47, 51, 0.08);
}

.map-exit-text {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #262F33;
}

.map-exit-action {
  color: #C97B57;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ==========================================================================
   4. Pages —— 站点地图（xxmh/sitemap.html）
   ========================================================================== */

.sitemap-hero {
  aspect-ratio: 21 / 8;
  overflow: hidden;
  border-radius: 8px;
  background-color: #DCE3E4;
  margin-bottom: 40px;
}

.sitemap-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-group {
  margin-bottom: 48px;
}

.map-group > h2 {
  font-size: 1.25rem;
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
}

.map-group > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 4px;
  height: 1em;
  background-color: #C97B57;
}

.map-group-desc {
  color: #5A666B;
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.map-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.map-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid #DCE3E4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.map-item-text h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.map-item-text h3 a:hover {
  color: #C97B57;
}

.map-item-text p {
  font-size: 0.875rem;
  color: #5A666B;
  margin: 0;
  line-height: 1.6;
}

.map-item-link {
  color: #C97B57;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.map-item-link:hover {
  color: #B56A47;
}

.map-footer-note {
  background-color: #F7F3EC;
  border: 1px solid #DCE3E4;
  border-radius: 8px;
  padding: 16px 24px;
  font-size: 0.875rem;
  color: #5A666B;
}

.map-footer-note p {
  margin: 0;
}

.map-footer-note a {
  color: #C97B57;
}

/* ==========================================================================
   4. Pages —— 404 页面
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-panel {
  max-width: 560px;
  text-align: center;
}

.error-code {
  font-size: 4rem;
  font-weight: 700;
  color: #DCE3E4;
  line-height: 1;
  margin-bottom: 8px;
}

.error-panel h1 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.error-lead {
  color: #5A666B;
  font-size: 1rem;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.error-link-primary,
.error-link-secondary {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.error-link-primary {
  background-color: #C97B57;
  color: #FFFFFF;
}

.error-link-primary:hover {
  background-color: #B56A47;
  color: #FFFFFF;
}

.error-link-secondary {
  background-color: transparent;
  color: #262F33;
  border: 1px solid #A9B2B5;
}

.error-link-secondary:hover {
  border-color: #C97B57;
  color: #C97B57;
}

.error-hint {
  font-size: 0.875rem;
  color: #8A969B;
  margin: 0;
}

/* ==========================================================================
   5. Responsive —— 响应式断点（768px）
   ========================================================================== */

@media (max-width: 1024px) {
  /* 首页三列工具区压缩 */
  .home-toolbox {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .recent-updates {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px 24px;
    align-items: start;
  }

  .recent-updates h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  /* 专题精选墙 6 → 3 列 */
  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 阅读说明页布局调整 */
  .read-guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-figure {
    display: none;
  }

  /* 作者页侧栏压缩 */
  .layout-shell.sidebar-left {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  /* 移动端：显示汉堡按钮，隐藏导航列表 */
  .nav-toggle {
    display: flex;
  }

  .site-nav .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #F7F3EC;
    border-bottom: 1px solid #DCE3E4;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 16px;
    gap: 2px;
    box-shadow: 0 8px 16px rgba(38, 47, 51, 0.08);
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    display: block;
    padding: 10px 8px;
    border-radius: 6px;
    border-bottom: none;
    font-size: 1rem;
  }

  .site-nav .nav-list a.is-current {
    background-color: #E0E5D9;
  }

  /* 首页首屏 */
  .hero-section {
    padding: 32px 20px 16px;
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .home-toolbox {
    grid-template-columns: 1fr;
    padding: 8px 20px 24px;
    gap: 16px;
  }

  .topic-orientation {
    order: 2;
  }

  .featured-issue {
    order: 1;
  }

  .recent-updates {
    order: 3;
    display: block;
  }

  .recent-updates h2 {
    margin-bottom: 12px;
  }

  /* 首页精选墙 */
  .topic-showcase {
    padding: 32px 20px 0;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* 首页编辑精选 */
  .editor-picks {
    padding: 32px 20px 0;
  }

  .picks-list li {
    gap: 12px;
  }

  .pick-number {
    font-size: 1.5rem;
    min-width: 36px;
  }

  /* 首页栏目导览 */
  .channel-guide {
    padding: 32px 20px 0;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* 内页公共 */
  .inner-main {
    padding: 0 20px;
  }

  .page-header {
    padding: 8px 0 20px;
  }

  .page-title {
    font-size: 1.625rem;
  }

  /* 最新一期布局 */
  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar-content {
    order: 2;
  }

  .sidebar-inner {
    position: static;
  }

  /* 最新一期推荐条目 */
  .recommend-item {
    flex-direction: column;
    gap: 12px;
  }

  .recommend-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  /* 往期目录 */
  .archive-guide-section {
    margin-bottom: 32px;
  }

  .guide-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .timeline-item {
    gap: 16px;
  }

  .timeline-index {
    width: 44px;
    font-size: 1.25rem;
  }

  .latest-cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .archive-visual {
    margin: 32px auto;
  }

  /* 专题策划 */
  .topic-tag-nav {
    gap: 8px;
    padding: 8px 0 24px;
  }

  .topic-section {
    margin-bottom: 40px;
  }

  .topic-layout-feature {
    grid-template-columns: 1fr;
  }

  .topic-layout-horizontal,
  .topic-layout-columns {
    grid-template-columns: 1fr;
  }

  .topic-layout-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .topic-layout-split {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }

  .topic-wide-card {
    flex-direction: column;
  }

  .topic-wide-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .topic-link-row {
    flex-direction: column;
    gap: 8px;
  }

  .topic-list-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .reading-path {
    padding: 20px;
  }

  .path-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* 作者页 */
  .layout-shell.sidebar-left {
    grid-template-columns: 1fr;
  }

  .sidebar-column {
    order: 2;
  }

  .content-column {
    order: 1;
  }

  .author-card-list {
    grid-template-columns: 1fr;
  }

  .bridge-card-list {
    grid-template-columns: 1fr;
  }

  /* 阅读说明 */
  .relation-cards {
    grid-template-columns: 1fr;
  }

  .boundary-content {
    grid-template-columns: 1fr;
  }

  /* 站点地图 */
  .map-list {
    grid-template-columns: 1fr;
  }

  .map-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* 页脚 */
  .site-footer .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 20px 24px;
  }

  .related-links {
    padding: 16px 20px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  /* 首页精选墙 2 列保持 */
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .showcase-card .card-body {
    padding: 10px;
  }

  .showcase-card h3 {
    font-size: 0.875rem;
  }

  .showcase-card .card-body .tag {
    font-size: 0.75rem;
    padding: 1px 8px;
  }

  .showcase-card .card-body p {
    font-size: 0.8125rem;
  }

  /* 首页焦点大卡 */
  .featured-info {
    padding: 16px;
  }

  .featured-info h2 {
    font-size: 1.25rem;
  }

  /* 页脚单列 */
  .site-footer .footer-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 专题策划：网格卡单列 */
  .topic-layout-grid {
    grid-template-columns: 1fr;
  }

  .path-cards {
    grid-template-columns: 1fr;
  }

  /* 往期目录：导览卡单列 */
  .guide-card-grid {
    grid-template-columns: 1fr;
  }

  /* 首页栏目导览单列 */
  .channel-guide {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   6. 滚动进入视口动画（仅增强，不影响初始可见性）
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .topic-showcase,
  .editor-picks,
  .channel-guide,
  .archive-guide-section,
  .archive-timeline-section,
  .issue-lead,
  .issue-recommendations,
  .topic-section,
  .reading-path,
  .author-direction-block,
  .author-topic-bridge,
  .guide-section {
    animation: fadeInUp 0.5s ease both;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
