/* ==========================================================================
   香蕉漫画 anlbog.cn — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base：变量、重置、排版基线
   -------------------------------------------------------------------------- */
:root {
  --bg-page: #f4f5f6;
  --bg-card: #ffffff;
  --text-main: #1d2126;
  --text-sub: #5c646e;
  --line: #dde0e4;
  --accent: #2f6f5e;
  --accent-soft: #e6efeb;
  --state-ongoing: #2f6f5e;
  --state-finished: #7a6a3a;
  --state-rest: #8a8f96;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(29, 33, 38, 0.06);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Courier New", monospace;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-main);
  font-weight: 600;
}

h1 {
  font-size: 30px;
  line-height: 1.35;
}

h2 {
  font-size: 21px;
  line-height: 1.4;
}

h3 {
  font-size: 17px;
  line-height: 1.5;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--text-main);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

time {
  font-variant-numeric: tabular-nums;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout：全站骨架——页头、主导航、主容器、面包屑、页脚
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  flex: 0 0 auto;
  padding: 6px 0;
}

.brand-mark {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
}

.brand-sub {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-sub);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--text-main);
  background: #f7f8f9;
}

.nav-link.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
}

.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.header-cta:hover {
  background: var(--accent);
  color: #ffffff;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: #a8aeb6;
}

.breadcrumb-current {
  color: var(--text-main);
}

.page-header {
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-description {
  max-width: 820px;
  font-size: 15px;
  color: var(--text-sub);
}

.page-description a {
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 111, 94, 0.35);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.sidebar-right .content-main {
  min-width: 0;
}

.content-main {
  min-width: 0;
}

.content-side,
.content-aside {
  min-width: 0;
}

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 34px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.footer-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-sub);
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-sub);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px 18px;
  font-size: 12px;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   components：通用区块、按钮、状态标签、封面、列表条目
   -------------------------------------------------------------------------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 0;
}

.section-head {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-sub);
}

.section-desc a {
  color: var(--accent);
}

.section-intro,
.section-lead,
.section-note {
  font-size: 14px;
  color: var(--text-sub);
}

.section-lead {
  margin-bottom: 18px;
}

.section-note {
  margin-bottom: 14px;
}

.section-block {
  max-width: var(--container);
  margin: 0 auto;
  padding: 34px 24px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #275c4e;
  color: #ffffff;
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1;
  border-radius: 3px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.status-ongoing {
  color: var(--state-ongoing);
}

.status-finished,
.status-done {
  color: var(--state-finished);
}

.status-rest,
.status-paused {
  color: var(--state-rest);
}

.genre-work .status-tag,
.work-meta .status-tag,
.ranking-info .status-tag {
  margin-top: 6px;
}

/* 封面图统一约束 */
.hero-figure img,
.hero-cover-strip img,
.work-cover img,
.update-cover img,
.ranking-cover img,
.section-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #e9ebee;
}

/* --------------------------------------------------------------------------
   pages：首页
   -------------------------------------------------------------------------- */
.home-main {
  padding-bottom: 56px;
}

.hero-section {
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 24px 24px;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.hero-genre-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.genre-index-item a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--text-main);
  background: #f7f8f9;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.genre-index-item a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  min-width: 0;
}

.hero-figure {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9ebee;
}

.hero-figure img {
  width: 100%;
  height: 280px;
  border-radius: 0;
}

.hero-caption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-sub);
  background: var(--bg-card);
  border-top: 1px solid var(--line);
}

.hero-cover-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.cover-strip-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e9ebee;
}

.cover-strip-item img {
  width: 100%;
  height: 96px;
  border-radius: 0;
}

.hero-update-note {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px 18px;
  font-size: 13px;
  color: var(--text-sub);
}

.hero-update-note a {
  color: var(--accent);
}

/* 首页 · 题材分类总览 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.genre-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.genre-name {
  margin-bottom: 6px;
}

.genre-scope {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.genre-work-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #eef0f2;
}

.genre-work-list li:last-child {
  border-bottom: 0;
}

.genre-work {
  font-size: 14px;
  min-width: 0;
}

/* 首页 · 最近更新记录 */
.update-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.update-item {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.9fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid #eef0f2;
  font-size: 14px;
}

.update-item:last-child {
  border-bottom: 0;
}

.update-item:hover {
  background: #fafbfb;
  box-shadow: inset 2px 0 0 var(--accent);
}

.update-work {
  font-weight: 600;
  min-width: 0;
}

.update-chapter {
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 13px;
}

.update-time {
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* 首页 · 人气榜单速览 */
.ranking-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.ranking-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  padding: 13px 16px;
  border-bottom: 1px solid #eef0f2;
}

.ranking-item:last-child {
  border-bottom: 0;
}

.ranking-item:hover {
  background: #fafbfb;
  box-shadow: inset 2px 0 0 var(--accent);
}

.ranking-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.ranking-no {
  flex: 0 0 auto;
  width: 24px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.ranking-work {
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
}

.ranking-note {
  min-width: 0;
}

.ranking-genre {
  display: inline-block;
  font-size: 12px;
  color: var(--text-sub);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 6px;
  margin-bottom: 4px;
}

.ranking-reason {
  font-size: 13px;
  color: var(--text-sub);
}

/* 首页 · 作品动态与作者索引 */
.creator-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.creator-col {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.col-title {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.author-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eef0f2;
}

.author-list li:last-child {
  border-bottom: 0;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  margin-right: 8px;
}

.author-field {
  font-size: 12px;
  color: var(--text-sub);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 6px;
  margin-right: 8px;
}

.author-work {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 2px;
}

.topic-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eef0f2;
}

.topic-list li:last-child {
  border-bottom: 0;
}

.topic-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.topic-desc {
  font-size: 13px;
  color: var(--text-sub);
}

.guide-entry {
  margin-top: 14px;
  padding: 12px;
  background: var(--accent-soft);
  border: 1px solid #cfe0d8;
  border-radius: var(--radius-sm);
}

.guide-entry a {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.guide-entry-text {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   pages：题材分类页
   -------------------------------------------------------------------------- */
.genre-list {
  min-width: 0;
}

.genre-list > .section-title {
  margin-bottom: 6px;
}

.genre-group {
  margin-top: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.genre-group-head {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.genre-group-title {
  margin-bottom: 4px;
}

.genre-group-desc {
  font-size: 13px;
  color: var(--text-sub);
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.work-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfbfc;
}

.work-item:hover {
  border-color: var(--accent);
}

.work-cover {
  width: 84px;
  height: 112px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e9ebee;
}

.work-meta {
  min-width: 0;
}

.work-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.tag {
  font-size: 12px;
  color: var(--text-sub);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 6px;
}

.work-state {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
}

.genre-aside {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.aside-title {
  font-size: 17px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.aside-block {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.aside-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.aside-subtitle {
  font-size: 15px;
  margin-bottom: 8px;
}

.aside-text {
  font-size: 13px;
  color: var(--text-sub);
}

.aside-stats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #eef0f2;
  font-size: 13px;
}

.aside-stats li:last-child {
  border-bottom: 0;
}

.stat-label {
  color: var(--text-sub);
}

.stat-value {
  font-family: var(--font-mono);
  color: var(--text-main);
}

.state-ongoing {
  color: var(--state-ongoing);
}

.state-done {
  color: var(--state-finished);
}

.state-rest {
  color: var(--state-rest);
}

.aside-links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.aside-links a,
.aside-link-list a {
  display: block;
  min-height: 34px;
  line-height: 34px;
  font-size: 14px;
  color: var(--text-main);
  border-bottom: 1px solid #eef0f2;
}

.aside-links a:last-child,
.aside-link-list li:last-child a {
  border-bottom: 0;
}

.aside-links a:hover,
.aside-link-list a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages：最近更新页
   -------------------------------------------------------------------------- */
.layout-updates {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.layout-updates .update-list {
  margin-top: 4px;
}

.layout-updates .update-item {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 12px 16px;
}

.update-cover {
  width: 72px;
  height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e9ebee;
}

.update-body {
  min-width: 0;
}

.update-name {
  font-size: 15px;
  margin-bottom: 4px;
}

.layout-updates .update-chapter,
.layout-updates .update-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
}

.rule-block {
  padding: 12px 0;
  border-bottom: 1px solid #eef0f2;
}

.rule-block:last-of-type {
  border-bottom: 0;
}

.rule-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.rule-text {
  font-size: 13px;
  color: var(--text-sub);
}

.side-links {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.side-links-title {
  font-size: 15px;
  margin-bottom: 8px;
}

.side-link-list a {
  display: block;
  min-height: 34px;
  line-height: 34px;
  font-size: 14px;
  border-bottom: 1px solid #eef0f2;
}

.side-link-list li:last-child a {
  border-bottom: 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.status-card-ongoing {
  border-top-color: var(--state-ongoing);
}

.status-card-finished {
  border-top-color: var(--state-finished);
}

.status-card-rest {
  border-top-color: var(--state-rest);
}

.status-card-title {
  margin-bottom: 6px;
}

.status-card-text {
  font-size: 13px;
  color: var(--text-sub);
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.status-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages：人气榜单页
   -------------------------------------------------------------------------- */
.ranking-section {
  margin-bottom: 34px;
}

.ranking-section .section-title {
  margin-bottom: 6px;
}

.page-ranking .ranking-item {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
  padding: 14px 16px;
}

.ranking-rank {
  flex: 0 0 auto;
  width: 26px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.ranking-cover {
  flex: 0 0 auto;
  width: 56px;
  height: 74px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e9ebee;
}

.ranking-info {
  min-width: 0;
}

.ranking-name {
  font-size: 15px;
  margin-bottom: 4px;
}

.ranking-tag {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.page-ranking .ranking-reason p {
  font-size: 13px;
  color: var(--text-sub);
}

.ranking-method {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.ranking-method .section-title {
  margin-bottom: 6px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}

.method-item {
  min-width: 0;
  padding: 12px;
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.method-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.method-item p {
  font-size: 13px;
  color: var(--text-sub);
}

.method-note {
  font-size: 13px;
  color: var(--text-sub);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.method-note a {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages：阅读与投稿说明页
   -------------------------------------------------------------------------- */
.guide-section {
  margin-bottom: 30px;
}

.guide-section > h2 {
  margin-bottom: 6px;
}

.section-figure {
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9ebee;
}

.section-figure img {
  width: 100%;
  height: 220px;
  border-radius: 0;
}

.section-figure figcaption {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-sub);
  background: var(--bg-card);
  border-top: 1px solid var(--line);
}

.reading-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.path-item {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.path-item h3 {
  margin-bottom: 6px;
}

.path-item p {
  font-size: 13px;
  color: var(--text-sub);
}

.reading-notes {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.reading-notes h3 {
  margin-bottom: 6px;
}

.reading-notes p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.reading-notes p:last-child {
  margin-bottom: 0;
}

.reading-notes .status-tag {
  margin: 0 6px 0 0;
  vertical-align: middle;
}

.step-list {
  margin: 16px 0 22px;
  border-left: 2px solid var(--line);
  padding-left: 0;
}

.step-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 20px 0;
  margin-left: -1px;
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: -17px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border-radius: 50%;
}

.step-body {
  min-width: 0;
  padding-top: 3px;
}

.step-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-detail {
  display: block;
  font-size: 14px;
  color: var(--text-sub);
}

.submit-rules {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.submit-rules h3 {
  margin-bottom: 8px;
}

.rule-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-sub);
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.rule-list li:last-child {
  margin-bottom: 0;
}

.faq-aside {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.faq-aside > h2 {
  font-size: 17px;
  margin-bottom: 6px;
}

.aside-intro {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid #eef0f2;
}

.faq-item:last-of-type {
  border-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 0 12px;
}

.faq-answer p {
  font-size: 13px;
  color: var(--text-sub);
}

.aside-link-list {
  margin-top: 6px;
}

.aside-link-list a {
  display: block;
  min-height: 34px;
  line-height: 34px;
  font-size: 14px;
  border-bottom: 1px solid #eef0f2;
}

.aside-link-list li:last-child a {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages：404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-panel {
  max-width: 640px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 8px;
}

.error-title {
  margin-bottom: 10px;
}

.error-text {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-main);
}

.error-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.error-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.error-btn-primary:hover {
  background: #275c4e;
  color: #ffffff;
}

.error-hints {
  margin-top: 28px;
}

.error-hints-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.error-hints-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.error-hints-list a {
  display: block;
  min-height: 42px;
  line-height: 42px;
  padding: 0 14px;
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.error-hints-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   responsive：900px / 600px 断点
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    order: 3;
    margin-left: auto;
  }

  .site-nav {
    order: 4;
    flex: 1 0 100%;
    border-top: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px 0 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    min-height: 46px;
    padding: 0 4px;
    border-bottom: 1px solid #eef0f2;
    border-left: 2px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: #eef0f2;
    border-left-color: var(--accent);
    padding-left: 10px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 10px 18px;
  }

  .header-cta {
    order: 2;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 28px 18px 20px;
  }

  .hero-figure img {
    height: 240px;
  }

  .section,
  .section-block {
    padding-left: 18px;
    padding-right: 18px;
  }

  .inner-main {
    padding: 20px 18px 48px;
  }

  .page-layout,
  .layout-updates {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .genre-grid,
  .creator-columns,
  .status-grid,
  .method-grid,
  .reading-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 28px 18px 20px;
  }

  .footer-copy {
    padding: 12px 18px 16px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  h1,
  .page-title,
  .hero-title {
    font-size: 24px;
  }

  h2,
  .section-title {
    font-size: 19px;
  }

  .brand-mark {
    font-size: 17px;
  }

  .header-cta {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-genre-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-cover-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-figure img {
    height: 200px;
  }

  .cover-strip-item img {
    height: 110px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .genre-grid,
  .creator-columns,
  .status-grid,
  .method-grid,
  .reading-paths,
  .work-list,
  .error-hints-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: center;
    padding: 12px 14px;
  }

  .update-chapter {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .update-time {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }

  .update-item .status-tag {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
    align-self: center;
  }

  .layout-updates .update-item {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
  }

  .layout-updates .update-item .status-tag {
    grid-column: 2 / 3;
    grid-row: auto;
    margin-top: 6px;
    justify-self: start;
  }

  .update-cover {
    width: 64px;
    height: 86px;
  }

  .ranking-item,
  .page-ranking .ranking-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .ranking-note {
    padding-left: 34px;
  }

  .ranking-rank {
    width: 22px;
  }

  .ranking-cover {
    width: 48px;
    height: 64px;
  }

  .step-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .step-index {
    width: 28px;
    height: 28px;
    margin-left: -15px;
    font-size: 13px;
  }

  .section-figure img {
    height: 170px;
  }

  .error-code {
    font-size: 32px;
  }

  .error-main {
    padding: 36px 18px 48px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}
