:root {
  /* VS Code Dark+ 风格 */
  --bg: #1e1e1e;
  --bg-elevated: #252526;
  --bg-surface: #2d2d2d;
  --bg-hover: #2a2d2e;
  --fg: #d4d4d4;
  --muted: #858585;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: #3c3c3c;
  --accent: #f14c4c;
  --accent-dark: #dc2626;
  --teal: #4ec9b0;
  --green: #6a9955;
  --link: #3794ff;
  --header-h: 4.25rem;
  /* 原始 1/3 基础上再 ×1.5；@2500px 视口下与原先 px 值一致 */
  --section-gap: 3rem;
  --section-gap-mobile: 2.25rem;
  --section-head-gap: 1.5rem;
  --hero-gap-bottom: 2rem;
  --block-gap-lg: 2.25rem;
  --block-gap-md: 1.5rem;
  --block-gap-sm: 1.25rem;
  --grid-gap-lg: 1.5rem;
  --grid-gap-md: 1.25rem;
  --grid-gap-sm: 0.75rem;
  --grid-gap-xs: 0.5625rem;
  --footer-bg: #252526;
  --footer-line: #3c3c3c;
  --footer-text: #cccccc;
  --radius: 1.25rem;
  --font-display: "Syne", "Outfit", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --max: 75vw;
  /* Mac Air M1 参考视口 2508 → 取 2500；1920/2500/3840 三档同比缩放 */
  --layout-ref-width: 2500px;
  --vp-scale: calc(100vw / var(--layout-ref-width));
  --sticky-banner-h: 6.5rem;
}

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

html {
  /* 2500px = 16px 根字号；1920→~12.3px，3840→~24.6px，整页 rem 同比缩放 */
  font-size: calc(16px * var(--vp-scale));
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--section-gap));
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--sticky-banner-h) + env(safe-area-inset-bottom, 0px));
}

/* 英文及其他非中文语言：全文等宽字体 */
html[data-locale]:not([data-locale="zh"]) {
  --font-display: var(--font-mono);
  --font-body: var(--font-mono);
}

html[data-locale]:not([data-locale="zh"]) .brand-name,
html[data-locale]:not([data-locale="zh"]) .page-slogan {
  font-family: var(--font-mono);
}

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

picture {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-glow {
  display: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  contain: strict;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--footer-bg);
  border-bottom: 1px solid var(--footer-line);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  min-width: 0;
}

.header-lang {
  justify-self: start;
  position: relative;
  z-index: 2;
}

.header-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.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;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 120px;
  height: 38px;
  padding: 0 34px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4d4d4' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center,
    var(--bg-surface);
  color: var(--fg);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
}

.lang-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.brand-name {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--footer-text);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-surface);
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
}

main {
  position: relative;
  z-index: 1;
  /* 仅避开固定顶栏；slogan 上下留白由其自身等距 margin 控制 */
  padding-top: var(--header-h);
}

.page-slogan {
  max-width: var(--max);
  margin: calc(var(--section-head-gap) * 2) auto;
  padding: 0 20px;
  text-align: center;
  font-family: "Heiti SC", "STHeiti", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: 8.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  word-break: break-word;
}

.section {
  padding: var(--section-gap) 0;
}

.section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

/* 首屏：顶栏下方留白由 main 承担，不再重复 padding-top */
.section.hero {
  padding: 0 0 var(--hero-gap-bottom);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--section-head-gap);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* 内容区区块标签（外观/功能等）隐藏，锚点仍保留 */
.section-head .eyebrow,
.privacy-block > .eyebrow {
  display: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: 4.2rem;
  font-weight: 800;
}

h2 {
  font-size: 3.2rem;
  font-weight: 800;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.grad-text {
  background: linear-gradient(120deg, #e5e5e5 10%, var(--accent) 55%, var(--accent-dark) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 8px 0 0;
}

.section-desc.wide {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--grid-gap-lg);
  align-items: center;
}

.hero-visual {
  position: relative;
}

.phone-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-surface);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.float-orb {
  display: none;
}

.hero-copy h1.hero-points {
  font-size: 1.45rem;
  line-height: 1.45;
  font-weight: 600;
}

.hero-point {
  display: flex;
  align-items: flex-start;
  gap: 0.55em;
  margin-bottom: 0.4em;
}

.hero-point:last-child {
  margin-bottom: 0;
}

.hero-point::before {
  content: "";
  flex-shrink: 0;
  width: 0.42em;
  height: 0.42em;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--accent);
}

.hero-downloads {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.hero-os-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.25rem, 1fr));
  gap: 8px;
}

.hero-os-tile {
  min-width: 0;
  padding: 10px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-os-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 76, 76, 0.35);
  background: var(--bg-hover);
}

.hero-os-tile span {
  font-weight: 600;
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.2;
  color: var(--muted);
}

.hero-os-tile:hover span {
  color: var(--fg);
}

.hero-os-icon {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  width: 100%;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.22);
}

.btn-ghost {
  margin-top: 16px;
  border: 1px solid var(--line-strong);
  background: var(--bg-surface);
  color: var(--fg);
}

.hint {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Look */
.look-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap-sm);
}

.look-card {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  transition: transform 0.35s ease;
}

.look-card:hover {
  transform: translateY(-8px) scale(1.01);
}

.look-card.tilt {
  transform: rotate(1.5deg);
}

.look-card.tilt:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.01);
}

.look-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Features — 首图：白底与内容同宽；原图按固有尺寸居中，仅缩小不放大 */
.feature-hero {
  width: 100%;
  max-width: none;
  margin: 0 auto var(--block-gap-lg);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-hero picture {
  display: block;
  width: auto;
  max-width: 100%;
}

.feature-hero img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.privacy-block {
  text-align: center;
  padding: var(--block-gap-md) 0 0;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap-sm);
  margin-top: var(--block-gap-sm);
  text-align: left;
}

.privacy-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.privacy-card:hover {
  border-color: rgba(241, 76, 76, 0.45);
  transform: translateY(-4px);
}

.privacy-card h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.card-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4em;
}

.card-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55em;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.card-points li::before {
  content: "";
  flex-shrink: 0;
  width: 0.42em;
  height: 0.42em;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--accent);
}

.icon-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: var(--accent);
  background: transparent;
  border: none;
}

.icon-badge svg {
  width: 28px;
  height: 28px;
}

/* App intro */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap-md);
  align-items: center;
  margin-bottom: var(--block-gap-lg);
}

/* App intro — 图区列 4:2；固定视窗高，原图不拉伸，居中裁剪 */
#app .split {
  grid-template-columns: minmax(0, 4fr) minmax(0, 2fr);
  align-items: center;
}

#app .split.reverse {
  grid-template-columns: minmax(0, 2fr) minmax(0, 4fr);
}

#app .split-media {
  overflow: hidden;
}

#app .split-copy {
  align-self: center;
}

.split.reverse .split-media {
  order: 2;
}

.split.reverse .split-copy {
  order: 1;
}

.split-copy-title {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 0.4em 0.85em;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #1e1e1e;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.split-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.split-media--zoom {
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.split-media--zoom:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.split-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* 无拉伸：固定视窗高度，原图尺寸居中，留白用背景色 */
#app .split-media img {
  width: 100%;
  height: calc(500px * 5 / 3);
  aspect-ratio: auto;
  object-fit: none;
  object-position: center center;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.image-lightbox__content {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(96vw, 1200px);
  max-height: min(90vh, 900px);
}

.image-lightbox__content img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(96vw, 1200px);
  max-height: min(90vh, 900px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.image-lightbox__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__close:active {
  background: rgba(255, 255, 255, 0.28);
}

body.lightbox-open {
  overflow: hidden;
  padding-bottom: 0;
}

body.lightbox-open .sticky-drop-bar {
  visibility: hidden;
  pointer-events: none;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 36px;
  font-size: 1.1rem;
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.55em;
  width: 8px;
  height: 5px;
  border-left: 2px solid #1e1e1e;
  border-bottom: 2px solid #1e1e1e;
  transform: rotate(-45deg);
}

.split-copy p {
  color: var(--muted);
  margin: 14px 0 0;
}

.meta-line {
  margin-top: 18px !important;
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 0.92rem !important;
}

/* Download */
.os-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 12px;
  max-width: 100%;
}

.os-tile {
  width: auto;
  min-width: 0;
  padding: 18px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-radius: 19px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.os-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(241, 76, 76, 0.45);
  background: var(--bg-hover);
}

.os-tile span {
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.25;
}

.os-icon {
  width: 48px;
  height: 48px;
}

/* Footer — aligned with superkvm.com structure */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--block-gap-sm);
  border-top: 1px solid var(--footer-line);
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 20px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.site-footer h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: var(--link);
  text-decoration: underline;
}

.site-footer address {
  font-style: normal;
}

.site-footer address p {
  margin: 0;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-row a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--footer-text);
}

.social-row a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--footer-line);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.footer-bottom > p:last-child {
  margin-top: 12px;
}

/* Sticky bottom promo — vibekey.app StickyBanner style */
.sticky-drop-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  border-top: 1px solid var(--line-strong);
  background: rgba(30, 30, 30, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sticky-drop-bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.sticky-drop-bar__copy {
  text-align: center;
  min-width: 0;
}

.sticky-drop-bar__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
}

.sticky-drop-bar__desc {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.sticky-drop-bar__cta {
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.92rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  :root {
    --sticky-banner-h: 72px;
  }

  .sticky-drop-bar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
  }

  .sticky-drop-bar__copy {
    text-align: left;
    flex: 1;
  }

  .sticky-drop-bar__title {
    font-size: 1rem;
  }

  .sticky-drop-bar__desc {
    font-size: 0.85rem;
  }

  .sticky-drop-bar__cta {
    width: auto;
    min-width: 200px;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal.delay-1 {
  transition-delay: 0.12s;
}

/* Mobile first adjustments */
@media (max-width: 900px) {
  .hero-grid,
  .look-gallery,
  .split {
    grid-template-columns: 1fr;
  }

  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split.reverse .split-media,
  .split.reverse .split-copy {
    order: initial;
  }

  .look-card.tilt {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }

  /* APP 区 H5：上图下文，按屏宽等比显示不拉伸 */
  #app .split,
  #app .split.reverse {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #app .split.reverse .split-media,
  #app .split.reverse .split-copy {
    order: initial;
  }

  #app .split-media img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center center;
  }
}

@media (max-width: 720px) {
  html {
    font-size: 16px;
  }

  :root {
    --header-h: 3.75rem;
  }

  .header-inner {
    max-width: none;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 0 14px;
  }

  .brand {
    justify-self: start;
    min-width: 0;
  }

  .brand-name {
    font-size: 1.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-lang {
    justify-self: end;
  }

  .header-end {
    justify-self: end;
  }

  .lang-select {
    min-width: 84px;
    width: auto;
    max-width: 110px;
    height: 36px;
    padding-right: 28px;
    font-size: 0.82rem;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 18px;
    background: var(--footer-bg);
    border-bottom: 1px solid var(--footer-line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 12px 14px;
  }

  .section {
    padding: var(--section-gap-mobile) 0;
  }

  main {
    padding-top: var(--header-h);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .os-tile {
    width: auto;
    min-width: 0;
  }

  .page-slogan {
    margin: var(--section-head-gap) auto;
    padding: 0 14px;
    font-size: clamp(1.55rem, 7.2vw, 2.15rem);
    letter-spacing: -0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Access gate — full-screen password wall */
.site-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  grid-template-columns: 1fr 1fr;
  direction: ltr;
  background: var(--bg);
}

html.gate-locked .site-gate,
.site-gate.is-open {
  display: grid !important;
}

html.gate-unlocked .site-gate {
  display: none !important;
}

.site-gate__media {
  position: relative;
  overflow: hidden;
  background: #111;
}

.site-gate__media picture,
.site-gate__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-gate__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--footer-bg);
  border-left: 1px solid var(--footer-line);
}

.site-gate__form {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-gate__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--fg);
}

.site-gate__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--footer-text);
}

.site-gate__field {
  position: relative;
  display: flex;
  align-items: center;
}

.site-gate__input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-surface);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
}

.site-gate__input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-gate__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.site-gate__toggle:hover,
.site-gate__toggle:focus-visible {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.site-gate__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.site-gate__eye[hidden] {
  display: none !important;
}

.site-gate__submit {
  margin-top: 6px;
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.site-gate__error {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(241, 76, 76, 0.12);
  border: 1px solid rgba(241, 76, 76, 0.35);
  color: #f5a8a8;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}

.site-gate__error[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .site-gate {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(36vh, 42vh) 1fr;
  }

  .site-gate__panel {
    border-left: none;
    border-top: 1px solid var(--footer-line);
    align-items: flex-start;
    padding-top: 28px;
  }
}
