/* ============================================================
   天天漫画 xibangmuying.com - 全站样式表
   视觉方向：米白底、深墨标题、朱砂强调色、地产信息风
   ============================================================ */

/* ------------------------------------------------------------
   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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #22262b;
  background-color: #f7f4ee;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #b3362c;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #8f2a22;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.4;
  font-weight: 700;
  color: #22262b;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 18px;
}

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */

/* 全站统一页头 */
.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid #ded8cf;
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #22262b;
  letter-spacing: 0.02em;
  padding: 8px 0;
}

.brand-logo:hover {
  color: #b3362c;
}

.brand-name {
  border-left: 4px solid #b3362c;
  padding-left: 10px;
  line-height: 1.3;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  color: #22262b;
  border-radius: 4px;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  color: #b3362c;
  background-color: #f7f4ee;
}

.nav-list li a.is-current {
  color: #b3362c;
  font-weight: 700;
  background-color: #f7f4ee;
}

/* 汉堡按钮，桌面隐藏 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #22262b;
  border-radius: 1px;
}

/* 全站页脚 */
.site-footer {
  background-color: #22262b;
  color: #ded8cf;
  margin-top: 60px;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .footer-tagline {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #ded8cf;
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.footer-links-group ul li {
  margin-bottom: 8px;
}

.footer-links-group ul li a {
  font-size: 14px;
  color: #ded8cf;
  line-height: 1.6;
}

.footer-links-group ul li a:hover {
  color: #ffffff;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
  text-align: center;
}

.footer-copyright p {
  font-size: 13px;
  color: #a8a29a;
  max-width: 1120px;
  margin: 0 auto;
}

/* 内页统一容器 */
.inner-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  flex: 1 0 auto;
}

/* 面包屑 */
.breadcrumb {
  padding: 20px 0 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: #6b5b4e;
}

.breadcrumb a:hover {
  color: #b3362c;
}

.breadcrumb-sep {
  color: #a8a29a;
  margin: 0 2px;
}

.breadcrumb-current {
  color: #22262b;
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  padding: 24px 0 28px;
  border-bottom: 1px solid #ded8cf;
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  color: #22262b;
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  color: #6b5b4e;
  max-width: 760px;
  line-height: 1.75;
}

/* 页面布局：主内容 + 右侧栏 */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.page-layout .main-content {
  min-width: 0;
}

/* 侧栏通用 */
.sidebar {
  min-width: 0;
}

.sidebar-title,
.aside-title {
  font-size: 18px;
  font-weight: 700;
  color: #22262b;
  padding-bottom: 12px;
  border-bottom: 2px solid #b3362c;
  margin-bottom: 20px;
}

/* 相关链接区（首页专用底部导航） */
.related-links {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #ded8cf;
}

.related-links-label {
  font-size: 15px;
  font-weight: 700;
  color: #6b5b4e;
  margin-right: 16px;
}

.related-links-item {
  display: inline-block;
  font-size: 14px;
  color: #b3362c;
  padding: 6px 12px;
  margin-right: 8px;
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 4px;
  margin-bottom: 8px;
}

.related-links-item:hover {
  background-color: #f7f4ee;
  border-color: #b3362c;
}

/* ------------------------------------------------------------
   Components
   ------------------------------------------------------------ */

/* 区块通用 */
.section-block {
  margin-bottom: 48px;
}

.section-block h2 {
  font-size: 20px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ded8cf;
  position: relative;
}

.section-block h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background-color: #b3362c;
}

.section-intro {
  font-size: 15px;
  color: #6b5b4e;
  margin-bottom: 20px;
  max-width: 720px;
}

.section-title {
  font-size: 20px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ded8cf;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background-color: #b3362c;
}

/* 首页首屏 */
.home-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 36px;
  border-bottom: 2px solid #ded8cf;
}

.home-hero h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.hero-description {
  font-size: 16px;
  color: #6b5b4e;
  max-width: 720px;
  margin-bottom: 24px;
  line-height: 1.75;
}

.hero-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topic-tag {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #22262b;
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.topic-tag:hover {
  color: #ffffff;
  background-color: #b3362c;
  border-color: #b3362c;
}

/* 首页主容器 */
.home-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* 更新赛程表 */
.update-schedule {
  padding: 40px 0 8px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  background-color: #ffffff;
}

.schedule-table th {
  background-color: #22262b;
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid #22262b;
  white-space: nowrap;
}

.schedule-table td {
  padding: 12px 16px;
  border: 1px solid #ded8cf;
  color: #22262b;
  vertical-align: middle;
}

.schedule-table tbody tr {
  transition: background-color 0.15s ease;
}

.schedule-table tbody tr:hover {
  background-color: #f7f4ee;
}

.schedule-table tbody tr.schedule-today {
  background-color: #fdf1ee;
  border-left: 3px solid #b3362c;
}

.schedule-table tbody tr.schedule-today td:first-child {
  font-weight: 700;
  color: #b3362c;
}

.schedule-table td a {
  color: #b3362c;
  font-weight: 500;
  white-space: nowrap;
}

/* 首页双栏布局：主栏 + 侧栏 */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  padding: 40px 0 0;
}

.main-column {
  min-width: 0;
}

.home-aside {
  min-width: 0;
}

/* 题材卡片 */
.topic-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.topic-card {
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 6px;
  padding: 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.topic-card:hover {
  box-shadow: 0 4px 16px rgba(34, 38, 43, 0.08);
  border-color: #b3362c;
}

.topic-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #22262b;
}

.topic-card p {
  font-size: 14px;
  color: #6b5b4e;
  line-height: 1.7;
  margin-bottom: 8px;
}

.topic-card .topic-example {
  font-size: 13px;
  color: #a8a29a;
  margin-bottom: 16px;
}

.topic-card .card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #b3362c;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.topic-card .card-link:hover {
  border-bottom-color: #b3362c;
}

/* 近期更新列表 */
.update-list {
  border-top: 1px solid #ded8cf;
}

.update-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 8px;
  border-bottom: 1px solid #ded8cf;
  transition: background-color 0.15s ease;
}

.update-item:hover {
  background-color: #ffffff;
}

.update-item time {
  font-size: 14px;
  color: #6b5b4e;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.update-item a {
  font-size: 15px;
  font-weight: 500;
  color: #22262b;
  flex: 1;
  min-width: 0;
}

.update-item a:hover {
  color: #b3362c;
}

.update-item .update-type {
  font-size: 13px;
  color: #a8a29a;
  background-color: #f7f4ee;
  padding: 2px 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* 阅读入口卡 */
.guide-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-entry-card {
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-left: 4px solid #b3362c;
  border-radius: 6px;
  padding: 28px;
  transition: box-shadow 0.2s ease;
}

.guide-entry-card:hover {
  box-shadow: 0 4px 16px rgba(34, 38, 43, 0.08);
}

.guide-entry-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.guide-entry-card p {
  font-size: 14px;
  color: #6b5b4e;
  margin-bottom: 16px;
  line-height: 1.7;
}

.guide-entry-card .card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #b3362c;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.guide-entry-card .card-link:hover {
  border-bottom-color: #b3362c;
}

/* 人气作品速览 */
.popular-covers {
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 6px;
  padding: 24px 20px;
}

.popular-covers h2 {
  font-size: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ded8cf;
  margin-bottom: 20px;
  position: relative;
}

.popular-covers h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 36px;
  height: 2px;
  background-color: #b3362c;
}

.cover-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cover-item {
  padding-bottom: 16px;
  border-bottom: 1px solid #ded8cf;
}

.cover-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cover-figure {
  border-radius: 4px;
  overflow: hidden;
  background-color: #f7f4ee;
  margin-bottom: 10px;
}

.cover-figure img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.cover-topic {
  font-size: 13px;
  color: #b3362c;
  background-color: #fdf1ee;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.cover-item a.cover-link {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #22262b;
  line-height: 1.5;
}

.cover-item a.cover-link:hover {
  color: #b3362c;
}

/* 内页相关链接 */
.related-links h2,
.related-title {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ded8cf;
  position: relative;
}

.related-links h2::after,
.related-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 36px;
  height: 2px;
  background-color: #b3362c;
}

.related-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 6px;
  padding: 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  box-shadow: 0 4px 16px rgba(34, 38, 43, 0.08);
  border-color: #b3362c;
}

.related-card h3,
.related-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #22262b;
  margin-bottom: 8px;
  display: block;
}

.related-card p,
.related-card-text,
.related-card-desc {
  font-size: 14px;
  color: #6b5b4e;
  line-height: 1.6;
  display: block;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-list li a {
  display: block;
  font-size: 15px;
  color: #b3362c;
  padding: 10px 14px;
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.related-list li a:hover {
  background-color: #f7f4ee;
}

/* 品牌起点页 */
.origin-content {
  max-width: 860px;
}

.origin-narrative {
  margin-bottom: 40px;
}

.origin-narrative h2 {
  font-size: 20px;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ded8cf;
}

.origin-narrative p {
  margin-bottom: 16px;
  color: #3a3f45;
}

.origin-figure {
  margin: 32px 0 40px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #ded8cf;
}

.origin-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.origin-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: #6b5b4e;
  background-color: #f7f4ee;
}

.content-boundaries {
  margin-bottom: 48px;
}

.content-boundaries h2 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ded8cf;
  position: relative;
}

.content-boundaries h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 36px;
  height: 2px;
  background-color: #b3362c;
}

.content-boundaries ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-boundaries li {
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 4px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #3a3f45;
}

.content-boundaries li strong {
  color: #22262b;
  margin-right: 6px;
}

/* 产品理念页 */
.layout-sidebar-right {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.layout-sidebar-right .main-content {
  min-width: 0;
}

.principle-block {
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 24px;
}

.principle-block h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #22262b;
}

.principle-definition {
  font-size: 16px;
  color: #3a3f45;
  margin-bottom: 12px;
}

.principle-definition strong {
  color: #b3362c;
  font-weight: 700;
}

.principle-explanation {
  font-size: 15px;
  color: #3a3f45;
  margin-bottom: 12px;
  line-height: 1.75;
}

.principle-example {
  font-size: 14px;
  color: #6b5b4e;
  background-color: #f7f4ee;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.principle-example strong {
  color: #22262b;
}

.principle-related {
  font-size: 14px;
  color: #6b5b4e;
}

.principle-related strong {
  color: #22262b;
  margin-right: 8px;
}

.principle-related a {
  color: #b3362c;
  margin-right: 12px;
}

.quote-block {
  background-color: #fdf1ee;
  border-left: 4px solid #b3362c;
  border-radius: 0 6px 6px 0;
  padding: 24px 28px;
  margin: 32px 0;
}

.quote-block blockquote {
  font-size: 20px;
  font-weight: 700;
  color: #22262b;
  line-height: 1.6;
  margin-bottom: 8px;
}

.quote-block figcaption {
  font-size: 14px;
  color: #6b5b4e;
}

/* 术语速查 */
.quick-terms {
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 6px;
  padding: 24px 20px;
}

.term-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.term-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: #22262b;
  margin-bottom: 6px;
}

.term-item p {
  font-size: 14px;
  color: #6b5b4e;
  line-height: 1.6;
}

.sidebar-link {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #b3362c;
  padding: 10px 14px;
  background-color: #f7f4ee;
  border-radius: 4px;
  text-align: center;
  transition: background-color 0.2s ease;
}

.sidebar-link:hover {
  background-color: #fdf1ee;
}

/* 理念页配图 */
.intro-image {
  max-width: 860px;
  margin: 32px 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #ded8cf;
}

.intro-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.intro-image figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: #6b5b4e;
  background-color: #f7f4ee;
}

/* 制作过程页 */
.process-section {
  margin-bottom: 40px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.process-step {
  display: flex;
  gap: 20px;
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 6px;
  padding: 24px;
}

.step-number {
  font-size: 32px;
  font-weight: 700;
  color: #b3362c;
  line-height: 1;
  flex-shrink: 0;
  min-width: 52px;
  font-variant-numeric: tabular-nums;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: #22262b;
  margin-bottom: 8px;
}

.step-text {
  font-size: 15px;
  color: #3a3f45;
  line-height: 1.7;
  margin-bottom: 8px;
}

.process-figure {
  margin: 32px 0 40px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #ded8cf;
}

.process-figure .process-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.figure-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: #6b5b4e;
  background-color: #f7f4ee;
}

.schedule-note {
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 40px;
}

.schedule-content p {
  font-size: 15px;
  color: #3a3f45;
  margin-bottom: 12px;
  line-height: 1.75;
}

.schedule-content p:last-child {
  margin-bottom: 0;
}

/* 系列目录页 */
.page-catalog {
  display: block;
}

.sidebar-left {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

/* 目录页左侧锚点 */
.topic-anchors {
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 6px;
  padding: 24px 20px;
  position: sticky;
  top: 20px;
}

.anchor-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.anchor-list li a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  color: #22262b;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.anchor-list li a:hover {
  background-color: #f7f4ee;
  color: #b3362c;
}

.aside-note {
  font-size: 13px;
  color: #a8a29a;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid #ded8cf;
}

/* 目录页系列分组 */
.series-group {
  margin-bottom: 48px;
}

.group-title {
  font-size: 20px;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ded8cf;
  position: relative;
}

.group-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 36px;
  height: 2px;
  background-color: #b3362c;
}

.group-desc {
  font-size: 14px;
  color: #6b5b4e;
  margin-bottom: 20px;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.series-card {
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.series-card:hover {
  box-shadow: 0 4px 16px rgba(34, 38, 43, 0.08);
  border-color: #b3362c;
}

.series-media {
  background-color: #f7f4ee;
  overflow: hidden;
}

.series-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.series-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.series-name {
  font-size: 17px;
  font-weight: 700;
  color: #22262b;
  margin-bottom: 8px;
}

.series-tags {
  font-size: 13px;
  color: #b3362c;
  margin-bottom: 8px;
}

.series-status {
  font-size: 13px;
  color: #6b5b4e;
  margin-bottom: 10px;
  display: inline-block;
  background-color: #f7f4ee;
  padding: 2px 10px;
  border-radius: 3px;
  align-self: flex-start;
}

.series-desc {
  font-size: 14px;
  color: #6b5b4e;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.series-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #b3362c;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  align-self: flex-start;
}

.series-link:hover {
  border-bottom-color: #b3362c;
}

/* 近期动态页 */
.updates-section {
  margin-bottom: 40px;
}

.update-entry {
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 20px;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.update-date {
  font-size: 14px;
  color: #6b5b4e;
  font-variant-numeric: tabular-nums;
}

.update-tag {
  font-size: 13px;
  color: #b3362c;
  background-color: #fdf1ee;
  padding: 2px 10px;
  border-radius: 3px;
}

.update-title {
  font-size: 17px;
  font-weight: 700;
  color: #22262b;
  margin-bottom: 8px;
}

.update-desc {
  font-size: 15px;
  color: #3a3f45;
  line-height: 1.7;
  margin-bottom: 12px;
}

.update-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #b3362c;
  margin-bottom: 12px;
}

.update-link:hover {
  text-decoration: underline;
}

.related-notice {
  padding-top: 12px;
  border-top: 1px solid #ded8cf;
  font-size: 14px;
}

.related-label {
  color: #6b5b4e;
  margin-right: 8px;
}

.related-notice a {
  color: #b3362c;
}

.updates-figure {
  margin: 32px 0 40px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #ded8cf;
}

.updates-figure .updates-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.updates-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: #6b5b4e;
  background-color: #f7f4ee;
}

/* 动态侧栏分类 */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.category-list li a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  color: #22262b;
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.category-list li a:hover {
  background-color: #f7f4ee;
  color: #b3362c;
}

.sidebar-note {
  font-size: 13px;
  color: #a8a29a;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid #ded8cf;
}

/* 阅读说明页 */
.reading-steps {
  margin-bottom: 40px;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-top: 3px solid #b3362c;
  border-radius: 6px;
  padding: 24px;
}

.step-card .step-title {
  font-size: 17px;
  font-weight: 700;
  color: #22262b;
  margin-bottom: 10px;
}

.step-card .step-text {
  font-size: 14px;
  color: #6b5b4e;
  line-height: 1.7;
}

.guide-image {
  margin: 32px 0 40px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #ded8cf;
}

.guide-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.guide-image figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: #6b5b4e;
  background-color: #f7f4ee;
}

.convention-block {
  margin-bottom: 40px;
}

.convention-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.convention-item {
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-left: 3px solid #b3362c;
  border-radius: 4px;
  padding: 16px 20px;
  font-size: 15px;
  color: #3a3f45;
  line-height: 1.7;
}

/* FAQ 问答卡 */
.questions-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-card {
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 6px;
  overflow: hidden;
}

.question-summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #22262b;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
  transition: background-color 0.2s ease;
}

.question-summary::-webkit-details-marker {
  display: none;
}

.question-summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: #b3362c;
}

.question-card[open] .question-summary::after {
  content: "−";
}

.question-summary:hover {
  background-color: #f7f4ee;
}

.question-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  color: #6b5b4e;
  line-height: 1.7;
  border-top: 1px solid #ded8cf;
  padding-top: 14px;
}

/* 404 页 */
.error-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.error-panel {
  text-align: center;
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 8px;
  padding: 60px 40px;
  margin-bottom: 40px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: #b3362c;
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #6b5b4e;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.error-cta {
  display: inline-block;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: #b3362c;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.error-cta:hover {
  background-color: #8f2a22;
  color: #ffffff;
}

.error-links-title {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ded8cf;
  text-align: center;
}

.error-link-list {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.error-link-list li a {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  color: #22262b;
  background-color: #ffffff;
  border: 1px solid #ded8cf;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.error-link-list li a:hover {
  background-color: #f7f4ee;
  color: #b3362c;
}

/* 滚动出现动画（不影响初始可见性） */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

/* 平板及以下 */
@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-aside {
    order: 2;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .layout-sidebar-right {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar-left {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .topic-anchors {
    position: static;
  }

  .anchor-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .anchor-list li a {
    padding: 8px 16px;
    background-color: #f7f4ee;
    border-radius: 4px;
  }
}

/* 手机端 */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 16px;
  }

  .header-inner {
    min-height: 60px;
    padding: 0 16px;
  }

  .brand-logo {
    font-size: 19px;
  }

  /* 汉堡按钮显示 */
  .nav-toggle {
    display: flex;
  }

  /* 导航列表默认收起 */
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 2px solid #ded8cf;
    box-shadow: 0 8px 24px rgba(34, 38, 43, 0.1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px;
    z-index: 200;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid #f7f4ee;
    border-radius: 0;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav-list li a.is-current {
    background-color: #fdf1ee;
  }

  /* 首页首屏 */
  .home-hero {
    padding: 32px 16px 28px;
  }

  .home-hero h1 {
    font-size: 22px;
  }

  .hero-topic-tags {
    gap: 8px;
  }

  .topic-tag {
    padding: 8px 14px;
    font-size: 13px;
  }

  .home-main {
    padding: 0 16px;
  }

  .inner-main {
    padding: 0 16px;
  }

  .page-header {
    padding: 20px 0 24px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-description {
    font-size: 15px;
  }

  /* 表格横向滚动 */
  .table-scroll {
    margin: 0 -4px;
    padding: 0 4px;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* 题材卡片单列 */
  .topic-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic-card {
    padding: 20px;
  }

  /* 更新列表 */
  .update-item {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .update-item time {
    width: 100%;
  }

  .update-item .update-type {
    margin-left: auto;
  }

  /* 阅读入口 */
  .guide-entry-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-entry-card {
    padding: 20px;
  }

  /* 人气作品 */
  .popular-covers {
    padding: 20px 16px;
  }

  .cover-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .cover-item {
    width: calc(50% - 8px);
    padding-bottom: 0;
    border-bottom: none;
  }

  .cover-figure img {
    height: 110px;
  }

  /* 相关卡片 */
  .related-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 步骤 */
  .steps-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-step {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .step-number {
    font-size: 28px;
  }

  /* 系列卡 */
  .series-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .series-media img {
    height: 140px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 16px 28px;
  }

  .footer-copyright {
    padding: 16px;
  }

  /* 404 */
  .error-main {
    padding: 40px 16px;
  }

  .error-panel {
    padding: 40px 20px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-link-list {
    flex-direction: column;
    align-items: center;
  }

  .error-link-list li a {
    width: 100%;
    text-align: center;
  }

  /* 目录页锚点 */
  .anchor-list {
    flex-direction: column;
  }

  .anchor-list li a {
    width: 100%;
  }

  /* 移动端内容顺序：主内容在侧栏之前 */
  .sidebar-left {
    grid-template-columns: 1fr;
  }

  .sidebar-left .topic-anchors {
    order: 2;
  }

  .sidebar-left .site-main {
    order: 1;
  }

  .page-layout .sidebar {
    order: 2;
  }

  .page-layout .main-content {
    order: 1;
  }
}

/* 小手机 */
@media (max-width: 480px) {
  .cover-item {
    width: 100%;
  }

  .cover-figure img {
    height: 130px;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
