/* Nameo 官网 v2.1 — 产品叙事版 */

:root {
  color-scheme: light;
  --bg: #F7F4ED;
  --bg-elevated: #FFFFFF;
  --bg-muted: #ECEFF3;
  --ink: #111827;
  --ink-soft: #334155;
  --ink-muted: #64748B;
  --line: rgba(17, 24, 39, 0.12);
  --line-strong: rgba(17, 24, 39, 0.22);
  --brand: #245BFF;
  --brand-strong: #153FD7;
  --mint: #0F9F7A;
  --coral: #E95D3F;
  --amber: #B7791F;
  --surface-blue: #E8F0FF;
  --surface-mint: #E7F7F1;
  --surface-coral: #FFF0EA;
  --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.12);
  --shadow-tight: 0 12px 32px rgba(15, 23, 42, 0.14);
  --font-sans: "HarmonyOS Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  --max: 1180px;
  --nav-h: 72px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D1117;
  --bg-elevated: #151B23;
  --bg-muted: #101820;
  --ink: #F8FAFC;
  --ink-soft: #CBD5E1;
  --ink-muted: #94A3B8;
  --line: rgba(226, 232, 240, 0.13);
  --line-strong: rgba(226, 232, 240, 0.28);
  --brand: #7DA2FF;
  --brand-strong: #AFC4FF;
  --mint: #57D8B2;
  --coral: #FF967A;
  --amber: #F4C76D;
  --surface-blue: rgba(70, 112, 255, 0.16);
  --surface-mint: rgba(15, 159, 122, 0.14);
  --surface-coral: rgba(233, 93, 63, 0.15);
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-tight: 0 12px 32px rgba(0, 0, 0, 0.32);
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  z-index: 200;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--mint), var(--coral));
  z-index: 160;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 150;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-nav.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.nav-inner {
  width: min(100% - 32px, var(--max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 760;
  letter-spacing: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  gap: 26px;
}

.nav-link {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 560;
  padding: 8px 0;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-strong);
}

.ghost-button,
.icon-button,
.nav-download {
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 84%, transparent);
  color: var(--ink-soft);
  cursor: pointer;
}

.ghost-button {
  padding: 0 12px;
  font-size: 0.86rem;
  font-weight: 680;
}

.icon-button {
  width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-sun {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 14%, transparent);
}

[data-theme="dark"] .theme-sun {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: currentColor;
  box-shadow: inset -6px -3px 0 0 var(--bg-elevated);
}

.nav-download,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 720;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-download {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--brand);
  border-color: transparent;
}

.primary-button {
  padding: 0 22px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--brand) 26%, transparent);
}

.secondary-button {
  padding: 0 20px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-elevated) 74%, transparent);
}

.nav-download:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.secondary-button:hover {
  border-color: var(--brand);
}

.nav-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-menu-button span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 1px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(820px, 92svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--nav-h) + 64px) 0 72px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, transparent), var(--bg) 88%),
    var(--bg-muted);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 68%, transparent) 42%, color-mix(in srgb, var(--bg) 30%, transparent) 100%),
    linear-gradient(180deg, transparent 0%, var(--bg) 96%);
}

.hero-shot {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--ink) 11%, transparent);
  box-shadow: var(--shadow-soft);
  user-select: none;
}

.hero-shot-pc {
  right: -8vw;
  top: 118px;
  width: min(68vw, 900px);
  border-radius: 18px;
  opacity: 0.72;
}

.hero-shot-pad {
  right: 14vw;
  top: 245px;
  width: min(54vw, 720px);
  border-radius: 20px;
  opacity: 0.92;
}

.hero-shot-phone {
  right: 6vw;
  bottom: 66px;
  width: min(24vw, 250px);
  border-radius: 28px;
  opacity: 0.96;
}

.hero-shot-watch {
  right: 31vw;
  bottom: 106px;
  width: min(14vw, 142px);
  border-radius: 31px;
  opacity: 0.95;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  max-width: 880px;
  margin-left: max(20px, calc((100vw - var(--max)) / 2));
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 860;
}

.hero-kicker {
  margin: 22px 0 0;
  max-width: 860px;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 1.08;
  font-weight: 780;
  color: var(--ink);
}

.hero-copy {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.1vw, 1.24rem);
  line-height: 1.72;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  font-size: 0.9rem;
  font-weight: 620;
}

.section {
  padding: 104px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 0 46px;
}

.section-head.narrow {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.section h2,
.download-section h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 820;
}

.section-head p:not(.section-label),
.section-lead,
.download-section p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.78;
}

.intro-band {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.intro-grid,
.trust-grid,
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.flow-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-rail {
  display: grid;
  gap: 72px;
}

.flow-step {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 390px);
  align-items: center;
  gap: 52px;
}

.flow-step-alt {
  grid-template-columns: minmax(280px, 390px) minmax(0, 0.95fr);
}

.flow-step-alt .flow-copy {
  order: 2;
}

.flow-copy {
  max-width: 610px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-weight: 780;
}

.flow-copy h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.flow-copy p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.72;
}

.flow-copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.flow-copy li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 610;
}

.flow-copy li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
}

.phone-frame {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 34px;
  background: #0F172A;
  box-shadow: var(--shadow-soft);
}

.phone-frame img {
  width: 100%;
  border-radius: 25px;
}

.devices-section {
  overflow: hidden;
}

.device-stage {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--surface-blue), color-mix(in srgb, var(--bg-elevated) 88%, transparent));
  box-shadow: var(--shadow-tight);
}

.device-main {
  margin: 0;
}

.device-main img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.device-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.device-strip article {
  min-height: 170px;
  padding: 20px;
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
}

.device-strip span {
  display: block;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-strip strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 1.18rem;
}

.device-strip p {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
  line-height: 1.58;
}

.scenarios-section {
  background: var(--ink);
  color: var(--bg);
}

.scenarios-section .section-label {
  color: color-mix(in srgb, var(--mint) 74%, white);
}

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

.scenario-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
}

.scenario-index {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--bg);
  font-weight: 850;
}

.scenario-card h3 {
  margin: auto 0 10px;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.12;
}

.scenario-card p {
  margin: 0;
  color: color-mix(in srgb, var(--bg) 78%, transparent);
}

.trust-section {
  border-bottom: 1px solid var(--line);
}

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.trust-metrics article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.trust-metrics strong {
  display: block;
  color: var(--brand-strong);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.trust-metrics span {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-weight: 660;
}

.download-section {
  padding: 86px 0 96px;
  background: linear-gradient(135deg, var(--surface-mint), var(--surface-coral));
}

.download-grid {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
}

.widget-preview {
  width: min(100%, 300px);
  justify-self: end;
  margin: 0;
  padding: 10px;
  border-radius: 34px;
  background: #101827;
  box-shadow: var(--shadow-soft);
}

.widget-preview img {
  border-radius: 25px;
}

.site-footer {
  padding: 54px 0 88px;
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr 0.9fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 360px;
  margin: 0;
  color: var(--ink-muted);
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer nav a {
  color: var(--ink-soft);
}

.site-footer nav a:hover {
  color: var(--brand-strong);
}

.footer-bottom {
  width: min(100% - 40px, var(--max));
  margin: 38px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.mobile-cta {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  transform: translate(-50%, 18px);
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  opacity: 0;
  pointer-events: none;
  z-index: 190;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 560ms ease, transform 560ms ease;
}

@media (max-width: 1023px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 16px;
    right: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-tight);
  }

  .nav-links.open {
    display: grid;
    gap: 8px;
  }

  .nav-link {
    padding: 11px 10px;
  }

  .nav-menu-button {
    display: block;
    order: 3;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero {
    min-height: 850px;
  }

  .hero-content {
    max-width: 680px;
  }

  .hero-shot-pc {
    right: -32vw;
    top: 156px;
    width: 880px;
  }

  .hero-shot-pad {
    right: -10vw;
    top: 326px;
    width: 640px;
  }

  .hero-shot-phone {
    right: 8vw;
    bottom: 58px;
    width: 210px;
  }

  .hero-shot-watch {
    right: 38vw;
    bottom: 100px;
    width: 120px;
  }

  .intro-grid,
  .trust-grid,
  .download-grid,
  .flow-step,
  .flow-step-alt {
    grid-template-columns: 1fr;
  }

  .flow-step-alt .flow-copy {
    order: 0;
  }

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

  .widget-preview {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  :root {
    --nav-h: 64px;
  }

  .container,
  .hero-content,
  .footer-bottom {
    width: min(100% - 28px, var(--max));
  }

  .nav-inner {
    width: min(100% - 20px, var(--max));
  }

  .brand span {
    display: none;
  }

  .nav-download {
    display: none;
  }

  .ghost-button,
  .icon-button {
    min-height: 40px;
  }

  .icon-button {
    width: 40px;
  }

  .hero {
    min-height: 700px;
    align-items: start;
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 68px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--bg) 96%, transparent) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 52%, var(--bg) 100%);
  }

  .hero h1 {
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(3.2rem, 14vw, 3.85rem);
  }

  .hero-kicker {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions a,
  .download-actions a {
    width: 100%;
  }

  .hero-signals {
    gap: 8px;
  }

  .hero-signals span {
    font-size: 0.82rem;
    min-height: 32px;
  }

  .hero-shot-pc {
    display: none;
  }

  .hero-shot-pad {
    left: 14px;
    right: auto;
    top: auto;
    bottom: 16px;
    width: 430px;
    max-width: calc(100vw - 28px);
    opacity: 0.86;
  }

  .hero-shot-phone {
    right: 18px;
    bottom: 6px;
    width: 126px;
  }

  .hero-shot-watch {
    left: 26px;
    right: auto;
    bottom: 26px;
    width: 74px;
    border-radius: 18px;
  }

  .section {
    padding: 72px 0;
  }

  .intro-band {
    padding: 54px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .flow-rail {
    gap: 56px;
  }

  .flow-step {
    gap: 30px;
  }

  .phone-frame {
    width: min(100%, 318px);
  }

  .device-stage {
    padding: 12px;
    border-radius: 16px;
  }

  .device-main img {
    min-height: 220px;
    object-fit: cover;
    object-position: left center;
  }

  .device-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .device-strip article {
    min-width: 240px;
    min-height: 158px;
    scroll-snap-align: start;
  }

  .scenario-grid,
  .trust-metrics,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .scenario-card {
    min-height: 220px;
  }

  .download-grid {
    gap: 34px;
  }

  .site-footer {
    padding-bottom: calc(94px + var(--safe-bottom));
  }

  .footer-bottom {
    flex-direction: column;
  }

  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + var(--safe-bottom));
    z-index: 145;
    display: block;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .mobile-cta.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: var(--radius);
    color: #fff;
    background: var(--brand);
    box-shadow: var(--shadow-tight);
    font-weight: 760;
  }
}

@media (max-width: 380px) {
  .hero-copy,
  .flow-copy p,
  .section-head p:not(.section-label),
  .section-lead {
    font-size: 1rem;
  }

  .hero {
    min-height: 700px;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
