:root {
  --teal: #0d9488;
  --teal-bright: #14b8a6;
  --teal-deep: #0f766e;
  --ink: #0c1f1c;
  --ink-soft: #2a403c;
  --mist: #e7f5f3;
  --sand: #f3faf8;
  --line: rgba(12, 31, 28, 0.12);
  --radius-phone: 28px;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal-deep);
}

/* —— Header —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.nav a:hover {
  color: #fff;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #f4fffc;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(94, 234, 212, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(20, 184, 166, 0.22), transparent 50%),
    linear-gradient(165deg, #063f3a 0%, #0d9488 42%, #115e59 78%, #042f2e 100%);
  animation: tide 14s ease-in-out infinite alternate;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

@keyframes tide {
  from { filter: saturate(1) brightness(1); transform: scale(1); }
  to { filter: saturate(1.08) brightness(1.04); transform: scale(1.03); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 6.5rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.brand-hero {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  animation: rise 0.8s ease both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  animation: rise 0.8s ease 0.08s both;
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 26rem;
  font-size: 1.05rem;
  color: rgba(236, 253, 245, 0.82);
  animation: rise 0.8s ease 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.8s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

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

.btn-primary {
  background: #fff;
  color: var(--teal-deep);
}

.btn-primary:hover {
  background: var(--mist);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-device {
  display: flex;
  justify-content: center;
  animation: float-in 1s ease 0.2s both;
}

.phone-frame,
.shot-frame {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 390 / 844;
  border-radius: var(--radius-phone);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(4, 47, 46, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 28px 60px rgba(0, 0, 0, 0.35);
}

.phone-frame img,
.shot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.phone-frame img.is-loaded,
.shot-frame img.is-loaded {
  opacity: 1;
}

.shot-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.03) 10px,
      rgba(255, 255, 255, 0.03) 20px
    );
}

.shot-placeholder[hidden] {
  display: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* —— Sections —— */
.section {
  padding: 4.5rem 1.5rem;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 700;
  color: var(--ink);
}

.section-lede {
  margin: 0 0 2.25rem;
  max-width: 34rem;
  color: var(--ink-soft);
}

.features {
  background: #fff;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}

.feature-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-deep);
}

.feature-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.shots {
  background:
    linear-gradient(180deg, var(--sand), #e8f4f1 55%, var(--sand));
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.shot-card {
  margin: 0;
}

.shot-card .shot-frame {
  width: 100%;
  box-shadow:
    0 0 0 1px var(--line),
    0 16px 36px rgba(15, 118, 110, 0.12);
  background: linear-gradient(160deg, #0f766e, #134e4a);
}

.shot-card figcaption {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 1.5rem 3rem;
  background: #042f2e;
  color: rgba(236, 253, 245, 0.78);
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.site-footer .brand-name {
  color: #fff;
  font-size: 1.15rem;
}

.site-footer p {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
}

.footer-links {
  opacity: 0.85;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* —— 协议 / 隐私政策页 —— */
body.legal-body {
  background: var(--sand);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  background: rgba(243, 250, 248, 0.92);
  backdrop-filter: blur(10px);
}

.legal-header .brand-name {
  color: var(--teal-deep);
}

.legal-header .nav a {
  color: var(--ink-soft);
}

.legal-main {
  padding: 0 1.5rem 4rem;
}

.legal-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.6rem 2.4rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(12, 31, 28, 0.06);
}

.legal-article h1 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.6rem;
}

.legal-article h2 {
  font-size: 1.08rem;
  margin: 1.6rem 0 0.55rem;
  color: var(--teal-deep);
}

.legal-article h3 {
  font-size: 1rem;
  margin: 1rem 0 0.4rem;
}

.legal-article p {
  margin: 0.55rem 0;
  color: var(--ink-soft);
}

.legal-meta {
  font-size: 0.88rem;
  color: #5b6f6b;
}

.legal-article a {
  color: var(--teal);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 5.5rem;
    text-align: center;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .nav {
    gap: 0.9rem;
    font-size: 0.88rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

@media (max-width: 520px) {
  .shot-grid {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere,
  .brand-hero,
  .hero h1,
  .lede,
  .cta-row,
  .hero-device {
    animation: none !important;
  }
}
