/* ============================================================
   govivi — 个人作品站
   基调：宣纸、墨、朱砂。每件作品页用自己的主色。
   ============================================================ */

@font-face { font-family: "Site Serif"; src: url("../fonts/serif.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Site Sans";  src: url("../fonts/sans.woff2")  format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Site Brush"; src: url("../fonts/brush.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Site Kai";   src: url("../fonts/kai.woff2")   format("woff2"); font-display: swap; }

:root {
  --paper: #f3eee4;
  --paper-2: #e9e1d2;
  --paper-3: #ddd2bf;
  --ink: #171917;
  --ink-2: #33362f;
  --muted: #6f6a5f;
  --line: rgba(23, 25, 23, .14);
  --seal: #b4372b;
  --seal-2: #8f2a20;
  --jade: #2d6d66;
  --gold: #c8a25a;

  --night: #0b1513;
  --night-2: #10201d;
  --night-3: #18302b;
  --moon: #ebe5d7;
  --moon-2: rgba(235, 229, 215, .68);

  --comic: #f5c518;
  --comic-ink: #12223a;

  --serif: "Site Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Site Sans", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --brush: "Site Brush", "Zhi Mang Xing", var(--serif);
  --kai: "Site Kai", "LXGW WenKai", "KaiTi", var(--serif);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.8 var(--sans);
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: .04em; }
p { margin: 0; }
::selection { background: var(--seal); color: #fff; }

/* 宣纸纹理：极淡的噪点，叠在纸色页面上 */
.paper-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .32 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- 顶栏 ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease), color .4s;
}
.nav.is-scrolled { background: rgba(243, 238, 228, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 10px; box-shadow: 0 1px 0 var(--line); }
.nav--dark { color: var(--moon); }
.nav--dark.is-scrolled { background: rgba(11, 21, 19, .82); box-shadow: 0 1px 0 rgba(235, 229, 215, .1); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; letter-spacing: .12em; }
.brand__seal {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--seal); color: #f7e9dc; border-radius: 6px;
  font: 400 21px/1 var(--brush); letter-spacing: 0;
  box-shadow: inset 0 0 0 2px rgba(247, 233, 220, .25);
}
.brand__name { font-size: 17px; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); font-size: 15px; }
.nav__links a { position: relative; padding: 4px 0; opacity: .82; transition: opacity .3s; }
.nav__links a:hover, .nav__links a[aria-current] { opacity: 1; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: .08em;
  border: 1px solid currentColor; transition: all .35s var(--ease); cursor: pointer; white-space: nowrap;
}
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--seal); border-color: var(--seal); transform: translateY(-2px); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--moon { background: var(--moon); color: var(--night); border-color: var(--moon); }
.btn--moon:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.btn--moon-ghost { color: var(--moon); }
.btn--moon-ghost:hover { background: rgba(235, 229, 215, .12); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none !important; }
.btn svg { width: 18px; height: 18px; }

/* ---------- 通用排版 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 13px/1 var(--sans); letter-spacing: .32em; color: var(--seal);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.section__head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 720px; }
.section__title { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; }
.section__lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); }
.vert { writing-mode: vertical-rl; font-family: var(--serif); letter-spacing: .4em; }

/* 滚动进场 */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   首页
   ============================================================ */
.home-hero {
  min-height: 100svh; display: grid; align-items: center;
  padding: 96px var(--gutter) 72px; position: relative; overflow: hidden;
}
.home-hero__grid {
  width: min(1320px, 100%); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.home-hero__kicker { margin-bottom: 28px; }
.home-hero__title {
  font-size: clamp(40px, 5.4vw, 78px); font-weight: 900; line-height: 1.16; letter-spacing: .06em;
}
.home-hero__title em { font-style: normal; color: var(--seal); }
.home-hero__lead { margin-top: 30px; max-width: 30em; font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); }
.home-hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }
.home-hero__art { position: relative; aspect-ratio: 1 / 1; }
.home-hero__art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(75% 75% at 50% 50%, #000 62%, transparent 100%);
}
.home-hero__art .vert {
  position: absolute; right: -34px; top: 6%; font-size: 14px; color: var(--muted);
}
.home-hero__stamp {
  position: absolute; left: -18px; bottom: 12%;
  width: 84px; height: 84px; display: grid; place-items: center;
  background: var(--seal); color: #f6e7d8; border-radius: 10px;
  font: 400 38px/1 var(--brush); transform: rotate(-6deg);
  box-shadow: 0 18px 40px -16px rgba(143, 42, 32, .55);
}
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .3em; color: var(--muted); display: grid; justify-items: center; gap: 10px;
}
.scroll-hint::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--muted), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* 作品大幅面板 */
.works { padding-top: clamp(40px, 8vw, 100px); }
.work {
  position: relative; display: grid; overflow: hidden; isolation: isolate;
  margin: 0 var(--gutter) clamp(28px, 4vw, 48px); border-radius: 22px;
  min-height: min(86vh, 820px);
}
.work__media { position: absolute; inset: 0; z-index: -1; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.work:hover .work__media img { transform: scale(1.0); }
.work__body {
  align-self: end; padding: clamp(28px, 5vw, 72px); display: grid; gap: 18px; max-width: 760px;
}
.work__index { font: 500 13px/1 var(--sans); letter-spacing: .32em; opacity: .75; }
.work__title { font-size: clamp(44px, 7vw, 96px); line-height: 1; font-weight: 900; }
.work__tagline { font-size: clamp(17px, 1.6vw, 21px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 5px 14px; border: 1px solid currentColor; border-radius: 999px; font-size: 13px; letter-spacing: .08em; opacity: .85; }
.work__cta { margin-top: 10px; justify-self: start; }

.work--game { color: var(--moon); background: var(--night); }
.work--game::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 21, 19, 0) 30%, rgba(11, 21, 19, .55) 62%, rgba(11, 21, 19, .92)); }
.work--game .work__title { font-family: var(--brush); font-weight: 400; font-size: clamp(72px, 11vw, 150px); letter-spacing: .06em; }

.work--app { color: var(--comic-ink); background: var(--comic); grid-template-columns: 1fr 1fr; align-items: center; }
.work--app .work__body { align-self: center; }
.work--app .work__title { font-size: clamp(40px, 6vw, 80px); }
.work--app .halftone {
  position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: radial-gradient(var(--comic-ink) 1.2px, transparent 1.6px); background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 85%); mask-image: linear-gradient(120deg, transparent 30%, #000 85%);
}
.work__phones { position: relative; height: 100%; min-height: 520px; }
.work__app-icon { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 14px 30px -10px rgba(18, 34, 58, .45); }

/* 手机外框 */
.phone {
  position: absolute; width: clamp(180px, 17vw, 250px); aspect-ratio: 9 / 19.5;
  border-radius: 34px; padding: 9px; background: #101114;
  box-shadow: 0 40px 80px -30px rgba(18, 34, 58, .6), inset 0 0 0 1.5px #3a3c42;
}
.phone img, .phone .phone__ph { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; background: var(--paper); }
.phone .phone__ph { display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 20px; }
.work__phones .phone:nth-child(1) { left: 0; top: 16%; transform: rotate(-7deg); }
.work__phones .phone:nth-child(2) { left: 28%; top: 6%; z-index: 2; }
.work__phones .phone:nth-child(3) { left: 56%; top: 18%; transform: rotate(7deg); }

/* 关于 */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__art { position: relative; aspect-ratio: 3 / 4; }
.about__art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(70% 72% at 50% 48%, #000 55%, transparent 100%); mask-image: radial-gradient(70% 72% at 50% 48%, #000 55%, transparent 100%); }
.about__text { display: grid; gap: 22px; }
.about__text p { font-size: 17px; color: var(--ink-2); }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 12px; }
.skill { background: var(--paper); padding: 22px 20px; display: grid; gap: 6px; }
.skill b { font-family: var(--serif); font-size: 18px; }
.skill span { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 联系 / 页脚 */
.contact { text-align: center; display: grid; justify-items: center; gap: 26px; }
.contact__title { font-size: clamp(36px, 6vw, 72px); font-weight: 900; }
.contact__mail { font: 500 clamp(18px, 2.4vw, 28px)/1.4 var(--serif); border-bottom: 1px solid var(--seal); padding-bottom: 4px; transition: color .3s; }
.contact__mail:hover { color: var(--seal); }
.footer { padding: 36px var(--gutter); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.footer--dark { color: var(--moon-2); border-color: rgba(235, 229, 215, .12); background: var(--night); }

/* ============================================================
   游戏页（夜色水墨）
   ============================================================ */
.page-game { background: var(--night); color: var(--moon); }
.page-game .paper-grain { mix-blend-mode: screen; opacity: .12; }
.page-game .section__lead { color: var(--moon-2); }
.page-game .eyebrow { color: var(--gold); }

.g-hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.g-hero__bg { position: absolute; inset: -4% 0 0; z-index: -2; }
.g-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.g-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(11, 21, 19, .78) 0%, rgba(11, 21, 19, .35) 45%, rgba(11, 21, 19, 0) 70%),
  linear-gradient(180deg, rgba(11, 21, 19, 0) 55%, var(--night) 100%); }
.g-hero__mist { position: absolute; inset: auto -20% 8% -20%; height: 36%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 50%, rgba(235, 229, 215, .22), transparent 70%); filter: blur(18px); animation: mist 18s ease-in-out infinite alternate; }
@keyframes mist { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.g-hero__body { padding: 0 var(--gutter) clamp(64px, 10vh, 120px); width: min(1320px, 100%); margin-inline: auto; display: grid; gap: 22px; }
.g-logo { font: 400 clamp(110px, 17vw, 230px)/.9 var(--brush); letter-spacing: .02em; color: var(--moon); text-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.g-logo small { font: 500 14px/1 var(--sans); letter-spacing: .3em; vertical-align: top; margin-left: 10px; color: var(--moon-2); }
.g-hero__tag { font: 400 clamp(20px, 2.2vw, 28px)/1.6 var(--kai); max-width: 22em; }
.g-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.g-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; font-size: 14px; color: var(--moon-2); }
.g-facts b { color: var(--moon); font-weight: 500; margin-right: 6px; }

.g-pitch { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.g-pitch .vert { font-size: clamp(22px, 2.4vw, 30px); color: var(--gold); line-height: 1.6; }
.g-pitch__text { font: 400 clamp(20px, 2.1vw, 27px)/2 var(--serif); color: var(--moon); max-width: 34em; }
.g-pitch__text strong { color: var(--gold); font-weight: 600; }

.pillars { display: grid; gap: clamp(64px, 10vw, 140px); }
.pillar { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.pillar:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.pillar:nth-child(even) .pillar__media { order: 2; }
.pillar__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8); aspect-ratio: 16 / 10; background: var(--night-2); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; }
.pillar__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(235, 229, 215, .1); }
.pillar__text { display: grid; gap: 18px; }
.pillar__no { font: 400 64px/1 var(--brush); color: var(--gold); opacity: .8; }
.pillar__title { font-size: clamp(26px, 3vw, 38px); }
.pillar__text p { color: var(--moon-2); font-size: 17px; }

/* 五行卡面墙 */
.cardwall { display: grid; gap: 18px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cardwall__row { display: flex; gap: 18px; width: max-content; animation: drift 70s linear infinite; }
.cardwall__row:nth-child(2) { animation-direction: reverse; animation-duration: 80s; }
.cardwall:hover .cardwall__row { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.gcard { margin: 0; width: clamp(200px, 20vw, 260px); flex: none; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 520 / 440; background: var(--night-2); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); }
.gcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gcard:hover img { transform: scale(1.06); }
.gcard figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; font: 600 15px/1 var(--serif); letter-spacing: .2em; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.gcard figcaption i { font-style: normal; font-size: 12px; margin-left: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .35); letter-spacing: .1em; }
.el-metal { color: #f2e6c8; } .el-wood { color: #bfe8c4; } .el-water { color: #bfe0f2; } .el-fire { color: #ffd0b8; } .el-earth { color: #f0d6a2; }

.wuxing { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 2vw, 26px); margin-bottom: 44px; }
.wuxing span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 400 30px/1 var(--brush); border: 1px solid rgba(235, 229, 215, .25); }

/* 角色与灵兽 */
.cast { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.cast__hero { position: relative; display: grid; justify-items: center; }
.cast__hero img { width: min(100%, 520px); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55)); }
.cast__hero::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; top: 10%; background: radial-gradient(circle, rgba(200, 162, 90, .22), transparent 70%); z-index: -1; }
.cast__name { position: absolute; left: 0; top: 4%; font: 400 64px/1 var(--brush); color: var(--moon); }
.beasts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.beast { position: relative; border-radius: var(--radius); padding: 18px 16px 16px; background: linear-gradient(160deg, var(--night-3), var(--night-2)); border: 1px solid rgba(235, 229, 215, .08); display: grid; gap: 8px; transition: transform .5s var(--ease), border-color .5s; overflow: hidden; }
.beast:hover { transform: translateY(-6px); border-color: rgba(200, 162, 90, .45); }
.beast__img { height: 150px; display: grid; place-items: center; }
.beast__img img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .5)); }
.beast b { font: 400 30px/1 var(--brush); letter-spacing: .06em; }
.beast span { font-size: 13px; color: var(--moon-2); line-height: 1.6; font-family: var(--kai); }

/* 画廊 */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery a { position: relative; border-radius: 12px; overflow: hidden; grid-column: span 4; aspect-ratio: 16 / 9; background: var(--night-2); }
.gallery a.is-wide { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); }
.gallery a:hover img { transform: scale(1.05); filter: saturate(1.05); }
.gallery a span { position: absolute; left: 14px; bottom: 12px; font-size: 13px; letter-spacing: .14em; color: var(--moon); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shots a { border-radius: 12px; overflow: hidden; display: block; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); position: relative; }
.shots a img { transition: transform 1.2s var(--ease); }
.shots a:hover img { transform: scale(1.03); }
.shots a span { position: absolute; left: 14px; bottom: 12px; font-size: 13px; letter-spacing: .14em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }

.g-final { position: relative; min-height: 80vh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; }
.g-final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.g-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night) 0%, rgba(11, 21, 19, .25) 30%, rgba(11, 21, 19, .55) 100%); }
.g-final h2 { font: 400 clamp(44px, 7vw, 96px)/1.2 var(--brush); color: var(--moon); text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.g-final p { margin: 18px 0 34px; font: 400 19px/1.8 var(--kai); }

/* ============================================================
   App 页（纸白 + 漫画黄）
   ============================================================ */
.page-app { --accent: var(--seal); }
.a-hero { min-height: 100svh; padding: 120px var(--gutter) 60px; display: grid; align-items: center; position: relative; overflow: hidden; }
.a-hero__grid { width: min(1240px, 100%); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.a-hero__icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 20px 40px -14px rgba(18, 34, 58, .45); margin-bottom: 30px; }
.a-hero__title { font-size: clamp(44px, 6.4vw, 86px); font-weight: 900; }
.a-hero__lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 26em; }
.a-hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 11px 22px 11px 18px; border-radius: 14px; background: var(--ink); color: var(--paper); transition: transform .3s var(--ease), background .3s; }
.store-btn:hover { transform: translateY(-2px); background: var(--seal); }
.store-btn small { display: block; font-size: 11px; opacity: .7; letter-spacing: .08em; line-height: 1.2; }
.store-btn b { display: block; font: 600 16px/1.3 var(--sans); letter-spacing: .04em; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.a-hero__note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.a-hero__stage { position: relative; height: min(76vh, 700px); }
.a-hero__stage::before { content: ""; position: absolute; inset: 6% 2% 4% 8%; background: var(--comic); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; z-index: -1; }
.a-hero__stage::after { content: ""; position: absolute; inset: 6% 2% 4% 8%; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; z-index: -1; opacity: .2; background-image: radial-gradient(var(--comic-ink) 1.2px, transparent 1.6px); background-size: 13px 13px; }
.a-hero__stage .phone { width: clamp(200px, 19vw, 280px); }
.a-hero__stage .phone:nth-child(1) { left: 8%; top: 12%; transform: rotate(-8deg); }
.a-hero__stage .phone:nth-child(2) { right: 8%; top: 2%; transform: rotate(5deg); z-index: 2; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.feature { background: var(--paper); padding: clamp(24px, 3vw, 38px); display: grid; gap: 12px; align-content: start; transition: background .4s; }
.feature:hover { background: #f7f3eb; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--comic); color: var(--comic-ink); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 21px; }
.feature p { font-size: 15px; color: var(--muted); line-height: 1.75; }

.spot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.spot--flip .spot__media { order: 2; }
.spot__media { position: relative; display: grid; place-items: center; min-height: 560px; }
.spot__media .phone { position: relative; width: clamp(220px, 22vw, 300px); }
.spot__media.is-fold .fold { width: min(100%, 560px); aspect-ratio: 2416 / 2210; border-radius: 26px; padding: 10px; background: #101114; box-shadow: 0 40px 80px -30px rgba(18, 34, 58, .55), inset 0 0 0 1.5px #3a3c42; }
.spot__media.is-fold .fold img, .spot__media.is-fold .fold .phone__ph { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.spot__text { display: grid; gap: 18px; }
.spot__text h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; }
.spot__text p { color: var(--ink-2); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 16px; border-radius: 50%; background: var(--comic); box-shadow: inset 0 0 0 4px var(--comic-ink); transform: translateY(-25%); }

.formats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.formats span { padding: 10px 18px; border-radius: 10px; background: var(--paper-2); font: 600 15px/1 var(--sans); letter-spacing: .06em; }

.strip { display: flex; gap: 22px; overflow-x: auto; padding: 10px var(--gutter) 40px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.strip .phone { position: relative; flex: none; scroll-snap-align: center; width: clamp(200px, 21vw, 270px); }
.strip figure { margin: 0; display: grid; gap: 14px; justify-items: center; flex: none; scroll-snap-align: center; }
.strip figcaption { font-size: 14px; color: var(--muted); }

.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.platform { border-radius: 20px; padding: clamp(26px, 3vw, 40px); display: grid; gap: 10px; background: var(--paper-2); }
.platform h3 { font-size: 24px; display: flex; align-items: center; gap: 12px; }
.platform p { color: var(--ink-2); font-size: 15px; }
.platform--dark { background: var(--comic-ink); color: #f1ead9; }
.platform--dark p { color: rgba(241, 234, 217, .75); }

/* ---------- 看大图 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(5, 9, 8, .92); opacity: 0; pointer-events: none; transition: opacity .35s; padding: 4vmin; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox p { color: var(--moon-2); margin-top: 14px; text-align: center; font-size: 14px; letter-spacing: .1em; }
.lightbox button { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }

/* ============================================================
   窄屏
   ============================================================ */
@media (max-width: 960px) {
  .home-hero__grid, .about, .g-pitch, .pillar, .pillar:nth-child(even), .cast, .a-hero__grid, .spot, .platforms { grid-template-columns: 1fr; }
  .pillar:nth-child(even) .pillar__media, .spot--flip .spot__media { order: 0; }
  .home-hero__art { max-width: 460px; width: 100%; justify-self: center; }
  .work--app { grid-template-columns: 1fr; }
  .work__phones { min-height: 440px; }
  .features { grid-template-columns: 1fr 1fr; }
  .g-pitch .vert { writing-mode: horizontal-tb; letter-spacing: .2em; }
  .gallery a, .gallery a.is-wide { grid-column: span 6; grid-row: auto; aspect-ratio: 16 / 9; }
  .a-hero__stage { height: 560px; }
  .spot__media { min-height: 0; padding-block: 20px; }
}
@media (max-width: 640px) {
  .nav__links { gap: 16px; font-size: 14px; }
  .brand__name { display: none; }
  .features { grid-template-columns: 1fr; }
  .beasts { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; }
  .gallery a, .gallery a.is-wide { grid-column: span 12; }
  .work { margin-inline: 12px; min-height: 78vh; }
  .work__phones .phone { width: 150px; }
  .work__phones .phone:nth-child(2) { left: 30%; }
  .a-hero__stage { height: 480px; }
  .a-hero__stage .phone { width: 190px; }
  .home-hero__stamp { left: 0; width: 64px; height: 64px; font-size: 30px; }
}

/* ============================================================
   第二轮（照大厂参照）：撕纸分隔、印章按钮、页签、版本卡、问答
   ============================================================ */

/* 撕纸边：放在一段的顶部，颜色取这一段的底色 */
.torn { position: relative; }
.torn::before {
  content: ""; position: absolute; left: 0; right: 0; top: -58px; height: 60px; z-index: 2; pointer-events: none;
  background: var(--torn-color, var(--paper));
  -webkit-mask: url("../assets/brand/torn.svg") center / 100% 100% no-repeat; mask: url("../assets/brand/torn.svg") center / 100% 100% no-repeat;
}
.torn--night { --torn-color: var(--night); }
.torn--night2 { --torn-color: var(--night-2); background: var(--night-2); }
.torn--paper2 { --torn-color: var(--paper-2); background: var(--paper-2); }

/* 印章 / 木牌样式的主按钮 */
.btn--seal {
  position: relative; border: 0; color: #fbeee2; padding: 16px 34px; border-radius: 6px;
  background: linear-gradient(180deg, #c4473a, #9c2f24); font: 600 16px/1 var(--serif); letter-spacing: .16em;
  box-shadow: 0 14px 34px -14px rgba(156, 47, 36, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--seal::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(251, 238, 226, .45); border-radius: 3px; pointer-events: none; }
.btn--seal:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--plaque {
  position: relative; border: 1px solid rgba(200, 162, 90, .55); color: var(--moon); padding: 15px 30px; border-radius: 6px;
  background: rgba(11, 21, 19, .45); backdrop-filter: blur(6px); font: 500 16px/1 var(--serif); letter-spacing: .16em;
}
.btn--plaque:hover { background: rgba(200, 162, 90, .18); }

/* 顶栏右侧常驻按钮 */
.nav__cta { margin-left: clamp(12px, 2vw, 24px); padding: 9px 18px; font-size: 14px; }
.nav__right { display: flex; align-items: center; }

/* 游戏首屏：Logo 居中 */
.g-hero { align-items: center; }
.g-hero::before { background:
  radial-gradient(70% 55% at 50% 58%, rgba(11, 21, 19, .55), rgba(11, 21, 19, 0) 70%),
  linear-gradient(180deg, rgba(11, 21, 19, .35) 0%, rgba(11, 21, 19, 0) 25%, rgba(11, 21, 19, 0) 60%, var(--night) 100%); }
.g-hero__body { justify-items: center; text-align: center; padding-top: 18vh; }
.g-hero__body .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.g-hero__tag { margin-inline: auto; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.g-hero__actions { justify-content: center; }
.g-facts { justify-content: center; }
.g-logo { text-shadow: 0 6px 30px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .4); }
.platform-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.pbadge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 8px; font-size: 13px; letter-spacing: .06em; background: rgba(0, 0, 0, .38); border: 1px solid rgba(235, 229, 215, .2); color: var(--moon); }
.pbadge svg { width: 18px; height: 18px; }
.pbadge em { font-style: normal; opacity: .6; font-size: 12px; }

/* 五行页签 */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tab-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px 10px 12px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid rgba(235, 229, 215, .2); color: var(--moon-2); font: 500 15px/1 var(--sans); letter-spacing: .1em;
  transition: all .35s var(--ease);
}
.tab-btn b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 400 21px/1 var(--brush); border: 1px solid currentColor; }
.tab-btn:hover { color: var(--moon); border-color: rgba(235, 229, 215, .45); }
.tab-btn[aria-selected="true"] { color: var(--night); background: var(--moon); border-color: var(--moon); }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.cardgrid .gcard { width: auto; }
.cardgrid .gcard[hidden] { display: none; }
.cardgrid .gcard { animation: cardIn .6s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* App：阅读模式对比 */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); align-items: end; justify-items: center; }
.modes figure { margin: 0; display: grid; justify-items: center; gap: 18px; }
.modes .phone { position: relative; width: clamp(180px, 20vw, 270px); }
.modes figcaption { text-align: center; }
.modes figcaption b { display: block; font: 700 20px/1.4 var(--serif); }
.modes figcaption span { font-size: 14px; color: var(--muted); }
.modes--dark { background: var(--comic-ink); color: #f1ead9; }
.modes--dark .section__lead, .modes--dark .modes figcaption span { color: rgba(241, 234, 217, .7); }
.modes--dark .eyebrow { color: var(--comic); }

/* App：版本卡 */
.release { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 40px); border-radius: 20px; background: #fff8e6; border: 1px solid rgba(18, 34, 58, .1); box-shadow: 0 30px 60px -40px rgba(18, 34, 58, .45); }
.release__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.release__meta b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.release h3 { font-size: 24px; display: flex; align-items: center; gap: 12px; }
.release .pill { font: 600 12px/1 var(--sans); padding: 5px 10px; border-radius: 999px; background: var(--comic); color: var(--comic-ink); letter-spacing: .08em; }

/* 常见问题 */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: 14px; background: var(--paper-2); padding: 4px 22px; transition: background .3s; }
.faq details[open] { background: #efe8da; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font: 600 17px/1.5 var(--serif); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 24px/1 var(--sans); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); font-size: 15px; }

/* 合规信息 */
.compliance { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; font-size: 13px; color: var(--muted); padding: 18px var(--gutter) 0; }

@media (max-width: 960px) {
  .modes { grid-template-columns: 1fr; }
  .release { grid-template-columns: 1fr; }
  .nav__cta { display: none; }
}
.nav__links { margin-left: auto; }
@media (max-width: 640px) {
  .home-hero__title { font-size: 33px; letter-spacing: .03em; }
  .home-hero__art .vert { display: none; }
  .g-logo { font-size: 104px; }
}
@media (max-width: 640px) {
  .cardgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gcard figcaption { font-size: 13px; letter-spacing: .1em; }
}

/* ============================================================
   第三轮：四件作品——两款新游戏并排半宽卡片、各自的主题色
   ============================================================ */
.works__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin: 0 var(--gutter) clamp(28px, 4vw, 48px); }
.works__pair .work { margin: 0; min-height: min(78vh, 720px); }
.works__pair .work__title { font-size: clamp(48px, 5.4vw, 84px); }
.work--dark { color: var(--moon); background: #0d0b0b; }
.work--dark::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .6) 65%, rgba(0, 0, 0, .9)); }
.work--dark .work__title { font-family: var(--brush); font-weight: 400; letter-spacing: .06em; }

/* 游戏页主题：在 .page-game 上换色 */
.theme-daoyan { --night: #0e0a09; --night-2: #170f0d; --night-3: #26150f; --gold: #c9483a; --moon: #efe4d6; --moon-2: rgba(239, 228, 214, .7); }
.theme-baigui { --night: #090b14; --night-2: #0f1220; --night-3: #1a1d33; --gold: #e8a24a; --moon: #ece6dc; --moon-2: rgba(236, 230, 220, .7); }

@media (max-width: 960px) {
  .works__pair { grid-template-columns: 1fr; }
}

/* 概念图标注 */
.concept-note { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; letter-spacing: .08em; color: var(--moon); background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .18); }
.concept-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-credit { position: absolute; right: var(--gutter); bottom: 22px; font-size: 12px; letter-spacing: .1em; color: var(--moon-2); z-index: 2; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 40px); }
.duo figure { margin: 0; display: grid; gap: 16px; }
.duo img { border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.duo figcaption b { display: block; font: 400 34px/1.2 var(--brush); color: var(--moon); }
.duo figcaption span { font-size: 15px; color: var(--moon-2); }
.sprites { margin-top: 40px; border-radius: var(--radius); overflow: hidden; image-rendering: pixelated; }
.sprites img { width: 100%; image-rendering: pixelated; }
.sprites + p { margin-top: 12px; font-size: 13px; color: var(--moon-2); text-align: center; }
.cast--two { grid-template-columns: 1fr 1fr; }
.cast--two .cast__hero img { max-height: 620px; width: auto; }
@media (max-width: 960px) { .duo, .cast--two { grid-template-columns: 1fr; } }

.beast__img { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.beast__img img { max-height: 100%; max-width: 100%; height: auto; width: auto; }
@media (max-width: 640px) {
  .theme-daoyan .g-logo, .theme-baigui .g-logo { font-size: 78px; }
  .theme-daoyan .g-hero__tag, .theme-baigui .g-hero__tag { font-size: 18px; }
}
