/* ── MOONIX Design System — Apple-inspired cinematic rhythm ── */

:root {
  --black: #000000;
  --white: #ffffff;
  --light: #f5f5f7;
  --dark-text: #1d1d1f;
  --gold: #c6a97a;
  --gold-light: #e8d8bf;
  --muted-dark: rgba(255, 255, 255, 0.72);
  --muted-light: rgba(0, 0, 0, 0.56);
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(0, 0, 0, 0.82);
  --container: 980px;
  --container-wide: 1120px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 980px;
  --shadow-card: 0 3px 30px rgba(0, 0, 0, 0.22);
  --transition: 200ms ease;
  /**
   * 窄屏：固定顶栏高度约值 + safe-area，使首屏视频从顶栏下缘之下开始。
   */
  /**
   * 约等于「顶栏距顶 + 顶栏全高 + 小间距」下界；真机顶栏有换行/系统栏时需手机端再覆写为更大值。
   */
  --hero-header-clearance: calc(env(safe-area-inset-top, 0px) + 86px);
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  max-width: 100%;
  font-family: "Manrope", -apple-system, "Helvetica Neue", sans-serif;
  color: var(--dark-text);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }

/* ── Typography ── */
h1, h2, h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1.05; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: 1.08; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; }
p { margin: 0; line-height: 1.7; }

.eyebrow {
  margin: 0 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #111;
}
.btn--outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
}
.btn--outline:hover { border-color: rgba(255, 255, 255, 0.6); }
.btn--dark {
  background: var(--dark-text);
  color: var(--white);
}

/* ── Header — glass nav ── */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 48px), var(--container-wide));
  padding: 14px 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 14px rgba(198, 169, 122, 0.5);
}

.site-nav {
  display: flex;
  gap: 20px;
  color: var(--muted-dark);
  font-size: 0.88rem;
  font-weight: 500;
}
.site-nav a { transition: color var(--transition); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); }

.lang-switcher {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}
.lang-btn {
  padding: 4px 12px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lang-btn:hover { color: var(--white); }
.lang-btn.is-active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #111;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 240ms ease, opacity 240ms ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero：与视口等宽、高度随源比例；首屏在固定顶栏下起画；文案叠在视频上 ── */
.hero {
  position: relative;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding-top: var(--hero-header-clearance);
  overflow: visible;
  background: var(--black);
}

.hero-stage {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
}

.hero-video-wrapper {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
}

/**
 * 不设置 object-fit: cover - 与 ≤1024px 相同：宽与内容区/浏览器一致，高随源文件比例，避免全屏 cover 在宽屏上左右裁切。
 */
.hero-video {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  box-sizing: border-box;
  width: min(calc(100% - 32px), 720px);
  max-width: 720px;
  margin: 0;
  padding: 120px 24px 80px;
  text-align: center;
  color: var(--white);
}

.hero-content--autohide {
  transition: opacity 0.5s ease;
}
.hero-content--autohide.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.hero-content--autohide.is-visible {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.hero-content h1 { margin-bottom: 24px; }
.hero-sub {
  color: var(--muted-dark);
  font-size: 1.05rem;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ── Section system ── */
.section { padding: 120px 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--dark .eyebrow { color: rgba(198, 169, 122, 0.8); }
.section--dark .section-lead { color: var(--muted-dark); }
.section--light { background: var(--light); color: var(--dark-text); }
.section--light .eyebrow { color: var(--gold); }
.section--light .section-lead { color: var(--muted-light); }

.section-inner {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-lead {
  margin-top: 16px;
  font-size: 1.05rem;
}

/* ── Product features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.feature-card {
  padding: 32px 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition);
}
.feature-card:hover { border-color: rgba(255, 255, 255, 0.2); }
.feature-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--muted-dark); font-size: 0.95rem; }

.product-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
}
.product-hero-img img { width: 100%; object-fit: cover; }

/* ── Compare ── */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.compare-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px 40px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: box-shadow var(--transition);
}
.compare-card:hover { box-shadow: var(--shadow-card); }
.compare-card--featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.compare-img {
  width: 200px; height: 200px;
  object-fit: contain;
  margin-bottom: 24px;
}
.compare-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark-text);
}
.compare-price {
  font-family: "Manrope", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 24px;
}
.compare-specs {
  width: 100%;
  text-align: left;
  margin-bottom: 32px;
}
.compare-specs li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  color: var(--muted-light);
  font-size: 0.92rem;
}
.compare-specs li:last-child { border-bottom: none; }
.compare-card .btn { width: 100%; }

/* ── AI showcase ── */
.ai-showcase {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
}
.ai-showcase-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.info-card {
  padding: 32px 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}
.card-label {
  display: inline-block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.info-card h3 { margin-bottom: 10px; }
.info-card p { color: var(--muted-dark); font-size: 0.95rem; }

/* ── Scenes ── */
.scene-showcase {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-light);
}
.scene-showcase-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.scene-card {
  padding: 28px 24px;
  min-height: 200px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: box-shadow var(--transition);
}
.scene-card:hover { box-shadow: var(--shadow-card); }
.scene-card h3 { margin-bottom: 10px; color: var(--dark-text); }
.scene-card p { color: var(--muted-light); font-size: 0.92rem; }

/* ── Fashion ── */
.fashion-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.fashion-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fashion-statement {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
}
.fashion-body { color: var(--muted-dark); font-size: 1rem; max-width: 36rem; }
.fashion-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
}
.fashion-visual img { width: 100%; min-height: 400px; object-fit: cover; }

/* ── CTA ── */
.cta-section {
  background: radial-gradient(ellipse at 50% 0%, rgba(198,169,122,0.12) 0%, transparent 60%), var(--black);
}
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-inner .eyebrow { color: var(--gold); }
.cta-inner h2 { margin-bottom: 16px; }
.cta-body { color: var(--muted-dark); font-size: 1.05rem; margin-bottom: 36px; }
.cta-inner .hero-actions { justify-content: center; }

/* ── Footer ── */
.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line-dark);
  background: var(--black);
  color: var(--white);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--muted-dark);
  font-size: 0.88rem;
}
.footer-nav a { transition: color var(--transition); }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--white); }
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.footer-copy { color: rgba(255,255,255,0.35); font-size: 0.82rem; }
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: 100%;
  text-align: right;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.55;
}
.footer-contact-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-contact-line {
  margin: 0;
  word-break: break-all;
}
.footer-contact-name {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.4);
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--muted-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-filings {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 0.82rem;
}
.footer-icp-row { margin: 0; }
.footer-filings a { color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-filings a:hover { color: var(--muted-dark); }
.footer-icp-link { display: inline-flex; align-items: center; gap: 6px; }
.icp-icon { width: 20px; height: 20px; object-fit: contain; }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ── Responsive: tablet ≤1024px ── */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .features-grid, .cards-row { grid-template-columns: 1fr 1fr; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .fashion-layout { grid-template-columns: 1fr; gap: 32px; }

  /**
   * 首屏：视频/文案整体从固定顶栏**下缘以下**起算，毛玻璃不压在画面上。
   * 加大量：顶栏 `top:10/16` + 内边距 + 可能换行 + 与视频 8~12px 空隙；含安全区。
   */
  .hero {
    padding-top: calc(env(safe-area-inset-top, 0px) + 120px);
  }

  .hero-content {
    padding: 28px 20px;
  }
}

/* ── Responsive: mobile ≤768px ── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-inner { width: min(calc(100% - 32px), var(--container)); }
  .section-head { margin-bottom: 36px; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    order: 10;
    flex: 0 0 100%;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line-dark);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .site-nav a:hover { background: rgba(255,255,255,0.06); }
  .lang-switcher { margin-right: 8px; }

  .site-header {
    top: 10px;
    width: min(calc(100% - 24px), var(--container-wide));
    flex-wrap: wrap;
    padding: 12px 16px;
    border-radius: 18px;
  }

  .features-grid, .cards-row { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .scene-grid { grid-template-columns: 1fr 1fr; }

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

/* ── Responsive: small mobile ≤480px ── */
@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .section-inner { width: min(calc(100% - 20px), var(--container)); }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .hero-content { padding: 20px 16px; }
  .scene-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .compare-img { width: 160px; height: 160px; }
}

/* ── Legal pages ── */
.legal-page { padding: 100px 0 80px; background: var(--black); color: var(--white); }
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-content h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 12px;
}
.legal-effective { margin-bottom: 28px; font-size: 0.86rem; color: rgba(255,255,255,0.4); }
.legal-lead { margin-bottom: 32px; font-size: 1rem; color: var(--muted-dark); }
.legal-content h2 {
  margin: 40px 0 14px;
  font-family: "Manrope", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--white);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  margin: 24px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.legal-content p { margin-bottom: 14px; font-size: 0.94rem; color: var(--muted-dark); }
.legal-content ul { margin-bottom: 18px; padding-left: 1.25em; color: var(--muted-dark); list-style: disc; }
.legal-content li { margin-bottom: 10px; font-size: 0.94rem; line-height: 1.75; }
.legal-content strong { color: rgba(255,255,255,0.9); font-weight: 600; }

.legal-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
}
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.legal-table thead { background: rgba(255,255,255,0.05); }
.legal-table th {
  padding: 12px 18px;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid var(--line-dark);
}
.legal-table td {
  padding: 13px 18px;
  color: var(--muted-dark);
  line-height: 1.65;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table th:first-child, .legal-table td:first-child { color: rgba(255,255,255,0.9); font-weight: 600; }
