@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Noto+Serif+SC:wght@500;700&display=swap');

:root {
  --ink: #14252b;
  --muted: #5a6e75;
  --paper: #f3f7f6;
  --foam: #e7f1ef;
  --sea: #0f5c63;
  --sea-deep: #0a3a40;
  --coral: #d4543a;
  --coral-soft: #f3ddd6;
  --line: rgba(15, 92, 99, 0.14);
  --radius: 18px;
  --shadow: 0 18px 40px rgba(10, 58, 64, 0.14);
  --max: 1120px;
  --header-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d8ece9 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #f6e4dc 0%, transparent 45%),
    linear-gradient(180deg, #f7fbfa 0%, var(--paper) 40%, #eef4f3 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
h1, h2, h3, h4 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  line-height: 1.35;
  color: var(--sea-deep);
  margin: 0 0 0.6em;
  font-weight: 700;
}
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 247, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sea-deep);
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-desktop {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-desktop a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  background: var(--foam);
  color: var(--sea);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--sea-deep);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--sea-deep);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 16px 16px;
}
.nav-drawer.open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 120;
  box-shadow: 0 16px 28px rgba(10, 58, 64, 0.12);
}
.nav-drawer a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 500;
}
.nav-drawer a:hover,
.nav-drawer a.active { background: var(--foam); color: var(--sea); }

.ads-fixed-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(243, 247, 246, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.ads-slot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 12px 4px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
  background: transparent;
  margin: 6px 0;
}
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}
#ads figure { margin: 0; }
#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24,24,24,0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg,#fff,#fff);
}
#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}
#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24,24,24,0.18);
}
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 36px 0 28px;
  min-height: calc(100vh - var(--header-h) - 120px);
}

.hero-copy .eyebrow {
  display: inline-block;
  color: var(--coral);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}
.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 14px;
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 36em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: var(--sea);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 92, 99, 0.28);
}
.btn-primary:hover { background: var(--sea-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: #fff;
  color: var(--sea-deep);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--coral); border-color: var(--coral); }

.phone-stack {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone {
  width: min(260px, 58vw);
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  background: #111;
  position: absolute;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 9 / 19.5;
}
.phone-back {
  transform: translate(-54px, 18px) rotate(-8deg);
  z-index: 1;
  opacity: 0.96;
}
.phone-front {
  transform: translate(48px, -10px) rotate(5deg);
  z-index: 2;
}
.phone-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 84, 58, 0.22), transparent 70%);
  z-index: 0;
  filter: blur(8px);
  animation: drift 7s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(-20px, 10px) scale(1); }
  to { transform: translate(24px, -16px) scale(1.08); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy, .phone-stack { animation: rise .8s ease both; }
.phone-stack { animation-delay: .12s; }

.section {
  padding: 42px 0 8px;
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 720px;
  margin-bottom: 24px;
}
.section-head p { color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-item {
  display: grid;
  gap: 12px;
}
.feature-item figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 58, 64, 0.1);
  background: #fff;
}
.feature-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  transition: transform .45s ease;
}
.feature-item:hover img { transform: scale(1.03); }
.feature-item h3 { font-size: 1.15rem; margin: 0; }
.feature-item p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.split-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto;
}
.split-text h2 { font-size: 1.55rem; }
.split-text p { color: var(--muted); }

.guide-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.guide-list li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px 16px 64px;
  position: relative;
}
.guide-list li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.mosaic figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(10, 58, 64, 0.08);
}
.mosaic img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}
.mosaic figcaption {
  padding: 10px 12px 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.prose {
  max-width: 820px;
}
.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.3em; font-size: 1.18rem; }
.prose .lead { font-size: 1.08rem; color: var(--muted); }

.legal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px;
  margin-top: 24px;
  box-shadow: 0 8px 24px rgba(10, 58, 64, 0.05);
}
.legal h1 { font-size: 1.8rem; }
.legal h2 { font-size: 1.25rem; margin-top: 1.4em; }
.page-pad { padding-top: 18px; }

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}
.entry-links a {
  text-decoration: none;
  background: var(--foam);
  color: var(--sea-deep);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--line);
}
.entry-links a:hover { background: var(--sea); color: #fff; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--sea-deep);
  color: rgba(255,255,255,0.82);
  padding: 36px 20px 28px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.88;
}
.footer-nav a:hover { opacity: 1; color: #ffd7cb; }
.footer-copy { font-size: 0.9rem; opacity: 0.7; }

.error-box {
  text-align: center;
  padding: 64px 16px 40px;
  max-width: 640px;
  margin: 0 auto;
}
.error-box h1 { font-size: 3rem; }
.error-box p { color: var(--muted); }

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 0 12px;
    text-align: center;
  }
  .hero-lead { margin: 0 auto; }
  .cta-row { justify-content: center; }
  .phone-stack { height: 440px; margin-top: 8px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }
  .site-header { flex-shrink: 0; }
  .ads-fixed-wrap {
    position: relative;
    top: auto;
    flex-shrink: 0;
  }
  .mobile-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-wrap.page-pad { padding-left: 16px; padding-right: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .phone {
    width: min(210px, 46vw);
  }
  .phone-back { transform: translate(-36px, 14px) rotate(-7deg); }
  .phone-front { transform: translate(34px, -8px) rotate(4deg); }
  .phone-stack { height: 380px; }
  .legal { padding: 22px 16px; }
}

@media (min-width: 769px) {
  .nav-drawer { display: none !important; }
}
