/* ==========================================================================
   漫蛙漫画 bvhjt.cn — 全站样式表
   分组：基础 / 布局 / 组件 / 页面 / 响应式
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 基础：变量、重置、排版
   -------------------------------------------------------------------------- */

:root {
  --brand: #2f6f5e;
  --brand-dark: #245647;
  --brand-soft: #e8f0ec;
  --zone-fantasy: #4a7fb5;
  --zone-daily: #c07a4a;
  --zone-mystery: #8a6bb0;
  --zone-scifi: #3f8f8a;
  --bg: #f7f8f6;
  --panel: #ffffff;
  --panel-alt: #f1f4f2;
  --text: #23282b;
  --text-soft: #6b7378;
  --line: #dfe4e1;
  --line-strong: #c9d2ce;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(35, 40, 43, 0.06);
  --shadow-hover: 0 4px 14px rgba(35, 40, 43, 0.1);
  --wrap: 1180px;
  --gap: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

h1, h2, h3, h4 {
  margin: 0 0 10px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

table {
  border-collapse: collapse;
  width: 100%;
}

strong {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   2. 布局：骨架容器
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main,
.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.home-main {
  padding-top: 8px;
}

/* 页头 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* 事实条 */

.site-factbar {
  background: var(--brand-soft);
  border-bottom: 1px solid var(--line);
}

.site-factbar p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--brand-dark);
}

/* 页脚 */

.site-footer {
  margin-top: auto;
  background: #eef1ef;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-title {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-list li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-list a {
  color: var(--text-soft);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-brand,
.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 13px;
  color: var(--text-soft);
}

.footer-brand {
  padding-bottom: 0;
}

.footer-copy {
  padding-top: 4px;
  padding-bottom: 20px;
}

/* --------------------------------------------------------------------------
   3. 组件：品牌标识、导航、面包屑、页标题区
   -------------------------------------------------------------------------- */

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  text-decoration: none;
  padding: 8px 0;
  min-height: 44px;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.2;
}

.brand-slogan {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-item a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  line-height: 1.4;
}

.nav-item a:hover,
.nav-item a:focus-visible {
  color: var(--brand);
  background: var(--panel-alt);
  text-decoration: none;
}

.nav-item.is-current a,
.nav-item a.is-current {
  color: var(--brand);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

/* 面包屑 */

.breadcrumb {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text);
}

/* 页面标题区 */

.page-header {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 24px 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  margin-bottom: 10px;
}

.page-description {
  max-width: 820px;
  color: var(--text-soft);
  font-size: 15px;
}

.page-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-soft);
}

/* 通用 section 标题组 */

.section-head {
  margin-bottom: 20px;
}

.section-head h2,
.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-head p,
.section-desc,
.section-intro {
  color: var(--text-soft);
  font-size: 14px;
  max-width: 860px;
}

.section-more {
  margin-top: 16px;
  font-size: 14px;
}

.section-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   4. 首页模块
   -------------------------------------------------------------------------- */

/* 首屏 */

.hero-index {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 34px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-title {
  font-size: 30px;
  margin-bottom: 12px;
}

.hero-summary {
  color: var(--text-soft);
  max-width: 560px;
}

.hero-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-quicklinks a {
  display: inline-block;
  padding: 9px 16px;
  min-height: 44px;
  line-height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 14px;
  color: var(--text);
  box-shadow: var(--shadow);
}

.hero-quicklinks a:hover,
.hero-quicklinks a:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
  box-shadow: var(--shadow-hover);
}

.hero-figure {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.hero-figure figcaption {
  padding: 10px 4px 2px;
}

/* 题材方向总览 */

.topic-overview,
.cover-wall,
.update-panel,
.rank-special,
.guide-summary,
.site-index {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.site-index {
  border-bottom: 0;
}

.topic-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.topic-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.topic-card-fantasy { border-top-color: var(--zone-fantasy); }
.topic-card-daily { border-top-color: var(--zone-daily); }
.topic-card-mystery { border-top-color: var(--zone-mystery); }
.topic-card-scifi { border-top-color: var(--zone-scifi); }

.topic-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.topic-card-fantasy .topic-name { color: var(--zone-fantasy); }
.topic-card-daily .topic-name { color: var(--zone-daily); }
.topic-card-mystery .topic-name { color: var(--zone-mystery); }
.topic-card-scifi .topic-name { color: var(--zone-scifi); }

.topic-desc {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.topic-items li {
  font-size: 14px;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  color: var(--text);
}

.topic-items li:first-child {
  border-top: 0;
  padding-top: 0;
}

/* 封面墙 */

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.cover-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cover-card:hover,
.cover-card:focus-within {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.cover-card a {
  display: block;
  color: inherit;
  padding: 10px;
}

.cover-card a:hover,
.cover-card a:focus-visible {
  text-decoration: none;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--panel-alt);
}

.cover-name {
  font-size: 15px;
  margin: 10px 0 4px;
}

.cover-card a:hover .cover-name,
.cover-card a:focus-visible .cover-name {
  color: var(--brand);
}

.cover-meta {
  font-size: 12px;
  color: var(--text-soft);
  margin: 0;
}

/* 更新日历与最近更新 */

.update-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.update-subtitle {
  font-size: 15px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.update-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.update-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 110px 96px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.update-item:last-child {
  border-bottom: 0;
}

.update-date {
  color: var(--zone-daily);
  font-weight: 600;
  font-size: 13px;
}

.update-name {
  color: var(--text);
  font-weight: 500;
}

.update-topic {
  font-size: 12px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  justify-self: start;
  white-space: nowrap;
}

.update-progress {
  font-size: 13px;
  color: var(--text-soft);
  text-align: right;
}

.update-aside {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.update-fields dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 12px;
}

.update-fields dt:first-child {
  margin-top: 0;
}

.update-fields dd {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.aside-note {
  margin-top: 16px;
  font-size: 13px;
}

/* 人气榜单与专题汇编 */

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rank-subtitle {
  font-size: 15px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.rank-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
}

.rank-name {
  color: var(--text);
  font-weight: 500;
}

.rank-reason {
  font-size: 13px;
  color: var(--text-soft);
}

.special-list {
  display: grid;
  gap: 14px;
}

.special-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--zone-mystery);
  border-radius: var(--radius);
  padding: 16px;
}

.special-name {
  font-size: 15px;
  margin-bottom: 6px;
}

.special-desc {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.special-count {
  font-size: 12px;
  color: var(--zone-mystery);
  margin: 0;
}

/* 字段口径与反馈摘要 */

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.guide-subtitle {
  font-size: 15px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.field-table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.field-table th,
.field-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table thead th {
  background: var(--panel-alt);
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 600;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th {
  font-weight: 600;
  color: var(--text);
  width: 132px;
}

.guide-aside {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.guide-aside p {
  font-size: 13px;
  color: var(--text-soft);
}

/* 站内栏目索引 */

.index-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
}

.index-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.index-card:hover,
.index-card:focus-within {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.index-card a {
  display: block;
  padding: 16px;
  color: inherit;
}

.index-card a:hover,
.index-card a:focus-visible {
  text-decoration: none;
}

.index-name {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--brand);
}

.index-desc {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. 内页模块
   -------------------------------------------------------------------------- */

/* 题材目录：分组清单 */

.topic-groups,
.topic-notes,
.topic-bridge,
.calendar-section,
.field-section,
.rhythm-section,
.rank-block,
.special-block,
.path-block,
.guide-intro,
.field-table-section,
.boundary-section,
.feedback-section,
.related-section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px 24px 0;
}

.topic-groups .section-title,
.topic-notes .section-title,
.topic-bridge .section-title,
.calendar-section .section-title,
.field-section .section-title,
.rhythm-section .section-title,
.rank-block .section-title,
.special-block .section-title,
.path-block .section-title,
.guide-intro .section-title,
.field-table-section .section-title,
.boundary-section .section-title,
.feedback-section .section-title,
.related-section .section-title {
  margin-bottom: 8px;
}

.topic-groups .section-intro,
.topic-notes .section-intro,
.topic-bridge .section-intro,
.rank-block .section-intro,
.special-block .section-intro,
.path-block .section-intro {
  margin-bottom: 22px;
}

.topic-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.topic-block-fantasy { border-left: 4px solid var(--zone-fantasy); }
.topic-block-healing { border-left: 4px solid var(--zone-daily); }
.topic-block-mystery { border-left: 4px solid var(--zone-mystery); }
.topic-block-school { border-left: 4px solid var(--zone-scifi); }

.topic-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.topic-block-head .topic-name {
  margin: 0;
  font-size: 18px;
}

.topic-block-fantasy .topic-name { color: var(--zone-fantasy); }
.topic-block-healing .topic-name { color: var(--zone-daily); }
.topic-block-mystery .topic-name { color: var(--zone-mystery); }
.topic-block-school .topic-name { color: var(--zone-scifi); }

.topic-count {
  font-size: 12px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.topic-figure {
  margin-bottom: 16px;
}

.topic-figure img {
  width: 100%;
  aspect-ratio: 21 / 8;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--panel-alt);
}

.topic-figure-cap {
  padding-top: 8px;
}

.topic-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.topic-orientation,
.topic-tone {
  font-size: 14px;
  color: var(--text-soft);
}

.topic-orientation {
  color: var(--text);
}

.topic-entry-list {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 4px;
}

.topic-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 96px minmax(0, 1.6fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.topic-entry:last-child {
  border-bottom: 0;
}

.entry-name {
  font-weight: 500;
  color: var(--text);
}

.entry-state {
  font-size: 12px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 2px 10px;
  justify-self: start;
  white-space: nowrap;
}

.entry-note {
  font-size: 13px;
  color: var(--text-soft);
}

/* 题材目录：补充说明与衔接 */

.topic-notes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 6px;
}

.topic-note-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.topic-note-title {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--brand);
}

.topic-note-text {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
}

.bridge-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 6px;
}

.bridge-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.bridge-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.bridge-text {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
}

.bridge-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-soft);
}

/* 更新日历 */

.page-shell {
  display: none;
}

.calendar-groups {
  display: grid;
  gap: 20px;
  margin-top: 6px;
}

.calendar-day {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.calendar-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--panel-alt);
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--zone-daily);
}

.calendar-day-title {
  font-size: 16px;
  margin: 0;
  color: var(--text);
}

.calendar-day-count {
  font-size: 12px;
  color: var(--text-soft);
}

.calendar-list {
  padding: 0 18px;
}

.calendar-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 130px 110px;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.calendar-item:last-child {
  border-bottom: 0;
}

.calendar-item-title {
  font-weight: 500;
  color: var(--text);
}

.calendar-item-topic {
  font-size: 12px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  justify-self: start;
  white-space: nowrap;
}

.calendar-item-progress {
  font-size: 13px;
  color: var(--text-soft);
  text-align: right;
}

.calendar-media {
  margin-top: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.calendar-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--panel-alt);
}

.calendar-media figcaption {
  padding: 10px 4px 2px;
}

/* 字段说明列表 */

.field-list {
  margin: 6px 0 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.field-row:last-child {
  border-bottom: 0;
}

.field-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field-value {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.field-value strong {
  color: var(--text);
}

/* 更新节奏提示 */

.rhythm-body {
  margin-top: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--zone-daily);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.rhythm-text {
  font-size: 14px;
  color: var(--text-soft);
}

.rhythm-text strong {
  color: var(--text);
}

/* 榜单与专题 */

.rank-block .rank-list {
  margin-top: 6px;
}

.rank-block .rank-item {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  padding: 16px 18px;
}

.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
}

.rank-body .rank-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.rank-body .rank-name a {
  color: var(--text);
}

.rank-body .rank-name a:hover,
.rank-body .rank-name a:focus-visible {
  color: var(--brand);
}

.rank-body .rank-reason {
  margin: 0;
}

.special-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 6px;
}

.special-block .special-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--zone-mystery);
  border-left: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.special-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: var(--panel-alt);
}

.special-body {
  padding: 16px;
}

.special-block .special-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.special-scope {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.special-meta {
  font-size: 12px;
  color: var(--zone-mystery);
  margin-bottom: 12px;
}

.special-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
  min-height: 32px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 6px;
}

.path-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.path-name {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--brand);
}

.path-text {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
}

/* 字段口径与阅读说明 */

.guide-intro .media-figure {
  margin: 6px 0 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.guide-intro .media-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--panel-alt);
}

.guide-intro .media-figure figcaption {
  padding: 10px 4px 2px;
}

.guide-intro > p {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 900px;
}

.field-table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.field-table-section .field-table {
  margin-top: 6px;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 6px;
}

.boundary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.subsection-title {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--brand);
}

.boundary-card p {
  font-size: 14px;
  color: var(--text-soft);
}

/* FAQ */

.faq-list {
  margin-top: 6px;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
}

.faq-question {
  cursor: pointer;
  list-style: none;
  padding: 15px 26px 15px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  min-height: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
  top: 26px;
}

.faq-answer {
  padding: 0 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-soft);
}

.feedback-prep {
  margin-top: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.prep-list {
  margin: 0 0 12px;
  padding: 0;
}

.prep-item {
  font-size: 14px;
  color: var(--text-soft);
  padding: 5px 0 5px 18px;
  position: relative;
}

.prep-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.prep-note {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 6px;
}

.related-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.related-item a {
  display: block;
  padding: 16px;
  font-size: 14px;
  color: var(--text);
  min-height: 44px;
}

.related-item a:hover,
.related-item a:focus-visible {
  color: var(--brand);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. 404 页面
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
}

.error-inner {
  max-width: 720px;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
}

.error-code {
  font-size: 40px;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 8px;
}

.error-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.error-text {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-dark);
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.error-links {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.error-links-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.error-links-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.error-links-list a {
  display: block;
  padding: 12px 14px;
  min-height: 44px;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
}

.error-links-list a:hover,
.error-links-list a:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   7. 动效增强（不依赖 JS 显示内容）
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .cover-card,
  .index-card,
  .topic-card,
  .special-card {
    animation: none;
  }

  .cover-card img,
  .special-figure img,
  .topic-figure img {
    transition: transform 0.3s ease;
  }

  .cover-card a:hover img,
  .cover-card a:focus-visible img {
    transform: scale(1.03);
  }
}

/* --------------------------------------------------------------------------
   8. 响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .topic-columns,
  .cover-grid,
  .index-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-notes-grid,
  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .special-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-index {
    gap: 24px;
  }
}

@media (max-width: 860px) {
  .update-layout,
  .rank-layout,
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-item {
    grid-template-columns: 92px minmax(0, 1fr);
    row-gap: 6px;
  }

  .update-topic {
    grid-column: 2;
  }

  .update-progress {
    grid-column: 2;
    text-align: left;
  }

  .rank-item {
    grid-template-columns: 40px minmax(0, 1fr);
    row-gap: 4px;
  }

  .rank-reason {
    grid-column: 2;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    min-height: 60px;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--line);
    padding: 6px 0 10px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item a {
    padding: 12px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    border-left: 2px solid transparent;
  }

  .nav-item.is-current a,
  .nav-item a.is-current {
    border-bottom-color: transparent;
    border-left-color: var(--brand);
    padding-left: 10px;
  }

  .site-factbar p,
  .header-inner,
  .breadcrumb,
  .page-header,
  .inner-main,
  .home-main,
  .footer-inner,
  .footer-brand,
  .footer-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1,
  .hero-title,
  .page-title {
    font-size: 24px;
  }

  h2,
  .section-head h2,
  .section-title {
    font-size: 20px;
  }

  .hero-index {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 0 30px;
  }

  .topic-overview,
  .cover-wall,
  .update-panel,
  .rank-special,
  .guide-summary,
  .site-index {
    padding: 30px 0;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .topic-columns,
  .index-columns,
  .topic-notes-grid,
  .related-list,
  .special-grid,
  .bridge-list,
  .path-grid,
  .boundary-columns,
  .error-links-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-groups,
  .topic-notes,
  .topic-bridge,
  .calendar-section,
  .field-section,
  .rhythm-section,
  .rank-block,
  .special-block,
  .path-block,
  .guide-intro,
  .field-table-section,
  .boundary-section,
  .feedback-section,
  .related-section {
    padding: 26px 16px 0;
  }

  .topic-block {
    padding: 16px;
  }

  .topic-entry {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }

  .entry-state {
    justify-self: start;
  }

  .calendar-item {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }

  .calendar-item-progress {
    text-align: left;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .field-table tbody th {
    width: auto;
  }

  .field-table th,
  .field-table td {
    padding: 10px 12px;
  }

  .rank-block .rank-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 30px;
  }

  .error-main {
    padding: 40px 16px 60px;
  }

  .error-inner {
    padding: 24px 18px;
  }
}

@media (max-width: 420px) {
  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cover-card a {
    padding: 8px;
  }

  .cover-name {
    font-size: 14px;
  }

  .hero-quicklinks a {
    flex: 1 1 auto;
    text-align: center;
  }

  .update-item {
    padding: 11px 12px;
  }

  .calendar-list {
    padding: 0 12px;
  }

  .faq-item {
    padding: 0 14px;
  }
}
/* ==========================================================================
   页面级微调（仅限各页内部业务模块，不覆盖全站骨架）
   ========================================================================== */

body.page-topic-directory .topic-groups {
  padding-top: 30px;
}

body.page-update-calendar .calendar-section {
  padding-top: 30px;
}

body.page-rank-special .rank-block {
  padding-top: 30px;
}

body.page-reading-guide .guide-intro {
  padding-top: 30px;
}
