:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1d2333;
  --text-soft: #5b6478;
  --brand: #3f6bd8;
  --brand-dark: #2f55b0;
  --tag-bg: #e8edfa;
  --line: #dfe3ee;
  --radius: 8px;
  --radius-sm: 6px;
  --container: 1160px;
  --shadow-sm: 0 1px 2px rgba(29, 35, 51, 0.06);
  --shadow-md: 0 4px 14px rgba(29, 35, 51, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* =========================================================
   base — 重置与全站基础
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* =========================================================
   layout — 骨架容器 / 页头 / 页脚 / 主内容
   ========================================================= */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

/* 顶部事实条（仅首页） */
.fact-bar {
  margin: 0;
  padding: 8px 20px;
  background: #eef2fb;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.brand:hover {
  color: var(--brand);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex: 0 0 auto;
}

.brand-name {
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  flex: 0 1 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-list a:hover {
  background: var(--tag-bg);
  color: var(--brand-dark);
}

.nav-list a.is-current {
  background: var(--tag-bg);
  color: var(--brand);
  font-weight: 700;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* 主内容 */
.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.home-main {
  padding-top: 28px;
}

.inner-main {
  padding-top: 24px;
}

/* 页脚 */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 14px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 20px 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-brand-name {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.footer-brand-desc {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.75;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--text-soft);
  font-size: 13.5px;
}

.footer-list a:hover {
  color: var(--brand);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px 26px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.7;
}

/* =========================================================
   components — 通用组件
   ========================================================= */

.section {
  margin-top: 44px;
}

.section:first-child {
  margin-top: 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.section-title-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-desc,
.section-intro {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.section-intro a {
  color: var(--brand);
  font-weight: 500;
}

.section-more {
  margin-top: 16px;
  font-size: 14px;
}

.section-more a {
  font-weight: 600;
}

/* 题材标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  background: var(--tag-bg);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  white-space: nowrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb-sep {
  color: #b3bacb;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

/* 内页标题区 */
.page-header {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.page-description {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 760px;
}

.page-description a {
  color: var(--brand);
  font-weight: 500;
}

/* 字段说明列表 */
.field-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.field-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-name {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
}

.field-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* 通用图片容器 */
.section-figure,
.guide-figure,
.ranking-visual {
  margin: 0 0 22px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef2fb;
  border: 1px solid var(--line);
}

.section-figure img,
.guide-figure img,
.ranking-visual img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.section-figure figcaption,
.guide-figure figcaption,
.ranking-visual figcaption {
  padding: 10px 14px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/* 规则两栏 */
.rule-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rule-column {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-title,
.rule-column-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rule-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* 提示列表 */
.tip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tip-item {
  position: relative;
  padding-left: 16px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.tip-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.column-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* 按钮（404） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* =========================================================
   pages — index.html
   ========================================================= */

/* 首屏定位区 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 28px 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-text {
  min-width: 0;
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.hero-summary {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.85;
  max-width: 560px;
}

.hero-paths {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-path {
  min-width: 0;
}

.hero-path a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 12px 14px;
  background: #f3f6fd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.hero-path a:hover {
  border-color: var(--brand);
  background: var(--tag-bg);
}

.hero-path-name {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
}

.hero-path-desc {
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.6;
}

.hero-visual {
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #eef2fb;
}

.hero-visual figcaption {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* 题材方向总览 */
.genre-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-box {
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.genre-trait {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.75;
}

.genre-samples {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.genre-samples a {
  color: var(--brand);
  font-weight: 500;
}

.genre-samples a + a::before {
  content: "·";
  margin: 0 6px;
  color: #b3bacb;
}

/* 主推荐封面墙 */
.pick-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.cover-card:hover {
  border-color: #c6d2ef;
  box-shadow: var(--shadow-md);
}

.cover-card-featured {
  grid-column: span 2;
}

.cover-media {
  margin: 0;
  background: #eef2fb;
}

.cover-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.cover-card-featured .cover-media img {
  height: 256px;
}

.cover-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.cover-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cover-fields {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.7;
}

/* 最近更新与次推荐并列区 */
.split-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
}

.split-col {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.split-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.split-desc {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.75;
}

.update-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.update-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.update-date {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.update-name {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-name:hover {
  color: var(--brand);
}

.update-tag {
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  background: var(--tag-bg);
  color: var(--brand-dark);
  font-size: 12px;
  white-space: nowrap;
}

.update-range {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: nowrap;
}

.split-more {
  margin-top: 12px;
  font-size: 13.5px;
}

.split-more a {
  font-weight: 600;
}

.secondary-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.secondary-item {
  padding: 12px 14px;
  background: #f6f8fe;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.secondary-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.secondary-meta {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* 人气榜单位次参考 */
.rank-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto minmax(0, 1.4fr);
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--tag-bg);
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.rank-name {
  min-width: 0;
  font-weight: 600;
}

.rank-name a {
  color: var(--text);
}

.rank-name a:hover {
  color: var(--brand);
}

.rank-note {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* 站内栏目索引 */
.index-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.index-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.index-card:hover {
  border-color: var(--brand);
  background: #f3f6fd;
}

.index-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.index-desc {
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.65;
}

/* =========================================================
   pages — blmh/categories.html
   ========================================================= */

.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.direction-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.direction-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.direction-trait {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.75;
}

.direction-rep {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.featured-entries {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.entry-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: flex-start;
  transition: border-color 0.18s ease;
}

.entry-row:hover {
  border-color: #c6d2ef;
}

.entry-cover {
  margin: 0;
  background: #eef2fb;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.entry-cover img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.entry-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.entry-summary {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.entry-line-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.entry-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.entry-line:last-child {
  border-bottom: 0;
}

.entry-line-name {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-line-dir {
  color: var(--text-soft);
  font-size: 13px;
  white-space: nowrap;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.diff-col {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.diff-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.diff-col p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.diff-col p + p {
  margin-top: 8px;
}

/* =========================================================
   pages — blmh/updates.html
   ========================================================= */

.update-log {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.update-group {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.update-group .update-date {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.update-rows {
  display: flex;
  flex-direction: column;
}

.update-group .update-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.update-group .update-row:last-child {
  border-bottom: 0;
}

.update-row-date {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.update-row-title {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-row-title:hover {
  color: var(--brand);
}

.update-row-genre {
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  background: var(--tag-bg);
  color: var(--brand-dark);
  font-size: 12px;
  white-space: nowrap;
}

.update-row-range {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: nowrap;
}

.field-notes .field-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cross-reading-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cross-reading-col {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* =========================================================
   pages — blmh/ranking.html
   ========================================================= */

.ranking-list-section,
.ranking-reason-section,
.ranking-rule-section,
.ranking-next-section {
  margin-top: 40px;
}

.ranking-list-section {
  margin-top: 0;
}

.ranking-list-section h2,
.ranking-reason-section h2,
.ranking-rule-section h2,
.ranking-next-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.ranking-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: flex-start;
}

.ranking-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--tag-bg);
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.ranking-entry {
  min-width: 0;
}

.ranking-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.ranking-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ranking-note {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.reason-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.reason-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reason-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.reason-text {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.rule-footnote {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.75;
}

.rule-footnote a {
  font-weight: 600;
}

.next-links {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.next-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.next-links a:hover {
  border-color: var(--brand);
  background: #f3f6fd;
  color: var(--brand-dark);
}

/* =========================================================
   pages — blmh/guide.html
   ========================================================= */

.guide-section {
  margin-top: 40px;
}

.guide-section:first-of-type {
  margin-top: 0;
}

.guide-section .section-title {
  font-size: 22px;
  font-weight: 700;
}

.guide-section .section-desc {
  margin-top: 8px;
  max-width: 760px;
}

.guide-section .field-list {
  margin-top: 18px;
}

.guide-section .rule-columns {
  margin-top: 18px;
}

.scope-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-item {
  position: relative;
  padding: 12px 16px 12px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.scope-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.faq-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "＋";
  float: right;
  margin-left: 12px;
  color: var(--brand);
  font-weight: 700;
}

.faq-item[open] .faq-question::after {
  content: "－";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 14px 18px 16px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.85;
}

.feedback-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feedback-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.feedback-item:hover {
  border-color: var(--brand);
  background: #f3f6fd;
}

.feedback-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.feedback-desc {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* =========================================================
   pages — 404.html
   ========================================================= */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 56px;
  padding-bottom: 72px;
}

.error-inner {
  width: 100%;
  max-width: 560px;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.error-code {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.error-title {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.error-desc {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.error-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 500;
}

.error-links a:hover {
  color: var(--brand);
}

/* =========================================================
   responsive — 断点 960px / 640px
   ========================================================= */

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 10px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    width: 100%;
    justify-content: flex-start;
    padding: 0 14px;
  }

  .site-nav {
    order: 3;
    flex: 1 0 100%;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
  }

  .hero-visual img {
    height: 240px;
  }

  .genre-columns,
  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pick-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-card-featured {
    grid-column: span 2;
  }

  .split-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .rule-columns,
  .diff-grid,
  .cross-reading-columns,
  .reason-list,
  .field-notes .field-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }

  .fact-bar {
    padding: 8px 14px;
    font-size: 12.5px;
  }

  .header-inner {
    padding: 10px 14px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .site-main {
    padding: 20px 14px 44px;
  }

  .home-main {
    padding-top: 20px;
  }

  .inner-main {
    padding-top: 18px;
  }

  .hero {
    padding: 18px;
    gap: 18px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-summary {
    font-size: 14px;
  }

  .hero-paths {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual img {
    height: 200px;
  }

  .section {
    margin-top: 34px;
  }

  .section-title,
  .ranking-list-section h2,
  .ranking-reason-section h2,
  .ranking-rule-section h2,
  .ranking-next-section h2,
  .guide-section .section-title {
    font-size: 19px;
  }

  .page-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-description {
    font-size: 14px;
  }

  .genre-columns,
  .direction-grid,
  .pick-wall,
  .index-columns,
  .feedback-list,
  .next-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-card-featured {
    grid-column: span 1;
  }

  .cover-media img,
  .cover-card-featured .cover-media img {
    height: 200px;
  }

  .split-col,
  .update-group,
  .direction-card,
  .genre-box,
  .rule-column,
  .diff-col,
  .cross-reading-col,
  .reason-item,
  .ranking-item,
  .field-item,
  .scope-item {
    padding: 16px;
  }

  .update-row {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "date name"
      "tag range";
    gap: 4px 10px;
    align-items: center;
  }

  .update-row .update-date {
    grid-area: date;
  }

  .update-row .update-name {
    grid-area: name;
  }

  .update-row .update-tag {
    grid-area: tag;
    justify-self: start;
  }

  .update-row .update-range {
    grid-area: range;
    justify-self: end;
  }

  .update-group .update-row {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "date title"
      "genre range";
    gap: 4px 10px;
  }

  .update-group .update-row .update-row-date {
    grid-area: date;
  }

  .update-group .update-row .update-row-title {
    grid-area: title;
  }

  .update-group .update-row .update-row-genre {
    grid-area: genre;
    justify-self: start;
  }

  .update-group .update-row .update-row-range {
    grid-area: range;
    justify-self: end;
  }

  .rank-row {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas:
      "no name"
      "note note";
    gap: 6px 10px;
  }

  .rank-row .rank-no {
    grid-area: no;
  }

  .rank-row .rank-name {
    grid-area: name;
  }

  .rank-row .tag {
    grid-area: name;
    justify-self: end;
  }

  .rank-row .rank-note {
    grid-area: note;
  }

  .entry-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .entry-cover img {
    height: 200px;
  }

  .entry-line {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .ranking-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-position {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .section-figure img,
  .guide-figure img,
  .ranking-visual img {
    height: 180px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 14px 20px;
    gap: 20px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    padding: 12px 14px 22px;
  }

  .error-main {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .error-inner {
    padding: 26px 20px;
  }

  .error-code {
    font-size: 34px;
  }

  .error-title {
    font-size: 20px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
}
