:root {
  --primary: #0b7ea0;
  --primary-hover: #096883;
  --primary-soft: #dff4fb;
  --accent: #2eb8ea;
  --text: #123047;
  --muted: #3f5b6c;
  --bg: #eef7fb;
  --hero: #32b7e6;
  --card: #fff;
  --border: #c9e3ee;
  --shadow: 0 18px 50px rgba(11, 110, 138, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.hero-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--hero);
  background-image:
    radial-gradient(ellipse 72% 46% at 86% 4%, rgba(255, 246, 224, 0.78), transparent 56%),
    url("/site/img/hero-sea.svg?v=6"),
    linear-gradient(180deg, #7fe0fa 0%, #3cc4ee 46%, #1aa3d8 100%);
  background-repeat: no-repeat;
  background-size: auto, cover, auto;
  background-position: 0 0, center, 0 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px clamp(16px, 5vw, 80px);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  letter-spacing: 0.04em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(11, 110, 138, 0.28);
}
.nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
}
.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.nav nav a:hover { color: var(--primary); }
.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}
.lang-switch button.is-active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(11, 110, 138, 0.12);
}
html[lang="zh-TW"] body,
html[lang="zh-HK"] body {
  font-family: "PingFang TC", "PingFang HK", "Noto Sans TC", "Heiti TC", sans-serif;
}
html[lang="en"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[lang="en"] .hero h1,
html[lang="en"] .brand,
html[lang="en"] .download-card h2 {
  font-family: Georgia, "Times New Roman", serif;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
[hidden] { display: none !important; }

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: 40px clamp(16px, 5vw, 80px) 56px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
.kicker {
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.22;
  margin: 0 0 18px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-weight: 700;
}
.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero-tags li {
  font-size: 12px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 4px 10px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(11, 110, 138, 0.22);
}
.btn-download:hover { background: var(--primary-hover); }
.btn-download.is-disabled {
  background: #9bb8c2;
  box-shadow: none;
  cursor: default;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-phone {
  width: min(100%, 292px);
  max-width: 72vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 50px rgba(11, 110, 138, 0.34));
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.3;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
}

.features,
.scenes,
.download {
  padding: 56px clamp(16px, 5vw, 80px) 64px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  scroll-margin-top: 88px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}
.feature-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 10px 30px rgba(23, 35, 61, 0.04);
}
.feature-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}
.feature-copy { padding: 20px 22px 24px; }
.feature-grid h3,
.scene-list h3 { margin: 0 0 8px; font-size: 18px; }
.feature-grid p,
.scene-list p { margin: 0; color: var(--muted); font-size: 14px; }

.scene-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}
.scene-list article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(23, 35, 61, 0.04);
  padding: 0;
}
.scene-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  display: block;
  background: var(--primary-soft);
}
.scene-copy { padding: 18px 20px 22px; }

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 40px);
  border-radius: 24px;
  background: linear-gradient(135deg, #0b6e8a 0%, #189ed8 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.download-card > div { min-width: 0; flex: 1 1 220px; }
.download-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}
.download-card .kicker { color: rgba(255, 255, 255, 0.78); }
.download-card h2 {
  margin: 0 0 8px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(22px, 3vw, 30px);
}
.download-card p { margin: 0; color: rgba(255, 255, 255, 0.88); }
.download-card .btn-download {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}
.download-card .btn-download.is-disabled {
  background: rgba(255, 255, 255, 0.55);
  color: var(--primary);
}

.legal {
  flex: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px clamp(16px, 5vw, 80px) 64px;
}
.legal h1 {
  margin: 0 0 20px;
  font-size: clamp(26px, 4vw, 36px);
}
.legal-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(18px, 3.2vw, 40px);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.8;
}

.foot {
  margin-top: auto;
  padding: 20px clamp(16px, 5vw, 80px);
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
  flex-shrink: 0;
}
.foot-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--primary); }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 20px;
    padding-bottom: 36px;
  }
  .hero-screen { min-height: 0; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
  .lead { max-width: none; font-size: 16px; }
  .nav-cta { display: none !important; }
  .nav {
    flex-wrap: wrap;
  }
  .nav-tools {
    margin-left: auto;
  }
  .nav nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a {
    flex-shrink: 0;
    padding: 8px 0;
  }
  .download-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero-phone { width: min(100%, 220px); }
  .hero-actions .btn-download,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .foot-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .download-card .btn-download {
    width: 100%;
    justify-content: center;
  }
}
