/* ==========================================================================
   天美官网 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
:root {
  --paper: #f7f4ed;
  --card: #ffffff;
  --ink: #17150f;
  --stone: #5c574c;
  --copper: #8a5a2b;
  --pine: #2e4a45;
  --brick: #b04a2f;
  --rule: #d8d1c2;
  --rule-soft: #e7e1d4;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --wrap: 1180px;
  --read: 720px;
  --radius: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

a {
  color: var(--copper);
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

a:hover,
a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.7;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

time,
.entry-code,
.core-code,
.rank-code,
.update-code,
.card-no,
.compare-code,
.side-date {
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* 站头 */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 12px;
  color: var(--stone);
  font-family: var(--mono);
  letter-spacing: 0.5px;
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 11px;
  font-size: 15px;
  color: var(--stone);
  border-radius: var(--radius);
  line-height: 1.4;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--copper);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--copper);
  font-weight: 600;
}

/* 移动菜单按钮 */
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.mobile-nav {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 16px 16px;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}

.mobile-nav-list a:hover,
.mobile-nav-list a:focus-visible {
  color: var(--copper);
  text-decoration: none;
}

/* 内页主容器 */
.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--stone);
}

.breadcrumb a {
  color: var(--stone);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--copper);
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--ink);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item {
  font-size: 13px;
  color: var(--stone);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin-right: 8px;
  color: var(--rule);
}

.breadcrumb-item.is-current {
  color: var(--ink);
}

/* 页面标题区 */
.page-header {
  padding: 22px 0 0;
}

.page-title {
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.32;
  color: var(--ink);
  max-width: 900px;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0 26px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 30px;
}

.page-label,
.page-kicker,
.page-code,
.page-index {
  display: inline-block;
  flex: 0 0 auto;
  padding: 2px 9px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--copper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  letter-spacing: 0.5px;
}

.page-lead {
  flex: 1 1 420px;
  min-width: 240px;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--stone);
}

/* 两栏内容布局：主栏在前，aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

/* 页脚 */
.site-footer {
  flex: 0 0 auto;
  margin-top: 40px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px 24px 30px;
}

.footer-intro {
  max-width: var(--read);
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone);
}

.footer-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule-soft);
}

.footer-group dt {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.footer-group dd {
  margin: 0 0 4px;
}

.footer-group dd a {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.7;
}

.footer-group dd a:hover,
.footer-group dd a:focus-visible {
  color: var(--copper);
}

.footer-note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--stone);
}

.footer-copy {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--stone);
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   components
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: var(--radius);
  line-height: 1.4;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--copper);
  color: var(--copper);
  text-decoration: none;
}

/* 区块标题（首页） */
.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.section-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--stone);
  max-width: var(--read);
}

/* 内页区块标题（带编号） */
.h2-index,
.h2-num {
  display: inline-block;
  margin-right: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--copper);
  letter-spacing: 0.5px;
}

.section-note {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone);
  max-width: var(--read);
}

/* 状态徽标 */
.status,
.status-badge {
  display: inline-block;
  padding: 1px 7px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  color: var(--stone);
  background: var(--card);
  white-space: nowrap;
}

.status-ongoing {
  color: var(--pine);
  border-color: var(--pine);
}

.status-completed,
.status-complete {
  color: var(--stone);
  border-color: var(--rule);
}

.status-paused,
.status-hiatus {
  color: var(--brick);
  border-color: var(--brick);
}

/* 题材标签 */
.tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.tag:hover,
.tag:focus-visible {
  color: var(--copper);
  border-color: var(--copper);
  text-decoration: none;
}

.tag-sm {
  font-size: 13px;
  padding: 3px 9px;
}

/* 内联入口行 */
.inline-links {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.inline-links p,
.inline-links-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.inline-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.inline-link-list a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--copper);
}

.inline-link-list a:hover,
.inline-link-list a:focus-visible {
  color: var(--ink);
}

.inline-more,
.side-more,
.group-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--copper);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.inline-more:hover,
.side-more:hover,
.group-more:hover,
.inline-more:focus-visible,
.side-more:focus-visible,
.group-more:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  text-decoration: none;
}

/* 榜单行（通用） */
.rank-row {
  display: grid;
  grid-template-columns: 34px 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--copper);
  text-align: left;
}

.rank-code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--stone);
  letter-spacing: 0.3px;
}

.rank-name,
.rank-title {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.rank-name:hover,
.rank-title:hover,
.rank-name:focus-visible,
.rank-title:focus-visible {
  color: var(--copper);
}

.rank-genre {
  font-size: 13px;
  color: var(--stone);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   pages · index
   -------------------------------------------------------------------------- */

/* 首屏 */
.hero {
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 48px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--copper);
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 15em;
}

.hero-lead {
  max-width: var(--read);
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--stone);
}

.index-directory {
  margin-top: 30px;
  border-top: 1px solid var(--rule);
}

.index-item {
  display: grid;
  grid-template-columns: 34px minmax(120px, 190px) minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--rule-soft);
}

.index-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--copper);
}

.index-item a {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.index-item a:hover,
.index-item a:focus-visible {
  color: var(--copper);
}

.index-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--stone);
}

.hero-visual {
  margin: 0;
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 880 / 640;
  object-fit: cover;
}

.hero-caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--stone);
  border-left: 2px solid var(--copper);
  padding-left: 10px;
}

/* 题材标签带 */
.tag-band {
  border-bottom: 1px solid var(--rule);
}

.tag-band-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 44px;
  align-items: start;
}

.tag-band-copy {
  min-width: 0;
}

.tag-band-copy h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.tag-note {
  max-width: var(--read);
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-band-visual {
  margin: 0;
  min-width: 0;
}

.tag-band-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 480;
  object-fit: cover;
}

/* 编目墙 */
.catalogue {
  border-bottom: 1px solid var(--rule);
}

.catalogue-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 40px;
  align-items: start;
}

.catalogue-main {
  min-width: 0;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalogue-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.catalogue-card:hover {
  transform: translateY(-1px);
  border-color: var(--copper);
}

.catalogue-card:hover .card-no {
  font-weight: 700;
}

.card-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--copper);
  letter-spacing: 0.4px;
}

.card-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.card-title {
  font-size: 16px;
  line-height: 1.5;
  margin: 2px 0 0;
}

.card-tags {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--stone);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  font-size: 12px;
  color: var(--stone);
}

.card-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--stone);
}

/* 侧栏 · 最近更新 */
.catalogue-side {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.side-title {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.side-update-list {
  display: flex;
  flex-direction: column;
}

.side-update-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}

.side-update-list li:last-child {
  border-bottom: 0;
}

.side-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--stone);
}

.side-update-list a {
  color: var(--ink);
  line-height: 1.6;
}

.side-update-list a:hover,
.side-update-list a:focus-visible {
  color: var(--copper);
}

/* 榜单摘要与专题辑 */
.rank-topic {
  border-bottom: 1px solid var(--rule);
}

.rank-topic-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 44px;
  align-items: start;
}

.rank-preview,
.topic-entry {
  min-width: 0;
}

.rank-list {
  border-top: 1px solid var(--rule);
}

.rank-list .rank-row {
  grid-template-columns: 34px 84px minmax(0, 1fr) auto;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.topic-card:hover {
  border-color: var(--copper);
  transform: translateY(-1px);
}

.topic-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--copper);
}

.topic-title {
  font-size: 17px;
  line-height: 1.45;
}

.topic-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
}

.topic-link {
  margin-top: auto;
  font-size: 14px;
  color: var(--copper);
}

.topic-link:hover,
.topic-link:focus-visible {
  color: var(--ink);
}

/* 说明与入口行 */
.notice-row {
  border-bottom: 1px solid var(--rule);
}

.notice-row-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 44px;
}

.notice-item {
  min-width: 0;
  padding-left: 16px;
  border-left: 2px solid var(--copper);
}

.notice-title {
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.notice-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone);
}

.notice-links {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  font-size: 14px;
}

.link-sep {
  margin: 0 12px;
  color: var(--rule);
}

/* --------------------------------------------------------------------------
   pages · genres
   -------------------------------------------------------------------------- */
.genre-note {
  margin-bottom: 34px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.genre-note h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.genre-note-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 32px;
  align-items: start;
}

.genre-note-text {
  min-width: 0;
}

.genre-note-text p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--stone);
}

.tag-glossary {
  margin-top: 16px;
  border-top: 1px solid var(--rule-soft);
}

.tag-glossary dt {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.tag-glossary dd {
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
}

.genre-note-figure {
  margin: 0;
  min-width: 0;
}

.genre-note-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 500;
  object-fit: cover;
}

.genre-groups {
  min-width: 0;
}

.genre-groups > h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 18px;
}

.genre-group {
  margin-bottom: 26px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.genre-group h3 {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 6px;
}

.genre-group-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
}

.entry-list {
  border-top: 1px solid var(--rule-soft);
}

.entry-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
}

.entry-code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--copper);
}

.entry-title {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.entry-title:hover,
.entry-title:focus-visible {
  color: var(--copper);
}

.entry-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--stone);
  white-space: nowrap;
}

/* 侧栏 · 题材对照夹 */
.genre-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.compare-clip,
.neighbor-genre,
.era-cross {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.compare-clip h2,
.neighbor-genre h2,
.era-cross h2 {
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.compare-note,
.era-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--stone);
}

.compare-list {
  border-top: 1px solid var(--rule-soft);
}

.compare-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}

.compare-code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--copper);
}

.compare-name {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.compare-item .status-badge {
  grid-column: 2;
  justify-self: start;
}

.compare-warn {
  margin: 10px 0 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--brick);
  background: var(--paper);
  border: 1px solid var(--brick);
  border-radius: var(--radius);
}

.compare-clear {
  display: inline-block;
  margin-top: 12px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--stone);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.compare-clear:hover,
.compare-clear:focus-visible {
  color: var(--copper);
  border-color: var(--copper);
}

.neighbor-list {
  display: flex;
  flex-direction: column;
}

.neighbor-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
  line-height: 1.7;
}

.neighbor-list li:last-child {
  border-bottom: 0;
}

.neighbor-note {
  display: block;
  font-size: 12px;
  color: var(--stone);
}

.era-list dt {
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--stone);
  border-bottom: 1px solid var(--rule-soft);
}

.era-list dt:last-child {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages · recent-updates
   -------------------------------------------------------------------------- */
.page-container {
  max-width: var(--read);
}

.update-rule {
  margin-bottom: 32px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.update-rule h2 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.rule-note {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone);
}

.legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--stone);
}

.legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid var(--rule);
  flex: 0 0 auto;
}

.swatch-new {
  background: var(--copper);
  border-color: var(--copper);
}

.swatch-continue {
  background: var(--pine);
  border-color: var(--pine);
}

.swatch-pause {
  background: var(--brick);
  border-color: var(--brick);
}

.swatch-end {
  background: var(--stone);
  border-color: var(--stone);
}

.legend-text strong {
  color: var(--ink);
  font-weight: 600;
}

.day-group {
  margin-bottom: 30px;
}

.day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}

.day-title {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.day-count {
  margin: 0;
  font-size: 13px;
  color: var(--stone);
}

.day-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
}

.day-figure {
  margin: 14px 0 0;
}

.day-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 440;
  object-fit: cover;
}

.update-list {
  margin-top: 12px;
}

.update-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
}

.update-code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--copper);
}

.update-title {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.update-type {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  white-space: nowrap;
}

.type-new {
  color: var(--copper);
  border-color: var(--copper);
}

.type-continue {
  color: var(--pine);
  border-color: var(--pine);
}

.type-pause {
  color: var(--brick);
  border-color: var(--brick);
}

.type-end {
  color: var(--stone);
  border-color: var(--stone);
}

.update-genre {
  font-size: 13px;
  color: var(--stone);
  white-space: nowrap;
}

.tag-filter-row {
  margin-top: 8px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.tag-filter-row h2 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.filter-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
}

.filter-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  min-height: 36px;
  padding: 0 13px;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  line-height: 1.4;
}

.filter-tag:hover,
.filter-tag:focus-visible {
  color: var(--copper);
  border-color: var(--copper);
}

.empty-state {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
}

.empty-state[hidden] {
  display: none;
}

.empty-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.empty-text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
}

.empty-link {
  font-size: 13px;
  color: var(--copper);
}

.backtrack {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.backtrack h2 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.backtrack-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
}

.backtrack-list {
  display: flex;
  flex-direction: column;
}

.backtrack-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}

.backtrack-item:last-child {
  border-bottom: 0;
}

.backtrack-desc {
  font-size: 13px;
  color: var(--stone);
}

/* --------------------------------------------------------------------------
   pages · reading-rank
   -------------------------------------------------------------------------- */
.rank-rule {
  margin-bottom: 32px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.rank-rule h2 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}

.rule-item {
  min-width: 0;
}

.rule-item dt {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.rule-item dd {
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
}

.rank-body {
  align-items: start;
}

.rank-body .rank-list {
  min-width: 0;
}

.rank-body .rank-list > h2 {
  font-size: 22px;
  line-height: 1.4;
}

.rank-figure {
  margin: 0 0 16px;
}

.rank-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 380;
  object-fit: cover;
}

.rank-rows {
  border-top: 1px solid var(--rule);
}

.rank-rows .rank-row {
  grid-template-columns: 36px 82px minmax(0, 1fr) 68px 96px;
  gap: 10px;
}

.rank-rows .rank-row.is-tie {
  background: var(--paper);
}

.rank-range {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--stone);
  white-space: nowrap;
  text-align: right;
}

.rank-tie-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
}

.rank-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rank-side > h2 {
  font-size: 16px;
  line-height: 1.45;
  color: var(--stone);
  font-weight: 600;
  margin-bottom: -8px;
}

.past-rank,
.outside-list {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.past-rank h3,
.outside-list h3 {
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 6px;
}

.side-note {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--stone);
}

.past-rank-list li,
.outside-rows li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
  line-height: 1.7;
}

.past-rank-list li:last-child,
.outside-rows li:last-child {
  border-bottom: 0;
}

.past-diff,
.outside-reason {
  display: block;
  font-size: 12px;
  color: var(--stone);
}

/* --------------------------------------------------------------------------
   pages · topic-archive
   -------------------------------------------------------------------------- */
.layout-shell {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 44px;
  align-items: start;
}

.layout-shell .inner-main {
  max-width: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.layout-shell > .breadcrumb {
  grid-column: 1 / -1;
  padding-top: 20px;
}

.topic-toc {
  position: sticky;
  top: 88px;
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.topic-toc h2 {
  font-size: 14px;
  line-height: 1.45;
  color: var(--stone);
  margin-bottom: 8px;
}

.topic-toc h2 + ul {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
}

.toc-list li,
.toc-adjacent li {
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.6;
}

.toc-list a {
  color: var(--ink);
}

.toc-list a:hover,
.toc-list a:focus-visible {
  color: var(--copper);
}

.summary,
.core-list,
.process,
.related,
.back {
  margin-bottom: 32px;
}

.summary h2,
.core-list h2,
.process h2,
.related h2,
.back h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.summary p,
.core-list > p,
.process > p,
.related > p,
.back > p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--stone);
}

.summary-figure {
  margin: 16px 0;
}

.summary-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 480;
  object-fit: cover;
}

.summary-span {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
  background: var(--card);
  border-left: 2px solid var(--copper);
  border-radius: var(--radius);
}

.core-items {
  margin-top: 14px;
}

.core-item {
  display: grid;
  grid-template-columns: 40px 78px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}

.core-item:last-child {
  border-bottom: 0;
}

.core-no {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--copper);
}

.core-code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--stone);
}

.core-title {
  font-size: 16px;
  line-height: 1.5;
}

.core-reason {
  grid-column: 3;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
}

.process-steps {
  margin-top: 14px;
  border-left: 2px solid var(--rule);
  padding-left: 18px;
}

.process-step {
  position: relative;
  padding: 0 0 18px;
}

.process-step::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--copper);
  border: 2px solid var(--paper);
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.process-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone);
}

.related-list {
  margin-top: 12px;
}

.related-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}

.related-list li:last-child {
  border-bottom: 0;
}

.back-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 12px;
}

.back-links a {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · reading-guide
   -------------------------------------------------------------------------- */
.guide-body {
  max-width: var(--read);
}

.guide-goal,
.guide-prepare,
.guide-steps,
.guide-checklist,
.guide-faq {
  margin-bottom: 34px;
}

.guide-body h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.goal-list,
.prepare-list,
.check-list {
  margin-top: 10px;
}

.goal-list li,
.prepare-list li,
.check-list li {
  position: relative;
  padding: 7px 0 7px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--stone);
  border-bottom: 1px solid var(--rule-soft);
}

.goal-list li:last-child,
.prepare-list li:last-child,
.check-list li:last-child {
  border-bottom: 0;
}

.goal-list li::before,
.prepare-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

.check-list li a {
  color: var(--copper);
}

.step-list {
  margin-top: 14px;
  counter-reset: guide-step;
}

.step-item {
  position: relative;
  padding: 0 0 22px 44px;
  border-left: 2px solid var(--rule);
  margin-left: 12px;
}

.step-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.step-item::before {
  counter-increment: guide-step;
  content: counter(guide-step, decimal-leading-zero);
  position: absolute;
  left: -14px;
  top: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
}

.step-item h3 {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--stone);
}

.guide-figure {
  margin: 14px 0 0;
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 700 / 420;
  object-fit: cover;
}

.faq-list {
  margin-top: 14px;
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule-soft);
}

.faq-item summary {
  position: relative;
  padding: 13px 30px 13px 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 18px;
  color: var(--copper);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  color: var(--copper);
}

.faq-item[open] {
  border-left: 2px solid var(--copper);
  padding-left: 12px;
  margin-left: -14px;
}

.faq-item p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--stone);
}

/* --------------------------------------------------------------------------
   pages · rights-notice
   -------------------------------------------------------------------------- */
.summary-box {
  margin-bottom: 26px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius);
}

.summary-box h2 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.summary-list li {
  position: relative;
  padding: 5px 0 5px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone);
}

.summary-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 6px;
  height: 1px;
  background: var(--copper);
}

.section-anchor {
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anchor-list a {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--stone);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  line-height: 1.6;
}

.anchor-list a:hover,
.anchor-list a:focus-visible {
  color: var(--copper);
  border-color: var(--copper);
  text-decoration: none;
}

.notice-body {
  max-width: var(--read);
}

.notice-section {
  margin-bottom: 30px;
  scroll-margin-top: 88px;
}

.notice-section h2 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.notice-section p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--stone);
}

.notice-figure {
  margin: 14px 0;
}

.notice-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 440;
  object-fit: cover;
}

.fix-steps {
  margin: 12px 0;
  padding-left: 0;
  counter-reset: fix-step;
}

.fix-steps li {
  position: relative;
  padding: 8px 0 8px 34px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone);
  border-bottom: 1px solid var(--rule-soft);
}

.fix-steps li:last-child {
  border-bottom: 0;
}

.fix-steps li::before {
  counter-increment: fix-step;
  content: counter(fix-step);
  position: absolute;
  left: 0;
  top: 9px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--copper);
  border: 1px solid var(--rule);
  border-radius: 50%;
}

.fix-steps li strong {
  color: var(--ink);
  font-weight: 600;
}

.update-line {
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.update-line p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 24px 72px;
}

.error-inner {
  width: 100%;
  max-width: 640px;
}

.error-code {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--copper);
}

.error-title {
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.3;
  margin-bottom: 14px;
}

.error-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--stone);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px;
}

.error-links {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.error-links li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}

.error-links li:last-child {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

/* 1024px */
@media (max-width: 1024px) {
  .header-inner {
    gap: 16px;
  }

  .nav-link {
    padding: 8px 8px;
    font-size: 14px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 36px;
    padding-top: 40px;
  }

  .tag-band-inner,
  .rank-topic-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: 32px;
  }

  .catalogue-inner {
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 28px;
  }

  .catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 28px;
  }

  .layout-shell {
    grid-template-columns: minmax(0, 1fr) 232px;
    gap: 30px;
  }

  .rank-rows .rank-row {
    grid-template-columns: 34px 76px minmax(0, 1fr) 60px 84px;
    gap: 8px;
  }

  .rule-list {
    gap: 14px;
  }
}

/* 768px */
@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-inner {
    min-height: 60px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 19px;
  }

  .inner-main {
    padding: 0 16px 44px;
  }

  .breadcrumb {
    padding-top: 16px;
  }

  .page-header {
    padding-top: 16px;
  }

  .page-head {
    padding: 12px 0 20px;
    margin-bottom: 24px;
    gap: 10px;
  }

  .page-lead {
    flex-basis: 100%;
    min-width: 0;
    font-size: 14px;
  }

  /* 首页各段改为单列 */
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 32px 16px 34px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .tag-band-inner,
  .rank-topic-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 32px 16px;
  }

  .catalogue-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 34px 16px;
  }

  .catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .notice-row-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 32px 16px 36px;
  }

  /* 内页两栏改为单列，主栏在前 */
  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 0 16px 44px;
  }

  .layout-shell .inner-main {
    padding: 0;
  }

  .topic-toc {
    position: static;
  }

  .genre-note-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .genre-note {
    padding: 18px;
  }

  .rule-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .rank-rows .rank-row {
    grid-template-columns: 30px 72px minmax(0, 1fr);
    gap: 4px 8px;
  }

  .rank-rows .rank-genre {
    grid-column: 2 / 3;
  }

  .rank-rows .rank-range {
    grid-column: 3 / 4;
    text-align: left;
  }

  .rank-list .rank-row {
    grid-template-columns: 30px 72px minmax(0, 1fr) auto;
  }

  .entry-item {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 4px 8px;
  }

  .entry-item .entry-date {
    grid-column: 2 / 4;
  }

  .update-item {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 4px 8px;
  }

  .update-item .update-genre {
    grid-column: 2 / 4;
  }

  .core-item {
    grid-template-columns: 34px 70px minmax(0, 1fr);
    gap: 4px 10px;
  }

  .core-reason {
    grid-column: 3;
  }

  .footer-inner {
    padding: 28px 16px 26px;
  }

  .footer-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .error-main {
    padding: 44px 16px 56px;
  }
}

/* 480px */
@media (max-width: 480px) {
  .header-inner {
    padding: 0 14px;
  }

  .brand-sub {
    display: none;
  }

  .inner-main {
    padding: 0 14px 40px;
  }

  .hero-inner {
    padding: 26px 14px 30px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .index-item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 4px 10px;
  }

  .index-desc {
    grid-column: 2;
  }

  .tag-band-inner,
  .rank-topic-inner,
  .catalogue-inner,
  .notice-row-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .catalogue-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-cover {
    aspect-ratio: 4 / 3;
  }

  .topic-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-list .rank-row {
    grid-template-columns: 28px 68px minmax(0, 1fr);
    gap: 4px 8px;
  }

  .rank-list .rank-genre {
    grid-column: 2 / 4;
  }

  .rank-rows .rank-row {
    grid-template-columns: 28px 68px minmax(0, 1fr);
  }

  .rank-rows .rank-range {
    grid-column: 2 / 4;
  }

  .entry-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .entry-item .status-badge {
    grid-column: 2;
    justify-self: start;
  }

  .entry-item .entry-date {
    grid-column: 2;
  }

  .update-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .update-item .update-type,
  .update-item .update-genre {
    grid-column: 2;
    justify-self: start;
  }

  .core-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .core-item .core-code {
    grid-column: 2;
  }

  .core-item .core-title {
    grid-column: 2;
  }

  .core-reason {
    grid-column: 2;
  }

  .compare-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .page-layout,
  .layout-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .footer-inner {
    padding: 26px 14px 24px;
  }

  .footer-index {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .page-title {
    font-size: 23px;
  }

  .step-item {
    padding-left: 38px;
  }

  .faq-item[open] {
    margin-left: 0;
    padding-left: 10px;
  }

  .error-actions {
    gap: 10px;
  }

  .error-actions .btn-primary,
  .error-actions .btn-ghost {
    flex: 1 1 auto;
  }
}

/* 动效增强 */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual img {
    animation: fade-in 0.5s ease-out both;
  }

  @keyframes fade-in {
    from {
      opacity: 0.6;
    }
    to {
      opacity: 1;
    }
  }
}
