:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-light: #14b8a6;
  --ink: #0f1c24;
  --muted: #5b6b76;
  --line: #d5e3ea;
  --bg: #f2f7f8;
  --card: #ffffff;
  --soft: #e6f4f2;
  --max: 1100px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 480px at 8% -12%, #cfeceb 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #d9eef0 0%, transparent 48%),
    var(--bg);
  line-height: 1.8;
  font-size: 16px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
#ads img {
  width: 65px;
  height: 65px;
  max-width: 65px;
  max-height: 65px;
  object-fit: contain;
  object-position: center;
}
.wrap { width: min(100% - 32px, var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover, .nav a.active { color: var(--brand); }

.ads-slot {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 12px;
  box-shadow: 0 4px 14px rgba(15, 28, 36, 0.06);
}

.hero {
  padding: 32px 0 12px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(145deg, #115e59 0%, #0f766e 45%, #0d9488 100%);
  color: #fff;
  border-radius: 20px;
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
}
.hero-grid::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -80px;
  top: -90px;
  background: rgba(255, 255, 255, 0.1);
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.28;
}
.hero-copy .lead {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  opacity: 0.96;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #fff; color: var(--brand-dark); }
.btn-primary:hover { background: #ecfdf9; color: var(--brand-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.phone-stack {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.phone {
  width: min(48%, 220px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 46px rgba(7, 40, 38, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.55);
  background: #0b1220;
}
.phone img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top;
}
.phone-back {
  position: absolute;
  left: 12%;
  transform: rotate(-8deg) translateY(10px);
  z-index: 1;
}
.phone-front {
  position: absolute;
  right: 10%;
  transform: rotate(7deg) translateY(-6px);
  z-index: 2;
}

.section { padding: 28px 0; }
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
}
.section h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  color: var(--brand-dark);
}
.section p { margin: 0 0 14px; color: var(--ink); }
.section ul, .section ol { margin: 0 0 16px; padding-left: 1.2em; color: var(--ink); }
.section li { margin-bottom: 8px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
}
.note {
  background: var(--soft);
  border-left: 4px solid var(--brand);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  margin: 14px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.shot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d1420;
}
.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}
.shot figcaption {
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.feature h3 { margin-top: 0; }
.feature p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.media-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 8px;
}
.media-row .shot img { aspect-ratio: 3 / 5; }

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 14px 0 0;
}
.breadcrumb a { color: var(--muted); }

.page-title {
  padding: 18px 0 8px;
}
.page-title h1 {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 34px);
}

.page-main {
  padding-bottom: 20px;
}

.site-footer {
  margin-top: 40px;
  background: #0f3d3a;
  color: #c5ddd9;
  padding: 28px 0 20px;
}
.site-footer a { color: #7fd4c8; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
.site-footer h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 15px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.copyright {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  color: #8fb5af;
}

.error-box {
  text-align: center;
  padding: 48px 20px 60px;
}
.error-box .code {
  font-size: 72px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 10px;
}
.error-box h1 { margin: 0 0 10px; font-size: 28px; }
.error-box p { color: var(--muted); max-width: 560px; margin: 0 auto 18px; }

@media (max-width: 900px) {
  .hero-grid, .grid-2, .footer-grid, .media-row { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .phone-stack { min-height: 360px; }
  .phone { width: min(44%, 190px); }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav a:last-child { border-bottom: none; }
  .ads-slot { top: 66px; }
  .hero-grid { grid-template-columns: 1fr; padding: 26px 18px; }
  .phone-stack { min-height: 300px; margin-top: 6px; }
  .phone { width: min(42%, 170px); }
  .phone-back { left: 8%; }
  .phone-front { right: 6%; }
  .page-main {
    padding-left: 4px;
    padding-right: 4px;
  }
  .page-main .panel {
    padding: 18px 16px;
  }
}

@media (max-width: 640px) {
  .grid-2, .footer-grid, .media-row { grid-template-columns: 1fr; }
  .media-row .shot:nth-child(n+3) { display: none; }
  .shot img { aspect-ratio: 9 / 14; max-height: 420px; }
}
