/* ============== Biekka Games shared styles ============== */
:root {
  --brown: #56402F;
  --brown-2: #3e2c1f;
  --tan:   #C79C7B;
  --cream: #E4E1C9;
  --sage:  #E9EBE5;
  --ink:   #3B2C20;
  --paper: #F7F5EA;
  --shadow-soft: 0 20px 50px -20px rgba(86,64,47,.28);
  --shadow-lift: 0 30px 80px -30px rgba(86,64,47,.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
/* 自托管字体 */
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk.woff2?v=60b0700b1ed3') format('woff2'),
       url('fonts/SpaceGrotesk.ttf?rev=20261125') format('truetype-variations'),
       url('fonts/SpaceGrotesk.ttf?rev=20261125') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/PlusJakartaSans.woff2?v=88a6539a52ad') format('woff2'),
       url('fonts/PlusJakartaSans.ttf?rev=20261125') format('truetype-variations'),
       url('fonts/PlusJakartaSans.ttf?rev=20261125') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/PlusJakartaSans-Italic.woff2?v=9ae9bb604cf7') format('woff2'),
       url('fonts/PlusJakartaSans-Italic.ttf?rev=20261125') format('truetype-variations'),
       url('fonts/PlusJakartaSans-Italic.ttf?rev=20261125') format('truetype');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Latin.woff2?v=1dc044f4824f') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Serif SC Display';
  src: url('fonts/NotoSerifSC-Display-700.woff2?v=1a7a0e1a3aba&rev=20261125') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* 主要标题、正文和界面标签各用对应字体。 */
:root {
  --font-display: 'Noto Serif SC Display', 'Songti SC', 'STSong', 'Noto Serif CJK SC', Georgia, serif;
  --font-heading: 'Space Grotesk', '仓耳与墨W04', 'TsangerYuMoW04', 'Source Han Sans SC', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Source Han Sans SC', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
}
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}
[data-lang="cn"] .lang-en { display: none !important; }
[data-lang="en"] .lang-cn { display: none !important; }
button, input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
#main-content :is(h1, h2, h3) {
  font-family: var(--font-display);
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 4px;
}
footer :focus-visible { outline-color: var(--paper); }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 101;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--brown);
  transform: translateY(calc(-100% - 20px));
}
.skip-link:focus { transform: none; }
main#main-content:focus { outline: none; }

/* ============== 整屏分页（桌面） ============== */
:root {
  --ease-out: cubic-bezier(.16,1,.3,1);
  --nav-h: 78px;
}
@media (min-width: 961px) and (min-height: 620px) {
  html {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
  }
  [data-page] {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
    min-height: 100svh;
  }
  body > footer { scroll-snap-align: end; }
}

/* ============== 入场动效：每屏进入视口时，内容依次浮现 ============== */
html.motion [data-page]:not(.seen) .anim,
html.motion footer.anim-footer:not(.seen) .footer-inner > *,
html.motion footer.anim-footer:not(.seen) .beian { opacity: 0; }

html.motion [data-page].seen .anim {
  animation: rise .9s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 90ms + 80ms);
}
html.motion footer.anim-footer.seen .footer-inner > *,
html.motion footer.anim-footer.seen .beian {
  animation: rise .8s var(--ease-out) backwards;
}
html.motion footer.anim-footer.seen .footer-inner > :nth-child(2) { animation-delay: .08s; }
html.motion footer.anim-footer.seen .footer-inner > :nth-child(3) { animation-delay: .16s; }
html.motion footer.anim-footer.seen .beian { animation-delay: .26s; }

@keyframes rise {
  from { opacity: 0; translate: 0 28px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ============== 右侧分页圆点 ============== */
.page-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  translate: 0 -50%;
  z-index: 90;
  display: none;
  flex-direction: column;
  gap: 4px;
}
@media (min-width: 961px) and (min-height: 620px) {
  .page-dots { display: flex; }
}
.page-dots button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.page-dots button::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(86,64,47,.28);
  transition: height .45s var(--ease-out), background-color .3s ease;
}
.page-dots button:hover::after { background: rgba(86,64,47,.6); }
.page-dots button.active::after { height: 20px; background: var(--brown); }
.page-dots.on-dark { filter: drop-shadow(0 1px 3px rgba(20,14,10,.45)); }
.page-dots.on-dark button::after { background: rgba(247,245,234,.55); }
.page-dots.on-dark button:hover::after { background: rgba(247,245,234,.75); }
.page-dots.on-dark button.active::after { background: var(--paper); }

/* ============== Navbar ============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  font-family: var(--font-display);
  padding: 18px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: rgba(247,245,234,.89);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border-bottom: 1px solid rgba(86,64,47,.06);
  transition: padding .24s ease, background-color .24s ease, box-shadow .24s ease;
}
.nav.scrolled {
  padding: 12px 44px;
  background: rgba(247,245,234,.96);
  box-shadow: 0 6px 20px -8px rgba(86,64,47,.15);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity .2s;
}
.nav-brand:hover { opacity: .82; }
.nav-brand img {
  width: 42px; height: 42px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--paper);
  padding: 4px;
  box-shadow: 0 4px 12px rgba(86,64,47,.18);
}
.nav-brand .name {
  font-weight: 700;
  font-size: 22px;
  color: var(--brown);
  letter-spacing: .04em;
}
[data-lang="cn"] .nav-brand .name { letter-spacing: .06em; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  position: relative;
  padding: 9px 16px;
  border-radius: 12px;
  color: var(--brown);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: .85;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: opacity .2s, background-color .2s;
  cursor: pointer;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--tan);
  border-radius: 2px;
  transition: transform .22s ease;
  transform: scaleX(0);
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.active {
  opacity: 1;
  background: rgba(86,64,47,.06);
}
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link.active::after {
  transform: scaleX(1);
}

.nav-lang {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: rgba(86,64,47,.08);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}
.nav-lang button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--brown);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: all .2s;
  opacity: .65;
}
.nav-lang button:hover { opacity: 1; }
.nav-lang button.active {
  background: var(--brown);
  color: var(--paper);
  opacity: 1;
  box-shadow: 0 4px 10px -4px rgba(86,64,47,.4);
}

/* ============== Page placeholder (Games / Publish / About) ============== */
.page-placeholder {
  min-height: calc(100vh - 88px);
  padding: 160px 44px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(199,156,123,.22), transparent 55%),
    radial-gradient(ellipse at 8% 92%, rgba(86,64,47,.09), transparent 55%),
    var(--paper);
}
.pp-inner {
  max-width: 720px;
  text-align: center;
}
.pp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Caveat', cursive;
  color: var(--tan);
  font-size: 22px;
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.pp-eyebrow::before,
.pp-eyebrow::after {
  content: "";
  display: inline-block;
  width: 30px; height: 2px;
  background: var(--tan);
  border-radius: 2px;
}
.pp-inner h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(44px, 5vw, 68px);
  color: var(--brown);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 20px;
}
.pp-inner h1 em { font-style: italic; color: var(--tan); font-weight: 400; }
.pp-inner p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  opacity: .75;
  margin: 0 0 34px;
}
.pp-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--brown);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  transition: all .25s;
}
.pp-back:hover {
  background: var(--tan);
  color: var(--brown-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(199,156,123,.6);
}
.pp-back i { transition: transform .25s; }
.pp-back:hover i { transform: translateX(-4px); }

/* ============== Footer ============== */
footer {
  padding: 60px 44px 40px;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-2) 100%);
  color: var(--paper);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
}
/* 社交媒体（居中偏左，单行） */
.socials {
  order: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 auto;
}
/* 中间竖线分隔 */
.footer-divider {
  order: 2;
  width: 1px;
  align-self: stretch;
  min-height: 130px;
  background: linear-gradient(180deg, transparent 0%, rgba(247,245,234,.2) 20%, rgba(247,245,234,.28) 50%, rgba(247,245,234,.2) 80%, transparent 100%);
  flex: 0 0 auto;
}
/* 可选链接（如媒体材料包） */
.footer-inner > .footer-links {
  order: 3;
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
}
/* 第二条竖线（放在 links 和 contacts 之间） */
.footer-inner > .footer-divider.divider-2 {
  order: 4;
}
/* 邮箱（居中偏右，上下两个 + 公共邮箱标题） */
.contacts {
  order: 5;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  flex: 0 0 auto;
  position: relative;
  padding-top: 4px;
}
[data-lang="cn"] .contacts::before { content: "公 共 邮 箱"; }
[data-lang="en"] .contacts::before { content: "Public Emails"; }
.contacts::before {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 10px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.contact-item .contact-label {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(247,245,234,.65);
}
[data-lang="cn"] .contact-item .contact-label {
  font-family: var(--font-body);
  letter-spacing: .18em;
  text-transform: none;
  font-size: 14px;
}
.contact-item a {
  color: var(--paper);
  font-size: 16.5px;
  transition: color .2s;
}
.contact-item a:hover { color: var(--tan); }
.social {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(247,245,234,.08);
  border: 1px solid rgba(247,245,234,.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-size: 18px;
  transition: all .25s;
  position: relative;
}
.social:hover {
  background: var(--tan);
  color: var(--brown-2);
  border-color: var(--tan);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px -6px rgba(199,156,123,.6);
}
.social .txt {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
}
.social[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  color: var(--brown);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  letter-spacing: .04em;
}
.social:hover::after, .social:focus-visible::after { opacity: 1; }

/* 汉堡按钮（默认桌面隐藏） */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: 12px;
  transition: background .2s;
  margin-left: auto;
}
.nav-burger:hover { background: rgba(86,64,47,.08); }
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  position: relative;
  transition: transform .3s, opacity .3s;
}
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform .3s;
}
.nav-burger span::before { top: -7px; }
.nav-burger span::after  { top: 7px; }
.nav-open .nav-burger span { background: transparent; }
.nav-open .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ============== Responsive ============== */
@media (min-width: 961px) and (max-width: 1080px) {
  .nav, .nav.scrolled { padding-inline: 24px; }
  .nav { gap: 14px; }
  .nav-menu { gap: 4px; }
  .nav-link { padding-inline: 10px; }
  .nav-link::after { inset-inline: 10px; }
}

@media (max-width: 960px) {
  .nav { padding: 14px 20px; gap: 12px; }
  .nav.scrolled { padding: 10px 20px; }
  .nav-burger { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 20px 24px;
    box-shadow: 0 20px 40px -20px rgba(86,64,47,.35);
    border-bottom: 1px solid rgba(86,64,47,.12);
    transform: translateY(-7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .nav-open .nav-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-link {
    padding: 14px 16px;
    font-size: 17px;
    border-radius: 12px;
    justify-content: flex-start;
    width: 100%;
  }
  .nav-link:hover, .nav-link.active { background: var(--cream); opacity: 1; }
  .nav-link::after { display: none; }
  .nav-lang {
    align-self: flex-start;
    margin-top: 8px;
  }

  .page-placeholder { padding: 130px 20px 80px; }

  /* Footer 手机端：全部纵向居中 */
  footer { padding: 50px 20px 34px; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 26px;
    text-align: center;
  }
  .socials {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
  }
  .social { width: 42px; height: 42px; font-size: 16px; }
  .footer-divider {
    width: 60%;
    min-height: 1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(247,245,234,.28), transparent);
  }
  .contacts {
    flex-direction: column;
    gap: 18px;
    align-items: center;
    padding-top: 0;
  }
  .contacts::before {
    text-align: center;
    width: 100%;
  }
  .contact-item {
    align-items: center;
  }
  .footer-inner > .footer-links {
    order: 3;
    justify-content: center;
  }
}

/* ============== Beian（备案信息） ============== */
.beian {
  max-width: 1400px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 245, 234, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(247, 245, 234, .6);
}
.beian a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.beian a:hover { color: var(--paper); }
.beian .beian-sep {
  color: rgba(247, 245, 234, .3);
  user-select: none;
}
.beian .beian-gongan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.beian .beian-gongan img {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 720px) {
  .beian { font-size: 12px; gap: 6px 14px; }
  .beian .beian-gongan img { width: 12px; height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav, .nav-brand, .nav-menu, .nav-link, .nav-link::after, .nav-lang button,
  .nav-burger, .nav-burger span, .nav-burger span::before, .nav-burger span::after,
  .social, .social::after {
    transition: none;
  }
  .social:hover { transform: none; }
  .page-dots button::after { transition: none; }
}

/* ==========================================================
   装饰效果层（纯装饰，aria-hidden，不含任何文字）
   ========================================================== */

/* 纸张颗粒质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .34  0 0 0 0 .25  0 0 0 0 .18  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* 装饰层宿主：内容压在装饰之上 */
.company, .split.publish, .intro, .features-shots, .about-hero, .careers,
.pub-cover, .pub-section, body > footer {
  position: relative;
  overflow: hidden;
}
:is(.company, .split.publish, .intro, .features-shots, .about-hero, .careers, .pub-cover, .pub-section, body > footer) > :not(.scene, .perch) {
  position: relative;
  z-index: 1;
}
body > footer { overflow: visible; }

/* ---------- 背景层：游戏页用《观鸟笔记》场景，其余页面用工作室原创背景 ---------- */
.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ---------- 页脚上沿：游戏小鸟飞来落脚 ---------- */
.perch {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.perch::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(199,156,123,.85) 10%, rgba(199,156,123,.85) 90%, transparent);
}
.perch-bird {
  position: absolute;
  left: var(--x);
  bottom: calc(var(--feet) * -1);
  width: var(--w);
  height: auto;
  max-width: none;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 5px rgba(0,0,0,.28));
  opacity: 0;
}
.perch.still .perch-bird { opacity: 1; }
.perch.go .perch-bird { animation: perchIn 1.9s cubic-bezier(.25,.65,.35,1) var(--delay) both; }
@keyframes perchIn {
  0%   { opacity: 0; transform: translate(var(--fx), var(--fy)); }
  12%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@media (max-width: 960px) {
  .perch-bird { width: calc(var(--w) * .72); bottom: calc(var(--feet) * -.72); }
  .perch-bird.desk-only { display: none; }
}
html, body { overflow-x: clip; }

/* ---------- 卡片 3D 倾斜 + 跟随光斑 ---------- */
html .fx-tilt {
  position: relative;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), box-shadow .45s var(--ease-out);
  will-change: transform;
}
html .fx-tilt:hover {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  transition: transform .12s linear, box-shadow .45s var(--ease-out);
}
.fx-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,250,235,.38), transparent 45%);
  mix-blend-mode: soft-light;
  transition: opacity .35s ease;
}
.fx-tilt:hover::after { opacity: 1; }
.wish-card.provide.fx-tilt::after { mix-blend-mode: screen; }

/* ---------- 按钮光泽扫过 ---------- */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:is(:hover, :focus-visible)::after { animation: btnShine .9s var(--ease-out); }
}
@keyframes btnShine {
  from { left: -60%; opacity: 1; }
  to   { left: 120%; opacity: 1; }
}

/* ---------- 标题装饰线：进入时画出来 ---------- */
html.motion [data-page].seen .section-title::before,
html.motion [data-page].seen :is(.company-name, .careers h1)::after,
html.motion [data-page].seen .about-intro::before {
  animation: lineDraw 1s var(--ease-out) .45s backwards;
}
html.motion [data-page].seen .section-title::before { transform-origin: left center; }
@keyframes lineDraw {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}

/* ---------- 跨页切换淡入淡出（支持的浏览器自动生效） ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .28s ease both; }
::view-transition-new(root) { animation: vtIn .55s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; translate: 0 14px; } }

@media (prefers-reduced-motion: reduce) {
  html .fx-tilt, html .fx-tilt:hover { transform: none; transition: none; }
  @view-transition { navigation: none; }
}
/* ---------- 工作室背景：暖白纸面，沿用品牌色 ---------- */
.scene-studio {
  background: linear-gradient(117deg, var(--paper) 25%, #f0eadd 76%, #ece4d4);
}
/* 渐变的位置参考 Tinta Morning Linen，使用别卡的配色。 */
.scene-studio.scene-hero {
  background-color: #F0E8DB;
  background-image:
    radial-gradient(at 10% 0%, #FFFDF5 0, transparent 55%),
    radial-gradient(at 85% 5%, #E7D5BD 0, transparent 55%),
    radial-gradient(at 45% 100%, #EEDBC6 0, transparent 55%),
    radial-gradient(at 0% 70%, #E5EBE0 0, transparent 50%);
}
.pub-cover > .scene-studio {
  background: linear-gradient(134deg, var(--paper) 24%, #f1e9db 72%, #e6ddcb);
}
.scene-studio.tint-sage {
  background: linear-gradient(110deg, var(--paper) 15%, var(--sage) 69%, #e0e4d8);
}
.careers > .scene-studio {
  background: linear-gradient(144deg, var(--paper) 13%, #efe9dd 73%, var(--sage));
}
.scene-studio.scene-dark {
  background:
    radial-gradient(ellipse 95% 130% at 0% 0%, #6a503a, transparent 66%),
    linear-gradient(116deg, var(--brown), #302219 84%);
}
