/* ==========================================================================
   免费的51动漫 · 全站样式
   base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base 基础
   -------------------------------------------------------------------------- */
:root {
  --bg-page: #F7F9FD;
  --bg-card: #FFFFFF;
  --pink: #F2779B;
  --pink-dark: #D95C80;
  --blue: #4FA8E0;
  --blue-soft: #EAF4FC;
  --mint: #4FBFA0;
  --mint-soft: #E7F7F1;
  --amber: #F5C24A;
  --amber-soft: #FDF4DD;
  --ink: #1E2A44;
  --ink-soft: #6B7A99;
  --line: #E3E9F5;
  --line-strong: #C9D5EA;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-soft: 0 2px 10px rgba(30, 42, 68, 0.05);
  --container: 1120px;
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover {
  color: var(--pink-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   2. layout 全站骨架
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.brand-slogan {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  line-height: 1.3;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-item a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}

.nav-item a:hover {
  color: var(--pink-dark);
  background: var(--blue-soft);
}

.nav-item.is-current a,
.nav-item a.is-current {
  color: var(--pink-dark);
  font-weight: 700;
  background: #FDEEF3;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  display: block;
}

.site-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* 内页统一两栏外壳：主内容在前，侧栏在后 */
.page-layout {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 20px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.sidebar-left .page-layout,
.sidebar-left .content-grid {
  grid-template-columns: 320px minmax(0, 1fr);
}

.content-main,
.main-content,
.main-col {
  min-width: 0;
}

.content-aside,
.content-side,
.content-sidebar,
.sidebar,
.side-col {
  min-width: 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--pink-dark);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

/* 内页顶部说明条 */
.page-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.page-hero > p,
.page-hero-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px 20px;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: center;
}

.page-hero-text {
  min-width: 0;
}

.page-lead,
.page-hero-desc {
  font-size: 16px;
  color: var(--ink);
  max-width: 760px;
}

.page-hero-desc {
  max-width: none;
}

.page-meta,
.page-hero-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.page-meta a {
  color: var(--ink-soft);
}

.page-meta a:hover {
  color: var(--pink-dark);
}

.page-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.meta-sep {
  color: var(--line-strong);
}

.page-hero-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-soft);
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   3. components 通用组件
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-primary {
  background: var(--pink);
  border-color: var(--pink);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-card);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.link-inline::after {
  content: "→";
  font-size: 13px;
}

.link-inline:hover {
  color: var(--pink-dark);
}

/* 状态徽标 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-published {
  color: #1F7A62;
  background: var(--mint-soft);
  border-color: #B9E6D8;
}

.badge-updated {
  color: #9A6B0C;
  background: var(--amber-soft);
  border-color: #F2DCA6;
}

/* 题材标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: var(--bg-card);
  border: 1px solid #CBE3F5;
  white-space: nowrap;
}

.tag-sci,
.tag-fan,
.tag-sus {
  color: #3F6FB5;
  border-color: #C6D8F2;
  background: #F1F6FD;
}

.tag-school {
  color: #B4557A;
  border-color: #F3CBDC;
  background: #FDF1F6;
}

.tag-heal {
  color: #1F7A62;
  border-color: #B9E6D8;
  background: var(--mint-soft);
}

.tag-hot {
  color: #9A6B0C;
  border-color: #F2DCA6;
  background: var(--amber-soft);
}

.tag-su {
  color: #4C5A78;
  border-color: var(--line-strong);
  background: #F4F7FD;
}

/* 区块通用头部 */
.section-head {
  margin-bottom: 22px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.section-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.section-foot {
  margin-top: 18px;
}

.block-head {
  margin-bottom: 16px;
}

.block-title {
  font-size: 18px;
  font-weight: 700;
}

.block-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.section-intro {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.section-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 表格 */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.data-table,
.info-table {
  min-width: 560px;
  font-size: 14px;
}

.data-table caption,
.info-table caption,
.table-caption {
  caption-side: top;
  padding: 14px 16px 10px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
}

.data-table th,
.data-table td,
.info-table th,
.info-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th,
.info-table thead th {
  background: #F2F6FD;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.info-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover,
.info-table tbody tr:hover {
  background: #FAFCFF;
}

/* FAQ 折叠 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 0 16px;
  transition: border-color 0.16s ease;
}

.faq-item:hover {
  border-color: var(--line-strong);
}

.faq-item[open] {
  border-color: #F3CBDC;
}

.faq-q,
.faq-question {
  display: block;
  padding: 14px 26px 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-q::-webkit-details-marker,
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-q::after,
.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--blue);
}

.faq-item[open] .faq-q::after,
.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-a,
.faq-answer {
  padding: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 侧栏通用 */
.side-block,
.aside-block,
.aside-card,
.sidebar-block,
.side-nav {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.side-block + .side-block,
.aside-block + .aside-block,
.aside-card + .aside-card,
.sidebar-block + .sidebar-block,
.side-nav + .side-nav {
  margin-top: 16px;
}

.side-title,
.aside-title,
.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.summary-list,
.side-links,
.side-list,
.aside-list,
.aside-anchor-list,
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.summary-text {
  min-width: 0;
}

.side-links a,
.side-list a,
.aside-list a,
.aside-anchor-list a,
.sidebar-links a,
.side-link {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 4px 0;
}

.side-links a:hover,
.side-list a:hover,
.aside-list a:hover,
.aside-anchor-list a:hover,
.sidebar-links a:hover,
.side-link:hover {
  color: var(--pink-dark);
}

.side-text,
.aside-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.side-note,
.aside-note,
.aside-block-note {
  background: #FBFDFF;
}

.aside-note .aside-text {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.aside-note-link {
  margin-top: 10px;
  font-size: 14px;
}

/* 步骤列表 */
.step-list,
.steps,
.path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-item,
.step,
.path-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.step-num,
.step-index,
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FDEEF3;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-name,
.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-desc,
.step-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.step-item .link-inline,
.path-item .path-link {
  margin-top: 10px;
}

/* 内联图片 */
.inline-media {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.inline-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.inline-media figcaption {
  padding: 10px 14px;
}

/* --------------------------------------------------------------------------
   4. pages 首页
   -------------------------------------------------------------------------- */

/* 首屏 */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FE 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 20px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 44px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: #FDEEF3;
  color: var(--pink-dark);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hero-text h1 {
  font-size: 34px;
  line-height: 1.35;
}

.hero-lead {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 620px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
}

.hero-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--pink-dark);
}

.fact-label {
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
}

/* 题材快捷标签带 */
.tag-band {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
}

.tag-list {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #CBE3F5;
  background: var(--bg-card);
  color: #3F6FB5;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: border-color 0.16s ease, transform 0.16s ease, color 0.16s ease;
}

.tag-item a:hover {
  border-color: var(--blue);
  color: var(--pink-dark);
  transform: translateY(-2px);
}

/* 首页两栏区 */
.home-main .page-layout {
  padding-top: 40px;
  padding-bottom: 44px;
}

.updates-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

.panel-more:hover {
  color: var(--pink-dark);
}

.panel-lead {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.update-list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.update-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 132px auto;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.update-row:hover {
  background: #FAFCFF;
  transform: translateY(-2px);
}

.update-date {
  font-size: 13px;
  color: var(--ink-soft);
}

.update-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.update-range {
  font-size: 13px;
  color: var(--ink-soft);
}

/* 编辑选题榜 */
.rank-section,
.series-section,
.path-section,
.map-section,
.faq-section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.rank-section {
  border-top: 0;
  background: var(--bg-card);
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.rank-item:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #FDEEF3;
  color: var(--pink-dark);
  font-size: 15px;
  font-weight: 700;
}

.rank-body {
  min-width: 0;
}

.rank-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.rank-reason {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.8;
}

.rank-tip {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 主题系列 */
.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.series-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.series-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.series-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.series-standard {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.series-works {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.series-works li {
  padding: 2px 10px;
  border-radius: 999px;
  background: #F2F6FD;
  border: 1px solid var(--line);
  font-size: 13px;
  color: #3F6FB5;
}

.series-media {
  margin-top: 22px;
}

/* 三步阅读路径 */
.path-section {
  background: var(--bg-card);
}

.path-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 栏目地图 */
.map-section .table-scroll {
  margin-top: 4px;
}

/* 常见问题 */
.faq-section {
  background: var(--bg-card);
}

/* --------------------------------------------------------------------------
   5. pages 内页
   -------------------------------------------------------------------------- */

/* 题材分类 */
.section-block {
  margin-bottom: 32px;
}

.section-block:last-child {
  margin-bottom: 0;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.entry-row:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.entry-row:has(.entry-cover) {
  grid-template-columns: 64px minmax(0, 1fr) auto;
}

.entry-cover {
  width: 64px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--blue-soft);
  flex-shrink: 0;
}

.entry-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-body {
  min-width: 0;
}

.entry-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.entry-note {
  font-size: 13px;
  color: var(--ink-soft);
}

.entry-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entry-row > .badge {
  align-self: center;
}

#duizhao .table-scroll {
  margin-top: 4px;
}

#lujing .step-list {
  margin-top: 4px;
}

/* 更新记录 */
.update-list.section {
  margin-bottom: 32px;
}

.update-items {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.update-items .update-row {
  grid-template-columns: 92px minmax(0, 1fr) 132px auto auto;
}

.update-figure {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.update-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.update-figure figcaption {
  padding: 10px 14px;
}

.status-legend {
  margin-bottom: 32px;
}

.legend-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legend-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.legend-title {
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0 6px;
}

.legend-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.check-order .steps {
  margin-top: 14px;
}

/* 排行榜单 */
.rank-block {
  margin-bottom: 36px;
}

.rank-group {
  margin-top: 22px;
}

.group-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.group-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.dimension-block {
  margin-bottom: 36px;
}

.dimension-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dimension-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.dimension-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dimension-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.mapping-block {
  margin-bottom: 36px;
}

.mapping-block .table-scroll {
  margin-top: 14px;
}

.mapping-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feature-block {
  margin-bottom: 8px;
}

.feature-figure {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.feature-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-caption {
  padding: 10px 14px;
}

/* 主题系列 */
.topic-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.topic-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.topic-block:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.topic-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.topic-standard {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.8;
}

.topic-mood {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.topic-works {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topic-works li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 14px;
  position: relative;
}

.topic-works li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.order-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.order-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.order-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: order-step;
}

.order-steps li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  counter-increment: order-step;
}

.order-steps li::before {
  content: counter(order-step);
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F2F6FD;
  color: #3F6FB5;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.link-explain {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.link-explain-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.link-explain-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.link-explain-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* 阅读说明 */
.content-block {
  margin-bottom: 34px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block > h2 {
  font-size: 20px;
  font-weight: 700;
}

.block-intro {
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

#lanmu-shiyong .table-scroll {
  margin-top: 4px;
}

.media-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.media-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-figure figcaption {
  padding: 10px 14px;
}

/* 内容介绍 */
.content-section {
  margin-bottom: 34px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section > h2 {
  font-size: 20px;
  font-weight: 700;
}

.content-section > p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.85;
}

.scope-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.scope-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}

.scope-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.scope-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.content-section .table-scroll {
  margin: 14px 0;
}

.field-figure {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.field-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 10px 14px;
}

.feedback-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  counter-reset: feedback-item;
}

.feedback-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 52px;
  min-width: 0;
  counter-increment: feedback-item;
}

.feedback-item::before {
  content: counter(feedback-item);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FDEEF3;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feedback-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feedback-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.feedback-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 404 */
.error-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 20px 72px;
}

.error-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}

.error-code {
  font-size: 44px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.error-title {
  margin-top: 10px;
  font-size: 26px;
}

.error-desc {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}

.error-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-links {
  margin-top: 36px;
}

.error-links-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.error-link-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.16s ease, transform 0.16s ease, color 0.16s ease;
}

.error-link-list a:hover {
  border-color: var(--blue);
  color: var(--pink-dark);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. footer 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  flex-shrink: 0;
  margin-top: 40px;
  background: #FFFFFF;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.footer-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--pink-dark);
}

.footer-bottom {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-bottom-links a:hover {
  color: var(--pink-dark);
}

/* --------------------------------------------------------------------------
   7. 滚动出现动画（增强，不影响初始可见性）
   -------------------------------------------------------------------------- */
.reveal {
  animation: reveal-up 0.5s ease both;
}

@keyframes reveal-up {
  from {
    transform: translateY(12px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none;
  }

  a,
  .btn,
  .tag-item a,
  .entry-row,
  .rank-item,
  .series-card,
  .topic-block {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   8. responsive 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(30, 42, 68, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 12px 14px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item a {
    min-height: 48px;
    width: 100%;
    padding: 0 14px;
    font-size: 16px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 34px 20px 32px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

  .page-layout,
  .content-grid,
  .sidebar-left .page-layout,
  .sidebar-left .content-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 26px 20px 44px;
  }

  .content-aside,
  .content-side,
  .content-sidebar,
  .sidebar,
  .side-col {
    order: 2;
  }

  .page-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .page-hero-media {
    aspect-ratio: 16 / 9;
  }

  .page-title {
    font-size: 26px;
  }

  .step-list,
  .steps,
  .path-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .error-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 62px;
    gap: 12px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .section-inner,
  .site-inner,
  .page-layout,
  .content-grid,
  .footer-inner,
  .footer-bottom,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner {
    padding: 28px 16px 26px;
  }

  .hero-text h1 {
    font-size: 23px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-facts {
    gap: 20px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-lead,
  .page-hero-desc {
    font-size: 15px;
  }

  .section-title {
    font-size: 18px;
  }

  .update-row,
  .update-items .update-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }

  .update-date {
    grid-column: 1 / 2;
    order: 1;
  }

  .update-name {
    grid-column: 1 / 2;
    order: 2;
  }

  .update-range {
    grid-column: 1 / 2;
    order: 3;
  }

  .update-row .tag {
    grid-column: 1 / 2;
    order: 4;
    justify-self: start;
  }

  .update-row .badge {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    order: 5;
  }

  .rank-item {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 14px;
  }

  .series-grid,
  .topic-grid,
  .legend-grid,
  .link-explain,
  .scope-list,
  .feedback-list,
  .step-list,
  .steps,
  .path-list,
  .dimension-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-row,
  .entry-row:has(.entry-cover) {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .entry-cover {
    grid-column: 1 / 2;
    width: 56px;
  }

  .entry-body {
    grid-column: 1 / 2;
  }

  .entry-row > .badge {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: start;
  }

  .error-panel {
    padding: 30px 20px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-title {
    font-size: 21px;
  }

  .error-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
