/* ==========================================================================
   动漫之家 ofweky.cn
   base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --ink: #1c2030;
  --ink-soft: #5a6172;
  --line: #e3e6ef;
  --brand: #3d5afe;
  --accent: #ff6f61;
  --green: #2fa36b;
  --amber: #c98a1b;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(28, 32, 48, 0.05);
  --shadow-lift: 0 6px 18px rgba(28, 32, 48, 0.09);
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

time {
  font-variant-numeric: tabular-nums;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --------------------------------------------------------------------------
   layout：全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
}

.brand:hover {
  text-decoration: none;
  color: var(--brand);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex: none;
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 15px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--brand);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before {
  position: absolute;
  top: -5px;
  left: 0;
}

.nav-toggle-icon::after {
  position: absolute;
  top: 5px;
  left: 0;
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 14px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
}

.page-description {
  margin-top: 10px;
  max-width: 760px;
  font-size: 15px;
  color: var(--ink-soft);
}

.section {
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
}

.section-desc {
  margin-top: 8px;
  max-width: 780px;
  font-size: 14px;
  color: var(--ink-soft);
}

.section-intro {
  margin-top: 8px;
  max-width: 780px;
  font-size: 14px;
  color: var(--ink-soft);
}

.section-lead {
  margin-top: 8px;
  max-width: 780px;
  font-size: 14px;
  color: var(--ink-soft);
}

.source-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-soft);
}

.note-block {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-soft);
}

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 24px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.footer-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 300px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  display: inline-block;
  padding: 3px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-list a:hover {
  color: var(--brand);
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 24px 28px;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   components：通用标签、状态、按钮、步骤
   -------------------------------------------------------------------------- */

.tag {
  display: inline-block;
  padding: 1px 8px;
  margin-right: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: #eef1f8;
  border-radius: 999px;
}

.tag-sport,
.tag-team {
  color: #b0432f;
  background: #fdeeeb;
}

.tag-growth,
.tag-life,
.tag-food,
.tag-pet {
  color: #2f7a52;
  background: #e9f6ef;
}

.tag-school,
.tag-journey {
  color: #2f4bc0;
  background: #eaeefe;
}

.tag-mystery,
.tag-suspense {
  color: #7a3f9e;
  background: #f2ebfa;
}

.tag-fantasy,
.tag-case {
  color: #1f7c8c;
  background: #e6f4f6;
}

.tag-genre,
.tag-status {
  color: var(--ink-soft);
  background: #eef1f8;
}

.status {
  display: inline-block;
  padding: 1px 8px;
  margin-right: 8px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 999px;
}

.status-ongoing,
.entry-status.status-ongoing {
  color: #1f7a4d;
  background: #e6f5ed;
}

.status-completed,
.status-finished {
  color: #2f4bc0;
  background: #eaeefe;
}

.status-paused {
  color: #a06412;
  background: #fdf3e2;
}

.entry-status {
  display: inline-block;
  padding: 1px 8px;
  margin-right: 8px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #eef1f8;
}

.more-link {
  font-size: 13px;
  font-weight: 600;
}

.col-foot {
  margin-top: 14px;
}

.col-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.field-table {
  min-width: 640px;
  font-size: 14px;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  background: #f2f4fa;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}

.field-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.step-item:hover {
  border-color: #c7cee4;
  transform: translateY(-2px);
}

.step-no {
  flex: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaeefe;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step-body {
  min-width: 0;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-item {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.related-item:hover {
  border-color: #c7cee4;
  transform: translateY(-2px);
}

.related-name,
.related-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.related-name a,
.related-link {
  color: var(--ink);
  text-decoration: none;
}

.related-name a:hover,
.related-link:hover {
  color: var(--brand);
  text-decoration: none;
}

.related-text,
.related-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages：首页
   -------------------------------------------------------------------------- */

.hero-section {
  padding: 34px 0 40px;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-summary {
  margin-top: 14px;
  max-width: 560px;
  font-size: 15px;
  color: var(--ink-soft);
}

.hero-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.path-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.path-link:hover {
  color: var(--brand);
  border-color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.cover-section,
.genre-section,
.split-section,
.rank-field-section,
.steps-section {
  margin-bottom: 48px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover {
  border-color: #c7cee4;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.cover-figure {
  background: #eef1f8;
}

.cover-figure img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.cover-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cover-name {
  font-size: 16px;
  font-weight: 600;
}

.cover-name a {
  color: var(--ink);
  text-decoration: none;
}

.cover-name a:hover {
  color: var(--brand);
  text-decoration: none;
}

.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cover-tags .tag {
  margin-right: 0;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
}

.genre-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.genre-col {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.genre-col:nth-child(2) {
  border-top-color: var(--accent);
}

.genre-col:nth-child(3) {
  border-top-color: #7a3f9e;
}

.genre-col:nth-child(4) {
  border-top-color: var(--green);
}

.genre-name {
  font-size: 17px;
  font-weight: 600;
}

.genre-name a {
  color: var(--ink);
  text-decoration: none;
}

.genre-name a:hover {
  color: var(--brand);
  text-decoration: none;
}

.genre-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.genre-items {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.genre-items a {
  font-size: 14px;
  color: var(--ink);
}

.genre-items a:hover {
  color: var(--brand);
}

.split-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.split-col {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mini-cover-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-cover {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.mini-cover img {
  width: 56px;
  height: 56px;
  flex: none;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.mini-body {
  min-width: 0;
}

.mini-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

.split-col-updates .update-list {
  display: flex;
  flex-direction: column;
}

.split-col-updates .update-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.split-col-updates .update-item:last-child {
  border-bottom: none;
}

.split-col-updates .update-date {
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.split-col-updates .update-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.split-col-updates .update-name:hover {
  color: var(--brand);
  text-decoration: none;
}

.split-col-updates .update-meta {
  grid-column: 2;
  font-size: 12px;
  color: var(--ink-soft);
}

.rank-field-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.rank-col,
.field-col {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rank-col .rank-list {
  display: flex;
  flex-direction: column;
}

.rank-col .rank-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.rank-col .rank-item:last-child {
  border-bottom: none;
}

.rank-no {
  flex: none;
  width: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.rank-col .rank-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.rank-col .rank-name:hover {
  color: var(--brand);
  text-decoration: none;
}

.rank-meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-left: auto;
  text-align: right;
}

.field-brief {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 12px;
  font-size: 14px;
}

.field-brief dt {
  font-weight: 600;
  color: var(--ink);
}

.field-brief dd {
  color: var(--ink-soft);
  min-width: 0;
}

.steps-section .step-name {
  font-size: 15px;
  font-weight: 600;
}

.steps-section .step-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.site-index {
  margin-bottom: 48px;
}

.index-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-item {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.index-item:hover {
  border-color: #c7cee4;
  transform: translateY(-2px);
}

.index-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.index-link:hover {
  color: var(--brand);
  text-decoration: none;
}

.index-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages：题材分类
   -------------------------------------------------------------------------- */

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.genre-column {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.genre-index {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.genre-column .genre-name {
  margin-top: 6px;
  font-size: 17px;
}

.genre-text {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.genre-group {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.genre-group:last-child {
  margin-bottom: 0;
}

.genre-group-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.genre-group-title {
  font-size: 18px;
  font-weight: 600;
}

.genre-group-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.entry-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.entry-item:hover {
  border-color: #c7cee4;
  transform: translateY(-2px);
}

.entry-name {
  font-size: 15px;
  font-weight: 600;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.entry-tags .tag {
  margin-right: 0;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

.entry-batch {
  font-variant-numeric: tabular-nums;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.visual-figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.visual-figure img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.visual-caption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.back-link {
  margin-top: 20px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages：最近更新
   -------------------------------------------------------------------------- */

.legend-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.legend-item {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legend-name {
  font-size: 15px;
  font-weight: 600;
}

.legend-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.update-group {
  margin-bottom: 26px;
}

.update-group:last-child {
  margin-bottom: 0;
}

.update-group .update-date {
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.update-group .update-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.update-group .update-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.update-group .update-item:hover {
  border-color: #c7cee4;
  transform: translateY(-2px);
}

.update-thumb {
  flex: none;
}

.update-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.update-body {
  min-width: 0;
}

.update-group .update-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.update-group .update-name:hover {
  color: var(--brand);
  text-decoration: none;
}

.update-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.update-tags .tag {
  margin-right: 0;
}

.update-batch {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.batch-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.batch-col {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.batch-col .batch-col-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.batch-list {
  display: flex;
  flex-direction: column;
}

.batch-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.batch-item:last-child {
  border-bottom: none;
}

.batch-code {
  flex: none;
  min-width: 92px;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.batch-meta {
  color: var(--ink-soft);
  font-size: 13px;
}

.batch-col .batch-list a {
  color: var(--ink);
}

.batch-col .batch-list a:hover {
  color: var(--brand);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 12px;
}

.page-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.page-link:hover {
  color: var(--brand);
  border-color: var(--brand);
  text-decoration: none;
}

.page-link.is-current {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 600;
}

.page-link.is-disabled {
  color: #a3a9ba;
  background: #f2f4fa;
  border-color: var(--line);
  pointer-events: none;
}

.pagination-note {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   pages：人气榜单
   -------------------------------------------------------------------------- */

.section-basis .basis-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.basis-item {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.basis-name {
  font-size: 15px;
  font-weight: 600;
}

.basis-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.section-rank .rank-list {
  margin-top: 18px;
}

.section-rank .rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.section-rank .rank-item:last-child {
  margin-bottom: 0;
}

.section-rank .rank-item:hover {
  border-color: #c7cee4;
  transform: translateY(-2px);
}

.rank-index {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: #eaeefe;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rank-body {
  min-width: 0;
  flex: 1 1 auto;
}

.section-rank .rank-name {
  font-size: 16px;
  font-weight: 600;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.rank-tags .tag {
  margin-right: 0;
}

.rank-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.rank-cover {
  flex: none;
}

.rank-cover img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.change-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.change-col,
.section-change .source-note {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-change .source-note {
  border-left: 3px solid var(--brand);
}

.change-name,
.source-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.change-desc,
.source-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.change-desc:last-child,
.source-desc:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages：条目字段说明
   -------------------------------------------------------------------------- */

.field-figure {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.field-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.boundary-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.boundary-col {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.boundary-in {
  border-top: 3px solid var(--green);
}

.boundary-out {
  border-top: 3px solid var(--accent);
}

.boundary-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.boundary-in .boundary-list li::before {
  background: var(--green);
}

.boundary-out .boundary-list li::before {
  background: var(--accent);
}

.feedback-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feedback-steps .step-title {
  font-size: 15px;
  font-weight: 600;
}

.feedback-steps .step-text {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.field-map-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-map-item {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.field-map-item:hover {
  border-color: #c7cee4;
  transform: translateY(-2px);
}

.field-map-title {
  font-size: 16px;
  font-weight: 600;
}

.field-map-title a {
  color: var(--ink);
  text-decoration: none;
}

.field-map-title a:hover {
  color: var(--brand);
  text-decoration: none;
}

.field-map-text {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--brand);
  font-weight: 600;
}

.faq-item[open] .faq-question::before {
  content: "–";
}

.faq-question:hover {
  color: var(--brand);
}

.faq-answer {
  padding: 0 18px 16px 36px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages：404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.error-panel {
  max-width: 620px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.error-code {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.error-title {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 600;
}

.error-text {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.error-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.error-home:hover {
  color: var(--brand);
  border-color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0 4px;
    border-bottom: none;
    border-left: 2px solid transparent;
    padding-left: 10px;
  }

  .nav-link.is-current {
    border-bottom-color: transparent;
    border-left-color: var(--brand);
  }

  .home-main,
  .inner-main {
    padding: 0 16px 44px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-section {
    padding: 24px 0 32px;
  }

  .hero-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-figure img {
    height: 220px;
  }

  .cover-grid,
  .genre-columns,
  .genre-grid,
  .visual-grid,
  .legend-list,
  .section-basis .basis-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-columns,
  .rank-field-columns,
  .batch-columns,
  .change-columns,
  .boundary-columns,
  .field-map-list,
  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list,
  .feedback-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .entry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-group .update-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 28px 16px 0;
  }

  .footer-copy {
    padding: 20px 16px 26px;
  }
}

@media (max-width: 600px) {
  .brand-text {
    font-size: 16px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-figure img {
    height: 180px;
  }

  .hero-paths .path-link {
    flex: 1 1 100%;
    justify-content: center;
  }

  .cover-grid,
  .genre-columns,
  .genre-grid,
  .visual-grid,
  .legend-list,
  .section-basis .basis-list,
  .entry-list,
  .field-map-list,
  .related-list,
  .mini-cover-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list,
  .feedback-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-brief {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .field-brief dd {
    margin-bottom: 8px;
  }

  .split-col-updates .update-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-col-updates .update-meta {
    grid-column: 1;
  }

  .section-rank .rank-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .rank-cover img {
    width: 56px;
    height: 56px;
  }

  .rank-meta {
    margin-left: 0;
    text-align: left;
    flex-basis: 100%;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .page-header {
    padding: 12px 0 20px;
    margin-bottom: 26px;
  }

  .error-main {
    padding: 40px 16px 56px;
  }

  .error-panel {
    padding: 22px;
  }

  .error-title {
    font-size: 22px;
  }
}
