/* ==========================================================================
   喵趣漫画 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ------------------------------------------------------------------
   base · 变量与全局基础
   ------------------------------------------------------------------ */
:root {
  --c-primary: #1f7a6b;
  --c-primary-dark: #186356;
  --c-accent: #e08a3c;
  --c-page: #f6f7f6;
  --c-card: #ffffff;
  --c-text: #26302e;
  --c-muted: #6b7876;
  --c-line: #e2e6e4;
  --c-soft: #eef2f1;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(38, 48, 46, 0.06);
  --shadow-md: 0 6px 18px rgba(38, 48, 46, 0.09);
  --shell: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--c-page);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--c-text);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-primary);
  text-decoration: none;
}

a:hover {
  color: var(--c-primary-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

strong {
  font-weight: 600;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ------------------------------------------------------------------
   layout · 全站骨架
   ------------------------------------------------------------------ */
.site-body {
  display: block;
  min-height: 100vh;
  background-color: var(--c-page);
}

/* 顶部事实条 */
.site-notice {
  margin: 0;
  padding: 9px 20px;
  background-color: var(--c-soft);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--c-card);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--c-text);
}

.brand:hover {
  color: var(--c-text);
}

.brand-mark {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background-color: var(--c-primary);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-slogan {
  padding-left: 10px;
  border-left: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 400;
}

/* 主导航 */
.site-nav {
  flex: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 8px 13px;
  border-radius: var(--radius);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
}

.nav-list a:hover {
  background-color: var(--c-soft);
  color: var(--c-primary);
}

.nav-list a.is-current {
  color: var(--c-primary);
  font-weight: 700;
  background-color: var(--c-soft);
}

/* 汉堡按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background-color: var(--c-card);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--c-text);
}

/* 主内容 */
.site-main {
  display: block;
  width: 100%;
}

.home-main {
  padding-bottom: 8px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px 20px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--c-muted);
}

.breadcrumb a:hover {
  color: var(--c-primary);
}

.breadcrumb-sep {
  color: #b9c2c0;
}

.breadcrumb-current {
  color: var(--c-text);
  font-weight: 500;
}

/* 内页标题区 */
.page-header {
  padding: 0 0 22px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.page-description {
  margin-top: 12px;
  max-width: 860px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* 页脚 */
.site-footer {
  margin-top: 40px;
  background-color: var(--c-card);
  border-top: 1px solid var(--c-line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 36px 20px 24px;
}

.footer-brand {
  flex: 1 1 260px;
  min-width: 220px;
}

.footer-brand-name {
  color: var(--c-text);
  font-size: 17px;
  font-weight: 700;
}

.footer-brand-desc {
  margin-top: 8px;
  max-width: 320px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-group-title {
  margin-bottom: 10px;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 700;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group a {
  color: var(--c-muted);
  font-size: 14px;
}

.footer-group a:hover {
  color: var(--c-primary);
}

.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 20px 26px;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 13px;
}

/* 通用区块 */
.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 20px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.section-desc {
  margin-top: 8px;
  max-width: 820px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.section-intro {
  margin-top: 8px;
  margin-bottom: 20px;
  max-width: 820px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.section-foot {
  margin-top: 16px;
  font-size: 14px;
}

.section-note {
  margin-top: 16px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.text-link {
  color: var(--c-primary);
  font-weight: 500;
}

.text-link:hover {
  color: var(--c-primary-dark);
  text-decoration: underline;
}

/* ------------------------------------------------------------------
   components · 通用组件
   ------------------------------------------------------------------ */

/* 封面卡（首页封面墙） */
.cover-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cover-card:hover {
  transform: translateY(-2px);
  border-color: #c9d5d2;
  box-shadow: var(--shadow-md);
}

.cover-figure {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--c-soft);
}

.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-title {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
}

.cover-topic {
  color: var(--c-muted);
}

.cover-status {
  padding: 1px 8px;
  border-radius: 999px;
  background-color: #fdf1e5;
  color: var(--c-accent);
  font-weight: 500;
}

/* 题材方向容器（首页四栏） */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.topic-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.topic-name a {
  color: var(--c-text);
}

.topic-name a:hover {
  color: var(--c-primary);
}

.topic-trait {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.topic-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.topic-samples li {
  padding: 2px 9px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background-color: var(--c-soft);
  color: var(--c-text);
  font-size: 13px;
  line-height: 1.6;
}

/* 更新记录行（首页单列） */
.update-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background-color: var(--c-card);
  overflow: hidden;
}

.update-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 132px 96px;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--c-line);
  transition: background-color 0.16s ease;
}

.update-row:last-child {
  border-bottom: 0;
}

.update-row:hover {
  background-color: #fafbfa;
}

.update-date {
  color: var(--c-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.update-name {
  color: var(--c-text);
  font-size: 15px;
  font-weight: 500;
}

.update-range {
  color: var(--c-primary);
  font-size: 13px;
}

.update-topic {
  color: var(--c-muted);
  font-size: 13px;
  text-align: right;
}

/* 榜单位次列表（首页） */
.rank-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background-color: var(--c-card);
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 96px minmax(0, 1.4fr);
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--c-line);
  transition: background-color 0.16s ease;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background-color: #fafbfa;
}

.rank-no {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background-color: #fdf1e5;
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.rank-name {
  color: var(--c-text);
  font-size: 15px;
  font-weight: 500;
}

.rank-topic {
  color: var(--c-muted);
  font-size: 13px;
}

.rank-reason {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* 阅读说明摘要双栏（首页） */
.guide-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.guide-col {
  padding: 20px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

.guide-col-title {
  font-size: 17px;
  font-weight: 700;
}

.guide-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.guide-points li {
  padding-left: 14px;
  position: relative;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.guide-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--c-primary);
}

.guide-points strong {
  color: var(--c-text);
}

.guide-more {
  margin-top: 14px;
  font-size: 14px;
}

/* 站内栏目索引（首页五列） */
.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.index-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
}

.index-name {
  color: var(--c-text);
  font-size: 15px;
  font-weight: 700;
}

.index-desc {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.65;
}

/* FAQ 折叠 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item[open] {
  border-color: #c9d5d2;
}

.faq-question {
  position: relative;
  padding: 14px 44px 14px 18px;
  color: var(--c-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  padding: 0 18px 16px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* 按钮（404） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-primary {
  background-color: var(--c-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--c-primary-dark);
  color: #ffffff;
}

.btn-ghost {
  border-color: var(--c-line);
  background-color: var(--c-card);
  color: var(--c-text);
}

.btn-ghost:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* ------------------------------------------------------------------
   pages · 首页
   ------------------------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 20px 8px;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background-color: var(--c-card);
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 500;
}

.hero-title {
  margin-top: 14px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}

.hero-lead {
  margin-top: 14px;
  max-width: 520px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero-paths {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.hero-path a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--radius);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.hero-path a:hover {
  transform: translateX(2px);
  border-color: #c9d5d2;
  border-left-color: var(--c-primary);
  box-shadow: var(--shadow-sm);
}

.hero-path-name {
  color: var(--c-text);
  font-size: 15px;
  font-weight: 700;
}

.hero-path-desc {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.65;
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding: 10px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--c-soft);
}

.hero-caption {
  margin-top: 10px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ------------------------------------------------------------------
   pages · 题材分类
   ------------------------------------------------------------------ */
.topics-section {
  margin-bottom: 40px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.topics-grid .topic-card {
  padding: 0 0 18px;
  overflow: hidden;
}

.topics-grid .topic-card .topic-name,
.topics-grid .topic-card .topic-trait,
.topics-grid .topic-card .topic-list {
  padding-left: 18px;
  padding-right: 18px;
}

.topic-figure {
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  background-color: var(--c-soft);
}

.topic-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topics-grid .topic-trait {
  margin-top: 8px;
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.topic-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px dashed var(--c-line);
}

.topic-item a {
  color: var(--c-text);
  font-size: 14px;
  font-weight: 500;
}

.topic-item a:hover {
  color: var(--c-primary);
}

.topic-item-meta {
  color: var(--c-muted);
  font-size: 12px;
}

.choose-section {
  padding: 24px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

.choose-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.choose-body p {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ------------------------------------------------------------------
   pages · 最近更新
   ------------------------------------------------------------------ */
.updates-section {
  margin-bottom: 40px;
}

.update-day {
  padding: 18px 20px;
  margin-bottom: 16px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

.update-day .update-date {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text);
  font-size: 16px;
  font-weight: 700;
}

.update-day .update-list {
  border: 0;
  border-radius: 0;
  background-color: transparent;
  overflow: visible;
}

.update-day .update-row {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--c-line);
}

.update-day .update-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.update-cover {
  width: 64px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--c-soft);
}

.update-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-body {
  min-width: 0;
}

.update-body .update-name {
  font-size: 15px;
  font-weight: 700;
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 4px;
  color: var(--c-muted);
  font-size: 13px;
}

.update-chapter {
  color: var(--c-primary);
}

.field-section,
.rhythm-section {
  padding: 24px;
  margin-bottom: 24px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

.field-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.field-item {
  padding: 14px 16px;
  background-color: var(--c-soft);
  border-radius: var(--radius);
}

.field-name {
  color: var(--c-text);
  font-size: 14px;
  font-weight: 700;
}

.field-desc {
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.field-note,
.rhythm-note {
  margin-top: 16px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.rhythm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: rhythm;
}

.rhythm-step {
  position: relative;
  padding: 16px 16px 16px 46px;
  background-color: var(--c-soft);
  border-radius: var(--radius);
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.rhythm-step::before {
  counter-increment: rhythm;
  content: counter(rhythm);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--c-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

/* ------------------------------------------------------------------
   pages · 人气榜单
   ------------------------------------------------------------------ */
.ranking-section {
  margin-bottom: 40px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 40px 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ranking-item:hover {
  transform: translateY(-2px);
  border-color: #c9d5d2;
  box-shadow: var(--shadow-md);
}

.ranking-position {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background-color: #fdf1e5;
  color: var(--c-accent);
  font-size: 15px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.ranking-cover {
  width: 72px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--c-soft);
}

.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.ranking-name a {
  color: var(--c-text);
}

.ranking-name a:hover {
  color: var(--c-primary);
}

.ranking-topic {
  margin-top: 4px;
  color: var(--c-muted);
  font-size: 13px;
}

.reason-section {
  margin-bottom: 40px;
}

.reason-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reason-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 16px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.reason-rank {
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.reason-text {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.note-section {
  padding: 24px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.note-block {
  padding: 16px;
  background-color: var(--c-soft);
  border-radius: var(--radius);
}

.note-heading {
  font-size: 15px;
  font-weight: 700;
}

.note-block p {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ------------------------------------------------------------------
   pages · 阅读说明
   ------------------------------------------------------------------ */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.sidebar-left .page-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.guide-toc {
  position: sticky;
  top: 84px;
  padding: 20px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

.guide-toc-title {
  font-size: 15px;
  font-weight: 700;
}

.guide-toc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.guide-toc-list a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid var(--c-line);
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.6;
}

.guide-toc-list a:hover {
  border-left-color: var(--c-primary);
  background-color: var(--c-soft);
  color: var(--c-primary);
}

.guide-figure {
  margin-top: 18px;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--c-soft);
}

.guide-figure figcaption {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.6;
}

.guide-main {
  min-width: 0;
}

.guide-section {
  padding: 24px;
  margin-bottom: 24px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  scroll-margin-top: 84px;
}

.guide-section .section-title {
  font-size: 20px;
}

.section-lead {
  margin-top: 10px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.8;
}

.field-table {
  margin-top: 18px;
  font-size: 14px;
}

.field-table-caption {
  padding-bottom: 10px;
  color: var(--c-muted);
  font-size: 13px;
  text-align: left;
}

.field-table th,
.field-table td {
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.field-table thead th {
  background-color: var(--c-soft);
  color: var(--c-text);
  font-weight: 700;
}

.field-table tbody td {
  color: var(--c-muted);
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.rule-item {
  padding: 14px 16px;
  background-color: var(--c-soft);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--radius);
}

.rule-title {
  font-size: 15px;
  font-weight: 700;
}

.rule-item p {
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.boundary-card {
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.boundary-title {
  font-size: 15px;
  font-weight: 700;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.boundary-list li {
  position: relative;
  padding-left: 14px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--c-accent);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}

.related-links-label {
  color: var(--c-muted);
  font-size: 14px;
}

.related-links-item {
  padding: 6px 14px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background-color: var(--c-card);
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.5;
}

.related-links-item:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* ------------------------------------------------------------------
   pages · 关于本站
   ------------------------------------------------------------------ */
.about-section {
  padding: 24px;
  margin-bottom: 24px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

.about-section h2 {
  font-size: 20px;
  font-weight: 700;
}

.about-positioning {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.about-section-body {
  min-width: 0;
}

.about-section-body p {
  margin-top: 12px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.85;
}

.about-figure {
  min-width: 0;
}

.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--c-soft);
}

.about-figure figcaption {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.workflow-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 16px;
  background-color: var(--c-soft);
  border-radius: var(--radius);
}

.workflow-index {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background-color: var(--c-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.workflow-content {
  min-width: 0;
}

.workflow-content h3 {
  font-size: 15px;
  font-weight: 700;
}

.workflow-content p {
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
}

.principles-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.principles-column {
  padding: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.principles-column h3 {
  font-size: 15px;
  font-weight: 700;
}

.principles-do h3 {
  color: var(--c-primary);
}

.principles-boundary h3 {
  color: var(--c-accent);
}

.principles-column ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.principles-column li {
  position: relative;
  padding-left: 14px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.principles-column li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--c-line);
}

.principles-do li::before {
  background-color: var(--c-primary);
}

.principles-boundary li::before {
  background-color: var(--c-accent);
}

.about-next p {
  margin-top: 12px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.85;
}

.about-next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.next-link {
  padding: 10px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background-color: var(--c-soft);
  color: var(--c-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.next-link:hover {
  border-color: var(--c-primary);
  background-color: var(--c-card);
  color: var(--c-primary);
}

/* ------------------------------------------------------------------
   pages · 404
   ------------------------------------------------------------------ */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 72px;
}

.error-inner {
  width: 100%;
  max-width: 620px;
  padding: 32px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.error-code {
  color: var(--c-primary);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.error-inner h1 {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
}

.error-text {
  margin-top: 12px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.error-links {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}

.error-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.error-links a {
  color: var(--c-muted);
  font-size: 14px;
}

.error-links a:hover {
  color: var(--c-primary);
}

/* ------------------------------------------------------------------
   responsive · 平板
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .topic-grid,
  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-layout,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .guide-toc {
    position: static;
  }

  .guide-toc-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .guide-toc-list a {
    border-left: 0;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    padding: 6px 14px;
  }

  .guide-figure {
    max-width: 420px;
  }

  .about-positioning {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-figure {
    max-width: 460px;
  }

  .ranking-list,
  .reason-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------
   responsive · 移动端
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
  .site-notice {
    padding: 8px 16px;
    font-size: 12px;
    text-align: left;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    flex: 1 0 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--c-line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 15px;
  }

  .inner-main {
    padding: 16px 16px 48px;
  }

  .page-header {
    padding-bottom: 18px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .section {
    padding: 32px 16px 0;
  }

  .section-title {
    font-size: 20px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 16px 4px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-visual {
    order: 2;
  }

  .topic-grid,
  .topics-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cover-title {
    font-size: 15px;
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 16px;
  }

  .update-topic {
    text-align: left;
  }

  .rank-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px 10px;
    padding: 12px 16px;
  }

  .rank-topic,
  .rank-reason {
    grid-column: 2;
  }

  .guide-columns,
  .choose-body,
  .field-list,
  .rhythm-steps,
  .note-grid,
  .boundary-grid,
  .workflow-list,
  .principles-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-section,
  .about-section,
  .choose-section,
  .field-section,
  .rhythm-section,
  .note-section {
    padding: 18px;
  }

  .ranking-item {
    grid-template-columns: 34px 64px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .ranking-cover {
    width: 64px;
  }

  .field-table th,
  .field-table td {
    padding: 8px 10px;
    font-size: 13px;
  }

  .footer-inner {
    gap: 24px;
    padding: 28px 16px 20px;
  }

  .footer-nav {
    gap: 28px;
  }

  .footer-copy {
    padding: 14px 16px 24px;
  }

  .error-inner {
    padding: 24px 18px;
  }

  .error-code {
    font-size: 34px;
  }
}

/* ------------------------------------------------------------------
   responsive · 小屏
   ------------------------------------------------------------------ */
@media (max-width: 480px) {
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
    line-height: 30px;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero-title {
    font-size: 23px;
  }

  .page-title {
    font-size: 22px;
  }

  .cover-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cover-card {
    padding: 8px;
  }

  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }
}

/* ------------------------------------------------------------------
   动效增强 · 不影响初始可见性
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .cover-card,
  .index-card,
  .ranking-item,
  .hero-path a {
    will-change: transform;
  }
}
