:root {
  --brand: #0e7c7b;
  --brand-dark: #0a5c5b;
  --ink: #1c2428;
  --muted: #5d6b73;
  --line: #d5e2e4;
  --bg: #f2f7f7;
  --card: #ffffff;
  --soft: #e4f2f1;
  --max: 1080px;
}

* { 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% -8%, #d4ebea 0%, transparent 55%),
    radial-gradient(860px 400px at 100% 0%, #e8f3f2 0%, transparent 50%),
    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.94);
  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: 64px;
  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(28, 36, 40, 0.06);
}

.hero {
  padding: 36px 0 20px;
}
.hero-panel {
  background: linear-gradient(145deg, #0a5c5b 0%, #0e7c7b 48%, #2aa8a0 100%);
  color: #fff;
  border-radius: 18px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}
.hero-panel::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.25;
  position: relative;
  z-index: 1;
}
.hero .lead {
  margin: 0;
  max-width: 740px;
  font-size: 16px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.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: #eef8f7; 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; }

.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);
}

.site-footer {
  margin-top: 40px;
  background: #143836;
  color: #c5ddd9;
  padding: 28px 0 20px;
}
.site-footer a { color: #8fd4cb; }
.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: #8eaaa6;
}

.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) {
  .grid-2, .footer-grid, .media-row { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .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 12px 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(28, 36, 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: 66px; }
}
@media (max-width: 640px) {
  .hero-panel { padding: 26px 18px; }
  .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; }
}
