/* ============================================================
   网站样式。不想改可以完全不用动这个文件。
   如果以后想调颜色，改下面这几个纸墨变量就行（在 :root 里）。
   ============================================================ */

:root {
  --hw-bg: #EFE6D3;        /* 宣纸 */
  --hw-text: #1f1b17;      /* 墨 */
  --hw-dim: #4a423b;       /* 枯墨：日期、摘要等次要字 */
  --hw-accent: #A33B2A;    /* 朱砂：题签框、朱点、印章 */
  --hw-card: #F5EEDD;      /* 比纸略浅的卡面 */
  --hw-border: #D8CDB6;    /* 界线 */
  --hw-green: #5A5249;     /* 兼容旧标签色，统一到枯墨 */
  --hw-serif: Georgia, "Songti SC", "Noto Serif SC", STSong, STZhongsong, "SimSun", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 滚动条染成纸墨细条：不隐藏（保留长度感知），只是融进背景、低调 */
html {
  scrollbar-width: thin;                         /* Firefox */
  scrollbar-color: var(--hw-border) transparent; /* 滑块色 轨道色 */
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--hw-border);
  border-radius: 6px;
  border: 2px solid var(--hw-bg);   /* 内缩，做出与纸面相融的细条感 */
}
::-webkit-scrollbar-thumb:hover { background: #C3B492; }

html {
  min-height: 100%;
  background: var(--hw-bg);
}

body {
  font-family: var(--hw-serif);
  font-size: 1.0625rem;
  font-variant-numeric: lining-nums;
  color: var(--hw-text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--hw-bg);
  background-attachment: fixed;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 16px 80px;
  flex: 1 0 auto;        /* 撑满剩余高度，把页脚顶到底部 */
}

/* ---------- 顶部标题 ---------- */
.site-header { text-align: left; margin-bottom: 28px; }
.site-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--hw-accent);
}
.site-header p { color: var(--hw-dim); margin-top: 10px; font-size: 1rem; }

/* ---------- 筛选 / 排序条 ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 36px;
}
.chip {
  padding: 7px 16px;
  border-radius: 2px;
  border: 1px solid var(--hw-border);
  background: var(--hw-bg);
  color: var(--hw-dim);
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover { color: var(--hw-accent); border-color: var(--hw-accent); }
.chip.active {
  color: var(--hw-accent);
  background: rgba(163, 59, 42, 0.07);
  border-color: var(--hw-accent);
  font-weight: 600;
}
.toolbar .sep { width: 1px; height: 22px; background: var(--hw-border); margin: 0 4px; }
.toolbar-break { display: none; }
.toolbar select {
  padding: 7px 14px;
  border-radius: 2px;
  border: 1px solid var(--hw-border);
  background: var(--hw-bg);
  color: var(--hw-text);
  font-size: 0.88rem;
  cursor: pointer;
}
.toolbar select:hover { border-color: var(--hw-accent); }
.toolbar select option { background: var(--hw-card); color: var(--hw-text); }
/* 自定义下拉（避免手机原生白底弹窗） */
.dd-wrap { position: relative; display: inline-block; }
.dd-trigger {
  padding: 7px 14px;
  border-radius: 2px;
  border: 1px solid var(--hw-border);
  background: var(--hw-bg);
  color: var(--hw-text);
  font-size: 0.88rem;
  font-family: var(--hw-serif);
  cursor: pointer;
  white-space: nowrap;
}
.dd-trigger:hover, .dd-trigger.open { border-color: var(--hw-accent); }
.dd-trigger::after { content: " ▾"; font-size: 0.7em; color: var(--hw-dim); }
.dd-panel {
  display: none;
  position: absolute; top: 100%; left: 0; z-index: 20;
  min-width: 100%; margin-top: 4px;
  border: 1px solid var(--hw-border); border-radius: 2px;
  background: var(--hw-card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.dd-panel.open { display: block; }
.dd-option {
  display: block; width: 100%;
  padding: 8px 16px;
  border: none; border-bottom: 1px solid var(--hw-border);
  background: var(--hw-card); color: var(--hw-text);
  font-size: 0.88rem; font-family: var(--hw-serif);
  text-align: left; cursor: pointer;
  white-space: nowrap;
}
.dd-option:last-child { border-bottom: none; }
.dd-option:hover, .dd-option.active { background: var(--hw-bg); color: var(--hw-accent); }
.sort-label { font-size: 0.88rem; color: var(--hw-dim); }

/* ---------- 封面墙 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}
.card {
  background: var(--hw-card);
  border: 1px solid var(--hw-border);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--hw-accent);
  box-shadow: 0 8px 22px rgba(163, 59, 42, 0.10);
}
.card .cover-box {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(163, 59, 42, 0.07);
}
.card .cover-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 没有封面时的首字占位 */
.cover-fallback { display: none; }
.cover-box.no-cover .cover-fallback,
.detail-cover.no-cover .cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  font-size: 3rem;
  font-weight: 800;
  color: var(--hw-accent);
  background: var(--hw-bg);
}
.card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  font-size: 0.72rem;
  border-radius: 2px;
  border: 1px solid rgba(163, 59, 42, 0.34);
  background: rgba(245, 238, 221, 0.92);
  color: var(--hw-accent);
  font-weight: 600;
}
/* 五种状态：只用朱砂与墨两色，靠「实心/描边/深浅」区分，保持纸墨和谐 */
.badge.s-通关 {                       /* 通关：朱砂实心，重点强调「玩完了」 */
  background: var(--hw-accent);
  border-color: var(--hw-accent);
  color: var(--hw-bg);
}
.badge.s-白金 {                       /* 最高成就：墨色实心，像一枚郑重的深印 */
  background: var(--hw-text);
  border-color: var(--hw-text);
  color: var(--hw-bg);
}
.badge.s-在玩 {                       /* 正在进行：朱砂描边 */
  background: rgba(245, 238, 221, 0.92);
  border-color: var(--hw-accent);
  color: var(--hw-accent);
}
.badge.s-搁置 {                       /* 暂搁：枯墨描边，淡出 */
  background: rgba(245, 238, 221, 0.92);
  border-color: var(--hw-dim);
  color: var(--hw-dim);
}
.badge.s-弃坑 {                       /* 弃置：枯墨描边 + 半透明，更淡 */
  background: rgba(245, 238, 221, 0.92);
  border-color: var(--hw-dim);
  color: var(--hw-dim);
  opacity: 0.72;
}
.card .score {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 2px;
  border: 1px solid rgba(163, 59, 42, 0.34);
  background: rgba(245, 238, 221, 0.92);
  color: var(--hw-accent);
  font-size: 0.82rem;
  font-weight: 750;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
}
.card .score-mark { color: var(--hw-accent); font-size: 0.82em; line-height: 1; position: relative; top: 0.5px; }
.card .meta { padding: 12px 14px 16px; }
.card .meta h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta .plat { font-size: 0.78rem; color: var(--hw-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta .short {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--hw-text);
  opacity: 0.92;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(0.82rem * 1.5 * 2);
}

.empty { text-align: center; color: var(--hw-dim); padding: 60px 0; }

/* ---------- 详情页 ---------- */
.back {
  display: inline-block;
  color: var(--hw-accent);
  text-decoration: none;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.detail-top { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.detail-cover {
  position: relative;
  width: 260px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--hw-border);
  box-shadow: 0 8px 22px rgba(163, 59, 42, 0.10);
  aspect-ratio: 2/3;
  background: rgba(163, 59, 42, 0.07);
}
.detail-cover img { width: 100%; display: block; aspect-ratio: 2/3; object-fit: cover; }
.detail-info { flex: 1; min-width: 260px; }
.detail-info h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }

/* 详情页右侧雷达图 */
.detail-radar {
  flex-shrink: 0;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-score-layout { display: contents; }
.mobile-score-radar { display: none; }
.radar { width: 100%; height: auto; overflow: visible; }
.radar-grid { fill: none; stroke: var(--hw-border); stroke-width: 1; }
.radar-axis { stroke: var(--hw-border); stroke-width: 1; }
.radar-area {
  fill: rgba(163, 59, 42, 0.16);
  stroke: var(--hw-accent);
  stroke-width: 2;
  stroke-linejoin: round;
}
.radar-dot { fill: var(--hw-accent); }
.radar-label { font-size: 12px; fill: var(--hw-dim); font-family: var(--hw-serif); }
.facts { display: flex; flex-direction: column; gap: 12px; }
.fact { display: flex; align-items: baseline; gap: 12px; }
.fact .k { color: var(--hw-dim); font-size: 0.85rem; width: 64px; flex-shrink: 0; }
.fact .v { font-size: 0.95rem; }
.fact .v .big { font-size: 1.6rem; font-weight: 800; color: var(--hw-accent); font-variant-numeric: lining-nums tabular-nums; }
.rating-value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.rating-denom {
  color: var(--hw-dim);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
}
.tag {
  display: inline-block;
  padding: 3px 12px;
  margin-right: 6px;
  margin-bottom: 4px;
  border-radius: 2px;
  background: rgba(163, 59, 42, 0.07);
  border: 1px solid var(--hw-border);
  font-size: 0.82rem;
}
.tag.status { font-weight: 600; }

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 36px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--hw-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.score-details > summary { list-style: none; }
.score-details > summary::-webkit-details-marker { display: none; }
.score-summary { cursor: default; }
.score-title-mobile { display: none; }
.score-summary-state {
  display: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid var(--hw-dim);
  border-bottom: 2px solid var(--hw-dim);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.score-details[open] .score-summary-state { transform: rotate(225deg); }
/* “主观评分”旁的问号按钮 */
.help-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--hw-accent);
  color: var(--hw-card);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
}
.help-btn:hover { opacity: 0.85; transform: scale(1.1); }

/* 评分说明弹框 */
.help-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(43, 39, 35, 0.45);
  backdrop-filter: blur(3px);
  z-index: 120;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.help-modal.open { display: flex; }
.help-box {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: var(--hw-card);
  border-radius: 3px;
  border: 1px solid var(--hw-border);
  box-shadow: 0 18px 50px rgba(43, 39, 35, 0.24);
  padding: 28px 28px 24px;
}
.help-box h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; color: var(--hw-text); }
.help-box p { font-size: 0.92rem; line-height: 1.75; color: var(--hw-text); margin-bottom: 10px; }
.help-box p:last-child { margin-bottom: 0; }
.help-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--hw-dim);
  cursor: pointer;
}
.help-close:hover { color: var(--hw-accent); }
/* 六维分项评分 */
.scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 28px;
  background: var(--hw-card);
  border: 1px solid var(--hw-border);
  border-radius: 3px;
  padding: 20px 24px;
}
.score-row { display: flex; align-items: center; gap: 12px; }
.score-name { width: 64px; flex-shrink: 0; font-size: 0.9rem; color: var(--hw-dim); }
.score-bar {
  position: relative;
  flex: 1;
  height: 9px;
  border-radius: 2px;
  background: var(--hw-border);
}
.score-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--hw-accent);
}
/* 分数在进度条右侧外面 */
.score-num {
  flex-shrink: 0;
  width: 16px;
  text-align: right;
  font-size: 1rem;
  font-weight: 800;
  color: var(--hw-accent);
  font-variant-numeric: lining-nums tabular-nums;
}
.review {
  background: var(--hw-card);
  border: 1px solid var(--hw-border);
  border-radius: 3px;
  padding: 24px 28px;
  font-size: 1.06rem;
  color: var(--hw-text);
}
/* 测评里的普通文字：保留换行 */
.review .rv-text { white-space: pre-wrap; }
/* 测评里插入的图片/视频：单独成行、居中。
   同时限制最大宽度和高度：横图受 600px 宽度约束，
   竖图受 70vh 高度约束、按比例收窄，避免过长霸屏。点击仍可放大看原图。 */
.review .rv-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 600px);
  max-height: 70vh;
  margin: 20px auto;
  border-radius: 3px;
  border: 1px solid var(--hw-border);
  transition: transform 0.2s;
}
img.rv-img { cursor: zoom-in; }
img.rv-img:hover { transform: scale(1.01); }
video.rv-img { background: #000; }

/* 正文里的 Markdown 标题（# / ## / ###）*/
.review .rv-h { font-weight: 800; line-height: 1.3; margin: 1.4em 0 0.6em; color: var(--hw-text); }
.review .rv-h1 { font-size: 1.6rem; }
.review .rv-h2 { font-size: 1.3rem; }
.review .rv-h3 { font-size: 1.1rem; color: var(--hw-dim); }

/* 配图 + 图注：图注用灰色小字、居中显示在图片下方 */
.review .rv-figure { max-width: 100%; margin: 20px 0; }
.review .rv-figure .rv-img { margin: 0 auto; }
.review .rv-cap {
  margin-top: 8px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--hw-dim);
  line-height: 1.5;
}

/* 截图相册 */
.album-panel {
  background: var(--hw-card);
  border: 1px solid var(--hw-border);
  border-radius: 3px;
  overflow: hidden;
}
.album-toggle {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--hw-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.album-toggle span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hw-dim);
}
.album-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 18px 18px;
}
.album-preview img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--hw-border);
  cursor: zoom-in;
}
.album-body {
  display: none;
  padding: 0 18px 18px;
}
.album-panel.open .album-preview { display: none; }
.album-panel.open .album-body { display: block; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.shots img {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--hw-border);
  cursor: zoom-in;
  transition: transform 0.2s;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.shots img:hover { transform: scale(1.02); }
/* 相册里的视频 */
.shots .shot-video {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--hw-border);
  aspect-ratio: 16/9;
  background: #000;
  object-fit: cover;
}

/* 点击放大的遮罩 */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(43, 39, 35, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: zoom-out;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }

/* ---------- 页脚（备案号，必须保留） ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 20px 40px;
  color: var(--hw-dim);
  font-size: 0.8rem;
}
.site-footer a { color: var(--hw-dim); text-decoration: none; }
.site-footer a:hover { color: var(--hw-accent); }

/* ---------- 手机适配 ---------- */
@media (max-width: 600px) {
  body { background-attachment: scroll; }
  body.home .banner { height: 150px !important; }
  .wrap { padding: 22px 16px 60px; }
  .site-header { margin-bottom: 28px; }
  .site-header h1 { font-size: 1.65rem; }
  .site-header p { margin-top: 6px; font-size: 0.88rem; }
  .toolbar { gap: 6px; margin-bottom: 24px; justify-content: center; }
  .toolbar .sep { display: none; }
  .toolbar-break { display: block; width: 100%; flex-basis: 100%; }
  .chip { padding: 6px 12px; font-size: 0.82rem; }
  .dd-trigger { padding: 6px 10px; font-size: 0.82rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .card,
  .chip,
  .toolbar select, .dd-trigger,
  .scores,
  .review {
    backdrop-filter: none;
  }
  .card {
    transition: border-color 0.2s;
  }
  .card:hover {
    transform: none;
    box-shadow: none;
  }
  .card .badge,
  .card .score {
    backdrop-filter: none;
  }
  .review .rv-img {
    max-width: 100%;
    max-height: 62vh;
  }
  .album-toggle { padding: 14px 16px; }
  .album-preview { gap: 8px; padding: 0 16px 16px; }
  .album-body { padding: 0 16px 16px; }
  .shots img:hover { transform: none; }
  .back { margin-bottom: 16px; }
  .detail-top {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
  }
  .detail-cover { width: 140px; }
  .detail-info {
    min-width: 0;
    height: 210px;
    display: flex;
    flex-direction: column;
  }
  .detail-info h1 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1.18rem;
    line-height: 1.2;
    margin-bottom: 6px;
  }
  .facts {
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
  }
  .fact {
    display: flex;
    align-items: flex-start;
    gap: 4px;
  }
  .fact:first-child { width: 100%; }
  .fact .k {
    display: inline;
    width: 42px;
    padding-top: 2px;
    font-size: 0.62rem;
    line-height: 1.2;
  }
  .fact:first-child .k { display: none; }
  .fact .v {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 3px;
    min-width: 0;
    font-size: 0.72rem;
  }
  .fact .v .big { font-size: 1.32rem; }
  .tag {
    padding: 1px 6px;
    margin: 0;
    font-size: 0.65rem;
  }
  .detail-top > .detail-radar { display: none; }
  .mobile-score-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    gap: 8px;
    align-items: center;
    margin: 12px 0 20px;
    padding: 34px 8px 10px;
    border: 1px solid var(--hw-border);
    border-radius: 3px;
    background: var(--hw-card);
  }
  .mobile-score-radar { display: block; min-width: 0; }
  .mobile-score-radar .radar-label { font-size: 10px; }
  .section-title { margin: 20px 0 12px; }
  .score-summary {
    position: absolute;
    top: 8px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 700;
  }
  .score-title-desktop { display: inline; }
  .score-title-mobile { display: none; }
  .score-summary-state { display: none; }
  .score-details-body { margin: 0; }
  .scores {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 4px 2px 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .mobile-score-layout .help-btn { width: 18px; height: 18px; font-size: 0.7rem; }
  .score-row { gap: 5px; }
  .score-name { width: 48px; font-size: 0.65rem; }
  .score-bar { height: 5px; }
  .score-num { width: 12px; font-size: 0.76rem; }
  .review { padding: 18px; }
  .banner-title { font-size: 1.25rem; }
  .banner-subtitle { font-size: 0.85rem; }
  .card .meta { padding: 10px 12px 14px; }
  .card .meta h3 { font-size: 0.92rem; }
  .card .meta .plat { font-size: 0.75rem; }
}

@media (max-width: 360px) {
  .detail-top { grid-template-columns: 128px minmax(0, 1fr); gap: 10px; }
  .detail-cover { width: 128px; }
  .detail-info { height: 192px; }
  .detail-info h1 { font-size: 1.05rem; }
  .fact .k { width: 38px; font-size: 0.58rem; }
  .tag { padding: 1px 5px; font-size: 0.6rem; }
}

@media (min-width: 601px) and (max-width: 900px) and (orientation: portrait) {
  body.home .grid {
    grid-template-columns: repeat(3, 228px);
    justify-content: center;
  }
}

/* ---------- 宽屏适配（只调整首页，详情页保持适合阅读的宽度）----------
   按浏览器视口而非显示器物理尺寸适配：中宽屏 5 列，2K/4K 桌面 6 列。 */
@media (min-width: 1500px) and (max-width: 1599px) {
  body.home .wrap {
    max-width: 1386px;
    padding: 36px 16px 72px;
  }
  body.home .site-header { margin-bottom: 32px; }
  body.home .site-header h1 { font-size: 2.2rem; }
  body.home .toolbar { margin-bottom: 30px; }
  body.home .grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1600px) {
  body.home .wrap { max-width: 1511px; }
  body.home .grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1800px) {
  body.home .wrap { max-width: 1526px; }
  body.home .grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 2200px) {
  body.home .wrap {
    max-width: 2100px;
    padding: 54px 20px 88px;
  }
  body.home .site-header { margin-bottom: 44px; }
  body.home .site-header h1 { font-size: 2.6rem; }
  body.home .site-header p { font-size: 1rem; }
  body.home .toolbar { gap: 11px; margin-bottom: 40px; }
  body.home .chip { padding: 8px 18px; font-size: 0.92rem; }
  body.home .toolbar select, body.home .dd-trigger { padding: 8px 16px; font-size: 0.92rem; }
  body.home .grid { grid-template-columns: repeat(6, 1fr); gap: 24px; }
  body.home .cover-fallback { font-size: 3.2rem; }
  body.home .card .meta { padding: 13px 15px 18px; }
  body.home .card .meta h3 { font-size: 1.05rem; }
  body.home .card .meta .plat { font-size: 0.82rem; }
}
@media (min-width: 3000px) {
  body.home .wrap {
    max-width: 2914px;
    padding: 70px 24px 110px;
  }
  body.home .site-header { margin-bottom: 56px; }
  body.home .site-header h1 { font-size: 3.4rem; }
  body.home .site-header p { font-size: 1.2rem; }
  body.home .toolbar { gap: 14px; margin-bottom: 50px; }
  body.home .chip { padding: 10px 22px; font-size: 1.08rem; }
  body.home .toolbar select, body.home .dd-trigger { padding: 10px 20px; font-size: 1.08rem; }
  body.home .grid { grid-template-columns: repeat(6, 1fr); gap: 30px; }
  body.home .cover-fallback { font-size: 3.8rem; }
  body.home .card .badge { top: 12px; left: 12px; font-size: 0.8rem; }
  body.home .card .score { right: 12px; bottom: 12px; font-size: 0.95rem; }
  body.home .card .meta { padding: 16px 20px 22px; }
  body.home .card .meta h3 { font-size: 1.18rem; }
  body.home .card .meta .plat { font-size: 0.9rem; }
}
/* ============================================================
   主页、文章与游戏区共用的纸墨样式
   ============================================================ */

/* 纸墨色板：一本名为《文字与游戏》的线装书。
   朱砂只做印章/朱批，绝不填按钮——刻意避开"奶油底+terracotta"那张 AI 默认脸。 */
/* ---------- 主页《文字与游戏》 ---------- */
/* 质量底线：键盘焦点可见 + 尊重减弱动态偏好 */
.home a:focus-visible,
.home button:focus-visible,
.home select:focus-visible,
body:not([class]) a:focus-visible,
body:not([class]) button:focus-visible,
.page-home a:focus-visible,
.page-articles a:focus-visible,
.page-article-detail a:focus-visible {
  outline: 2px solid var(--hw-accent);
  outline-offset: 3px;
  border-radius: 1px;
}
@media (prefers-reduced-motion: reduce) {
  .home *,
  body:not([class]) *,
  .page-home *,
  .page-articles *,
  .page-article-detail * {
    transition: none !important;
  }
}

.page-home {
  background: var(--hw-bg);
  color: var(--hw-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 32px 56px;
  flex: 1;
  width: 100%;
}

/* 报头 = 书的扉页：撑满整栏，小识靠左、竖排题签靠右，两端与下方列表对齐 */
.home-masthead {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 26px;
  margin-bottom: 12px;
}
.home-colophon { display: flex; align-items: center; gap: 18px; min-width: 0; }
.home-seal {
  width: 76px;
  height: 76px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1.5px solid var(--hw-accent);
  padding: 2px;
  background: var(--hw-bg);
}
.home-colophon-text { min-width: 0; }
.home-name {
  font-family: var(--hw-serif);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--hw-text);
  line-height: 1.1;
}
.home-bio {
  margin-top: 8px;
  font-family: var(--hw-serif);
  font-size: 0.95rem;
  color: var(--hw-dim);
  letter-spacing: 0.04em;
}
.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
}
.home-links a {
  font-family: var(--hw-serif);
  font-size: 0.92rem;
  color: var(--hw-dim);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.home-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--hw-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s;
}
.home-links a:hover { color: var(--hw-accent); }
.home-links a:hover::after { transform: scaleX(1); }
.home-links a.is-copied { color: var(--hw-accent); cursor: default; }
.home-links a.is-copied::after { transform: scaleX(1); }

/* 竖排题签：整页唯一的一处竖排，朱砂细框，做成一条与小识等高的书签 */
.home-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--hw-accent);
  border-radius: 2px;
  padding: 18px 11px;
  box-shadow: 0 2px 8px rgba(163, 59, 42, 0.1);
}
.home-label-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--hw-serif);
  font-size: 1.46rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  /* 竖排时字间距会在末字下方多留一段空，向上补偿，使整体真正居中 */
  margin-top: 0.42em;
  color: var(--hw-accent);
}

/* 时间线（界行）：游戏与文章并入一条线 */
.home-stream { margin: 30px 0 40px; }
.stream {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--hw-border);
}
.stream-row { position: relative; }
.stream-year {
  display: block;
  font-family: var(--hw-serif);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--hw-accent);
  margin: 26px 0 18px -1px;
  padding-left: 22px;
  position: relative;
}
.stream-year::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--hw-accent);
}
.stream-row:first-child .stream-year { margin-top: 0; }

.stream-link {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 11px 4px 11px 22px;
  text-decoration: none;
  color: inherit;
  position: relative;
}
/* 界行上的节点 */
.stream-link::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hw-border);
  transform: translateY(-50%);
  transition: background 0.2s;
}
.stream-row:first-of-type .stream-link::before { background: var(--hw-accent); }
.stream-link:hover::before { background: var(--hw-accent); }

.stream-date {
  font-family: var(--hw-serif);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 0.8rem;
  color: var(--hw-dim);
  white-space: nowrap;
  align-self: start;
  padding-top: 2px;
}

/* 游戏：竖版封面缩图（形状即信息） */
.stream-cover {
  display: none;            /* 默认无封面列；游戏行覆写为 block */
}
.is-game .stream-link { grid-template-columns: 48px 38px 1fr auto; }
.is-game .stream-cover {
  display: block;
  width: 38px;
  height: 57px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  background: var(--hw-card);
  border: 1px solid var(--hw-border);
}
.is-game .stream-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.stream-cover-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--hw-serif);
  font-size: 1.1rem;
  color: var(--hw-dim);
}
.is-game .stream-cover.no-cover .stream-cover-fallback { display: flex; }

.stream-body { min-width: 0; }
/* 文章用一枚朱字「文」当形状标记，替代封面 */
.stream-kind {
  display: inline-block;
  font-family: var(--hw-serif);
  font-size: 0.7rem;
  color: var(--hw-accent);
  border: 1px solid var(--hw-accent);
  border-radius: 2px;
  padding: 0 4px;
  margin-right: 8px;
  vertical-align: 0.1em;
}
.stream-title {
  font-family: var(--hw-serif);
  font-size: 1.02rem;
  color: var(--hw-text);
  transition: color 0.2s;
}
.stream-link:hover .stream-title { color: var(--hw-accent); }
.stream-note {
  display: block;
  font-size: 0.82rem;
  color: var(--hw-dim);
  line-height: 1.6;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.is-article .stream-note { -webkit-line-clamp: 2; }

.stream-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  white-space: nowrap;
}
.stream-rating {
  font-family: var(--hw-serif);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--hw-text);
}
.stream-rating-denom { font-size: 0.72rem; color: var(--hw-dim); font-weight: 400; }
.stream-status {
  font-size: 0.72rem;
  color: var(--hw-dim);
  letter-spacing: 0.05em;
}
.stream-empty { color: var(--hw-dim); font-size: 0.9rem; padding: 8px 0 8px 22px; }

/* 索引：游戏记录 / 文章 两枚朱砂小标签，紧跟报头，第一屏即可见 */
.home-index {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hw-border);
}
.home-index a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  color: var(--hw-accent);
  font-family: var(--hw-serif);
  padding: 6px 14px;
  border: 1px solid var(--hw-border);
  border-radius: 2px;
  background: var(--hw-card);
  transition: border-color 0.2s, color 0.2s;
}
.home-index a:hover { border-color: var(--hw-accent); }
.home-index-name { font-size: 0.96rem; }
.home-index-count {
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 0.78rem;
  color: var(--hw-dim);
}

/* ---------- 文章列表 ---------- */
.page-articles {
  display: flex;
  flex-direction: column;
  background: var(--hw-bg);
  color: var(--hw-text);
  min-height: 100vh;
}
.page-articles .article-wrap { flex: 1; }

.article-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 60px;
}

.article-header {
  margin-bottom: 44px;
}
.article-masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.article-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: var(--hw-serif);
  font-size: 1.2rem;
  color: var(--hw-accent);
  border: 1.5px solid var(--hw-accent);
  border-radius: 2px;
}
.article-header h1 {
  font-family: var(--hw-serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--hw-text);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.article-back,
.article-cross {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-family: var(--hw-serif);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--hw-accent);
  text-decoration: none;
  transition: color 0.2s;
}
.article-back:hover { color: var(--hw-accent); }
.article-cross:hover { color: var(--hw-text); }

.article-list { display: flex; flex-direction: column; gap: 4px; }
.article-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hw-border);
}
.article-item:first-child { border-top: 1px solid var(--hw-border); }
.article-item-cover {
  flex-shrink: 0;
  width: 150px;
  height: 94px;
  border-radius: 3px;
  overflow: hidden;
  display: block;
  margin-top: 4px;
  border: 1px solid var(--hw-border);
}
.article-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-item-text { flex: 1; min-width: 0; }
.article-item h2 {
  font-family: var(--hw-serif);
  font-size: 1.22rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 6px;
  line-height: 1.4;
}
.article-item h2 a {
  color: var(--hw-text);
  text-decoration: none;
  transition: color 0.2s;
}
.article-item h2 a:hover { color: var(--hw-accent); }
.article-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--hw-serif);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 0.8rem;
  color: var(--hw-dim);
  margin-bottom: 10px;
}
.article-item-tags { display: flex; gap: 6px; }
.article-item-tags span {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: rgba(163, 59, 42, 0.07);
  color: var(--hw-accent);
  border-radius: 3px;
}
.article-item-excerpt {
  font-size: 0.9rem;
  color: var(--hw-dim);
  line-height: 1.75;
}
.article-empty { text-align: center; color: var(--hw-dim); padding: 60px 0; font-size: 0.95rem; }

/* ---------- 文章详情 ---------- */
.page-article-detail {
  display: flex;
  flex-direction: column;
  background: var(--hw-bg);
  color: var(--hw-text);
  min-height: 100vh;
}
.page-article-detail .article-wrap { flex: 1; }

.article-detail { margin-top: 24px; }
.article-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--hw-border);
  margin-bottom: 36px;
}
.article-detail-header { margin-bottom: 40px; }
.article-detail-header h1 {
  font-family: var(--hw-serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--hw-text);
}
.article-detail-meta {
  margin-top: 14px;
  font-family: var(--hw-serif);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 0.85rem;
  color: var(--hw-dim);
}
.article-detail-meta time { font-style: normal; }
.article-detail-tags {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.article-detail-tags span {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: rgba(163, 59, 42, 0.07);
  color: var(--hw-accent);
  border-radius: 3px;
}

.article-detail-body { font-family: var(--hw-serif); font-size: 1.12rem; line-height: 1.95; }
.article-detail-body h2 { font-family: var(--hw-serif); font-size: 1.5rem; font-weight: 600; margin: 42px 0 16px; padding-left: 13px; border-left: 3px solid var(--hw-accent); color: var(--hw-text); }
.article-detail-body h3 { font-family: var(--hw-serif); font-size: 1.28rem; font-weight: 600; margin: 32px 0 12px; color: var(--hw-text); }
.article-detail-body h4 { font-family: var(--hw-serif); font-size: 1.14rem; font-weight: 600; margin: 28px 0 10px; color: var(--hw-text); }
.article-detail-body p { margin-bottom: 18px; }
.article-detail-body .rv-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 600px);
  max-height: 70vh;
  margin: 24px auto;
  border-radius: 3px;
  border: 1px solid var(--hw-border);
}
.article-detail-body strong { font-weight: 700; }

/* 文章内游戏卡片 */
.game-card { display: flex; align-items: flex-start; gap: 14px; padding: 12px 18px; margin: 16px 0; background: var(--hw-card); border: 1px solid var(--hw-border); border-radius: 4px; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.game-card:hover { border-color: var(--hw-accent); background: #EDE3CE; }
.game-card-cover { flex-shrink: 0; width: 52px; height: 73px; object-fit: cover; border-radius: 2px; }
.game-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; }
.game-card-name { font-family: var(--hw-serif); font-size: 0.98rem; font-weight: 600; color: var(--hw-text); }
.game-card-rating { font-family: var(--hw-serif); font-variant-numeric: lining-nums tabular-nums; font-size: 0.95rem; font-weight: 600; color: var(--hw-accent); align-self: flex-end; }

/* footer for home/article pages */
.page-home .site-footer,
.page-articles .site-footer,
.page-article-detail .site-footer,
.page-gamewall .site-footer,
.page-game .site-footer {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--hw-border);
}
.page-home .site-footer a,
.page-articles .site-footer a,
.page-article-detail .site-footer a,
.page-gamewall .site-footer a,
.page-game .site-footer a {
  color: var(--hw-dim);
  text-decoration: none;
  font-size: 0.78rem;
}

/* ---------- 主页 & 文章移动端 ---------- */
@media (max-width: 600px) {
  .home-wrap { padding: 44px 20px 40px; }
  /* 手机：小识靠左、题签靠右，题签保持竖排（书脊标签，和桌面一致） */
  .home-masthead { gap: 16px; }
  .home-colophon { gap: 14px; }
  .home-seal { width: 54px; height: 54px; }
  .home-name { font-size: 1.7rem; }
  .home-links { gap: 14px; margin-top: 10px; }
  .home-label { padding: 12px 8px; }
  .home-label-title { font-size: 1.2rem; letter-spacing: 0.34em; }
  .home-stream { margin: 32px 0; }
  .is-game .stream-link { grid-template-columns: 42px 34px 1fr auto; gap: 11px; }
  .stream-link { grid-template-columns: 42px 1fr auto; gap: 11px; padding-left: 18px; }
  .home-index { gap: 28px; }
  .article-wrap { padding: 40px 20px 40px; }
  .article-detail-header h1 { font-size: 1.5rem; }
  .article-detail-body { font-size: 1.06rem; }
  .article-item { gap: 12px; }
  .article-item-cover { width: 120px; height: 80px; }
  .article-item-tags { display: none; }
  .article-item-excerpt { display: none; }
  .article-cover { max-height: 200px; }
  .game-card { padding: 10px 14px; gap: 10px; }
  .game-card-cover { width: 44px; height: 62px; }
  .game-card-name { font-size: 0.88rem; }
}
