/* 原 PSD 画布为 2560×7626；新版 hero 调整后为2560×7964，原图层向下顺延。
   图片透明度仅存在于 PNG 内，容器不添加不透明衬底。 */
:root { color-scheme: dark; --header-height: calc(100vw * 99 / 2560); }
* { box-sizing: border-box; }
html { background: #000; scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; min-width: 280px; background: #000; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { padding: 0; border: 0; cursor: pointer; background: transparent; font: inherit; }
img { display: block; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, .about-section:focus-visible { outline: 2px solid #a9adf9; outline-offset: 2px; }
.placed { position: absolute; }
.art { object-fit: contain; pointer-events: none; background: transparent; }
.psd-canvas { position: relative; width: 100%; aspect-ratio: 2560 / 7964; overflow: clip; }
.background-layers, .main-nav, .brand-hit, .media-thumbnails, .about-dots { position: absolute; inset: 0; }
.background-layers { pointer-events: none; }
.site-header { position: fixed; top: 0; left: 0; width: 100%; aspect-ratio: 2560 / 99; z-index: 100; background: transparent; }
.brand-hit { pointer-events: none; }
.brand-hit img { pointer-events: auto; }
.main-nav { pointer-events: none; }
.nav-link { display: block; pointer-events: auto; background: transparent; }
.nav-link img { position: absolute; display: block; object-fit: contain; background: transparent; }
.media-stage { overflow: hidden; background: transparent; }
.video-panel { position: relative; width: 100%; height: 100%; background: transparent; }
video, .concept-view { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-cover { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; }
.poster-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.play-image { position: absolute; object-fit: contain; pointer-events: none; }
.media-thumbnails { pointer-events: none; }
.media-thumb { pointer-events: auto; background: transparent; }
.thumb-image { position: relative; width: 100%; height: 100%; object-fit: contain; }
.selection-glow, .selection-orb { position: absolute; object-fit: contain; pointer-events: none; opacity: 0; }
.media-thumb.is-active .selection-glow, .media-thumb.is-active .selection-orb { opacity: 1; }
.about-section { touch-action: pan-y; }
.about-arrow img { position: absolute; object-fit: contain; pointer-events: none; }
.about-dots { pointer-events: none; }
.about-dots button { display: grid; place-items: center; pointer-events: auto; }
.about-dots img { width: 53.125%; height: auto; aspect-ratio: 1; object-fit: contain; }
.email-hit img { width: 100%; height: 100%; object-fit: contain; }
.video-message { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4%; background: #030407ed; }
/* 视频加载失败提示。原为 video-help.png（写着「请将视频命名为 main.mp4 放入 Video 文件夹」），
   属开发期文案，已换成面向访客的正式提示。 */
.video-message-text { margin: 0; color: #d8d1c5; font-size: 1.5vw; letter-spacing: 0.02em; text-align: center; }
.retry-video { width: 32%; max-width: 240px; border: 1px solid #d8d1c562; background: #ffffff06; }
.retry-video img { width: 100%; height: auto; }
.icon-button { display: grid; place-items: center; flex: 0 0 auto; width: clamp(28px,3.3vw,52px); aspect-ratio: 1; }
.icon-button img { width: 74%; height: 74%; }
.message-close { position: absolute; top: 2%; right: 1%; }
.video-controls { position: absolute; bottom: 0; left: 0; width: 100%; display: flex; align-items: center; gap: 1.2%; padding: .5% 1%; background: #000c; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s, visibility .18s; }
/* 只在三种情况下显示：暂停中、鼠标刚动过（.controls-visible）、焦点在控制条内。
   不再用 :hover —— 否则鼠标停在画面上时控制条永远不消失。 */
/* 显示条件分两条写，不能合并成一个选择器列表 ——
   列表里只要有一个选择器不被支持（比如旧浏览器的 :has），整条规则会被整块丢弃，
   连 .is-paused 都会失效，控制条将永远不出现。
   所以基础规则单独写，:has 的部分用 @supports 隔离。 */
.video-panel.is-paused .video-controls,
.video-panel.controls-visible .video-controls { opacity: 1; visibility: visible; pointer-events: auto; }

/* 键盘焦点进到控制条时保持显示（无障碍）。
   用 :focus-visible 而不是 :focus-within —— 后者对鼠标点击也生效，
   点完全屏/静音按钮后焦点留在按钮上，控制条会一直挂着不消失。 */
@supports selector(:has(*)) {
  .video-panel:has(:focus-visible) .video-controls { opacity: 1; visibility: visible; pointer-events: auto; }
}
.seek-bar { flex: 1; min-width: 20px; height: 22px; margin: 0 1%; accent-color: #8c95f0; cursor: pointer; }
.media-stage:fullscreen { width: 100vw !important; height: 100vh !important; left: 0 !important; top: 0 !important; }
.media-stage:fullscreen .icon-button { width: 48px; }
@media (max-width: 600px) {
  :root { --header-height: 52px; }
  .site-header { height: 52px; aspect-ratio: auto; }
  .site-header > .art:first-child { inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: fill; }
  [data-header-effect], [data-header-separators] { display: none; }
  .brand-hit { right: auto; width: 58px; pointer-events: auto; }
  .brand-hit img { left: 11px !important; top: 18px !important; width: 36px !important; height: auto !important; }
  .main-nav { left: 62px; right: 8px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; }
  .nav-link { position: static; width: 100% !important; height: 100% !important; display: grid; place-items: center; }
  .nav-link img { position: static; width: 35px !important; height: auto !important; max-width: 100%; }
  .media-thumb::after { content: ""; position: absolute; inset: -10px 0; }
  .about-arrow::after { content: ""; position: absolute; inset: -10px -4px; }
  .about-dots button::after { content: ""; position: absolute; inset: -10px 0; }
  .email-hit::after { content: ""; position: absolute; inset: -10px 0; }
  .icon-button { width: 28px; }
  .retry-video { width: 40%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* 新 hero 完整按自身比例显示，品牌带独立放在下方，不拉伸、不裁切。 */
.hero-art { height: auto; object-fit: contain; }
/* 十张岗位图均为650×81；每列使用相同宽度，统一保持原图比例。 */
.jobs-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: 8.963585434%; row-gap: 6.951871658%; grid-template-rows: repeat(5,minmax(0,1fr)); }
.job-image { display: block; width: 100%; height: auto; aspect-ratio: 650 / 81; object-fit: contain; background: transparent; }

/* 页脚版权与备案。原实现是 copyright.png（内容照抄了游戏科学/游科互动的版权行），
   改为真实文本：备案号必须可点击指向 beian.miit.gov.cn，且公安备案号后续要追加。
   字号用 vw 跟随画布等比缩放，与原图位置保持视觉一致。 */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.30vw;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.footer-copy,
.footer-legal { margin: 0; font-size: 1.02vw; line-height: 1.40; }
.footer-copy { color: #e6e2da; letter-spacing: 0.005em; }
.footer-legal { color: #9c968d; }
.footer-legal a { color: inherit; text-decoration: none; transition: color 160ms ease; }
.footer-legal a:hover,
.footer-legal a:focus-visible { color: #e6e2da; text-decoration: underline; }

/* 仅屏幕阅读器与搜索引擎可见的文本。
   全站文字都是图片，必须有这一层真实的语义文本，否则页面正文对爬虫为空。
   用 clip 方案而不是 display:none —— 后者会被判为隐藏文本。 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
