/* ============================================================
   BASE — 重置、变量、全局排版
   ============================================================ */
:root {
  --paper: #FFF9F0;
  --ink: #2B2B35;
  --coral: #F25C54;
  --mustard: #F7B32B;
  --teal: #3D9185;
  --blue: #4C9FEB;
  --warm-gray: #6B6572;
  --border: #F0E2D5;
  --white: #FFFFFF;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --container: 1200px;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(43, 43, 53, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--coral);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ============================================================
   LAYOUT — 全站骨架
   ============================================================ */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--coral);
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  white-space: nowrap;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  color: var(--ink);
}

.nav-list li a:hover {
  background: var(--paper);
  color: var(--coral);
}

.nav-list li a.is-current {
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius);
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  flex: 1;
}

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--coral);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--warm-gray);
  max-width: 260px;
}

.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--warm-gray);
}

.footer-col ul li a:hover {
  color: var(--coral);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--warm-gray);
}

/* ============================================================
   COMPONENTS — 通用模块
   ============================================================ */

/* 通知条 */
.notice-bar {
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  gap: 16px;
  position: relative;
}

.notice-text {
  font-size: 0.875rem;
}

.notice-close {
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.notice-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  color: var(--white);
  box-shadow: 0 4px 12px rgba(242, 92, 84, 0.3);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* 区块标题 */
.section-head {
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: var(--coral);
}

.section-desc {
  font-size: 0.9375rem;
  color: var(--warm-gray);
  max-width: 720px;
}

/* 更多链接 */
.more-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--coral);
  border-bottom: 1px solid transparent;
}

.more-link:hover {
  border-bottom-color: var(--coral);
}

/* 标签 */
.tag-chip {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tag-chip:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-2px);
}

.tag-small {
  font-size: 0.75rem;
  padding: 3px 10px;
}

.tag-red {
  background: rgba(242, 92, 84, 0.12);
  border-color: rgba(242, 92, 84, 0.3);
  color: var(--coral);
}

.tag-yellow {
  background: rgba(247, 179, 43, 0.12);
  border-color: rgba(247, 179, 43, 0.3);
  color: #C08A00;
}

.tag-green {
  background: rgba(61, 145, 133, 0.12);
  border-color: rgba(61, 145, 133, 0.3);
  color: var(--teal);
}

/* 状态标记 */
.status-update,
.status-updating {
  color: var(--teal);
}

.status-hiatus {
  color: var(--mustard);
}

.status-pending {
  color: var(--warm-gray);
}

.status-completed {
  color: var(--blue);
}

/* 面包屑 */
.breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px 0;
  font-size: 0.875rem;
  color: var(--warm-gray);
}

.breadcrumb a {
  color: var(--warm-gray);
}

.breadcrumb a:hover {
  color: var(--coral);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--border);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 24px;
}

.page-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.page-description {
  font-size: 1rem;
  color: var(--warm-gray);
  max-width: 760px;
}

/* 内页主容器 */
.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* 侧栏布局 — 侧栏在前 */
.sidebar-left {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 8px;
}

/* 关联栏目入口 */
.related-columns {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-title {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.related-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.related-card p {
  font-size: 0.875rem;
  color: var(--warm-gray);
}

.related-card-name {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.related-card-desc {
  display: block;
  font-size: 0.875rem;
  color: var(--warm-gray);
}

/* 原生 details 折叠 */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 40px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--coral);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 0.9375rem;
  color: var(--warm-gray);
}

/* ============================================================
   PAGES — 首页
   ============================================================ */
.home-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* 通知条已在 components 定义 */

/* 首屏封面墙 */
.hero-cover-wall {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 24px;
  padding: 32px 0 40px;
  align-items: stretch;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: var(--border);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0;
}

.hero-kicker {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1rem;
  color: var(--warm-gray);
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-columns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.column-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.column-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.column-text {
  font-weight: 700;
  font-size: 0.9375rem;
}

/* 题材标签墙 */
.subject-tag-wall {
  padding: 40px 0;
}

.tag-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.tag-scroll::-webkit-scrollbar {
  height: 6px;
}

.tag-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.tag-scroll .tag-chip {
  flex-shrink: 0;
}

/* 更新日历与最近更新 */
.update-calendar-list {
  padding: 40px 0;
}

.update-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.calendar-panel,
.recent-updates {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.panel-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.week-calendar {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
}

.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.weekday-cell {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--warm-gray);
  padding: 8px 0;
}

.status-cell {
  text-align: center;
  padding: 10px 4px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
}

.status-update {
  background: rgba(61, 145, 133, 0.12);
  color: var(--teal);
}

.status-hiatus {
  background: rgba(247, 179, 43, 0.12);
  color: #C08A00;
}

.status-pending {
  background: rgba(107, 101, 114, 0.1);
  color: var(--warm-gray);
}

.calendar-note {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  margin-top: 12px;
}

.calendar-note a {
  color: var(--teal);
  font-weight: 600;
}

.update-group {
  margin-bottom: 20px;
}

.update-date-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--warm-gray);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.update-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(240, 226, 213, 0.5);
}

.update-list li:last-child {
  border-bottom: none;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

.update-info {
  flex: 1;
}

.update-name {
  font-weight: 600;
  display: block;
}

.update-meta {
  font-size: 0.75rem;
  color: var(--warm-gray);
}

.update-item .status-update,
.update-item .status-hiatus,
.update-item .status-pending {
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* 榜单预览 */
.ranking-preview {
  padding: 40px 0;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
  text-align: center;
}

.ranking-item img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-name {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.rank-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rank-status {
  font-size: 0.8125rem;
  font-weight: 600;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(61, 145, 133, 0.1);
}

.ranking-preview .more-link {
  display: inline-block;
  margin-top: 16px;
}

/* 追更向导三步 */
.guide-steps {
  padding: 40px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mustard);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.step-card .step-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card .step-text {
  font-size: 0.875rem;
  color: var(--warm-gray);
  margin-bottom: 16px;
  line-height: 1.7;
}

.step-card .step-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--coral);
}

/* 首页 FAQ */
.faq-accordion {
  padding: 40px 0;
}

.faq-accordion .faq-list {
  max-width: 800px;
}

/* 公告网格 */
.notice-grid {
  padding: 40px 0;
}

.notice-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.notice-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 4px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.notice-card.card-green {
  border-top-color: var(--teal);
}

.notice-card.card-yellow {
  border-top-color: var(--mustard);
}

.notice-card.card-blue {
  border-top-color: var(--blue);
}

.notice-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.notice-card-text {
  font-size: 0.875rem;
  color: var(--warm-gray);
  margin-bottom: 16px;
  line-height: 1.7;
}

.notice-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--coral);
}

/* 首页相关链接 */
.related-links {
  padding: 24px 0 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.related-links-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--warm-gray);
}

.related-links-item {
  font-size: 0.875rem;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.related-links-item:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* ============================================================
   PAGES — 题材手册
   ============================================================ */
.subject-nav-aside {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 88px;
}

.aside-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.subject-index-list li {
  margin-bottom: 4px;
}

.subject-index-list a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.subject-index-list a:hover {
  background: var(--paper);
}

.subject-index-name {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.subject-index-note {
  display: block;
  font-size: 0.8125rem;
  color: var(--warm-gray);
}

.subject-article-main {
  min-width: 0;
}

.subject-entry {
  margin-bottom: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.subject-entry-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.subject-entry-head h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.subject-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(61, 145, 133, 0.1);
  color: var(--teal);
}

.subject-entry-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.subject-figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.subject-figure img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.subject-text p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 12px;
  color: var(--ink);
}

.subject-text .subject-related {
  font-size: 0.875rem;
  color: var(--teal);
  font-weight: 600;
}

.subject-glossary {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.subject-glossary h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.glossary-lead {
  font-size: 0.9375rem;
  color: var(--warm-gray);
  margin-bottom: 20px;
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.glossary-list li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
}

.glossary-list h3 {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.glossary-list p {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* ============================================================
   PAGES — 追更向导
   ============================================================ */
.status-legend-aside {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 88px;
}

.status-legend-aside h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.status-legend-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(240, 226, 213, 0.5);
}

.status-legend-list li:last-child {
  border-bottom: none;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.status-updating .status-dot {
  background: var(--teal);
}

.status-hiatus .status-dot {
  background: var(--mustard);
}

.status-completed .status-dot {
  background: var(--blue);
}

.status-pending .status-dot {
  background: var(--warm-gray);
}

.status-text strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.status-text p {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

.legend-note {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  margin-top: 12px;
  padding: 12px;
  background: var(--paper);
  border-radius: var(--radius);
  line-height: 1.6;
}

.guide-main {
  min-width: 0;
}

.guide-steps-main {
  margin-bottom: 40px;
}

.guide-steps-main h2,
.calendar-list h2,
.tips-note h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-left: 14px;
}

.guide-steps-main h2::before,
.calendar-list h2::before,
.tips-note h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--mustard);
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.guide-step-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mustard);
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 12px;
}

.guide-step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-step-card p {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

.guide-step-card a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--coral);
}

.calendar-list {
  margin-bottom: 40px;
}

.calendar-list-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.calendar-wrap,
.update-list-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.calendar-wrap h3,
.update-list-wrap h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.calendar-wrap .week-calendar {
  width: 100%;
}

.calendar-wrap .weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.calendar-wrap .weekday-cell {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--warm-gray);
  padding: 8px 0;
}

.calendar-wrap .cal-mark {
  text-align: center;
  padding: 10px 2px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.calendar-wrap .cal-update {
  background: rgba(61, 145, 133, 0.12);
  color: var(--teal);
}

.calendar-wrap .cal-hiatus {
  background: rgba(247, 179, 43, 0.12);
  color: #C08A00;
}

.calendar-wrap .cal-pending {
  background: rgba(107, 101, 114, 0.1);
  color: var(--warm-gray);
}

.calendar-figure {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
}

.calendar-figure img {
  width: 100%;
  height: auto;
}

.update-list-wrap .update-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(240, 226, 213, 0.5);
}

.update-list-wrap .update-list li:last-child {
  border-bottom: none;
}

.update-date {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--warm-gray);
  margin-bottom: 4px;
}

.update-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.update-desc {
  font-size: 0.8125rem;
  color: var(--warm-gray);
}

.update-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tips-note {
  margin-bottom: 24px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tip-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.tip-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tip-card p {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* ============================================================
   PAGES — 作品榜单
   ============================================================ */
.ranking-tabs {
  margin-bottom: 24px;
}

.ranking-tabs .section-title {
  margin-bottom: 16px;
}

.tab-controls {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--warm-gray);
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.is-active {
  background: var(--coral);
  color: var(--white);
}

.ranking-list .section-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.ranking-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.ranking-items .ranking-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-items .ranking-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.ranking-items .rank-number {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
  min-width: 48px;
  text-align: center;
}

.rank-cover {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-direction {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 6px;
  line-height: 1.5;
}

.rank-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rank-tags li {
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(61, 145, 133, 0.1);
  color: var(--teal);
  font-weight: 600;
}

.ranking-items .rank-status {
  font-size: 0.8125rem;
  font-weight: 600;
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(61, 145, 133, 0.1);
}

.ranking-notes {
  margin-bottom: 24px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.note-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.note-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.note-card p {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* ============================================================
   PAGES — 漫迷问答
   ============================================================ */
.faq-sidebar {
  min-width: 0;
}

.faq-sidebar-inner {
  position: sticky;
  top: 88px;
}

.editor-note-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.editor-note-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}

.editor-note-card p {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

.faq-category-nav {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.faq-category-nav h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.faq-category-nav ul li {
  margin-bottom: 4px;
}

.faq-category-nav ul li a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.faq-category-nav ul li a:hover {
  background: var(--paper);
  color: var(--coral);
}

.faq-content {
  min-width: 0;
}

.faq-section {
  margin-bottom: 40px;
}

.faq-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
}

.faq-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--blue);
}

.faq-section-desc {
  font-size: 0.875rem;
  color: var(--warm-gray);
  margin-bottom: 16px;
}

.faq-usage-note {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.faq-usage-note h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-usage-note p {
  font-size: 0.9375rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

.faq-usage-note a {
  color: var(--coral);
  font-weight: 600;
}

/* ============================================================
   PAGES — 版权与反馈
   ============================================================ */
.policy-summary {
  margin-bottom: 40px;
}

.summary-card {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.summary-text .section-title {
  margin-bottom: 12px;
}

.summary-text p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink);
}

.summary-figure {
  border-radius: var(--radius);
  overflow: hidden;
}

.summary-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.summary-figure figcaption {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  text-align: center;
  padding: 8px;
  background: var(--paper);
}

.applicable-audience,
.policy-terms,
.feedback-flow {
  margin-bottom: 40px;
}

.applicable-audience .section-title,
.policy-terms .section-title,
.feedback-flow .section-title {
  margin-bottom: 8px;
}

.applicable-audience .section-desc,
.feedback-flow .section-desc {
  margin-bottom: 20px;
}

.audience-grid,
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.audience-card,
.flow-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.audience-card h3,
.flow-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.audience-card p,
.flow-card p {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

.audience-card a,
.flow-card a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--coral);
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.term-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.term-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.term-item p {
  font-size: 0.9375rem;
  color: var(--warm-gray);
  line-height: 1.8;
}

/* ============================================================
   PAGES — 404
   ============================================================ */
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 20px 80px;
  text-align: center;
}

.error-panel {
  padding: 40px 0;
}

.error-code {
  font-size: 5rem;
  font-weight: 900;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.error-panel h1 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 1rem;
  color: var(--warm-gray);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.error-back-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--coral);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error-back-btn:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 92, 84, 0.3);
}

.error-suggest {
  margin-top: 40px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.suggest-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.suggest-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.suggest-list a {
  display: block;
  padding: 12px 16px;
  background: var(--paper);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.suggest-list a:hover {
  background: rgba(242, 92, 84, 0.1);
  color: var(--coral);
}

/* ============================================================
   RESPONSIVE — 响应式
   ============================================================ */

/* 平板 */
@media (max-width: 1024px) {
  .hero-cover-wall {
    grid-template-columns: 1fr 1fr;
  }

  .hero-columns {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .column-card {
    flex: 1;
    min-width: 180px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .related-grid,
  .notice-cards,
  .notes-grid,
  .audience-grid,
  .flow-grid,
  .tips-grid,
  .glossary-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .subject-entry-body {
    grid-template-columns: 180px 1fr;
  }
}

/* 手机 */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(43, 43, 53, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 8px 16px 16px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-list li a.is-current {
    background: var(--paper);
    color: var(--coral);
  }

  .site-main {
    padding: 0;
  }

  .home-main {
    padding: 0 16px;
  }

  .hero-cover-wall {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0 32px;
  }

  .hero-media {
    min-height: 220px;
  }

  .hero-copy {
    padding: 8px 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-columns {
    grid-column: auto;
    flex-direction: column;
  }

  .column-card {
    min-width: 0;
  }

  .subject-tag-wall,
  .update-calendar-list,
  .ranking-preview,
  .guide-steps,
  .faq-accordion,
  .notice-grid {
    padding: 28px 0;
  }

  .update-layout {
    grid-template-columns: 1fr;
  }

  .calendar-panel {
    display: none;
  }

  .steps-grid,
  .related-grid,
  .notice-cards,
  .notes-grid,
  .audience-grid,
  .flow-grid,
  .tips-grid,
  .glossary-list {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    gap: 12px;
    padding: 12px;
  }

  .ranking-item img {
    width: 48px;
    height: 48px;
  }

  .rank-number {
    font-size: 1.25rem;
    min-width: 32px;
  }

  .rank-status {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  /* 内页 */
  .inner-main {
    padding: 0 16px;
  }

  .breadcrumb {
    padding: 12px 16px 0;
    font-size: 0.8125rem;
  }

  .page-header {
    padding: 20px 16px 16px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-description {
    font-size: 0.9375rem;
  }

  /* 侧栏布局 — 主内容优先，侧栏收起为横向标签 */
  .sidebar-left {
    display: block;
  }

  .subject-nav-aside,
  .status-legend-aside,
  .faq-sidebar {
    position: static;
    margin-top: 24px;
  }

  .subject-index-list,
  .status-legend-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .subject-index-list li,
  .status-legend-list li {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .subject-index-list a {
    padding: 10px 16px;
    background: var(--paper);
    border-radius: 999px;
    white-space: nowrap;
  }

  .subject-index-note {
    display: none;
  }

  .status-legend-list li {
    padding: 8px 14px;
    background: var(--paper);
    border-radius: var(--radius);
    border-bottom: none;
  }

  .status-legend-list .status-text p {
    display: none;
  }

  .status-legend-list .status-text strong {
    font-size: 0.875rem;
  }

  .faq-sidebar-inner {
    position: static;
  }

  .editor-note-card {
    display: none;
  }

  .faq-category-nav ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .faq-category-nav ul li {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .faq-category-nav ul li a {
    padding: 10px 16px;
    background: var(--paper);
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.875rem;
  }

  /* 题材手册 */
  .subject-entry {
    padding: 20px;
  }

  .subject-entry-body {
    grid-template-columns: 1fr;
  }

  .subject-figure img {
    height: 200px;
  }

  /* 追更向导 */
  .guide-steps-grid {
    grid-template-columns: 1fr;
  }

  .calendar-list-wrap {
    grid-template-columns: 1fr;
  }

  /* 榜单 */
  .tab-controls {
    display: flex;
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.875rem;
    text-align: center;
  }

  .ranking-items .ranking-item {
    gap: 12px;
    padding: 12px;
  }

  .rank-cover {
    width: 56px;
    height: 56px;
  }

  .ranking-items .rank-number {
    font-size: 1.375rem;
    min-width: 36px;
  }

  .rank-direction {
    font-size: 0.875rem;
  }

  .rank-tags li {
    font-size: 0.6875rem;
  }

  .ranking-items .rank-status {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  /* 版权与反馈 */
  .summary-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .summary-figure img {
    height: 160px;
  }

  .term-item {
    padding: 20px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 16px;
  }

  .footer-brand-desc {
    max-width: none;
  }

  .footer-bottom {
    padding: 12px 16px;
  }

  /* 404 */
  .error-main {
    padding: 40px 16px 60px;
  }

  .error-code {
    font-size: 3.5rem;
  }

  .error-panel h1 {
    font-size: 1.375rem;
  }

  .error-suggest {
    padding: 24px 16px;
  }

  .suggest-list {
    grid-template-columns: 1fr;
  }

  /* 相关链接 */
  .related-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* 小屏手机 */
@media (max-width: 390px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.875rem;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .ranking-item {
    flex-wrap: wrap;
  }

  .rank-info {
    min-width: calc(100% - 110px);
  }

  .rank-status {
    margin-left: auto;
  }

  .ranking-items .ranking-item {
    flex-wrap: wrap;
  }

  .ranking-items .rank-info {
    min-width: calc(100% - 130px);
  }

  .ranking-items .rank-status {
    margin-left: auto;
  }

  .notice-card,
  .step-card,
  .tip-card,
  .note-card,
  .audience-card,
  .flow-card {
    padding: 18px;
  }

  .subject-entry {
    padding: 16px;
  }

  .subject-glossary {
    padding: 20px 16px;
  }

  .calendar-wrap,
  .update-list-wrap {
    padding: 16px;
  }

  .page-header {
    padding: 16px;
  }
}
