﻿/* ============================================================
   作品集 · 深色画廊样式表
   方向：近黑纸面 / 大字号衬线标题 / 发丝线分隔 / 单一青玉点缀
   规范：字阶 12-14-16-20-32-display；间距 4-8-12-16-24-32-48-64-96-128
   圆角统一 2px；只有一级阴影；强调色只用于"可操作/当前位置"
   ============================================================ */

:root {
  /* —— 中性色阶（同一暖灰色相，从底到顶）—— */
  --bg:        #0a0a0b;
  --surface:   #101012;
  --surface-2: #17171a;
  --line:      #26262b;
  --line-soft: #1b1b1f;
  --ink:       #f2efe9;
  --dim:       #9c9a95;
  --faint:     #85837e;

  /* —— 唯一强调色：青玉（来自作品本身的国风配色）—— */
  --jade:      #8fd3b6;
  --jade-line: #3d6355;
  --on-jade:   #05100c;

  /* —— 字阶 —— */
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-h2: clamp(1.5rem, 2.2vw, 2rem);
  --fs-page: clamp(1.75rem, 3.4vw, 2.5rem);
  --fs-display: clamp(2.5rem, 6.2vw, 5.5rem);

  /* —— 字体 —— */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun,
           Georgia, "Times New Roman", serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --pad: 24px;
  --maxw: 1240px;
  --r: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--jade); color: var(--on-jade); }

:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
  border-radius: var(--r);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 24px;
  background: var(--jade);
  color: var(--on-jade);
  font-size: var(--fs-sm);
}
.skip:focus { left: 16px; top: 16px; }

/* ============================================================
   结构
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

@media (min-width: 900px) {
  :root { --pad: 48px; }
}

.section {
  padding-block: 96px;
  border-top: 1px solid var(--line-soft);
}
.section--flush { border-top: 0; }

@media (min-width: 900px) {
  .section { padding-block: 128px; }
}

/* 段落 / 通用文字 */
.eyebrow {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

.lede {
  max-width: 46ch;
  margin: 0;
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--dim);
}

.body-copy {
  max-width: 62ch;
  color: var(--dim);
  margin: 0 0 24px;
}

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
}

/* 章节标题：左标题 + 右导语 */
.sec-head {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
}
.sec-head__no {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  color: var(--jade);
}

@media (min-width: 900px) {
  .sec-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    align-items: end;
    gap: 64px;
    margin-bottom: 64px;
  }
  .sec-head .lede { justify-self: end; text-align: left; }
}

/* ============================================================
   按钮（唯一的两种）
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}

.btn--primary {
  background: var(--jade);
  color: var(--on-jade);
}
.btn--primary:hover { background: #a6e2c8; }

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--jade-line); background: var(--surface); }

.btn__arrow { width: 14px; height: 14px; }

/* ============================================================
   顶栏
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 11, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.brand__name {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: .04em;
}
.brand__role {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  color: var(--faint);
  text-transform: uppercase;
}
@media (max-width: 719px) {
  .brand__role { display: none; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__link {
  padding-block: 8px;
  font-size: var(--fs-sm);
  color: var(--dim);
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="true"] { color: var(--jade); }
.nav__cta { padding: 8px 16px; }

@media (max-width: 719px) {
  .nav__link:not(.nav__cta) { display: none; }
}

/* ============================================================
   首屏
   ============================================================ */

.hero { padding-block: 64px 0; }

@media (max-width: 719px) {
  .only-wide { display: none; }
}

.hero__grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 15rem;
    align-items: end;
    gap: 64px;
    padding-bottom: 96px;
  }
}

.display {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .01em;
  text-wrap: balance;
}

.hero__lede {
  max-width: 40ch;
  margin: 0 0 32px;
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* 右栏：状态 + 数据 */
.hero__aside {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(143, 211, 182, .16);
}
.stats {
  margin: 0;
  display: grid;
  gap: 12px;
}
.stats__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.stats__row dt {
  font-size: var(--fs-sm);
  color: var(--dim);
}
.stats__row dd {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.stats__row dd a { display: inline-block; padding-block: 4px; overflow-wrap: anywhere; }

/* 首屏大图 */
.hero__figure {
  position: relative;
  margin: 0;
  border-top: 1px solid var(--line);
}
.hero__figure img {
  /* 主视觉按原比例完整显示，不做裁切 */
  width: 100%;
  height: auto;
  /* 主视觉本身很亮，压一点让它和深色页面待在一起 */
  filter: saturate(.94) brightness(.9);
  transition: filter .4s var(--ease);
}
.hero__figure a:hover img { filter: saturate(1) brightness(.96); }
/* 图片说明放在图下方，不做压在画面上的浮字：又清晰又不会和作品抢眼 */
.hero__cap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  color: var(--dim);
}

/* ============================================================
   作品网格
   ============================================================ */

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 16px;
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
}
@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
}

.card { min-width: 0; }
.card--wide { grid-column: 1 / -1; }

.card__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.card__frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
}
.card--wide .card__frame { aspect-ratio: 21 / 9; }

.card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 部分作品是白底棚拍渲染，压一点亮度好和深色页面待在一起 */
  filter: brightness(.93) contrast(1.02);
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.card__btn:hover .card__frame img {
  transform: scale(1.035);
  filter: brightness(1.02) contrast(1.02);
}

.card__hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: var(--r);
  background: rgba(6, 6, 7, .78);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.card__btn:hover .card__hint,
.card__btn:focus-visible .card__hint { opacity: 1; transform: none; }

.card__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.card__title {
  font-size: var(--fs-sm);
  color: var(--ink);
}
.card__meta {
  flex: none;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--faint);
  text-align: right;
}

/* ============================================================
   游戏展示区
   ============================================================ */

.project {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .project { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
}

.project__poster {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
}
.project__poster img { width: 100%; height: auto; }

.project__body > * + * { margin-top: 24px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--dim);
}

.facts {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.facts dt {
  font-size: var(--fs-sm);
  color: var(--faint);
}
.facts dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink);
  text-align: right;
}

.project__shots {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 640px) {
  .project__shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
.shot { margin: 0; }
.shot img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
}
.shot figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--faint);
}

/* 次要游戏 / 小游戏卡片 */
.minis {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 720px) {
  .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1024px) {
  .minis--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.mini {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.mini:hover { border-color: var(--jade-line); background: var(--surface-2); }
.mini__kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--jade);
}
.mini__title {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 600;
}
.mini__desc {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--dim);
}
.mini__go {
  align-self: end;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  color: var(--ink);
}

/* ============================================================
   影像
   ============================================================ */

.clips {
  display: grid;
  gap: 32px;
}
@media (min-width: 720px) {
  .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

.clip { margin: 0; }

.clip__frame {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  /* 未解码出首帧时是一块深色面板，而不是空洞的黑 */
  background: var(--surface);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
}
.clip__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.clip__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(6, 6, 7, .1), rgba(6, 6, 7, .55));
  cursor: pointer;
  transition: opacity .3s var(--ease);
}
.clip__play::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(242, 239, 233, .55);
  background: rgba(6, 6, 7, .35);
  backdrop-filter: blur(4px);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.clip__play:hover::after {
  transform: scale(1.06);
  border-color: var(--jade);
}
.clip__play svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin-left: 3px;
  fill: var(--ink);
}
.clip.is-playing .clip__play { opacity: 0; pointer-events: none; }

.clip figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.clip__title { font-size: var(--fs-sm); }
.clip__meta {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--faint);
}

/* 片目索引 */
.films {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.films li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .2s var(--ease);
}
.films li:hover { background: var(--surface); }
.films__i {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--faint);
}
.films__t { font-size: var(--fs-sm); }
.films__m {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--dim);
  text-align: right;
}
.films__note {
  max-width: 56ch;
  margin: 16px 0 0;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--faint);
}

/* ============================================================
   关于
   ============================================================ */

.about {
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; }
}

.about__copy p {
  max-width: 60ch;
  margin: 0 0 24px;
  color: var(--dim);
  font-size: var(--fs-md);
  line-height: 1.75;
}
.about__copy p:first-child {
  color: var(--ink);
  font-size: var(--fs-lg);
  line-height: 1.6;
}

.deflist {
  margin: 0;
  border-top: 1px solid var(--line);
}
.deflist > div {
  display: grid;
  gap: 4px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.deflist dt {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.deflist dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.deflist a { border-bottom: 1px solid var(--jade-line); }
.deflist a:hover { color: var(--jade); }

/* ============================================================
   页脚 / 联系
   ============================================================ */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 96px 32px;
}

.footer__cta {
  display: grid;
  gap: 32px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 900px) {
  .footer__cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 64px;
  }
}
.footer__title {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-page);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
}
.footer__sub {
  margin: 16px 0 0;
  max-width: 40ch;
  font-size: var(--fs-md);
  color: var(--dim);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--faint);
}
.footer__bottom a {
  display: inline-block;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}
.footer__bottom a:hover { color: var(--jade); border-bottom-color: var(--jade); }

/* ============================================================
   大图查看（lightbox）
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px;
  background: rgba(7, 7, 8, .97);
  backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }

@media (min-width: 720px) {
  .lightbox { padding: 24px 48px; gap: 24px; }
}

.lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.lb__count,
.lb__tag {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  color: var(--faint);
}
.lb__close,
.lb__nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.lb__close:hover,
.lb__nav:hover { border-color: var(--jade); color: var(--jade); }
.lb__close svg, .lb__nav svg { width: 16px; height: 16px; }

.lb__body {
  min-height: 0;
  overflow: hidden;
}
/* 用 object-fit 撑满可用区域：任何长宽比的图都不会溢出到说明栏上 */
.lb__body img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--r);
}

.lb__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}
.lb__title { margin: 0; font-size: var(--fs-sm); }
.lb__controls {
  display: flex;
  gap: 12px;
}

body.is-locked { overflow: hidden; }

/* ============================================================
   进场动画（无 JS 时内容照常显示）
   ============================================================ */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   404
   ============================================================ */

.notfound {
  min-height: 78vh;
  display: grid;
  align-content: center;
  gap: 24px;
  padding-block: 96px;
}
.notfound__code {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .2em;
  color: var(--jade);
}
.notfound__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
}
.notfound__text {
  max-width: 44ch;
  margin: 0;
  color: var(--dim);
}
.notfound__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ============================================================
   多页结构：栏目标题页 / 分类区块 / 影像条目 / 下载 / 文档
   所有数值仍取自同一套字阶与间距刻度
   ============================================================ */

/* —— 栏目页头 —— */
.page-head {
  padding-block: 64px 48px;
  border-bottom: 1px solid var(--line-soft);
}
.page-head__title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: var(--fs-page);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
}
.page-head__lede {
  max-width: 56ch;
  margin: 0;
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--dim);
}

/* 页头两栏：左侧标题文案 + 右侧竖版视频（动画页用） */
.page-head--split {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .page-head--split {
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: 64px;
    align-items: start;
  }
}
.page-head--split .clip { margin: 0; }
.page-head--split .clip figcaption { margin-top: 8px; }

/* 页面里的“返回首页”按钮 */
.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.page-head__actions .btn--ghost { border-color: var(--jade-line); }
.page-head__actions .btn--ghost:hover { border-color: var(--jade); background: var(--surface-2); }

/* —— 面包屑 —— */
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  color: var(--faint);
}
.crumb a {
  display: inline-block;
  padding-block: 8px;
}
.crumb a:hover { color: var(--jade); }

/* —— 栏目内导航（游戏项目的分类切换）—— */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.subnav__link {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: var(--fs-sm);
  color: var(--dim);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.subnav__link:hover {
  color: var(--ink);
  border-color: var(--jade-line);
  background: var(--surface);
}
.subnav__link[aria-current="page"] {
  color: var(--jade);
  border-color: var(--jade-line);
}

/* —— 分类区块：左侧说明 + 右侧缩略图 —— */
.cat {
  display: grid;
  gap: 24px;
  padding-block: 48px;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 900px) {
  .cat {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 64px;
    align-items: start;
    padding-block: 64px;
  }
}
.cat__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 600;
}
.cat__note {
  margin: 0 0 16px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--dim);
}
.cat__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 8px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  color: var(--jade);
  border-bottom: 1px solid var(--jade-line);
}
.cat__more:hover { color: var(--ink); border-bottom-color: var(--line); }

.thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 720px) {
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .thumbs--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.93) contrast(1.02);
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.thumb:hover img { transform: scale(1.035); filter: brightness(1.02) contrast(1.02); }

/* —— 密集图版（全部内容页）—— */
.plates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px 16px;
}
.plates .card__frame { aspect-ratio: 4 / 3; }

/* —— 影像条目 —— */
.entries { display: grid; gap: 0; }
.entry {
  display: grid;
  gap: 24px;
  padding-block: 48px;
  border-bottom: 1px solid var(--line-soft);
}
.entry:first-child { padding-top: 0; }
@media (min-width: 900px) {
  .entry {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 48px;
    align-items: start;
  }
}
.entry__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.3;
}
.entry__meta {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  color: var(--faint);
}
.entry__desc {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--dim);
}
.entry__offline {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--faint);
}

/* 竖屏视频：不要用 16:9 裁掉画面 */
.clip--vertical { max-width: 20rem; }
.clip--vertical .clip__frame { aspect-ratio: 9 / 16; }

/* —— 下载卡片 —— */
.dl {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 720px) {
  .dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
.dl-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.dl-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 600;
}
.dl-card__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  line-height: 1.9;
  color: var(--faint);
}
.dl-card__note {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--dim);
}
.btn--pending {
  border-style: dashed;
  border-color: var(--line);
  color: var(--dim);
  cursor: not-allowed;
}
.btn--pending:hover { background: transparent; border-color: var(--line); }

/* —— 文档清单 —— */
.docs {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.docs li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
}
.docs__meta {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--faint);
}

/* —— 项目概览的事实表（横向排布）—— */
.facts--row {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  display: grid;
  border-top: 1px solid var(--line-soft);
}
.facts--row > div {
  display: grid;
  gap: 4px;
  padding: 16px 24px 16px 0;
  border-bottom: 0;
}
.facts--row dd { text-align: left; }

/* —— 首页：三个门类（标题行 + 四张精选）—— */
.room {
  padding-block: 48px;
  border-top: 1px solid var(--line);
}
.room:last-child { border-bottom: 1px solid var(--line); }

.room__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  color: inherit;
}
@media (min-width: 900px) {
  .room__head {
    grid-template-columns: 3rem minmax(0, 1fr) 2rem;
    gap: 32px;
    align-items: start;
  }
}
.room__title {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.2;
}
.room__desc {
  display: block;
  max-width: 54ch;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--dim);
}
.room__meta {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--faint);
}
.room__num {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  color: var(--faint);
}
.room__arrow {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--jade);
  transition: transform .3s var(--ease);
}
.room__head:hover .room__arrow { transform: translateX(4px); }
.room__head:hover .room__title { color: var(--jade); }
@media (max-width: 899px) {
  .room__num, .room__arrow { display: none; }
}

.room__thumbs {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 720px) {
  .room__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .room__thumbs { margin-top: 32px; padding-left: calc(3rem + 32px); }
}
.room__thumbs a {
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
}
.room__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.93) contrast(1.02);
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.room__thumbs a:hover img { transform: scale(1.035); filter: brightness(1.02) contrast(1.02); }

/* —— 首页副标题 —— */
.subline {
  max-width: 34ch;
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
}
.subline em {
  font-style: normal;
  color: var(--dim);
}

/* —— 页头里的“漫剧”重点卡 —— */
.spotlight {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.spotlight__kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  color: var(--jade);
}
.spotlight .clip { margin: 0; max-width: 100%; }
.spotlight__title {
  margin: 16px 0 4px;
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.3;
}
.spotlight__meta {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--faint);
}
.spotlight__desc {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--dim);
}

/* 页头里的补充说明（工具 / 分类） */
.page-head__tools {
  max-width: 62ch;
  margin: 16px 0 0;
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--dim);
}
.page-head__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
