/* ==========================================================================
   天堂漫画 · 全站样式表
   站点：kylxg.com
   说明：漫画书店风，纸张白底 + 暖米色，书脊色条分类，书架式卡片陈列
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 基础变量、重置、字体、通用元素
   -------------------------------------------------------------------------- */
:root {
  --paper: #f7f3ea;
  --ink: #4a4a48;
  --wood: #b5651d;
  --leaf: #6b8e23;
  --blue: #3b6ea5;
  --red: #c0392b;
  --line: #e2dacb;
  --card-bg: #ffffff;
  --text-light: #7a766e;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(74, 74, 72, 0.08);
  --shadow-hover: 0 6px 18px rgba(74, 74, 72, 0.12);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--wood);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--red);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

p {
  margin-bottom: 0;
}

/* 屏幕阅读器专用隐藏 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2. layout —— 全站骨架：页头、页脚、主容器、面包屑、页标题区
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background-color: var(--card-bg);
  border-bottom: 3px solid var(--wood);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}

.brand-tagline {
  font-size: 13px;
  color: var(--text-light);
}

/* 顶部导航 */
.site-nav .nav-list {
  display: flex;
  gap: 4px;
}

.site-nav .nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink);
  border-radius: 4px;
}

.site-nav .nav-list li a:hover {
  background-color: var(--paper);
  color: var(--wood);
}

.site-nav .nav-list li a.is-current {
  color: var(--wood);
  font-weight: 700;
  background-color: var(--paper);
}

/* 汉堡按钮，桌面隐藏 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.toggle-bar {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--ink);
  border-radius: 2px;
}

/* 主内容区 */
.site-main {
  flex: 1;
  width: 100%;
}

.inner-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 60px;
  width: 100%;
}

/* 面包屑 */
.breadcrumb {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--wood);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-kicker {
  display: inline-block;
  font-size: 13px;
  color: var(--wood);
  background-color: rgba(181, 101, 29, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-title {
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  color: var(--text-light);
  max-width: 720px;
  line-height: 1.7;
}

/* 页脚 */
.site-footer {
  background-color: #3d3d3a;
  color: #c8c4bc;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.footer-brand-name {
  font-size: 22px;
  color: var(--paper);
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #a8a49c;
}

.footer-col-title {
  font-size: 16px;
  color: var(--paper);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: #a8a49c;
  font-size: 14px;
}

.footer-links li a:hover {
  color: var(--paper);
}

.footer-feedback-text {
  font-size: 14px;
  color: #a8a49c;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-feedback-link {
  display: inline-block;
  color: var(--paper);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}

.footer-feedback-link:hover {
  color: #fff;
  border-color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 24px;
  text-align: center;
}

.copyright {
  font-size: 13px;
  color: #8f8b83;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   3. components —— 通用组件：section 标题、卡片、步骤、链接等
   -------------------------------------------------------------------------- */
.section-title {
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-intro,
.section-desc,
.section-lead {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 680px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.section-more-link {
  font-size: 14px;
  color: var(--wood);
  white-space: nowrap;
}

.section-more-link:hover {
  color: var(--red);
}

/* 相关内容底部链接 */
.related-links {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.related-links-label {
  color: var(--text-light);
  font-weight: 600;
}

.related-links-item {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  font-size: 14px;
}

.related-links-item:hover {
  border-color: var(--wood);
  color: var(--wood);
}

/* 内容配图 */
.content-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--line);
}

.content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-media-primary {
  height: 260px;
  margin-bottom: 20px;
}

.content-media-primary img {
  height: 100%;
}

.content-media-primary figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(74, 74, 72, 0.72);
  color: var(--paper);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 4px;
}

.content-media-inline {
  height: 220px;
  margin: 28px 0;
}

.content-media-inline img {
  height: 100%;
}

.content-media-inline figcaption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(74, 74, 72, 0.72);
  color: var(--paper);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   4. pages —— 首页
   -------------------------------------------------------------------------- */
.home-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 60px;
  width: 100%;
}

/* 首屏主视觉卡片区 */
.hero-card-section {
  margin-bottom: 52px;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.hero-feature-card {
  grid-row: span 2;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.hero-feature-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-figure {
  height: 260px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-feature-content {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.tag-editor {
  background-color: var(--red);
  color: #fff;
}

.hero-feature-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.hero-feature-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.card-action {
  font-size: 14px;
  font-weight: 600;
  color: var(--wood);
}

.hero-mini-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.mini-card-link {
  display: block;
  padding: 18px 20px;
  height: 100%;
}

.mini-card-title {
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--ink);
}

.mini-card-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 10px;
}

.mini-card-meta {
  font-size: 12px;
  color: var(--wood);
  font-weight: 600;
}

/* 题材书脊条 */
.topic-spine-section {
  margin-bottom: 52px;
}

.topic-spine-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.spine-item {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.spine-item:hover {
  transform: translateY(-3px);
}

.spine-item a {
  display: block;
  padding: 18px 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  border-left: 6px solid rgba(0, 0, 0, 0.15);
}

.spine-shonen a {
  background-color: #c0392b;
}

.spine-shojo a {
  background-color: #d47a9e;
}

.spine-suspense a {
  background-color: #4a4a48;
}

.spine-slice a {
  background-color: #6b8e23;
}

.spine-sci-fi a {
  background-color: #3b6ea5;
}

.spine-adventure a {
  background-color: #b5651d;
}

/* 最近更新列表 */
.recent-updates-section {
  margin-bottom: 52px;
}

.update-list {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.update-item:last-child {
  border-bottom: none;
}

.update-item:hover {
  background-color: var(--paper);
}

.update-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-shonen {
  background-color: #c0392b;
}

.dot-shojo {
  background-color: #d47a9e;
}

.dot-suspense {
  background-color: #4a4a48;
}

.dot-slice {
  background-color: #6b8e23;
}

.dot-sci-fi {
  background-color: #3b6ea5;
}

.dot-adventure {
  background-color: #b5651d;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}

.update-title:hover {
  color: var(--wood);
}

.update-topic {
  font-size: 13px;
  color: var(--text-light);
  flex-shrink: 0;
}

.update-status {
  font-size: 12px;
  color: var(--leaf);
  background-color: rgba(107, 142, 35, 0.1);
  padding: 3px 10px;
  border-radius: 3px;
  flex-shrink: 0;
  font-weight: 600;
}

/* 阅读指南入口区 */
.guide-entry-section {
  margin-bottom: 52px;
}

.guide-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.guide-entry-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--wood);
}

.guide-beginner {
  border-top-color: var(--blue);
}

.guide-advanced {
  border-top-color: var(--leaf);
}

.guide-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.guide-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--wood);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.guide-beginner .guide-step-number {
  background-color: var(--blue);
}

.guide-advanced .guide-step-number {
  background-color: var(--leaf);
}

.guide-card-title {
  font-size: 20px;
}

.guide-card-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.guide-preview-steps {
  margin-bottom: 18px;
}

.guide-preview-steps li {
  font-size: 14px;
  color: var(--ink);
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}

.guide-preview-steps li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--line);
}

.guide-beginner .guide-preview-steps li::before {
  background-color: var(--blue);
}

.guide-advanced .guide-preview-steps li::before {
  background-color: var(--leaf);
}

.guide-entry-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--wood);
}

/* 下一屏预告条 */
.next-screen-teaser {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--wood);
  margin-bottom: 20px;
}

.teaser-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.teaser-text {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.7;
  flex: 1;
  min-width: 240px;
}

.teaser-links {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.teaser-link {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  background-color: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.teaser-link:hover {
  border-color: var(--wood);
  color: var(--wood);
}

.teaser-features {
  background-color: var(--wood);
  color: #fff;
  border-color: var(--wood);
}

.teaser-features:hover {
  background-color: #9a5417;
  color: #fff;
}

/* --------------------------------------------------------------------------
   5. pages —— 题材分类页 ttmh/topics.html
   -------------------------------------------------------------------------- */
.topic-grid-section {
  margin-bottom: 52px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.topic-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 5px solid var(--wood);
}

.topic-card:nth-child(1) {
  border-top-color: #c0392b;
}

.topic-card:nth-child(2) {
  border-top-color: #d47a9e;
}

.topic-card:nth-child(3) {
  border-top-color: #4a4a48;
}

.topic-card:nth-child(4) {
  border-top-color: #6b8e23;
}

.topic-card:nth-child(5) {
  border-top-color: #3b6ea5;
}

.topic-card:nth-child(6) {
  border-top-color: #b5651d;
}

.topic-card:nth-child(7) {
  border-top-color: #8e44ad;
}

.topic-card:nth-child(8) {
  border-top-color: #16a085;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.topic-card-media {
  height: 160px;
  overflow: hidden;
}

.topic-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-card-body {
  padding: 18px 18px 22px;
}

.topic-name {
  font-size: 18px;
  margin-bottom: 8px;
}

.topic-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
}

.topic-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--wood);
}

/* 题材选择引导 */
.topic-guide-section {
  margin-bottom: 20px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}

.guide-card:nth-child(2) {
  border-left-color: var(--red);
}

.guide-card:nth-child(3) {
  border-left-color: var(--leaf);
}

.guide-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.guide-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 14px;
}

.guide-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--wood);
}

/* --------------------------------------------------------------------------
   6. pages —— 新手入门 ttmh/beginner.html
   -------------------------------------------------------------------------- */
.reading-path-section {
  margin-bottom: 52px;
}

.section-heading {
  margin-bottom: 24px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.path-step {
  display: flex;
  gap: 20px;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}

.path-step:nth-child(2) {
  border-left-color: var(--leaf);
}

.path-step:nth-child(3) {
  border-left-color: var(--wood);
}

.path-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.path-step:nth-child(2) .step-number {
  background-color: var(--leaf);
}

.path-step:nth-child(3) .step-number {
  background-color: var(--wood);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 19px;
  margin-bottom: 8px;
}

.step-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.step-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--wood);
}

/* 新手困惑 */
.beginner-faq-section {
  margin-bottom: 52px;
}

.confusion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.confusion-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
}

.confusion-card:nth-child(2) {
  border-top-color: var(--red);
}

.confusion-card:nth-child(3) {
  border-top-color: var(--blue);
}

.confusion-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.confusion-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* 阅读场景 */
.reading-scene-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 52px;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.scene-text .section-title {
  margin-bottom: 12px;
}

.scene-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.scene-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wood);
}

.scene-figure {
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
}

.scene-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-caption {
  font-size: 13px;
  color: var(--text-light);
  padding: 8px 4px 0;
  text-align: center;
}

/* 下一步建议 */
.next-step-section {
  margin-bottom: 20px;
}

.next-step-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--wood);
}

.next-step-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.next-step-text {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 18px;
}

.next-step-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.next-link {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  background-color: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.next-link:hover {
  border-color: var(--wood);
  color: var(--wood);
}

/* --------------------------------------------------------------------------
   7. pages —— 追更指南 ttmh/advanced.html
   -------------------------------------------------------------------------- */
.tracking-steps {
  margin-bottom: 52px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.step-item:last-child {
  border-bottom: none;
}

.step-item .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--leaf);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-item:nth-child(2) .step-number {
  background-color: var(--blue);
}

.step-item:nth-child(3) .step-number {
  background-color: var(--wood);
}

.step-item:nth-child(4) .step-number {
  background-color: #8e44ad;
}

.step-item:nth-child(5) .step-number {
  background-color: var(--red);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 18px;
  margin-bottom: 6px;
}

.step-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.step-action {
  font-size: 14px;
}

.step-action a {
  color: var(--wood);
  font-weight: 600;
}

/* 节奏建议 */
.pace-advice {
  margin-bottom: 52px;
}

.pace-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.pace-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--leaf);
}

.pace-card:nth-child(2) {
  border-top-color: var(--blue);
}

.pace-card:nth-child(3) {
  border-top-color: var(--wood);
}

.pace-card-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.pace-card-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.tracking-figure {
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
  margin-top: 12px;
}

.tracking-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-caption {
  font-size: 13px;
  color: var(--text-light);
  padding: 8px 4px 0;
  text-align: center;
}

/* 追更笔记 */
.tracking-notes {
  margin-bottom: 20px;
}

.note-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.note-item {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}

.note-item:nth-child(2) {
  border-left-color: var(--leaf);
}

.note-item:nth-child(3) {
  border-left-color: var(--wood);
}

.note-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.note-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.notes-link {
  font-size: 14px;
}

.notes-link a {
  color: var(--wood);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. pages —— 漫画术语 ttmh/glossary.html
   -------------------------------------------------------------------------- */
.glossary-section {
  margin-bottom: 52px;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.term-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}

.term-card:nth-child(2n) {
  border-left-color: var(--leaf);
}

.term-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.term-name {
  font-size: 18px;
}

.term-tag {
  font-size: 12px;
  background-color: var(--paper);
  color: var(--wood);
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
}

.term-desc {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 10px;
}

.term-example {
  font-size: 13px;
  color: var(--text-light);
  background-color: var(--paper);
  border-radius: 4px;
  padding: 10px 14px;
  line-height: 1.6;
}

.term-example strong {
  color: var(--wood);
  font-weight: 600;
}

/* 术语使用提示 */
.usage-section {
  margin-bottom: 20px;
}

.usage-scene-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.usage-scene {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
}

.usage-scene:nth-child(2) {
  border-top-color: var(--leaf);
}

.usage-scene:nth-child(3) {
  border-top-color: var(--wood);
}

.usage-scene-title {
  font-size: 15px;
  margin-bottom: 8px;
}

.usage-scene-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 8px;
}

.usage-scene-text b {
  color: var(--wood);
  font-weight: 600;
}

.usage-scene-note {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

.usage-tip {
  font-size: 14px;
  color: var(--text-light);
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

.usage-tip a {
  color: var(--wood);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. pages —— 精选专题 ttmh/features.html
   -------------------------------------------------------------------------- */
.feature-list {
  margin-bottom: 52px;
}

.feature-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.feature-card-media {
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-card-intent {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 6px;
}

.feature-card-direction {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.feature-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--wood);
  align-self: flex-start;
}

/* 主题阅读建议 */
.reading-suggestions {
  margin-bottom: 20px;
}

.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.suggestion-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--wood);
}

.suggestion-card:nth-child(2) {
  border-bottom-color: var(--blue);
}

.suggestion-card:nth-child(3) {
  border-bottom-color: var(--leaf);
}

.suggestion-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.suggestion-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.suggestion-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.suggestion-note a {
  color: var(--wood);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. pages —— 常见问题 ttmh/faq.html
   -------------------------------------------------------------------------- */
.faq-section {
  margin-bottom: 52px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}

.faq-question {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.2s ease;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--wood);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question {
  background-color: var(--paper);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* 反馈说明 */
.feedback-section {
  margin-bottom: 20px;
}

.feedback-content {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--blue);
}

.feedback-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

.feedback-entry {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background-color: var(--paper);
  border-radius: 6px;
  padding: 16px 18px;
  margin-top: 16px;
}

.feedback-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.feedback-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. pages —— 404 页面
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-panel {
  text-align: center;
  max-width: 520px;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--wood);
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--wood);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-back {
  display: inline-block;
  padding: 10px 28px;
  background-color: var(--wood);
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
}

.error-back:hover {
  background-color: #9a5417;
  color: #fff;
}

/* --------------------------------------------------------------------------
   12. responsive —— 响应式断点
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .topic-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .hero-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-feature-card {
    grid-row: auto;
  }

  .hero-figure {
    height: 220px;
  }

  .topic-spine-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .guide-entry-grid {
    grid-template-columns: 1fr;
  }

  .pace-card-grid,
  .note-list,
  .suggestion-grid,
  .usage-scene-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .reading-scene-section {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card-media {
    height: 200px;
  }
}

@media (max-width: 768px) {
  /* 导航切换 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border-bottom: 3px solid var(--wood);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 4px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list li a {
    padding: 12px 10px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .site-nav .nav-list li:last-child a {
    border-bottom: none;
  }

  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .brand-tagline {
    display: none;
  }

  /* 内页布局 */
  .inner-main {
    padding: 20px 16px 48px;
  }

  .home-main {
    padding: 20px 16px 48px;
  }

  .page-header {
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 21px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .confusion-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .term-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pace-card-grid,
  .note-list,
  .suggestion-grid,
  .usage-scene-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px 24px;
  }

  .footer-bottom {
    padding: 14px 16px;
  }

  .teaser-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .teaser-links {
    width: 100%;
  }

  .teaser-link {
    flex: 1;
    text-align: center;
  }

  .path-step {
    padding: 18px;
    gap: 14px;
  }

  .step-item {
    gap: 14px;
  }

  .content-media-primary {
    height: 180px;
  }

  .content-media-inline {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-spine-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-figure {
    height: 180px;
  }

  .hero-feature-content {
    padding: 16px;
  }

  .hero-feature-title {
    font-size: 19px;
  }

  .update-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
  }

  .update-title {
    flex-basis: calc(100% - 24px);
  }

  .update-topic {
    font-size: 12px;
  }

  .update-status {
    font-size: 11px;
  }

  .brand-name {
    font-size: 20px;
  }

  .page-title {
    font-size: 23px;
  }

  .section-title {
    font-size: 19px;
  }

  .guide-entry-card {
    padding: 20px 16px;
  }

  .next-screen-teaser {
    padding: 24px 18px;
  }

  .feature-card {
    padding: 14px;
  }

  .feature-card-media {
    height: 160px;
  }

  .step-number {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .path-step .step-number {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .error-main {
    padding: 60px 16px;
  }

  .error-panel {
    padding: 36px 24px;
  }

  .error-code {
    font-size: 48px;
  }
}
