/* ==========================================================================
   樱花动漫 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 基础重置与全局字体、颜色
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #f7f8fa;
  color: #1f2328;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  color: #1f2328;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: #4f7cff;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

figure {
  margin: 0;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架：页头、导航、主容器、页脚
   -------------------------------------------------------------------------- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* 顶部事实条 */
.fact-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
  text-align: center;
}

.fact-bar p {
  margin: 0;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  min-height: 64px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 0;
  color: #1f2328;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-name {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: #1f2328;
}

.brand-tag {
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
}

/* 主导航 */
.site-nav {
  margin-left: auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list li {
  flex: 0 0 auto;
}

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2328;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: #4f7cff;
  background-color: #f7f8fa;
  text-decoration: none;
}

.nav-list a.is-current {
  color: #4f7cff;
  border-bottom-color: #4f7cff;
  font-weight: 600;
}

/* 移动端菜单按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  min-height: 44px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #1f2328;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: #4f7cff;
  color: #4f7cff;
}

.nav-toggle-icon {
  display: block;
  position: relative;
  width: 16px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
}

.nav-toggle-icon::before {
  top: -5px;
}

.nav-toggle-icon::after {
  top: 5px;
}

.nav-toggle-text {
  font-size: 14px;
}

/* 主内容 */
.site-main {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.home-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.inner-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}

/* 页脚 */
.site-footer {
  margin-top: auto;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 20px 24px;
}

.footer-about {
  min-width: 0;
}

.footer-brand {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2328;
}

.footer-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2328;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col a {
  display: inline-block;
  padding: 2px 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
  text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #4f7cff;
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  padding: 16px 20px 24px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
  text-align: center;
}

/* 内页骨架：面包屑、页面标题区 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

.breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: #4f7cff;
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #b9bdc4;
}

.breadcrumb-current {
  color: #1f2328;
}

.page-header {
  margin: 0 0 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid #e5e7eb;
}

.page-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 600;
  color: #1f2328;
}

.page-description {
  margin: 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.7;
  color: #6b7280;
}

/* 内页两栏布局：主内容在前，aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.page-layout > .layout-main,
.page-layout > .page-primary {
  min-width: 0;
}

.field-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
}

/* --------------------------------------------------------------------------
   components · 通用模块：区块标题、卡片、列表、步骤、状态色
   -------------------------------------------------------------------------- */
.section-head {
  margin: 0 0 18px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
}

.section-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.section-desc a {
  color: #4f7cff;
}

.section-intro,
.section-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.section-intro a,
.section-lead a {
  color: #4f7cff;
}

.section-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
}

.section {
  margin: 0 0 36px;
}

.section > h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
}

/* 状态色 */
.update-status,
.rank-status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  background-color: #f1f3f6;
  color: #6b7280;
}

.update-status.is-active,
.status-updated {
  background-color: #e7f7f0;
  color: #0f9d68;
}

.status-new {
  background-color: #eaf0ff;
  color: #3f6ae0;
}

.status-paused,
.update-status.is-paused,
.rank-status.is-paused,
.rank-status.is-hiatus {
  background-color: #fdf3e3;
  color: #b8760c;
}

.rank-status.is-ongoing {
  background-color: #e7f7f0;
  color: #0f9d68;
}

.rank-status.is-completed {
  background-color: #eef0f4;
  color: #4b5563;
}

/* 站内栏目索引（首页 / 内页通用） */
.site-index {
  margin: 0 0 36px;
}

.site-index-title {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.index-cell,
.index-item {
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.index-cell:hover,
.index-item:hover {
  border-color: #4f7cff;
  transform: translateY(-1px);
}

.index-cell a,
.index-item a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1f2328;
  text-decoration: none;
}

.index-cell a:hover,
.index-item a:hover {
  color: #4f7cff;
}

.index-desc,
.index-item span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

/* 内页单列索引列表 */
.site-index-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.site-index-list li {
  min-width: 0;
}

.site-index-list a {
  display: block;
  padding: 14px 16px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2328;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.site-index-list a:hover,
.site-index-list a:focus-visible {
  border-color: #4f7cff;
  color: #4f7cff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* 步骤列表（首页阅读说明入口） */
.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: border-color 0.18s ease;
}

.step-item:hover {
  border-color: #4f7cff;
}

.step-no,
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-color: #eef2ff;
  color: #4f7cff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.step-name {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  color: #1f2328;
}

.step-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

/* 路径步骤（内页） */
.path-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.path-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: border-color 0.18s ease;
}

.path-step:hover {
  border-color: #4f7cff;
}

.path-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-color: #eef2ff;
  color: #4f7cff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.path-step h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}

.path-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

/* 图片容器统一约束 */
.hero-figure,
.updates-hero,
.field-figure,
.media-figure {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #ffffff;
}

.hero-figure img,
.updates-hero img,
.field-figure img,
.media-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-figure figcaption,
.updates-hero figcaption,
.field-figure figcaption,
.media-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

/* 首屏工作台 */
.hero-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
  margin: 0 0 40px;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #4f7cff;
}

.hero-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 600;
  color: #1f2328;
}

.hero-lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #6b7280;
}

.hero-paths {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-path {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #4f7cff;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.hero-path:hover,
.hero-path:focus-visible {
  border-color: #4f7cff;
  transform: translateY(-1px);
  text-decoration: none;
}

.hero-path-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2328;
}

.hero-path-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

.hero-media {
  min-width: 0;
}

.hero-media .hero-figure {
  margin: 0 0 16px;
}

.hero-grid-title {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: #1f2328;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cover-card {
  min-width: 0;
}

.cover-card a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 10px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.cover-card a:hover,
.cover-card a:focus-visible {
  border-color: #4f7cff;
  transform: translateY(-2px);
  text-decoration: none;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  background-color: #f1f3f6;
}

.cover-name {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: #1f2328;
}

.cover-tag {
  font-size: 12px;
  line-height: 1.5;
  color: #4f7cff;
}

.cover-date {
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}

/* 题材方向索引 */
.genre-index {
  margin: 0 0 40px;
}

.genre-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.genre-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.genre-name {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.genre-feature {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.genre-fields {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid #e5e7eb;
}

.genre-fields dt {
  font-size: 12px;
  line-height: 1.7;
  color: #6b7280;
}

.genre-fields dd {
  font-size: 12px;
  line-height: 1.7;
  color: #1f2328;
}

.genre-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: #4f7cff;
}

/* 更新记录与人气位次并列区 */
.dual-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  margin: 0 0 40px;
}

.update-panel,
.rank-panel {
  min-width: 0;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 76px 66px;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-top: 1px solid #e5e7eb;
  transition: background-color 0.18s ease;
}

.update-row:first-child {
  border-top: 0;
}

.update-row:hover {
  background-color: #f7f8fa;
}

.update-date {
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
  white-space: nowrap;
}

.update-name {
  min-width: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #1f2328;
}

.update-tag {
  font-size: 12px;
  line-height: 1.6;
  color: #4f7cff;
  white-space: nowrap;
}

.update-status {
  justify-self: start;
}

.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 76px 66px;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-top: 1px solid #e5e7eb;
  transition: background-color 0.18s ease;
}

.rank-row:first-child {
  border-top: 0;
}

.rank-row:hover {
  background-color: #f7f8fa;
}

.rank-no {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: #6b7280;
  transition: color 0.18s ease;
}

.rank-row:hover .rank-no {
  color: #4f7cff;
}

.rank-name {
  min-width: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: #1f2328;
}

.rank-name a {
  color: #1f2328;
  text-decoration: none;
}

.rank-name a:hover,
.rank-name a:focus-visible {
  color: #4f7cff;
  text-decoration: underline;
}

.rank-tag {
  font-size: 12px;
  line-height: 1.6;
  color: #4f7cff;
  white-space: nowrap;
}

.rank-status {
  justify-self: start;
}

.rank-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

/* 字段口径与收录边界摘要 */
.field-summary {
  margin: 0 0 40px;
}

.field-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field-col {
  min-width: 0;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.field-col h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.field-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.field-name {
  font-size: 13px;
  line-height: 1.7;
  font-weight: 600;
  color: #1f2328;
}

.field-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

/* 阅读说明入口 */
.reading-entry {
  margin: 0 0 40px;
  padding: 24px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.reading-feedback {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.reading-feedback a {
  color: #4f7cff;
  margin-right: 14px;
}

/* --------------------------------------------------------------------------
   pages · 题材分类
   -------------------------------------------------------------------------- */
.genre-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 8px;
}

.genre-direction {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.genre-direction h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.genre-direction-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.genre-direction-fields {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid #e5e7eb;
}

.genre-direction-fields dt {
  font-size: 12px;
  line-height: 1.7;
  color: #6b7280;
}

.genre-direction-fields dd {
  font-size: 12px;
  line-height: 1.7;
  color: #1f2328;
}

.genre-entries-group {
  margin: 0 0 24px;
}

.genre-entries-group h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.entry-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.entry-card {
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.entry-card:hover {
  border-color: #4f7cff;
  transform: translateY(-2px);
}

.entry-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  background-color: #f1f3f6;
  margin: 0 0 10px;
}

.entry-name {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: #1f2328;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.entry-tag {
  color: #4f7cff;
}

.entry-date {
  color: #6b7280;
}

/* --------------------------------------------------------------------------
   pages · 最近更新
   -------------------------------------------------------------------------- */
.updates-hero {
  margin: 0 0 28px;
}

.date-group {
  margin: 0 0 20px;
  padding: 18px 20px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.date-group-title {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: #1f2328;
}

.updates-log .update-row {
  grid-template-columns: 56px 88px minmax(0, 1fr) 76px 66px;
}

.update-thumb {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
  background-color: #f1f3f6;
}

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rhythm-item {
  min-width: 0;
  padding: 18px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.rhythm-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.rhythm-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.batch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.batch-item {
  min-width: 0;
  padding: 18px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.batch-name {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.batch-meta {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #4f7cff;
}

.batch-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.batch-footnote {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.batch-footnote a {
  color: #4f7cff;
  margin-right: 14px;
}

/* --------------------------------------------------------------------------
   pages · 人气榜单
   -------------------------------------------------------------------------- */
.ranking-list-section .rank-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
}

.ranking-list-section .rank-row {
  grid-template-columns: 34px 56px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px 10px;
}

.rank-cover {
  width: 56px;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background-color: #f1f3f6;
}

.rank-cover img {
  width: 56px;
  height: 74px;
  object-fit: cover;
}

.rank-body {
  min-width: 0;
}

.rank-body .rank-name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.6;
}

.rank-genre {
  color: #4f7cff;
}

.rank-body .rank-note {
  margin: 0;
  padding: 0;
  border-top: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rule-item {
  min-width: 0;
  padding: 18px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.rule-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.rule-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.genre-crossover {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.crossover-col {
  min-width: 0;
  padding: 18px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.crossover-col h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.crossover-count {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  color: #4f7cff;
}

.crossover-col p:last-child {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

/* --------------------------------------------------------------------------
   pages · 条目字段说明
   -------------------------------------------------------------------------- */
.field-section {
  margin: 0 0 32px;
}

.field-section > h2,
.boundary-section > h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
}

.field-figure {
  margin: 0 0 18px;
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-item {
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0;
}

.field-item[open] {
  border-color: #4f7cff;
}

.field-item .field-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2328;
  cursor: pointer;
  list-style: none;
}

.field-item .field-name::-webkit-details-marker {
  display: none;
}

.field-item .field-name::after {
  content: "展开";
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
}

.field-item[open] .field-name::after {
  content: "收起";
  color: #4f7cff;
}

.field-body {
  padding: 0 16px 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.field-body p {
  margin: 12px 0 0;
}

.field-meaning {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #1f2328;
}

.field-scope {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.boundary-section {
  margin: 0 0 32px;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.boundary-col {
  min-width: 0;
  padding: 18px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.boundary-in {
  border-top: 3px solid #10b981;
}

.boundary-out {
  border-top: 3px solid #f59e0b;
}

.boundary-col h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #b9bdc4;
}

.boundary-in .boundary-list li::before {
  background-color: #10b981;
}

.boundary-out .boundary-list li::before {
  background-color: #f59e0b;
}

.boundary-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.field-aside {
  min-width: 0;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.field-aside h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.aside-lead {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.field-aside .path-steps {
  grid-template-columns: minmax(0, 1fr);
}

.aside-more {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.aside-more a {
  color: #4f7cff;
  margin-right: 12px;
}

/* --------------------------------------------------------------------------
   pages · 阅读说明
   -------------------------------------------------------------------------- */
.content-block {
  margin: 0 0 32px;
  min-width: 0;
}

.media-figure {
  margin: 0 0 18px;
}

.path-steps .step-item {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.step-body {
  min-width: 0;
  flex: 1 1 auto;
}

.step-body .step-name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.step-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.rhythm-block .rhythm-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rhythm-card {
  min-width: 0;
  padding: 18px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.rhythm-name {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.rhythm-desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.rhythm-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rhythm-points li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.rhythm-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #4f7cff;
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feedback-item {
  min-width: 0;
  padding: 18px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.feedback-name {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.feedback-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.faq-block {
  margin: 0 0 32px;
}

.faq-item {
  margin: 0 0 10px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.faq-item[open] {
  border-color: #4f7cff;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  color: #1f2328;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "展开";
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
}

.faq-item[open] summary::after {
  content: "收起";
  color: #4f7cff;
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 72px;
}

.error-inner {
  width: 100%;
  max-width: 640px;
  padding: 32px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-align: center;
}

.error-code {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
  color: #4f7cff;
}

.error-inner h1 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
}

.error-desc {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
}

.btn-primary,
.btn-plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.btn-primary {
  background-color: #4f7cff;
  border: 1px solid #4f7cff;
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #3f6ae0;
  border-color: #3f6ae0;
  color: #ffffff;
  text-decoration: none;
}

.btn-plain {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  color: #1f2328;
}

.btn-plain:hover,
.btn-plain:focus-visible {
  border-color: #4f7cff;
  color: #4f7cff;
  text-decoration: none;
}

.error-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
}

.error-note a {
  color: #4f7cff;
  margin: 0 8px;
}

/* --------------------------------------------------------------------------
   responsive · 断点适配
   -------------------------------------------------------------------------- */

/* 1024px 及以下：收紧多栏 */
@media (max-width: 1024px) {
  .hero-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .genre-columns,
  .genre-overview-grid,
  .genre-crossover {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dual-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rhythm-grid,
  .rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

/* 768px 及以下：移动导航 + 单列 */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid #e5e7eb;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: 11px 10px;
    min-height: 44px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    border-radius: 6px;
  }

  .nav-list a.is-current {
    border-left-color: #4f7cff;
    background-color: #f7f8fa;
  }

  .home-main,
  .inner-main {
    padding: 20px 16px 40px;
  }

  .page-title {
    font-size: 22px;
  }

  .hero-title {
    font-size: 22px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-columns,
  .genre-overview-grid,
  .genre-crossover,
  .entry-card-list,
  .field-columns,
  .boundary-columns,
  .rhythm-grid,
  .rhythm-block .rhythm-grid,
  .rule-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row,
  .updates-log .update-row {
    grid-template-columns: 78px minmax(0, 1fr);
    row-gap: 4px;
  }

  .updates-log .update-row {
    grid-template-columns: 56px 78px minmax(0, 1fr);
  }

  .update-tag,
  .update-status {
    grid-column: 2;
  }

  .updates-log .update-tag,
  .updates-log .update-status {
    grid-column: 3;
  }

  .rank-row,
  .ranking-list-section .rank-row {
    grid-template-columns: 30px minmax(0, 1fr);
    row-gap: 8px;
  }

  .ranking-list-section .rank-row {
    grid-template-columns: 30px 56px minmax(0, 1fr);
  }

  .rank-tag,
  .rank-status {
    grid-column: 2;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 16px 20px;
  }
}

/* 480px 及以下：进一步压缩 */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .fact-bar {
    padding: 8px 14px;
    font-size: 12px;
  }

  .home-main,
  .inner-main {
    padding: 16px 14px 36px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cover-card a {
    padding: 8px;
  }

  .update-panel,
  .rank-panel,
  .field-col,
  .reading-entry,
  .date-group,
  .field-aside,
  .boundary-col,
  .rhythm-item,
  .rule-item,
  .crossover-col,
  .feedback-item,
  .rhythm-card,
  .batch-item {
    padding: 14px;
  }

  .field-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .error-inner {
    padding: 24px 18px;
  }

  .error-code {
    font-size: 32px;
  }

  .error-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-plain {
    width: 100%;
  }
}
