/* 试玩间：内部互动内容分享平台。界面用圆润的标签、卡片和按钮，图片全用作品的正式物料和写实头图。 */

@font-face { font-family: "RHR"; font-weight: 700; font-display: swap; src: url("fonts/rhr-bold.woff2") format("woff2"); }
@font-face { font-family: "RHR"; font-weight: 900; font-display: swap; src: url("fonts/rhr-heavy.woff2") format("woff2"); }

:root {
  --mist: #EDF2F9;
  --paper: #FFFFFF;
  --ink: #1B2547;
  --ink-2: #3A4566;
  --slate: #5D6782;
  --sun: #FFC93C;
  --sun-lip: #DDA21A;
  --stage: #1C1A19;
  --focus: #3D6BFF;
  --round: "RHR", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 16px/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--round); font-weight: 700; color: var(--ink); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.dot { margin: 0 -.1em; }
.nw { white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* 顶栏 */
.top { padding: 20px 0 0; }
.top .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--round); letter-spacing: .02em; }
.brand svg { width: 36px; height: 36px; flex: none; }
.tagline { padding-left: 14px; border-left: 1px solid rgba(27, 37, 71, .2); color: var(--slate); font-size: 15px; line-height: 1.2; }

/* 头图：深色舞台，右边是写实的「一排故事世界」，往左渐隐进底色 */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 470px;
  margin-top: 20px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--stage);
  isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0 0 0 auto; z-index: -1;
  height: 100%; width: auto; max-width: none; aspect-ratio: 3 / 2;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 34%);
  mask-image: linear-gradient(to right, transparent, #000 34%);
}
.hero-text { width: min(500px, 100%); padding: 56px 0 56px 56px; color: #fff; }
.hero h1 { color: #fff; font-weight: 900; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.2; letter-spacing: .01em; }
.hero .lead { margin-top: 20px; font-size: 18px; line-height: 1.85; color: rgba(255, 255, 255, .86); }
.tips { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; color: rgba(255, 255, 255, .7); font-size: 15px; }
.tips li { display: flex; align-items: center; gap: 10px; }
.tips svg { width: 20px; height: 20px; flex: none; }

/* 作品墙：竖版海报 + 文字的横排卡 */
.works-wrap { padding-top: 44px; }
.works-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.works-head h2 { font-size: 28px; }
.works-head span { color: var(--slate); font-size: 15px; }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 24px; padding-bottom: 64px; }

.work {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas: "poster body" "poster foot";
  column-gap: 24px;
  padding: 14px 24px 14px 14px;
  background: var(--tint);
  border-radius: 28px;
}
.work .poster { grid-area: poster; align-self: start; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--accent); }
.work .poster img { width: 100%; height: 100%; object-fit: cover; }
.work .body { grid-area: body; padding-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 700 13px/1 var(--round); padding: 7px 11px 6px; border-radius: 999px; background: var(--paper); color: var(--accent); }
.chip.ai { background: var(--accent); color: #fff; }
.work h3 { margin: 12px 0 8px; font-size: 24px; line-height: 1.3; }
.work .summary { color: var(--ink-2); font-size: 15.5px; }
.work .date { margin-top: 10px; color: var(--slate); font-size: 14px; }
.work .foot { grid-area: foot; display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 0 8px; }

/* 按钮：带一道底边，按下去会沉 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 14px;
  font: 700 17px/1 var(--round); letter-spacing: .02em;
  color: var(--ink); text-decoration: none; cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
.btn.go { background: var(--sun); box-shadow: 0 4px 0 var(--sun-lip); }
.btn.more { background: var(--paper); box-shadow: 0 4px 0 rgba(27, 37, 71, .16); }
.btn:active { transform: translateY(3px); }
.btn.go:active { box-shadow: 0 1px 0 var(--sun-lip); }
.btn.more:active { box-shadow: 0 1px 0 rgba(27, 37, 71, .16); }
.btn svg { width: 18px; height: 18px; }

.foot-note { border-top: 1px solid rgba(27, 37, 71, .1); padding: 22px 0 34px; color: var(--slate); font-size: 14px; }

/* 介绍弹层 */
dialog.sheet {
  width: min(960px, 100% - 40px);
  max-height: min(880px, 100% - 48px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .28s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
dialog.sheet::backdrop { background: rgba(27, 37, 71, .55); }
.sheet .scroll { overflow-y: auto; overscroll-behavior: contain; }
.sheet .scroll:focus { outline: none; }
.sheet .close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--mist); color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
}
.sheet .close svg { width: 20px; height: 20px; }
.sheet .cols { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 40px; padding: 70px 36px 40px; }
.sheet .head {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  grid-template-areas: "poster title" "poster intro";
  grid-template-rows: auto 1fr;
  column-gap: 26px;
}
.sheet .head .poster { grid-area: poster; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; background: var(--accent); }
.sheet .head .title { grid-area: title; }
.sheet .chip:not(.ai) { background: var(--tint); }
.sheet .head .intro { grid-area: intro; margin-top: 4px; color: var(--ink-2); font-size: 16.5px; line-height: 1.85; }
.sheet h2 { margin: 12px 0 8px; font-size: 30px; line-height: 1.25; }
.sheet h3 { margin: 34px 0 12px; font-size: 20px; }
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.howto li { background: var(--tint); border-radius: 16px; padding: 14px 18px; color: var(--ink-2); }
.howto b { display: block; margin-bottom: 2px; font: 700 16px/1.5 var(--round); color: var(--accent); }
.made { margin: 0; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: 8px; }
.made li::marker { color: var(--accent); }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.shots figure { margin: 0; }
.shots img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 18px; border: 3px solid var(--ink); background: var(--ink); }
.shots figcaption { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--slate); }

.side { align-self: start; position: sticky; top: 72px; display: grid; gap: 16px; }
.side .btn { width: 100%; min-height: 54px; font-size: 18px; }
.side .btn.share { min-height: 46px; font-size: 16px; }
.qr { background: var(--mist); border-radius: 20px; padding: 18px; text-align: center; }
.qr svg { width: 100%; max-width: 168px; height: auto; margin: 0 auto; background: var(--paper); border-radius: 12px; padding: 10px; display: block; }
.qr p { margin-top: 10px; font: 700 15px/1.5 var(--round); }
.qr small { display: block; color: var(--slate); font-size: 13px; line-height: 1.6; margin-top: 2px; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; }

/* 平板：头图改上图下字 */
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero-art { position: static; width: 100%; height: auto; aspect-ratio: 16 / 10; object-position: 52% 40%; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
  .hero-text { width: 100%; padding: 0 28px 32px; margin-top: -36px; position: relative; }
}
@media (max-width: 720px) {
  .wrap { width: min(var(--wrap), 100% - 28px); }
  .tagline { font-size: 14px; }
  .hero { border-radius: 24px; }
  .hero-art { aspect-ratio: 16 / 10; }
  .hero h1 { font-size: 32px; }
  .hero-text { padding: 0 22px 26px; }
  .hero .lead { font-size: 16.5px; }
  .hero .lead br { display: none; }
  .tips { font-size: 14px; }
  .works-wrap { padding-top: 34px; }
  .works { gap: 18px; }
  .work {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas: "poster body" "foot foot";
    column-gap: 16px;
    padding: 12px;
    border-radius: 22px;
  }
  .work .poster { border-radius: 14px; }
  .work .body { padding-top: 2px; }
  .work h3 { font-size: 20px; margin: 10px 0 6px; }
  .work .summary { font-size: 15px; line-height: 1.7; }
  .work .foot { padding: 14px 0 2px; }
  .work .foot .btn { flex: 1; }

  dialog.sheet { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; margin: 0; }
  .sheet .cols { grid-template-columns: 1fr; gap: 0; padding: 66px 20px 110px; }
  .sheet .head { grid-template-columns: 108px minmax(0, 1fr); grid-template-areas: "poster title" "intro intro"; column-gap: 16px; }
  .sheet .head .poster { border-radius: 12px; }
  .sheet .head .intro { margin-top: 18px; font-size: 16px; }
  .sheet h2 { font-size: 23px; }
  .shots { grid-template-columns: repeat(3, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .shots figure { scroll-snap-align: start; }
  .side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 rgba(27, 37, 71, .1); }
  .side .qr, .side .facts, .side .share { display: none; }
}

/* 404 */
.missing { min-height: 70vh; display: grid; place-content: center; justify-items: start; gap: 14px; }
.missing h1 { font-size: 34px; }
.missing p { color: var(--slate); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
