:root {
  --site-header-height: 89px;
  --anchor-scroll-offset: 50px;
  --viewport-height: 100svh;
  --kv-height: 908px;
  --kv-video-pos-y: 70%;
  /* kv 总高 997 减去导航 89 */
  --bg-overlap: 70px;
  --bg-part34-overlap: 0px;
  /* Part3 与 Part4 不重叠 */
  --color-bg: #fff7ec;
  --color-bg-alt: #ffeedd;
  --color-surface: #ffffff;
  --color-surface-soft: #fffaf2;
  --color-text-main: #3d2c2c;
  --color-text-subtle: #7b6660;
  --color-accent: #8ed5e0;
  --color-accent-soft: #f8c8c0;
  --color-accent-strong: #f49c8b;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang HK', 'Microsoft JhengHei', system-ui, sans-serif;
  color: var(--color-text-main);
  background-color: #fff7ec;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html {
    overflow-x: clip;
  }

  body {
    overflow-x: clip;
  }
}

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

[hidden] {
  display: none !important;
}

.page-root {
  position: relative;
  min-height: 100vh;
  z-index: 0;
  overflow: hidden;
  margin: 0 auto;
  --page-bg-width: min(100vw, 1920px);
  /* KV 背景使用 kv合并.webm（1920x976） */
  --kv-height: calc(var(--page-bg-width) * 976 / 1920);
  --page-bg-part3-height: calc(var(--page-bg-width) * 3174 / 1920);
  --page-bg-part4-height: calc(var(--page-bg-width) * 4058 / 1920);
  --page-bg-footer-height: calc(var(--page-bg-width) * 492 / 1920);
  --page-bg-part3-top: max(0px, calc(var(--site-header-height) + var(--kv-height) - var(--bg-overlap)));
  /* 背景与上一张重叠 */
  --page-bg-part4-top: calc(var(--page-bg-part3-top) + var(--page-bg-part3-height) - var(--bg-part34-overlap));
  --main-bg-part3-top: max(0px, calc(var(--kv-height) - var(--bg-overlap)));
  --main-bg-part4-top: calc(var(--main-bg-part3-top) + var(--page-bg-part3-height) - var(--bg-part34-overlap));
}

.page-root main {
  position: relative;
  z-index: 1;
  padding-top: var(--site-header-height);
}

.page-bg-part3 {
  position: absolute;
  left: 50%;
  top: var(--main-bg-part3-top);
  transform: translateX(-50%);
  width: var(--page-bg-width);
  aspect-ratio: 1920 / 3174;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  /* 在 kv-bg 之上（kv-bg z-index: -2），但仍在内容之下 */
}

.page-bg-part3-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.page-bg-part4 {
  position: absolute;
  left: 50%;
  top: var(--main-bg-part4-top);
  /* Part4 接在 Part3 之后 */
  transform: translateX(-50%);
  width: var(--page-bg-width);
  aspect-ratio: 1920 / 4058;
  pointer-events: none;
  z-index: -1;
}

.page-bg-part4-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.site-footer::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: var(--page-bg-width);
  height: var(--page-bg-footer-height);
  background-image: url('./images/figma/bg-footer.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center bottom;
  pointer-events: none;
  z-index: 0;
}

@supports (height: 100dvh) {
  :root {
    --viewport-height: 100dvh;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--site-header-height);
  /* 等于 top底 的高度 */
}

.site-header-wood {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1920px;
  height: var(--site-header-height);
  z-index: 0;
  pointer-events: none;
}

.site-header-wood-img {
  width: 100%;
  height: 100%;
  display: block;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  height: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 6px 35px 0;
  position: relative;
  z-index: 1;
}

/* BGM */

.bgm-toggle {
  position: fixed;
  --bgm-scale-compensation: 1;
  right: calc(20px * var(--bgm-scale-compensation));
  bottom: calc(20px * var(--bgm-scale-compensation));
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(61, 44, 44, 0.25);
  background: rgba(255, 247, 236, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transform: scale(var(--bgm-scale-compensation));
  transform-origin: right bottom;
}

.bgm-toggle::before {
  content: '♫';
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(61, 44, 44, 0.85);
  font-size: 18px;
  line-height: 1;
}

.bgm-toggle[aria-pressed='false'] {
  opacity: 0.55;
}

.bgm-toggle:focus-visible {
  outline: 2px solid rgba(244, 156, 139, 0.8);
  outline-offset: 3px;
}

.logo {
  position: absolute;
  left: 60px;
  top: 6px;
  display: inline-block;
  z-index: 2;
}

.logo img {
  display: block;
  height: 171px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  margin-left: 0;
  margin-left: auto;
}

.nav-item {
  position: relative;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.nav-img {
  display: block;
  height: 64px;
  width: auto;
  pointer-events: none;
}


.nav-img-active {
  display: none;
}

.nav-item.is-active .nav-img-active {
  display: block;
}

.nav-item.is-active .nav-img-normal {
  display: none;
}

.nav-item.is-hover .nav-img-active {
  display: block;
  transform: translateY(-2px);
  transition: transform 0.12s ease-out;
}

.nav-item.is-hover .nav-img-normal {
  display: none;
}

.section {
  padding: 40px 0;
  scroll-margin-top: var(--anchor-scroll-offset);
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0.12em;
}

.section-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-subtle);
}

.section-footer {
  margin-top: 24px;
  text-align: right;
}

.link-more {
  font-size: 14px;
  color: var(--color-accent-strong);
  text-decoration: none;
}

.link-more:hover {
  text-decoration: underline;
}

.section-kv {
  position: relative;
  padding: 0;
  height: var(--kv-height);
  overflow: hidden;
  scroll-margin-top: 0;
}

/* 各段之间整体节奏的微调 */
#section-news {
  margin-top: 40px;
}

#section-latest {
  margin-top: 60px;
}

#section-features {
  margin-top: 40px;
}

#section-snapshot {
  margin-top: 60px;
}

#section-community {
  margin-top: 80px;
}

.kv-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.kv-bg-img {
  position: absolute;
  left: 0;
  top: -9.01%;
  width: 100%;
  height: 214.94%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.kv-bg-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.kv-bg-video {
  object-position: center var(--kv-video-pos-y);
}

.kv-inner {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kv-play-btn {
  position: absolute;
  left: 59%;
  top: 22%;
  /* (307 - 89) / 908 */
  width: 100px;
  height: 100px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1;
}

.kv-title-img {
  position: absolute;
  left: 16.2%;
  top: 18.2%;
  /* (254 - 89) / 908 */
  width: 46.3%;
  height: auto;
}

.kv-play-btn .kv-play-img {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center;
  animation: kv-play-breathe 1.7s ease-in-out infinite;
  will-change: transform, filter;
}

/* 兼容后台预览旧结构：kv-play-img 仍在 kv-inner 内时避免撑满 */
.kv-inner .kv-play-img {
  position: absolute;
  left: 59%;
  top: 22%;
  /* (307 - 89) / 908 */
  width: 100px;
  height: 100px;
  transform-origin: center;
  animation: kv-play-breathe 1.7s ease-in-out infinite;
  will-change: transform, filter;
}

.kv-age-img {
  position: absolute;
  right: 1.3%;
  top: 2.5%;
  /* (112 - 89) / 908 */
  width: 93px;
  height: 92px;
}

.top-window {
  position: absolute;
  left: 50%;
  top: 70.3%;
  /* (775 - 88) / 977 */
  transform: translateX(-50%);
  width: 896px;
  height: 218px;
}

.top-window-base {
  position: absolute;
  left: 0;
  top: 0;
  width: 896px;
  height: 218px;
  display: block;
}

.kv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 110;
}

.kv-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 111;
  padding: 24px;
}

.kv-modal-panel {
  position: relative;
  width: min(960px, 92vw);
  background: rgba(10, 10, 10, 0.92);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: 14px;
}

.kv-modal-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #000;
}

.kv-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.kv-modal-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.top-window-apk,
.top-window-google,
.top-window-apple,
.top-window-center,
.top-window-qr-pop-frame,
.top-window-qr-pop,
.top-window-qr,
.top-window-discount {
  position: absolute;
  cursor: pointer;
}

.top-window-apk {
  left: 24px;
  top: 17px;
  width: 183px;
  height: 183px;
}

.top-window-google {
  left: 222px;
  top: 27px;
  width: 257px;
  height: 77px;
}

.top-window-apple {
  left: 222px;
  top: 115px;
  width: 257px;
  height: 77px;
}

.top-window-center {
  left: 689px;
  top: 17px;
  width: 183px;
  height: 183px;
}

.top-window-qr {
  left: 494px;
  top: 17px;
  width: 183px;
  height: 183px;
  box-sizing: border-box;
  padding: 8px 6px;
  border-radius: 26px;
  overflow: hidden;
  background: #ffffff;
  object-fit: contain;
  object-position: center;
}

.top-window-qr-pop {
  left: -158px;
  top: 52px;
  width: 147px;
  height: 147px;
  box-sizing: border-box;
  padding: 6px 4px;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 2;
}

.top-window-qr-pop-frame {
  left: -168px;
  top: 42px;
  width: 182px;
  height: 165px;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 1;
}

.top-window.is-download-qr-open .top-window-qr-pop,
.top-window.is-download-qr-open .top-window-qr-pop-frame {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.top-window-discount {
  left: 837px;
  top: -24px;
  width: 152px;
  height: 73px;
  transform-origin: center;
  animation: discount-breathe 1.8s ease-in-out infinite;
  will-change: transform, filter;
}

.section-anchor {
  padding: 0;
  height: 0;
}

.qr-scan {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  --qr-scan-line-h: 6px;
}

.qr-scan::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  top: calc(-1 * var(--qr-scan-line-h));
  height: var(--qr-scan-line-h);
  background: linear-gradient(to bottom,
      rgba(255, 40, 40, 0),
      rgba(255, 40, 40, 0.9),
      rgba(255, 40, 40, 0));
  box-shadow: 0 0 10px rgba(255, 40, 40, 0.5);
  animation: qr-scan-move 2.2s linear infinite;
  will-change: top;
}

@keyframes qr-scan-move {
  0% {
    top: calc(-1 * var(--qr-scan-line-h));
  }

  100% {
    top: calc(100% + var(--qr-scan-line-h));
  }
}

.qr-scan-top {
  left: 494px;
  top: 17px;
  width: 183px;
  height: 183px;
  z-index: 6;
}

@keyframes discount-breathe {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 180, 120, 0));
  }

  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 10px 18px rgba(255, 180, 120, 0.42));
  }
}

@keyframes kv-play-breathe {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 210, 150, 0));
  }

  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 10px 18px rgba(255, 210, 150, 0.55));
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-window-discount {
    animation: none;
  }

  .kv-play-img {
    animation: none;
  }

  .qr-scan::before {
    animation: none;
  }
}

.side-panel {
  position: fixed;
  right: 0;
  top: 50%;
  width: 212px;
  height: 632px;
  transform: translateY(-50%);
  -webkit-clip-path: inset(0 0 0 100%);
  clip-path: inset(0 0 0 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: clip-path 0.22s ease-out, opacity 0.22s ease-out;
  will-change: clip-path, opacity;
}

.side-panel-base {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 0;
}

.side-panel-qr-frame,
.side-panel-qr,
.side-panel-ins,
.side-panel-discord,
.side-panel-youtube,
.side-panel-face,
.side-panel-google,
.side-panel-apple {
  position: absolute;
  cursor: pointer;
  z-index: 1;
}

.side-panel-qr-frame {
  left: -136px;
  top: 48px;
  width: 182px;
  height: 165px;
  opacity: 0;
  transform: translateX(14px);
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 2;
}

.side-panel-qr {
  left: -126px;
  top: 58px;
  width: 147px;
  height: 147px;
  box-sizing: border-box;
  padding: 6px 4px;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: translateX(14px);
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 3;
}

.side-panel.is-visible {
  /* 允许二维码向左弹出显示，不裁切内容 */
  -webkit-clip-path: inset(-200px 0 -200px -220px);
  clip-path: inset(-200px 0 -200px -220px);
  opacity: 1;
  pointer-events: auto;
}

.side-panel.is-qr-open .side-panel-qr-frame,
.side-panel.is-qr-open .side-panel-qr {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.side-panel-ins {
  left: 34px;
  top: 97px;
  width: 65px;
  height: 65px;
}

.side-panel-discord {
  left: 113px;
  top: 97px;
  width: 65px;
  height: 65px;
}

.side-panel-youtube {
  left: 34px;
  top: 175px;
  width: 65px;
  height: 65px;
}

.side-panel-face {
  left: 113px;
  top: 175px;
  width: 65px;
  height: 65px;
}

.side-panel-google {
  left: 19px;
  top: 327px;
  width: 173px;
  height: 55px;
}

.side-panel-apple {
  left: 19px;
  top: 265px;
  width: 173px;
  height: 55px;
}

.side-panel-recharge {
  position: absolute;
  left: 19px;
  top: 392px;
  width: 173px;
  height: auto;
  cursor: pointer;
}

.site-footer {
  background: none;
  font-size: 12px;
  position: relative;
  z-index: 1;
  isolation: isolate;
  padding-bottom: var(--page-bg-footer-height);
}

.footer-inner {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-cta {
  position: relative;
  width: min(862px, 100%);
  container-type: inline-size;
}

.footer-tray-img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-downloads {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer-btn-link {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.12s ease-out, filter 0.12s ease-out;
  pointer-events: auto;
}

.footer-btn-link-appstore {
  position: absolute;
  left: 29.35cqw;
  /* 253 / 862 */
  top: 10.79cqw;
  /* 93 / 862 */
  width: 26.33cqw;
  /* 227 / 862 */
}

.footer-btn-link-googleplay {
  position: absolute;
  left: 57.65cqw;
  /* 497 / 862 */
  top: 10.79cqw;
  /* 93 / 862 */
  width: 26.33cqw;
  /* 227 / 862 */
}

.footer-btn-link-backtop {
  position: absolute;
  left: 86.89cqw;
  /* 749 / 862 */
  top: 10.09cqw;
  /* 87 / 862 */
  width: 9.74cqw;
  /* 84 / 862 */
}

.footer-btn-link:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 16px rgba(214, 166, 117, 0.28));
}

.footer-btn-link:focus-visible {
  outline: 3px solid rgba(248, 200, 192, 0.9);
  outline-offset: 6px;
}

.footer-cta .footer-btn {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.footer-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  margin-top: 0;
  color: #ffffff;
  font-size: 11.5px;
  line-height: 1.58;
  z-index: 1;
}

.footer-meta-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 44px;
  position: relative;
}

.footer-rating {
  flex: 1 1 0;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer-rating-img {
  width: 68px;
  height: auto;
  display: block;
}

.footer-rating-text {
  margin: 0;
  opacity: 0.95;
}

.footer-divider {
  width: 1px;
  height: 136px;
  background: rgba(255, 255, 255, 0.35);
  flex: 0 0 auto;
  margin-top: 4px;
}

.footer-legal {
  flex: 1 1 0;
  max-width: 610px;
  text-align: left;
}

.footer-legal p {
  margin: 0 0 4px;
  opacity: 0.95;
}

.footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.footer-legal-heading {
  margin-top: 6px;
  font-weight: 700;
}

.footer-legal-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 3px;
  opacity: 0.95;
}

.section-title-image {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.section-title-image img {
  max-width: 480px;
  height: auto;
}

/* 针对不同板块微调标题与底板之间的距离 */
.section-news .section-title-image {
  margin-bottom: 8px;
}

.section-latest .section-title-image {
  margin-bottom: 20px;
}

.section-features .section-title-image {
  margin-bottom: 18px;
}

.section-snapshot .section-title-image {
  margin-bottom: 24px;
}

.section-news-board {
  display: flex;
  justify-content: center;
}

.section-news-board img {
  width: 100%;
  max-width: 1285px;
  /* Frame 5:239 width */
  height: auto;
  display: block;
}

.section-board-full > img {
  width: 100%;
  max-width: 1688px;
  /* Frame 5:241 width */
  height: auto;
  display: block;
}

.section-board-window > img {
  width: 100%;
  max-width: 1156px;
  /* 窗户宽度 5:242 */
  height: auto;
  display: block;
}

.section-board-truck > img {
  width: 100%;
  max-width: 1290px;
  /* 车车 1 宽度 5:257 */
  height: auto;
  display: block;
}

.community-board {
  display: flex;
  justify-content: center;
  position: relative;
}

.community-board-img {
  width: 100%;
  max-width: 1175px;
  /* 框 1 宽度 5:350 */
  height: auto;
  display: block;
}

.community-board-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
}

.community-qa-panel {
  width: 80%;
  max-width: 900px;
  height: 91.2%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community-qa-scroll {
  width: 100%;
  flex: 1 1 auto;
  padding: 8px 4px;
  overflow-y: auto;
}

.community-qa-title {
  margin: 0;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
}

.community-qa-title-img {
  width: 370px;
  max-width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.community-qa-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: #6b5547;
}

.community-qa-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.community-qa-item:not(:last-child) {
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(192, 107, 69, 0.35);
}

.community-qa-label {
  min-width: 40px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffe9bf;
  text-align: center;
  font-weight: 600;
  color: #c06b45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.community-qa-text {
  flex: 1 1 auto;
}

.community-qa-question,
.community-qa-answer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.community-qa-label-answer {
  background: #f8c8c0;
}

.community-social {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  --community-qr-offset-x: -14px;
}

.community-social {
  gap: 80px;
}

.community-social-item {
  width: 256px;
  height: 245px;
  display: block;
  text-decoration: none;
  position: relative;
}

.community-qr-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(calc(-50% + var(--community-qr-offset-x, 0px))) translateY(6px);
  width: 182px;
  height: 165px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 3;
}

.community-social-item.is-qr-open .community-qr-pop {
  opacity: 1;
  transform: translateX(calc(-50% + var(--community-qr-offset-x, 0px))) translateY(0);
}

.community-qr-frame,
.community-qr-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.community-qr-frame {
  transform: rotate(90deg) scale(0.907);
  transform-origin: 50% 50%;
}

.community-qr-img {
  inset: auto;
  left: 50%;
  top: calc(50% - 4px);
  width: 140px;
  height: 140px;
  box-sizing: border-box;
  padding: 6px 2px;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
}

.community-social-item:focus-visible {
  outline: 3px solid rgba(248, 200, 192, 0.9);
  outline-offset: 6px;
}

.community-social-sprite {
  width: 256px;
  height: 245px;
  display: block;
  background-image: url('./images/figma/social-sprites.png');
  background-repeat: no-repeat;
  background-size: 1233px 219px;
  /* 481.64% * 256 = 1233, 89.39% * 245 = 219 */
  background-position-y: 13px;
  /* (245 - 219) / 2 = 13 */
}

.community-social-facebook {
  background-position-x: 0;
}

.community-social-youtube {
  background-position-x: -336px;
}

.community-social-instagram {
  background-position-x: -672px;
}

.community-social-discord {
  background-position-x: -1008px;
}

.snapshot-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.38s ease-out;
  pointer-events: none;
}

.snapshot-screen-img.is-visible {
  opacity: 1;
}

.snapshot-dot-btn {
  width: 20px;
  width: 1.42cqw;
  /* 19.75 / 1394 */
  height: 20px;
  height: 1.42cqw;
  padding: 0;
  border: none;
  background: transparent url('./images/figma/snapshot-dot.svg') center / contain no-repeat;
  cursor: pointer;
}

.snapshot-dot-btn.is-active {
  width: 41px;
  width: 2.95cqw;
  /* 41.15 / 1394 */
  height: 43px;
  height: 3.07cqw;
  /* 42.80 / 1394 */
  background-image: url('./images/figma/snapshot-dot-selected.png');
}

.snapshot-dot-btn:focus-visible {
  outline: 3px solid rgba(248, 200, 192, 0.9);
  outline-offset: 4px;
}

.section-news-inner {
  container-type: inline-size;
  position: relative;
  max-width: 1285px;
  margin: 0 auto;
}

.news-board-base {
  width: 100%;
  height: auto;
  display: block;
}

.news-media {
  position: absolute;
  left: 7.4%;
  top: 10.4%;
  width: 39.3%;
  height: 66.7%;
  border-radius: 19px;
  border: 2px solid #ffffff;
  background: #6e6e6e;
  overflow: hidden;
  cursor: pointer;
}

.news-tab-row {
  position: absolute;
  left: 53.8%;
  top: 13.2%;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-tab {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.12s ease-out, filter 0.12s ease-out;
}

.news-tab img {
  display: block;
  height: 54px;
  height: 4.2cqw;
  width: auto;
}

.news-tab-more img {
  height: 34px;
  height: 2.65cqw;
}

.news-tab.is-active {
  transform: translateY(1px);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.news-list {
  position: absolute;
  left: 54.1%;
  top: 32.7%;
  width: 36.3%;
  display: flex;
  flex-direction: column;
  gap: 35px;
  gap: 2.72cqw;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'PingFang HK', 'Microsoft JhengHei', system-ui, sans-serif;
  font-size: 20px;
  font-size: 1.56cqw;
  color: #ce805e;
}

.news-row {
  display: grid;
  grid-template-columns: 67px minmax(0, 1fr) 46px;
  grid-template-columns: 5.21cqw minmax(0, 1fr) 3.58cqw;
  align-items: center;
  cursor: pointer;
}

.news-row:focus-visible {
  outline: 3px solid rgba(248, 200, 192, 0.9);
  outline-offset: 6px;
  border-radius: 10px;
}

.news-row-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 67px;
  width: 5.21cqw;
  height: 27px;
  height: 2.1cqw;
  border-radius: 69px;
  background: #ffe9bf;
  margin-right: 4px;
}

.news-row-text {
  padding-left: 4px;
}

.news-row-date {
  text-align: right;
}

.news-dots {
  position: absolute;
  /* Anchor by the 5-dot center so fewer dots stay visually centered. */
  left: calc(22.4% + 56.5px);
  top: 79.9%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.38s ease-out;
  pointer-events: none;
}

.news-media-img.is-visible {
  opacity: 1;
}

.news-dot-btn {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  background: transparent url('./images/figma/news-dot.svg') center / contain no-repeat;
  cursor: pointer;
}

.news-dot-btn.is-active {
  width: 25px;
  height: 26px;
  background-image: url('./images/figma/news-dots-selected.png');
}

.news-dot-btn:focus-visible {
  outline: 3px solid rgba(248, 200, 192, 0.9);
  outline-offset: 4px;
}

/* 最新活動板塊 */
.section-latest-inner {
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 1688px;
  margin: 0 auto;
}

.latest-board-base {
  width: 100%;
  height: auto;
  display: block;
}

.latest-media {
  position: absolute;
  /* 按 latest-board.png (1688x769) 量測的內容窗口 (x=288,y=119,w=1108,h=544) */
  left: 17.06%;
  top: 15.47%;
  width: 65.64%;
  height: 70.74%;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.latest-media.is-dragging {
  cursor: grabbing;
}

.latest-media::-webkit-scrollbar {
  height: 10px;
}

.latest-media::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(219, 138, 94, 0.72);
}

.latest-media::-webkit-scrollbar-track {
  background: rgba(255, 240, 216, 0.74);
  border-radius: 999px;
}

.latest-media-img {
  width: auto;
  min-width: 100%;
  height: 100%;
  max-width: none;
  display: block;
}

/* 遊戲特色窗戶板 */
.section-features-inner {
  container-type: inline-size;
  position: relative;
  max-width: 1156px;
  margin: 0 auto;
  padding-bottom: 90px;
  padding-bottom: 7.8cqw;
}

.feature-window-base {
  width: 100%;
  height: auto;
}

.feature-media {
  position: absolute;
  left: 10.03cqw;
  /* 116 / 1156 */
  top: 5.54cqw;
  /* 64 / 1156 */
  width: 79.93cqw;
  /* 924 / 1156 */
  height: 44.72cqw;
  /* 517 / 1156 */
  background: #747474;
  border-radius: 24px;
  border: 4px solid #d89364;
  overflow: hidden;
}

.feature-bottom-bar {
  position: absolute;
  left: 37.6%;
  top: 58.1cqw;
  width: 25.5%;
  aspect-ratio: 295 / 38;
  border-radius: 19px;
  background: #fbe69e;
}

.feature-dots {
  position: absolute;
  left: 50%;
  top: 58cqw;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 2;
}

.feature-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.38s ease-out;
  pointer-events: none;
}

.feature-media-img.is-visible {
  opacity: 1;
}

.feature-dot-btn {
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent url('./images/figma/feature-dot.svg') center / contain no-repeat;
  cursor: pointer;
}

.feature-dot-btn.is-active {
  width: 41px;
  height: 43px;
  background-image: url('./images/figma/feature-dots-selected.png');
}

.feature-dot-btn:focus-visible {
  outline: 3px solid rgba(248, 200, 192, 0.9);
  outline-offset: 4px;
}

/* 食刻快照餐車板 */
.section-snapshot-inner {
  position: relative;
  max-width: 1394px;
  /* Frame 5:270 width */
  margin: 0 auto;
  container-type: inline-size;
}

.snapshot-truck-base {
  width: 100%;
  height: auto;
}

.snapshot-balloon-stack {
  position: absolute;
  left: 81.6cqw;
  /* 1137 / 1394 */
  top: 1.72cqw;
  /* 24 / 1394 */
  width: 18.44cqw;
  /* 257 / 1394 */
  height: 50cqw;
  pointer-events: auto;
  z-index: 2;
}

.snapshot-balloon-btn {
  position: absolute;
  width: 177px;
  width: 12.7cqw;
  /* 177 / 1394 */
  height: 207px;
  height: 14.85cqw;
  /* 207 / 1394 */
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.08));
  transition: transform 0.12s ease-out, filter 0.12s ease-out;
}

.snapshot-balloon-btn img {
  width: 100%;
  height: 100%;
  display: block;
}

.snapshot-balloon-btn[data-snapshot-category='wallpaper'] {
  left: 0;
  top: 0;
}

.snapshot-balloon-btn[data-snapshot-category='game'] {
  left: 5.74cqw;
  /* 80 / 1394 */
  top: 10.33cqw;
  /* 144 / 1394 */
}

.snapshot-balloon-btn[data-snapshot-category='building'] {
  left: 1.51cqw;
  /* 21 / 1394 */
  top: 22.45cqw;
  /* 313 / 1394 */
}

.snapshot-balloon-btn:hover {
  transform: translateY(-2px);
}

.snapshot-balloon-btn:focus-visible {
  outline: 3px solid rgba(248, 200, 192, 0.9);
  outline-offset: 6px;
}

.snapshot-balloon-btn.is-active {
  filter: drop-shadow(0 22px 28px rgba(214, 166, 117, 0.3));
}

.snapshot-screen {
  position: absolute;
  left: 18.44cqw;
  /* 257 / 1394 */
  top: 6.53cqw;
  /* 91 / 1394 */
  width: 60.62cqw;
  /* 845 / 1394 */
  height: 33.93cqw;
  /* 473 / 1394 */
  border-radius: 24px;
  border: 4px solid #d89364;
  background: #747474;
  overflow: hidden;
}

.snapshot-download {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(61, 44, 44, 0.25);
  background: rgba(255, 247, 236, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  color: rgba(61, 44, 44, 0.9);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.snapshot-download:hover {
  background: rgba(255, 247, 236, 0.92);
}

.snapshot-download:focus-visible {
  outline: 3px solid rgba(248, 200, 192, 0.9);
  outline-offset: 4px;
}

.snapshot-pagination {
  position: absolute;
  top: 42.11cqw;
  /* 587 / 1394 */
  left: 50.22cqw;
  /* 700 / 1394 - 5 dots center */
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  gap: 9.5px;
  gap: 0.68cqw;
  /* 9.5 / 1394 */
  z-index: 2;
  pointer-events: auto;
}

.snapshot-pagination .snapshot-arrow {
  position: static;
  top: auto;
  left: auto;
  margin-top: 5px;
  margin-top: 0.36cqw;
  /* 5 / 1394 - align with original arrow baseline */
}

.snapshot-pagination .snapshot-dots {
  position: static;
  top: auto;
  left: auto;
}

.snapshot-arrow {
  position: absolute;
  top: 42.47cqw;
  /* 592 / 1394 */
  width: 30px;
  width: 2.15cqw;
  /* 30 / 1394 */
  height: 33px;
  height: 2.37cqw;
  /* 33 / 1394 */
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.snapshot-arrow img {
  width: 100%;
  height: 100%;
}

.snapshot-arrow-left {
  left: 40.75cqw;
  /* 568 / 1394 */
  transform: rotate(180deg);
}

.snapshot-arrow-right {
  left: 57.53cqw;
  /* 802 / 1394 */
}

.snapshot-dots {
  position: absolute;
  top: 42.11cqw;
  /* 587 / 1394 */
  left: 43.58cqw;
  /* 607.5 / 1394 - 置中對齊左右箭頭間距 */
  display: flex;
  gap: 16px;
  gap: 1.16cqw;
  /* 16 / 1394 */
  align-items: center;
}

.snapshot-dot {
  width: 20px;
  height: 20px;
}

.snapshot-dot-selected {
  width: 41px;
  height: 43px;
}

.is-modal-open {
  overflow: hidden;
}

.news-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 120;
}

.news-modal-overlay[hidden] {
  display: none;
}

.news-modal-overlay-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: blur(1.4px);
  transform: scale(1.03);
  pointer-events: none;
}

.news-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--news-modal-scale, 1));
  transform-origin: center;
  width: 1223px;
  height: 971px;
  background: transparent;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 26px 80px rgba(61, 44, 44, 0.22);
  z-index: 130;
  display: block;
  overflow: hidden;
}

.news-modal[hidden] {
  display: none;
}

.news-modal-window {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.news-modal-back {
  position: relative;
  position: absolute;
  left: 33px;
  top: 35px;
  width: 47px;
  height: 70px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.news-modal-back-img {
  width: 100%;
  height: 100%;
  display: block;
}

.news-modal-breadcrumb {
  position: absolute;
  top: 40px;
  left: 830px;
  width: 320px;
  font-size: 14px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(125, 74, 60, 0.35);
  white-space: nowrap;
  z-index: 2;
}

.news-modal-title-img {
  position: absolute;
  left: 88px;
  top: 18px;
  width: 353px;
  height: auto;
  pointer-events: none;
  z-index: 2;
}

.news-modal-tabs {
  position: absolute;
  left: 50%;
  top: 127px;
  transform: translateX(-50%);
  display: flex;
  gap: 33px;
  z-index: 2;
}

.news-modal-tab {
  width: 179px;
  height: 78px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.news-modal-tab img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.news-modal-body {
  position: absolute;
  left: 79px;
  top: 240px;
  width: calc(100% - 158px);
  height: calc(100% - 280px);
  overflow: hidden;
  padding: 0;
  z-index: 1;
}

.news-modal-view {
  height: 100%;
}

.news-modal-view-detail {
  display: none;
}

.news-modal.is-detail-open .news-modal-view-list {
  display: none;
}

.news-modal.is-detail-open .news-modal-view-detail {
  display: block;
}

.news-modal.is-detail-open .news-modal-tabs {
  display: none;
}

.news-modal.is-detail-open .news-modal-body {
  top: 150px;
  height: calc(100% - 190px);
}

.news-modal-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0;
  height: 100%;
  overflow: auto;
}

.news-modal-item {
  display: flex;
  gap: 26px;
  padding: 26px 18px;
  border-bottom: 2px dashed rgba(230, 176, 160, 0.8);
  cursor: pointer;
}

.news-modal-item.is-no-thumb {
  gap: 0;
}

.news-modal-thumb {
  width: 340px;
  height: 190px;
  border-radius: 26px;
  background: #8d8d8d;
  flex: 0 0 auto;
  overflow: hidden;
}

.news-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-modal-content {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 6px;
}

.news-modal-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: #f7d6b9;
  color: #e08c73;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.news-modal-item-title {
  margin: 10px 0 8px;
  font-size: 26px;
  color: #b17462;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-modal-item-excerpt {
  margin: 0 0 10px;
  color: #d49a89;
  font-size: 16px;
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-modal-item-date {
  margin: 0;
  color: #d49a89;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.news-modal-detail {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px 36px 22px;
}

.news-modal-detail-header {
  flex: 0 0 auto;
}

.news-modal-detail-scroll {
  flex: 1 1 auto;
  overflow: auto;
}

.news-modal-detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.news-modal-detail-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: #f7d6b9;
  color: #e08c73;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.news-modal-detail-date {
  color: #d49a89;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.news-modal-detail-title {
  margin: 0 0 18px;
  font-size: 30px;
  color: #b17462;
  letter-spacing: 0.04em;
}

.news-modal-detail-hero {
  width: 100%;
  height: 320px;
  border-radius: 26px;
  background: rgba(141, 141, 141, 0.65);
  overflow: hidden;
  margin-bottom: 18px;
}

.news-modal-detail-hero[hidden] {
  display: none !important;
}

.news-modal-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.news-modal-detail-body {
  color: #b17462;
  font-size: 16px;
  line-height: 1.9;
}

.news-modal-detail-body p {
  margin: 0 0 14px;
}

@media (max-width: 960px) {
  .kv-inner {
    justify-content: center;
  }
}

@media (max-height: 997px) {
  .top-window {
    top: auto;
    bottom: calc(clamp(16px, 2.5vh, 32px) + 30px);
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 22px;
  }

  .top-window {
    transform: translateX(-50%) translateY(-30px) scale(0.58);
    transform-origin: bottom center;
  }

  .side-panel {
    display: none;
  }

  .footer-meta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    text-align: left;
  }
}
