/* ============================================================
   妖姬漫画app · 全站样式
   结构：base / layout / components / pages / responsive
   ============================================================ */

/* ------------------------------------------------------------
   base · 变量与基础重置
   ------------------------------------------------------------ */
:root {
  --paper: #FAFAF6;
  --mist: #EDF2EC;
  --line: #D9DED8;
  --ink: #1F2A26;
  --teal: #3E6B5C;
  --sage: #7FA391;
  --clay: #C4704E;
  --clay-soft: #F3E3DA;
  --ink-soft: #4C5A54;
  --ink-mute: #6E7C75;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(31, 42, 38, 0.05), 0 2px 8px rgba(31, 42, 38, 0.04);
  --shadow-hover: 0 4px 14px rgba(31, 42, 38, 0.10);
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: #2F5648;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

h1 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.3;
  font-weight: 700;
}

h2 {
  font-size: 22px;
  line-height: 1.4;
}

h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

button {
  font-family: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--teal);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: top 0.16s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ------------------------------------------------------------
   layout · 页面骨架
   ------------------------------------------------------------ */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

/* 页头 */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 40;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--teal);
}

.brand-mark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--teal);
  white-space: nowrap;
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
  line-height: 1.5;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color 0.16s ease, background 0.16s ease;
}

.nav-link:hover {
  color: var(--teal);
  background: var(--mist);
}

.nav-link.is-current {
  color: var(--teal);
  font-weight: 600;
}

.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* 主容器宽度 */
.home-main,
.inner-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.inner-main {
  padding-top: 20px;
  padding-bottom: 48px;
}

/* 面包屑 */
.breadcrumb {
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 14px;
}

.breadcrumb a {
  color: var(--ink-mute);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--teal);
}

/* 内页标题区 */
.page-header {
  padding: 4px 0 20px;
}

.page-title {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

/* 页脚 */
.site-footer {
  background: var(--mist);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 6px;
}

.footer-slogan {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.footer-intro {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-mute);
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list a {
  font-size: 14px;
  color: var(--ink-soft);
  display: inline-block;
  padding: 2px 0;
}

.footer-nav-list a:hover {
  color: var(--teal);
}

.footer-info-col p,
.footer-meta-col p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 12px;
  color: var(--ink-mute);
}

/* ------------------------------------------------------------
   components · 通用组件
   ------------------------------------------------------------ */

/* 文字链接 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  line-height: 1.6;
}

.text-link::after {
  content: "›";
  font-size: 16px;
  line-height: 1;
  transition: transform 0.16s ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.btn-primary:hover {
  background: #2F5648;
  border-color: #2F5648;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-ghost:hover {
  background: var(--mist);
  color: var(--teal);
}

/* 题材标签 chip */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--teal);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.chip:hover {
  background: var(--teal);
  color: #fff;
}

.chip-link {
  border-color: var(--line);
}

/* 顶部工具条 */
.top-bar,
.toolbar,
.topbar,
.top-toolbar {
  background: var(--mist);
}

.top-bar-inner,
.toolbar-inner,
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.chip-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.top-bar-status,
.toolbar-status,
.topbar-status {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  flex-shrink: 0;
}

.anchor-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.toolbar-anchors {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.toolbar-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--teal);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  border: 1px solid var(--line);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.toolbar-chip:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* 区块标题组 */
.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin-bottom: 6px;
}

.section-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-intro {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 860px;
}

.section-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mute);
  margin-bottom: 18px;
  max-width: 860px;
}

/* 卡片基础 */
.genre-card,
.collection-card,
.brief-item,
.zone-card,
.threshold-card,
.rule-card,
.scope-card,
.entry-card,
.pace-card,
.step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.genre-card:hover,
.collection-card:hover,
.zone-card:hover,
.scope-card:hover,
.entry-card:hover,
.pace-card:hover,
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--sage);
}

/* 表格 */
.table-wrap,
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.filter-table th,
.filter-table td,
.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
  vertical-align: top;
}

.filter-table thead th,
.compare-table thead th {
  background: var(--mist);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

.filter-table tbody th,
.compare-table tbody th {
  font-weight: 600;
  color: var(--ink);
  background: #F5F7F3;
}

.filter-table tbody tr:last-child th,
.filter-table tbody tr:last-child td,
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-note {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.7;
  margin-top: 12px;
}

.table-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--ink-mute);
  padding: 10px 16px;
}

/* FAQ 折叠 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  transition: background 0.16s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--sage);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: var(--teal);
}

.faq-question:hover {
  background: var(--mist);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.faq-answer p {
  margin: 0;
}

/* 状态条 */
.status-bar {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 40px;
}

.status-bar-inner,
.status-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.status-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  flex: 1 1 320px;
  min-width: 0;
}

.status-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--clay);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.status-link:hover {
  color: #A85A3A;
}

.status-links,
.status-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* 相关内容 */
.related-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 13px;
  color: var(--ink-mute);
}

.related-links-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.related-links-item:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   pages · 首页
   ------------------------------------------------------------ */
.home-main {
  padding-top: 24px;
  padding-bottom: 8px;
}

.home-main > section {
  margin-bottom: 48px;
}

/* 首屏 */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--clay);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.hero-text h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 26px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist);
}

.hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-size: 13px;
  color: #fff;
  background: rgba(31, 42, 38, 0.62);
}

/* 主推作品带 */
.featured-track {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

.featured-slot {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.featured-slot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--sage);
}

.featured-media {
  overflow: hidden;
  background: var(--mist);
}

.featured-slot .featured-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.featured-slot-large .featured-media img {
  aspect-ratio: 16 / 9;
}

.featured-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.featured-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  background: var(--mist);
  border-radius: 999px;
  padding: 2px 10px;
  align-self: flex-start;
  line-height: 1.6;
}

.featured-name {
  font-size: 17px;
  line-height: 1.5;
}

.featured-slot-large .featured-name {
  font-size: 20px;
}

.featured-summary {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
  flex: 1 1 auto;
}

/* 封面更新列表 */
.strip-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.strip-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.strip-btn span {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.strip-btn:first-child span {
  transform: rotate(-135deg);
  margin-left: 2px;
}

.strip-btn:last-child span {
  transform: rotate(45deg);
  margin-right: 2px;
}

.strip-btn:hover:not(:disabled) {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.strip-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.strip-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.cover-track {
  display: flex;
  gap: 16px;
  min-width: 100%;
  width: max-content;
}

.cover-card {
  flex: 0 0 168px;
  width: 168px;
}

.cover-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.cover-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--sage);
  color: var(--ink);
}

.cover-media {
  overflow: hidden;
  background: var(--mist);
}

.cover-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

.cover-badge {
  font-size: 12px;
  color: var(--teal);
  background: var(--mist);
  border-radius: 999px;
  padding: 1px 8px;
  align-self: flex-start;
  line-height: 1.6;
}

.cover-summary {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.cover-status {
  font-size: 12px;
  color: var(--clay);
  line-height: 1.6;
  margin-top: auto;
}

/* 题材分类带 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-name {
  font-size: 16px;
  color: var(--teal);
}

.genre-scope {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.genre-fit {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  flex: 1 1 auto;
}

/* 精选合集预览 */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.collection-media {
  overflow: hidden;
  background: var(--mist);
}

.collection-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.collection-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.collection-name {
  font-size: 17px;
}

.collection-summary {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
  flex: 1 1 auto;
}

/* 排行榜 */
.ranking-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.ranking-item {
  display: grid;
  grid-template-columns: 44px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s ease;
}

.ranking-item:last-child {
  border-bottom: 0;
}

.ranking-item:hover {
  background: #F5F7F3;
}

.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--clay-soft);
  color: var(--clay);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.rank-media {
  width: 64px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--mist);
}

.rank-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.rank-body {
  min-width: 0;
}

.rank-name {
  font-size: 16px;
  margin-bottom: 2px;
}

.rank-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.rank-tag {
  font-size: 12px;
  color: var(--teal);
  background: var(--mist);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
  line-height: 1.6;
}

/* 阅读说明摘要 */
.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.brief-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brief-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.brief-title {
  font-size: 16px;
}

.brief-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.brief-more {
  margin-top: 18px;
}

/* ------------------------------------------------------------
   pages · 题材分类
   ------------------------------------------------------------ */
.page-head {
  margin-bottom: 28px;
}

.page-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--clay);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.page-lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 860px;
}

.zone-overview {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist);
}

.zone-overview img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.zone-overview figcaption {
  padding: 12px 18px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.section {
  margin-bottom: 48px;
}

.section h2 {
  margin-bottom: 6px;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.zone-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-margin-top: 24px;
}

.zone-name {
  font-size: 16px;
  color: var(--teal);
}

.zone-scope {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.zone-fit {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  flex: 1 1 auto;
}

.zone-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.zone-link:hover {
  text-decoration: underline;
}

.filter-table-section .table-wrap {
  margin-bottom: 0;
}

.threshold-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.threshold-card h3 {
  margin-bottom: 8px;
  color: var(--teal);
}

.threshold-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   pages · 精选合集
   ------------------------------------------------------------ */
.toolbar-collections .toolbar-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

.page-head-desc p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 8px;
  max-width: 880px;
}

.collections-section {
  margin-bottom: 48px;
}

.page-collections .collection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-collections .collection-card {
  padding: 0;
}

.page-collections .collection-media img {
  aspect-ratio: 16 / 10;
}

.collection-index {
  font-size: 12px;
  font-weight: 600;
  color: var(--clay);
  letter-spacing: 0.04em;
}

.collection-scope {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.collection-audience {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.collection-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.collection-meta li {
  font-size: 12px;
  color: var(--teal);
  background: var(--mist);
  border-radius: 999px;
  padding: 2px 10px;
  line-height: 1.6;
}

.collection-actions {
  padding: 0 18px 18px;
}

.btn-compare {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--teal);
  background: transparent;
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}

.btn-compare:hover {
  background: var(--teal);
  color: #fff;
}

.btn-compare.is-selected {
  background: var(--teal);
  color: #fff;
}

.btn-compare:disabled {
  border-color: var(--line);
  color: var(--ink-mute);
  cursor: not-allowed;
  background: transparent;
}

.compare-section {
  margin-bottom: 40px;
}

.compare-slot {
  color: var(--ink-mute);
}

.conclusion-block {
  background: var(--mist);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.conclusion-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

.next-actions {
  margin-bottom: 40px;
}

.next-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.next-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.next-card h3 {
  font-size: 16px;
  color: var(--teal);
}

.next-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   pages · 更新记录
   ------------------------------------------------------------ */
.top-toolbar .toolbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-title-block {
  margin-bottom: 32px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--clay);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.title-lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 880px;
}

.record-section {
  margin-bottom: 48px;
}

.record-media {
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist);
}

.record-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.record-media figcaption {
  padding: 12px 18px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.record-group {
  margin-bottom: 32px;
  scroll-margin-top: 24px;
}

.record-group-title {
  font-size: 16px;
  color: var(--teal);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.record-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  margin-top: 12px;
}

.record-item {
  display: grid;
  grid-template-columns: 96px 110px 140px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.record-item:last-child {
  border-bottom: 0;
}

.record-batch {
  font-size: 13px;
  font-weight: 600;
  color: var(--clay);
  background: var(--clay-soft);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  line-height: 1.6;
  justify-self: start;
  white-space: nowrap;
}

.record-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

.record-zone {
  font-size: 13px;
  color: var(--teal);
  line-height: 1.6;
}

.record-impact {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  min-width: 0;
}

.record-rule-section {
  margin-bottom: 48px;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rule-card h3 {
  font-size: 16px;
  color: var(--teal);
  margin-bottom: 8px;
}

.rule-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.record-map-section {
  margin-bottom: 40px;
}

/* ------------------------------------------------------------
   pages · 阅读指引
   ------------------------------------------------------------ */
.topbar-anchors {
  flex-wrap: wrap;
}

.page-reading-guide .container {
  max-width: 100%;
}

.guide-media {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist);
}

.guide-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.guide-media figcaption {
  padding: 12px 18px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.guide-section {
  margin-bottom: 48px;
  scroll-margin-top: 24px;
}

.page-reading-guide .section-head h2 {
  margin-bottom: 6px;
}

.page-reading-guide .section-head p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mute);
  max-width: 860px;
}

.step-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step-card h3 {
  font-size: 16px;
}

.step-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  flex: 1 1 auto;
}

.step-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.step-link:hover {
  text-decoration: underline;
}

.pace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pace-card h3 {
  font-size: 16px;
  color: var(--teal);
  margin-bottom: 8px;
}

.pace-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.pace-card p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   pages · 帮助与反馈
   ------------------------------------------------------------ */
.page-feedback .page-container {
  max-width: 100%;
}

.page-figure {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist);
}

.page-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.page-figure figcaption {
  padding: 12px 18px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.scope-section,
.check-section,
.faq-section,
.entry-section {
  margin-bottom: 48px;
  scroll-margin-top: 24px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scope-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-margin-top: 24px;
}

.scope-name {
  font-size: 16px;
  color: var(--teal);
}

.scope-detail {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.scope-check {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  margin-top: auto;
}

.scope-check a {
  color: var(--teal);
  font-weight: 500;
}

.scope-check a:hover {
  text-decoration: underline;
}

.check-steps {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.check-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.check-step:last-child {
  border-bottom: 0;
}

.check-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.check-body {
  min-width: 0;
}

.check-title {
  font-size: 15px;
  margin-bottom: 2px;
}

.check-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.check-target {
  font-size: 13px;
  color: var(--teal);
  background: var(--mist);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
  line-height: 1.6;
}

.check-note {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--mist);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
}

.check-note p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.note-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.note-link:hover {
  text-decoration: underline;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-title {
  font-size: 16px;
  color: var(--teal);
}

.entry-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  flex: 1 1 auto;
}

.entry-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.entry-link:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   pages · 404
   ------------------------------------------------------------ */
.error-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 24px;
  width: 100%;
}

.error-panel {
  margin-bottom: 40px;
}

.error-code {
  font-size: 56px;
  font-weight: 700;
  color: var(--clay);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.error-panel h1 {
  margin-bottom: 14px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 640px;
}

.error-paths {
  margin-bottom: 36px;
}

.error-paths h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.error-path-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.error-path-list a:hover {
  background: var(--mist);
  border-color: var(--sage);
  transform: translateY(-2px);
}

.error-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   responsive · 断点适配
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1.2fr;
  }

  .footer-meta-col {
    grid-column: 1 / -1;
  }

  .genre-grid,
  .zone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-track {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .record-item {
    grid-template-columns: 88px 96px 120px minmax(0, 1fr);
    gap: 12px;
  }

  .error-path-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

  .featured-track {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .featured-slot-large {
    grid-column: 1 / -1;
  }

  .collection-grid,
  .page-collections .collection-grid,
  .brief-grid,
  .threshold-grid,
  .step-flow,
  .pace-grid,
  .rule-grid,
  .scope-grid,
  .entry-grid,
  .next-actions-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ranking-item {
    grid-template-columns: 40px 56px minmax(0, 1fr);
    row-gap: 8px;
  }

  .rank-tag {
    grid-column: 3;
    justify-self: start;
  }

  .record-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .record-batch {
    justify-self: start;
  }

  .check-step {
    grid-template-columns: 36px minmax(0, 1fr);
    row-gap: 6px;
  }

  .check-target {
    grid-column: 2;
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-meta-col {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    margin-left: 0;
    width: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 12px;
    width: 100%;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-top: 1px solid var(--line);
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 4px;
    font-size: 15px;
    border-radius: 0;
  }

  .nav-link.is-current::after {
    display: none;
  }

  .nav-link.is-current {
    color: var(--teal);
    font-weight: 600;
  }

  .home-main,
  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .top-bar-inner,
  .toolbar-inner,
  .topbar-inner,
  .top-toolbar .toolbar-inner {
    padding: 10px 16px;
    gap: 12px;
  }

  .chip-list,
  .anchor-chips,
  .toolbar-anchors {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .chip-list::-webkit-scrollbar,
  .anchor-chips::-webkit-scrollbar,
  .toolbar-anchors::-webkit-scrollbar {
    display: none;
  }

  .top-bar-status,
  .toolbar-status,
  .topbar-status {
    flex-basis: 100%;
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .strip-controls {
    align-self: flex-end;
  }

  .footer-inner {
    padding: 32px 16px 24px;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-bottom p {
    padding: 14px 16px;
  }

  .status-bar-inner,
  .status-inner {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .status-text {
    flex-basis: auto;
  }

  .error-main {
    padding: 40px 16px 16px;
  }

  .error-code {
    font-size: 44px;
  }
}

@media (max-width: 560px) {
  .brand-slogan {
    display: none;
  }

  .hero-text h1 {
    font-size: clamp(26px, 7vw, 32px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .featured-track {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-slot-large {
    grid-column: auto;
  }

  .genre-grid,
  .zone-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-card {
    flex-basis: 148px;
    width: 148px;
  }

  .ranking-item {
    grid-template-columns: 36px 52px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
  }

  .rank-media {
    width: 52px;
  }

  .rank-tag {
    grid-column: 2 / -1;
  }

  .filter-table th,
  .filter-table td,
  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn {
    width: 100%;
  }

  .related-links {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
