/* ==========================================================================
   腐漫画网 sh-tianhan.cn 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base 基础层：变量、重置、排版与通用元素
   -------------------------------------------------------------------------- */
:root {
  --c-bg: #f7f5f0;
  --c-surface: #fffdf9;
  --c-ink: #1f1c18;
  --c-ink-soft: #4c463e;
  --c-ink-mute: #6f6860;
  --c-accent: #4a6b6f;
  --c-accent-deep: #365154;
  --c-warm: #8a6f5c;
  --c-line: #d9d3c8;
  --c-line-soft: #e7e2d8;
  --c-tint: #eef0ee;

  --font-serif: "Songti SC", "SimSun", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --wrap-narrow: 1040px;
  --radius: 6px;
  --radius-sm: 4px;

  --sp-1: 6px;
  --sp-2: 12px;
  --sp-3: 18px;
  --sp-4: 26px;
  --sp-5: 38px;
  --sp-6: 54px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-ink);
}

p {
  margin: 0 0 var(--sp-2);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

a {
  color: var(--c-accent-deep);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--c-warm);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  text-align: left;
}

time {
  font-style: normal;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout 骨架层：页头、导航、主容器、面包屑、页脚
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  color: var(--c-ink);
  font-family: var(--font-sans);
  text-decoration: none;
}

.brand:hover {
  color: var(--c-accent-deep);
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid var(--c-accent);
  border-radius: var(--radius-sm);
  background-color: var(--c-tint);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-left: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
}

.brand-text {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 44px;
  padding: 11px 12px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--c-ink);
  border-radius: 2px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-block;
  padding: 10px 14px;
  min-height: 44px;
  line-height: 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--c-ink-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--c-accent-deep);
  background-color: var(--c-tint);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--c-accent-deep);
  font-weight: 600;
  border-bottom: 2px solid var(--c-accent);
  border-radius: 0;
}

.site-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--sp-5) 24px var(--sp-6);
  display: block;
}

.inner-main {
  max-width: var(--wrap-narrow);
}

.breadcrumb {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-ink-mute);
  margin-bottom: var(--sp-2);
}

.breadcrumb a {
  color: var(--c-ink-mute);
}

.breadcrumb a:hover {
  color: var(--c-accent-deep);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--c-line);
}

.breadcrumb-current {
  color: var(--c-ink-soft);
}

.page-header {
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.page-description {
  max-width: 780px;
  margin: 0;
  font-size: 15px;
  color: var(--c-ink-soft);
  line-height: 1.9;
}

.page-layout {
  display: block;
}

.site-footer {
  margin-top: var(--sp-6);
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-line);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--sp-5) 24px var(--sp-4);
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: var(--sp-4);
}

.footer-name {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--sp-1);
}

.footer-desc {
  font-size: 13px;
  color: var(--c-ink-mute);
  line-height: 1.8;
  margin: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: var(--sp-2);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-line-soft);
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-ink-mute);
}

.footer-list a:hover {
  color: var(--c-accent-deep);
}

.footer-bottom {
  border-top: 1px solid var(--c-line-soft);
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--sp-2) 24px var(--sp-3);
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-ink-mute);
}

/* --------------------------------------------------------------------------
   components 通用组件：区块、标题、表格、标签、按钮、字段表
   -------------------------------------------------------------------------- */
.section {
  margin-bottom: var(--sp-5);
}

.section-head {
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-line);
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.section-desc,
.section-intro {
  max-width: 820px;
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.85;
  margin: 0;
}

.section-desc a,
.section-intro a {
  font-family: var(--font-sans);
  font-size: 13px;
  margin-left: 6px;
}

.section-text {
  font-size: 15px;
  color: var(--c-ink-soft);
  margin-bottom: var(--sp-2);
}

.table-wrap,
.tese-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background-color: var(--c-surface);
}

.table-caption,
.tese-table-caption {
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-ink-mute);
  border-bottom: 1px solid var(--c-line-soft);
}

.data-table,
.tese-table {
  min-width: 640px;
  font-size: 14px;
}

.data-table th,
.data-table td,
.tese-table th,
.tese-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line-soft);
  line-height: 1.8;
}

.data-table thead th,
.tese-table thead th {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
  background-color: var(--c-tint);
  white-space: nowrap;
}

.data-table tbody th,
.tese-table tbody th {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent-deep);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.tese-table tbody tr:last-child th,
.tese-table tbody tr:last-child td {
  border-bottom: 0;
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 20px;
  color: var(--c-accent-deep);
  background-color: var(--c-tint);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  white-space: nowrap;
}

.tag-school {
  color: #4a6b6f;
}

.tag-fantasy {
  color: #6a5a8a;
}

.tag-mystery {
  color: #3f5560;
}

.tag-city {
  color: #8a6f5c;
}

.tag-heal {
  color: #5c7a63;
}

.tag-ancient {
  color: #7d5a4a;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--c-accent-deep);
  color: #fbfaf7;
}

.btn-primary:hover {
  background-color: var(--c-warm);
  color: #fbfaf7;
}

.btn-ghost {
  background-color: transparent;
  color: var(--c-accent-deep);
  border-color: var(--c-accent);
}

.btn-ghost:hover {
  background-color: var(--c-tint);
  color: var(--c-accent-deep);
}

.field-list {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line-soft);
}

.field-item:last-child {
  border-bottom: 0;
}

.field-item dt {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent-deep);
  margin-bottom: 2px;
}

.field-item dd {
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   pages 页面层：首页
   -------------------------------------------------------------------------- */
.topbar {
  background-color: var(--c-accent-deep);
  color: #eef0ee;
}

.topbar-text {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--sp-5);
  align-items: start;
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-line);
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-warm);
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-2);
}

.hero-title {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

.hero-lead {
  max-width: 620px;
  font-size: 16px;
  color: var(--c-ink-soft);
  line-height: 1.95;
  margin-bottom: var(--sp-3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-line-soft);
}

.hero-stat {
  min-width: 0;
}

.hero-stat dt {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-ink-mute);
  margin-bottom: 2px;
}

.hero-stat dd {
  font-size: 14px;
  color: var(--c-ink);
  line-height: 1.7;
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background-color: var(--c-tint);
}

.hero-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-ink-mute);
  line-height: 1.7;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.cover-card {
  display: flex;
  flex-direction: column;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.cover-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-accent);
}

.cover-figure {
  background-color: var(--c-tint);
}

.cover-figure img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.cover-body {
  padding: 12px 14px 14px;
}

.cover-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-ink-mute);
}

.cover-field {
  line-height: 1.6;
}

.update-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.update-month {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 14px 16px 8px;
}

.update-month-title {
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--c-line-soft);
}

.update-list {
  margin: 0;
}

.update-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--c-line-soft);
  font-size: 14px;
}

.update-list .update-item:last-child {
  border-bottom: 0;
}

.update-date {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-warm);
  min-width: 44px;
}

.update-name {
  color: var(--c-ink);
  font-weight: 600;
}

.update-field {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-ink-mute);
  width: 100%;
  line-height: 1.7;
}

.rank-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.rank-card {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 16px;
}

.rank-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.rank-basis {
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.8;
  margin-bottom: 6px;
}

.rank-scope {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-ink-mute);
  line-height: 1.7;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--c-line-soft);
}

.rank-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--c-ink-soft);
}

.rank-list li::before {
  content: attr(data-rank);
  position: absolute;
  left: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-accent);
}

.boundary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-4);
}

.boundary-col {
  min-width: 0;
}

.boundary-subtitle {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.boundary-text {
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.9;
  margin-bottom: var(--sp-2);
}

.page-index {
  display: block;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}

.index-item {
  min-width: 0;
}

.index-link {
  display: block;
  height: 100%;
  padding: 16px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  text-decoration: none;
}

.index-link:hover {
  border-color: var(--c-accent);
  text-decoration: none;
}

.index-name {
  display: block;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 6px;
}

.index-desc {
  display: block;
  font-size: 13px;
  color: var(--c-ink-mute);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   pages 页面层：题材分类
   -------------------------------------------------------------------------- */
.page-tese .page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: var(--sp-4);
  align-items: start;
}

.page-tese .tese-table-section {
  grid-column: 1;
}

.page-tese .tese-visual-section {
  grid-column: 1;
}

.page-tese .tese-conclusion-aside {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.tese-row .tese-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent-deep);
  white-space: nowrap;
}

.tese-trait,
.tese-organize,
.tese-rep {
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.8;
}

.tese-rep {
  color: var(--c-ink-mute);
}

.tese-note {
  margin-top: var(--sp-2);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-ink-mute);
  line-height: 1.8;
}

.tese-note a {
  margin-right: 8px;
}

.tese-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.tese-visual-figure {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.tese-visual-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--c-tint);
}

.tese-visual-caption {
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-ink-mute);
  line-height: 1.7;
}

.tese-conclusion-aside {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px;
}

.tese-conclusion-aside .section-title {
  font-size: 17px;
  padding-bottom: 8px;
  margin-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-line-soft);
}

.conclusion-block {
  margin-bottom: var(--sp-3);
}

.conclusion-block:last-child {
  margin-bottom: 0;
}

.conclusion-subtitle {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.conclusion-text {
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.85;
  margin: 0;
}

.conclusion-links {
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--c-line-soft);
  font-family: var(--font-sans);
  font-size: 13px;
}

.conclusion-links a {
  margin-right: 10px;
}

/* --------------------------------------------------------------------------
   pages 页面层：最近更新
   -------------------------------------------------------------------------- */
.page-gengxin .page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: var(--sp-4);
  align-items: start;
}

.page-gengxin .update-list {
  grid-column: 1;
}

.page-gengxin .update-rhythm {
  grid-column: 1;
}

.page-gengxin .field-aside {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.update-month {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 14px 16px 10px;
  margin-bottom: var(--sp-3);
}

.month-title {
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--c-line-soft);
}

.update-items {
  margin: 0;
}

.update-items .update-item {
  display: grid;
  grid-template-columns: 64px 64px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--c-line-soft);
  font-size: 14px;
}

.update-items .update-item:last-child {
  border-bottom: 0;
}

.update-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-accent-deep);
  background-color: var(--c-tint);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 0 8px;
  line-height: 20px;
  text-align: center;
}

.update-rhythm .section-media {
  margin-bottom: var(--sp-3);
}

.section-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background-color: var(--c-tint);
}

.section-media figcaption {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-ink-mute);
  line-height: 1.7;
}

.rhythm-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.rhythm-item {
  padding: 12px 14px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.8;
}

.field-aside {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px;
}

.aside-title {
  font-size: 17px;
  font-weight: 600;
  padding-bottom: 8px;
  margin-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-line-soft);
}

.aside-intro {
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.85;
  margin-bottom: var(--sp-2);
}

.field-table {
  font-size: 13px;
}

.field-table th,
.field-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line-soft);
  line-height: 1.7;
}

.field-table thead th {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-ink);
  background-color: var(--c-tint);
}

.field-table tbody th {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--c-accent-deep);
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.aside-note {
  margin: var(--sp-2) 0 0;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--c-line-soft);
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-ink-mute);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages 页面层：榜单排行
   -------------------------------------------------------------------------- */
.page-bangdan .page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: var(--sp-4);
  align-items: start;
}

.page-bangdan .rank-table {
  grid-column: 1;
}

.page-bangdan .rank-entries {
  grid-column: 1;
}

.page-bangdan .rank-scope {
  grid-column: 1;
}

.page-bangdan .conclusion-aside {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.rank-figure {
  margin-bottom: var(--sp-3);
}

.rank-figure img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background-color: var(--c-tint);
}

.rank-figure figcaption {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-ink-mute);
  line-height: 1.7;
}

.rank-compare-table {
  min-width: 620px;
  font-size: 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background-color: var(--c-surface);
}

.rank-table .rank-compare-table {
  display: table;
}

.rank-compare-table caption {
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-ink-mute);
  border-bottom: 1px solid var(--c-line-soft);
}

.rank-compare-table th,
.rank-compare-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line-soft);
  line-height: 1.8;
}

.rank-compare-table thead th {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  background-color: var(--c-tint);
  white-space: nowrap;
}

.rank-compare-table tbody th {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent-deep);
  white-space: nowrap;
}

.rank-compare-table tbody tr:last-child th,
.rank-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.rank-table .rank-compare-table {
  overflow: hidden;
}

.rank-entry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.rank-entry-card {
  min-width: 0;
}

.rank-entry-card article {
  height: 100%;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rank-entry-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background-color: var(--c-tint);
}

.entry-name {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 14px 4px;
  margin: 0;
}

.entry-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-ink-mute);
  padding: 0 14px;
  margin: 0 0 4px;
}

.entry-rank {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-warm);
  padding: 0 14px 14px;
  margin: 0;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.scope-item {
  padding: 14px 16px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.scope-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.scope-item p {
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.85;
  margin: 0;
}

.scope-note {
  margin-top: var(--sp-2);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-ink-mute);
  line-height: 1.8;
}

.scope-note a {
  margin-right: 10px;
}

.conclusion-aside {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px;
}

.conclusion-aside p {
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.85;
}

.aside-list {
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--c-line-soft);
}

.aside-list li {
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   pages 页面层：阅读说明
   -------------------------------------------------------------------------- */
.page-shuoming .layout-main-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: var(--sp-4);
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.field-figure {
  margin-bottom: var(--sp-3);
}

.field-figure img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background-color: var(--c-tint);
}

.field-figure figcaption {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-ink-mute);
  line-height: 1.7;
}

.section-fields .field-item {
  padding: 14px 16px;
}

.section-fields .field-term {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-accent-deep);
  margin-bottom: 4px;
}

.section-fields .field-desc {
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.9;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.boundary-block {
  padding: 14px 16px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.boundary-block .boundary-subtitle {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.85;
  margin-bottom: 4px;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--c-accent);
  border-radius: 50%;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  counter-reset: path;
}

.path-step {
  padding: 14px 16px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-accent);
  border-radius: var(--radius);
}

.step-index {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-warm);
  margin-bottom: 4px;
}

.path-step .step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.path-step .step-text {
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.8;
  margin: 0;
}

.faq-item {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "＋";
  display: inline-block;
  width: 18px;
  color: var(--c-accent);
  font-weight: 400;
}

.faq-item[open] .faq-question::before {
  content: "－";
}

.faq-answer {
  padding: 0 16px 14px 34px;
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.9;
  margin: 0;
  border-top: 1px solid var(--c-line-soft);
  padding-top: 12px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.feedback-card {
  padding: 14px 16px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.feedback-subtitle {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feedback-text {
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.85;
  margin: 0;
}

.feedback-note {
  margin-top: var(--sp-2);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-ink-mute);
  line-height: 1.8;
}

.layout-aside {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px;
}

.term-link-list {
  margin-top: var(--sp-2);
}

.term-link-item {
  padding: 9px 0;
  border-bottom: 1px solid var(--c-line-soft);
}

.term-link-item:last-child {
  border-bottom: 0;
}

.term-link-item a {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
}

.term-link-note {
  display: block;
  font-size: 12px;
  color: var(--c-ink-mute);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages 页面层：404
   -------------------------------------------------------------------------- */
.error-main {
  padding-top: var(--sp-6);
}

.error-block {
  max-width: 620px;
  margin: 0 auto var(--sp-5);
  text-align: center;
}

.error-code {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--c-warm);
  margin-bottom: var(--sp-2);
}

.error-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.error-text {
  font-size: 15px;
  color: var(--c-ink-soft);
  line-height: 1.9;
  margin-bottom: var(--sp-3);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}

.error-links .section-title {
  text-align: center;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.error-link-list a {
  display: block;
  padding: 16px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.error-link-list a:hover {
  border-color: var(--c-accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive 响应式：单一断点，移动端优先保证 H1 与正文在前
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .header-inner {
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 4px;
    border-top: 1px solid var(--c-line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 8px;
    min-height: 44px;
    border-radius: var(--radius-sm);
  }

  .nav-link.is-current {
    border-bottom: 0;
    border-left: 3px solid var(--c-accent);
    padding-left: 12px;
  }

  .site-main {
    padding: var(--sp-4) 16px var(--sp-5);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-4);
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-figure img {
    height: 240px;
  }

  .hero-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-2);
  }

  .cover-grid,
  .update-groups,
  .rank-row,
  .index-grid,
  .rank-entry-list,
  .scope-grid,
  .feedback-grid,
  .error-link-list,
  .rhythm-list,
  .tese-visual-grid,
  .boundary-columns,
  .boundary-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-tese .page-layout,
  .page-gengxin .page-layout,
  .page-bangdan .page-layout,
  .page-shuoming .layout-main-aside {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-4);
  }

  .page-tese .tese-table-section,
  .page-tese .tese-visual-section,
  .page-tese .tese-conclusion-aside,
  .page-gengxin .update-list,
  .page-gengxin .update-rhythm,
  .page-gengxin .field-aside,
  .page-bangdan .rank-table,
  .page-bangdan .rank-entries,
  .page-bangdan .rank-scope,
  .page-bangdan .conclusion-aside {
    grid-column: 1;
    grid-row: auto;
  }

  .update-items .update-item {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .update-items .update-item .update-name,
  .update-items .update-item .update-field {
    grid-column: 2;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-4);
    padding: var(--sp-4) 16px var(--sp-3);
  }

  .footer-copy {
    padding: var(--sp-2) 16px var(--sp-3);
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .hero-figure img,
  .section-media img,
  .rank-figure img,
  .field-figure img {
    height: 210px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 23px;
  }

  .data-table,
  .tese-table,
  .rank-compare-table {
    min-width: 560px;
  }

  .cover-figure img {
    height: 210px;
  }
}
