/* ==========================================================================
   漫漫漫画 · 整站样式表
   现代主义海报风 · 大胆色块 · 严格对齐
   ========================================================================== */

/* ==========================================================================
   Base · 基础层
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #1A1A1A;
  background-color: #F7F3EE;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #163A3A;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #E4572E;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

.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;
}

/* ==========================================================================
   Layout · 布局骨架
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

.site-inner {
  background-color: #F7F3EE;
}

/* 全站统一容器宽度 */
.header-inner,
.footer-inner,
.hero-layout,
.section-block,
.inner-main,
.breadcrumb,
.page-header,
.layout-shell,
.tag-panel,
.topic-list,
.collection-list,
.how-to-choose,
.filter-tabs,
.timeline,
.update-note,
.help-lead-figure,
.faq-section,
.copyright-section,
.feedback-section,
.error-panel,
.error-suggest {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Components · 组件层
   ========================================================================== */

/* ---------- 页头 / 导航 ---------- */

.site-header {
  background-color: #163A3A;
  border-bottom: 3px solid #E4572E;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  color: #F7F3EE;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 12px;
  color: rgba(247, 243, 238, 0.65);
  display: none;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(247, 243, 238, 0.85);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #F7F3EE;
}

.nav-item.is-current .nav-link {
  color: #F7F3EE;
  font-weight: 700;
}

.nav-item.is-current .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background-color: #E4572E;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #F7F3EE;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- 按钮 ---------- */

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  line-height: 1.4;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: #E4572E;
  color: #F7F3EE;
}

.btn-primary:hover {
  background-color: #c94a24;
  color: #F7F3EE;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #163A3A;
  border: 2px solid #163A3A;
}

.btn-secondary:hover {
  background-color: #163A3A;
  color: #F7F3EE;
}

/* ---------- 文本链接 ---------- */

.text-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #E4572E;
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #E4572E;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.text-link:hover {
  color: #c94a24;
}

.text-link:hover::after {
  transform: scaleX(1);
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #163A3A;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: #E4572E;
}

.breadcrumb-sep {
  color: #999;
  font-size: 12px;
}

.breadcrumb-current {
  color: #555;
  font-weight: 500;
}

/* ---------- 页面标题区 ---------- */

.page-header {
  padding-top: 12px;
  padding-bottom: 36px;
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  color: #1A1A1A;
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  max-width: 720px;
}

/* ---------- 章节标题 ---------- */

.section-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #163A3A;
  margin-bottom: 12px;
}

.section-summary,
.section-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.section-footnote {
  margin-top: 24px;
  text-align: center;
  font-size: 15px;
}

.section-footnote a {
  color: #E4572E;
  font-weight: 600;
}

/* ---------- 页脚 ---------- */

.site-footer {
  background-color: #EDEAE4;
  border-top: 1px solid #ddd8cf;
  margin-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 800;
  color: #163A3A;
  margin-bottom: 8px;
}

.footer-slogan {
  font-size: 14px;
  color: #E4572E;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 700;
  color: #163A3A;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: #555;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: #E4572E;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #d8d3ca;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
}

.copyright {
  font-size: 13px;
  color: #888;
}

/* ---------- 图片容器 ---------- */

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
  line-height: 1.6;
}

/* ---------- FAQ 折叠项 ---------- */

.faq-item {
  border: 1px solid #e0dcd4;
  border-radius: 8px;
  background-color: #fff;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #163A3A;
}

.faq-item[open] {
  border-color: #E4572E;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.5;
  position: relative;
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: #E4572E;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.faq-answer p + p {
  margin-top: 10px;
}

/* ---------- 步骤卡 ---------- */

.step-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  border-top: 4px solid #163A3A;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(22, 58, 58, 0.1);
}

.step-number,
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #E4572E;
  color: #F7F3EE;
  font-size: 18px;
  font-weight: 700;
  font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
  margin-bottom: 16px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: #163A3A;
  margin-bottom: 10px;
}

.step-desc,
.step-text {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 14px;
}

.step-link {
  font-size: 14px;
  font-weight: 600;
  color: #E4572E;
}

.step-link:hover {
  color: #c94a24;
}

/* ---------- 时间线 ---------- */

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e8e4dc;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
  min-width: 84px;
  padding-top: 4px;
  flex-shrink: 0;
}

.timeline-entry {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: #1A1A1A;
  line-height: 1.6;
}

.timeline-type {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  flex-shrink: 0;
  background-color: #e8e4dc;
  color: #163A3A;
  margin-top: 2px;
}

/* ---------- 标签页 ---------- */

.tag-tabs,
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tag-tab,
.tab-item {
  display: inline-block;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  background-color: #e8e4dc;
  color: #163A3A;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tag-tab:hover,
.tab-item:hover {
  background-color: #ddd8cf;
}

.tag-tab.is-active,
.tab-item.is-active {
  background-color: #163A3A;
  color: #F7F3EE;
  border-color: #163A3A;
}

.tag-panel-item[hidden],
.tab-panel[hidden] {
  display: none;
}

/* ==========================================================================
   Pages · 页面层
   ========================================================================== */

/* ---------- 首页 · hero ---------- */

.hero-section {
  background-color: #163A3A;
  color: #F7F3EE;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: #F7F3EE;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(247, 243, 238, 0.8);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-section .btn-secondary {
  border-color: rgba(247, 243, 238, 0.6);
  color: #F7F3EE;
}

.hero-section .btn-secondary:hover {
  background-color: #F7F3EE;
  color: #163A3A;
}

.hero-topic-index {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.topic-index-item {
  display: block;
  background-color: rgba(247, 243, 238, 0.08);
  border: 1px solid rgba(247, 243, 238, 0.15);
  border-radius: 8px;
  padding: 16px 14px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.topic-index-item:hover {
  background-color: rgba(247, 243, 238, 0.16);
  transform: translateY(-3px);
}

.topic-index-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #F7F3EE;
  margin-bottom: 4px;
}

.topic-index-desc {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(247, 243, 238, 0.6);
}

.hero-figure {
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(247, 243, 238, 0.1);
}

.hero-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 14px 18px;
  color: rgba(247, 243, 238, 0.7);
  background-color: rgba(22, 58, 58, 0.6);
  margin-top: 0;
}

/* ---------- 首页 · 通用章节 ---------- */

.section-block {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-heading {
  margin-bottom: 36px;
}

/* ---------- 首页 · 题材介绍 ---------- */

.topics-intro {
  background-color: #F7F3EE;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.topic-card {
  display: block;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  border-bottom: 4px solid #163A3A;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(22, 58, 58, 0.12);
}

.topic-card-media {
  height: 180px;
  overflow: hidden;
}

.topic-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-card-name {
  font-size: 20px;
  font-weight: 700;
  color: #163A3A;
  padding: 18px 20px 6px;
}

.topic-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  padding: 0 20px 20px;
}

/* ---------- 首页 · 精选合集 ---------- */

.featured-collections {
  background-color: #fff;
}

.collections-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.collections-intro .section-title {
  margin-bottom: 16px;
}

.collections-intro .section-summary {
  margin-bottom: 24px;
}

.collections-preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.collection-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #F7F3EE;
  border-radius: 8px;
  padding: 16px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.collection-strip:hover {
  background-color: #efeae2;
  transform: translateX(4px);
}

.strip-covers {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.strip-covers img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
}

.strip-info {
  flex: 1;
  min-width: 0;
}

.strip-name {
  font-size: 17px;
  font-weight: 700;
  color: #163A3A;
  margin-bottom: 6px;
}

.strip-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

/* ---------- 首页 · 更新快报 ---------- */

.recent-updates {
  background-color: #F7F3EE;
}

.timeline-preview {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e8e4dc;
  padding: 8px 24px;
}

/* ---------- 首页 · 从零开始 ---------- */

.start-here {
  background-color: #163A3A;
}

.start-here .section-title {
  color: #F7F3EE;
}

.start-here .section-summary {
  color: rgba(247, 243, 238, 0.7);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.start-here .step-card {
  background-color: rgba(247, 243, 238, 0.08);
  border-top-color: #E4572E;
  border-radius: 8px;
}

.start-here .step-card:hover {
  background-color: rgba(247, 243, 238, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.start-here .step-title {
  color: #F7F3EE;
}

.start-here .step-desc {
  color: rgba(247, 243, 238, 0.7);
}

/* ---------- 首页 · FAQ 预览 ---------- */

.faq-preview {
  background-color: #fff;
}

/* ---------- 内页公共 ---------- */

.inner-main {
  padding-top: 0;
  padding-bottom: 0;
}

/* ---------- 题材分类页 ---------- */

.tag-panel {
  padding-top: 8px;
  padding-bottom: 48px;
}

.tag-panel-item {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e8e4dc;
  padding: 32px;
}

.topic-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.topic-name {
  font-size: 24px;
  font-weight: 700;
  color: #163A3A;
  margin-bottom: 12px;
}

.topic-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.topic-figure {
  border-radius: 8px;
  overflow: hidden;
}

.topic-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.topic-list {
  padding-top: 48px;
  padding-bottom: 48px;
}

.topic-list-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.dimension-list {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e8e4dc;
  padding: 24px;
  position: sticky;
  top: 96px;
}

.dimension-title {
  font-size: 16px;
  font-weight: 700;
  color: #163A3A;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #E4572E;
}

.dimension-items li {
  margin-bottom: 8px;
}

.dimension-items a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #555;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dimension-items a:hover {
  background-color: #F7F3EE;
  color: #E4572E;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.entry-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e4dc;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(22, 58, 58, 0.1);
}

.entry-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.entry-title {
  font-size: 17px;
  font-weight: 700;
  color: #163A3A;
  padding: 16px 20px 6px;
}

.entry-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  padding: 0 20px 14px;
}

.entry-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #E4572E;
  background-color: rgba(228, 87, 46, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  margin: 0 20px 16px;
}

.similar-topics {
  background-color: #e8e4dc;
  padding-top: 48px;
  padding-bottom: 48px;
}

.similar-desc {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

.similar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.similar-list li {
  background-color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
}

.similar-list a {
  color: #163A3A;
  font-weight: 500;
}

.similar-list a:hover {
  color: #E4572E;
}

/* ---------- 精选合集页 ---------- */

.collection-list {
  padding-top: 8px;
  padding-bottom: 48px;
}

.collection-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e8e4dc;
  padding: 24px;
  margin-bottom: 24px;
  transition: box-shadow 0.25s ease;
}

.collection-card:hover {
  box-shadow: 0 6px 20px rgba(22, 58, 58, 0.08);
}

.collection-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.collection-media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
}

.collection-info {
  min-width: 0;
}

.collection-title {
  font-size: 22px;
  font-weight: 700;
  color: #163A3A;
  margin-bottom: 8px;
}

.collection-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #E4572E;
  background-color: rgba(228, 87, 46, 0.1);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.collection-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 16px;
}

.how-to-choose {
  padding-top: 48px;
  padding-bottom: 48px;
}

.choose-dimensions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.choose-item {
  background-color: #fff;
  border-radius: 8px;
  border-left: 4px solid #E4572E;
  padding: 24px;
}

.choose-item-title {
  font-size: 17px;
  font-weight: 700;
  color: #163A3A;
  margin-bottom: 10px;
}

.choose-item-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}

.choose-tip {
  margin-top: 28px;
  font-size: 14px;
  color: #555;
}

/* ---------- 更新快报页 ---------- */

.filter-tabs {
  padding-top: 8px;
  padding-bottom: 24px;
}

.timeline {
  padding-bottom: 48px;
}

.timeline-item {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e8e4dc;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.timeline-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.timeline-thumb {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.timeline-text {
  flex: 1;
  min-width: 0;
}

.timeline-title {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 13px;
  color: #888;
}

.timeline-meta {
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
}

.update-note {
  background-color: #e8e4dc;
  border-radius: 8px;
  padding-top: 32px;
  padding-bottom: 32px;
  margin-bottom: 48px;
}

.update-note-text {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

.update-note-links {
  margin-top: 16px;
  font-size: 14px;
}

.update-note-links a {
  color: #E4572E;
  font-weight: 600;
}

.link-sep {
  margin: 0 8px;
  color: #999;
}

/* ---------- 阅读指南页 ---------- */

.guide-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding-bottom: 64px;
}

.guide-content {
  min-width: 0;
}

.guide-section {
  margin-bottom: 56px;
}

.guide-section .section-title {
  padding-bottom: 12px;
  border-bottom: 3px solid #E4572E;
  margin-bottom: 20px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.term-block {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e8e4dc;
  padding: 24px;
  margin-bottom: 16px;
}

.term-name {
  font-size: 18px;
  font-weight: 700;
  color: #163A3A;
  margin-bottom: 8px;
}

.term-def {
  font-size: 14px;
  font-weight: 600;
  color: #E4572E;
  margin-bottom: 8px;
}

.term-detail {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 8px;
}

.term-example {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  background-color: #F7F3EE;
  border-left: 3px solid #163A3A;
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 8px;
}

.term-related {
  font-size: 13px;
  color: #888;
}

.term-related a {
  color: #E4572E;
}

.table-wrap {
  overflow-x: auto;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e8e4dc;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.compare-table thead th {
  background-color: #163A3A;
  color: #F7F3EE;
  font-weight: 600;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody th {
  background-color: #F7F3EE;
  font-weight: 600;
  color: #163A3A;
  width: 120px;
  white-space: nowrap;
}

.table-note {
  font-size: 13px;
  color: #888;
  margin-top: 12px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scenario-card {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e8e4dc;
  padding: 24px;
  transition: transform 0.25s ease;
}

.scenario-card:hover {
  transform: translateY(-3px);
}

.scenario-name {
  font-size: 17px;
  font-weight: 700;
  color: #163A3A;
  margin-bottom: 10px;
}

.scenario-name::before {
  content: "◆ ";
  color: #E4572E;
}

.scenario-text {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}

.guide-aside {
  position: sticky;
  top: 96px;
}

.aside-block {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e8e4dc;
  padding: 24px;
  margin-bottom: 20px;
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: #163A3A;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E4572E;
}

.aside-term-list li {
  margin-bottom: 8px;
}

.aside-term-list a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: #555;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.aside-term-list a:hover {
  background-color: #F7F3EE;
  color: #E4572E;
}

.aside-figure {
  border-radius: 8px;
  overflow: hidden;
  background-color: #F7F3EE;
}

.aside-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.aside-figure figcaption {
  padding: 12px 16px;
}

/* ---------- 常见问题页 ---------- */

.help-lead-figure {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}

.help-lead-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.help-lead-figure figcaption {
  padding: 12px 16px;
  background-color: #fff;
}

.faq-section,
.copyright-section,
.feedback-section {
  margin-bottom: 48px;
}

.copyright-section,
.feedback-section {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e8e4dc;
  padding: 32px;
}

.copyright-section p,
.feedback-section p {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

.copyright-section p:last-child,
.feedback-section p:last-child {
  margin-bottom: 0;
}

/* ---------- 404 页 ---------- */

.error-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.error-panel {
  margin-bottom: 48px;
}

.error-code {
  font-size: 96px;
  font-weight: 800;
  color: #E4572E;
  line-height: 1;
  margin-bottom: 16px;
  font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
}

.error-title {
  font-size: 28px;
  font-weight: 700;
  color: #163A3A;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #666;
  margin-bottom: 24px;
}

.error-back-btn {
  display: inline-block;
  padding: 12px 32px;
  background-color: #163A3A;
  color: #F7F3EE;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.error-back-btn:hover {
  background-color: #E4572E;
  color: #F7F3EE;
}

.error-suggest {
  text-align: left;
}

.error-suggest-title {
  font-size: 18px;
  font-weight: 700;
  color: #163A3A;
  margin-bottom: 16px;
  text-align: center;
}

.error-suggest-list {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.error-suggest-list li {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e8e4dc;
  padding: 12px 24px;
}

.error-suggest-list a {
  color: #163A3A;
  font-weight: 600;
  font-size: 14px;
}

.error-suggest-list a:hover {
  color: #E4572E;
}

/* ==========================================================================
   Responsive · 响应式
   ========================================================================== */

/* ---------- 平板 1024px ---------- */

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-topic-index {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-image {
    height: 400px;
  }

  .collections-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-list-layout {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .guide-layout {
    grid-template-columns: 1fr 280px;
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .collection-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .collection-media {
    grid-template-columns: repeat(6, 1fr);
  }

  .collection-media img {
    height: 100px;
  }
}

/* ---------- 手机 768px ---------- */

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #163A3A;
    border-top: 1px solid rgba(247, 243, 238, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(247, 243, 238, 0.08);
  }

  .nav-item.is-current .nav-link::after {
    display: none;
  }

  .nav-item.is-current .nav-link {
    color: #E4572E;
  }

  .brand-slogan {
    display: none;
  }

  .hero-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-topic-index {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-image {
    height: 280px;
  }

  .section-block {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-title {
    font-size: 24px;
  }

  .topics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic-card-media {
    height: 200px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .timeline-date {
    min-width: 100%;
    font-size: 12px;
  }

  .timeline-type {
    margin-top: 0;
  }

  .page-header {
    padding-bottom: 24px;
  }

  .page-title {
    font-size: 28px;
  }

  .tag-panel-item {
    padding: 20px;
  }

  .topic-overview {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .topic-figure img {
    height: 200px;
  }

  .topic-list-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dimension-list {
    position: static;
    padding: 16px;
  }

  .dimension-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .dimension-items li {
    margin-bottom: 0;
  }

  .dimension-items a {
    padding: 6px 14px;
    border-radius: 999px;
    background-color: #e8e4dc;
  }

  .entry-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .entry-card img {
    height: 220px;
  }

  .collection-media {
    grid-template-columns: repeat(3, 1fr);
  }

  .collection-media img {
    height: 120px;
  }

  .choose-dimensions {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline-content {
    flex-wrap: wrap;
  }

  .timeline-thumb {
    width: 48px;
    height: 64px;
  }

  .timeline-meta {
    width: 100%;
    padding-left: 64px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .guide-aside {
    position: static;
    order: 2;
  }

  .step-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scenario-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .table-wrap {
    margin-left: -24px;
    margin-right: -24px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .compare-table {
    min-width: 560px;
  }

  .help-lead-image {
    height: 220px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .error-code {
    font-size: 72px;
  }

  .error-suggest-list {
    flex-direction: column;
    align-items: stretch;
  }

  .error-suggest-list li {
    text-align: center;
  }
}

/* ---------- 小手机 390px ---------- */

@media (max-width: 390px) {
  .header-inner,
  .hero-layout,
  .section-block,
  .inner-main,
  .breadcrumb,
  .page-header,
  .layout-shell,
  .tag-panel,
  .topic-list,
  .collection-list,
  .how-to-choose,
  .filter-tabs,
  .timeline,
  .update-note,
  .help-lead-figure,
  .faq-section,
  .copyright-section,
  .feedback-section,
  .error-panel,
  .error-suggest,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-topic-index {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .topic-index-item {
    padding: 12px 10px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
  }

  .strip-covers img {
    width: 56px;
    height: 76px;
  }

  .collection-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .strip-covers {
    width: 100%;
  }

  .strip-covers img {
    flex: 1;
    width: auto;
    height: 100px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .collection-media {
    grid-template-columns: repeat(2, 1fr);
  }

  .collection-media img {
    height: 100px;
  }

  .collection-card {
    padding: 16px;
  }

  .timeline-content {
    gap: 12px;
  }

  .timeline-thumb {
    width: 40px;
    height: 54px;
  }

  .term-block {
    padding: 18px;
  }

  .scenario-card {
    padding: 18px;
  }

  .copyright-section,
  .feedback-section {
    padding: 20px;
  }
}
