@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --sea: #0f766e;
  --sea-deep: #0b4f4a;
  --sea-soft: #d8f3ef;
  --ink: #132528;
  --muted: #5a7074;
  --line: #c9deda;
  --bg: #eef6f4;
  --paper: #f7fcfb;
  --sand: #f3ebe0;
  --accent: #c2410c;
  --max: 1120px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 380px at 8% -8%, #c7ebe4 0%, transparent 58%),
    radial-gradient(700px 320px at 100% 0%, #e8dfd2 0%, transparent 52%),
    linear-gradient(180deg, #f4faf8 0%, var(--bg) 40%, #e9f2ef 100%);
  line-height: 1.85;
  font-size: 16px;
}
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--sea-deep); 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(247, 252, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: Manrope, "Noto Sans SC", sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  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 16px; align-items: center; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.nav a:hover, .nav a.active { color: var(--sea); }

.ads-slot {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(247, 252, 251, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 12px;
  box-shadow: 0 6px 18px rgba(19, 37, 40, 0.05);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-bottom: 8px;
}
.hero-bleed {
  background:
    linear-gradient(135deg, rgba(11, 79, 74, 0.94), rgba(15, 118, 110, 0.88)),
    url("/a.jpg") center / cover no-repeat;
  color: #fff;
  padding: 48px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 14px;
  font-family: Manrope, "Noto Sans SC", sans-serif;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.22;
  font-weight: 800;
}
.hero .lead {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  opacity: 0.95;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--sea-deep); }
.btn-primary:hover { background: var(--sea-soft); color: var(--sea-deep); }
.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: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone {
  width: min(46%, 236px);
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35);
  background: #0a1517;
  position: absolute;
}
.phone img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}
.phone-back {
  z-index: 1;
  filter: brightness(0.92);
  animation: drift-back 6s ease-in-out infinite;
}
.phone-front {
  z-index: 2;
  animation: drift-front 6s ease-in-out infinite;
  animation-delay: -1.8s;
}
@keyframes drift-back {
  0%, 100% { transform: rotate(-10deg) translate(-20%, 10%); }
  50% { transform: rotate(-10deg) translate(-20%, calc(10% - 12px)); }
}
@keyframes drift-front {
  0%, 100% { transform: rotate(8deg) translate(20%, -6%); }
  50% { transform: rotate(8deg) translate(20%, calc(-6% - 12px)); }
}

.section { padding: 34px 0; }
.section h2 {
  margin: 0 0 14px;
  font-family: Manrope, "Noto Sans SC", sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  font-weight: 800;
}
.section h3 {
  margin: 24px 0 10px;
  font-size: 19px;
  color: var(--sea-deep);
}
.section p { margin: 0 0 14px; }
.section ul, .section ol { margin: 0 0 16px; padding-left: 1.2em; }
.section li { margin-bottom: 8px; }

.block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px 22px 22px 4px;
  border-left: 5px solid var(--sea);
  padding: 26px 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.05);
}
.note {
  background: var(--sand);
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  margin: 14px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a1517;
}
.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);
}
.tile {
  background: linear-gradient(160deg, #fff 0%, var(--sea-soft) 140%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.tile h3 { margin-top: 0; }
.tile 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; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
}
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--sea-deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.toc a:hover { background: var(--sea-soft); text-decoration: none; }

.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-family: Manrope, "Noto Sans SC", sans-serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
}
.page-main.padded { padding-bottom: 24px; }

.site-footer {
  margin-top: 48px;
  background:
    linear-gradient(160deg, #0b3d39 0%, #102a2e 100%);
  color: #c5ddd9;
  padding: 34px 0 22px;
}
.site-footer a { color: #7fd4c8; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 22px;
}
.site-footer h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 15px;
  font-family: Manrope, "Noto Sans SC", sans-serif;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.copyright {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  color: #8eaea8;
}

.error-box {
  text-align: center;
  padding: 48px 20px 60px;
}
.error-box .code {
  font-family: Manrope, sans-serif;
  font-size: 76px;
  font-weight: 800;
  color: var(--sea);
  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: 390px; order: -1; }
  .phone { width: min(42%, 196px); }
}
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .nav-toggle { display: inline-flex; }
  .header-inner {
    position: relative;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    background: rgba(247, 252, 251, 0.98);
    box-shadow: 0 12px 28px rgba(19, 37, 40, 0.1);
    z-index: 60;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 12px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav a:last-child { border-bottom: none; }
  .ads-slot { top: var(--header-h); }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-bleed { padding: 28px 0 36px; }
  .mobile-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-main.padded {
    padding-left: 16px;
    padding-right: 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; }
  .phone-stack { min-height: 330px; }
  .phone { width: min(46%, 154px); }
  .block { padding: 20px 16px; border-radius: 4px 18px 18px 4px; }
}
