:root {
  --green: #22b94a;
  --green-dark: #169a3a;
  --green-deep: #0f7a2c;
  --mint: #e8f7e4;
  --mint-2: #f4fbf2;
  --ink: #1c241e;
  --muted: #5d675f;
  --line: #d4e2d0;
  --price: #d42b2b;
  --bg: #f2f5f1;
  --card: #fcfdfb;
  --nav: rgba(252, 253, 251, 0.92);
  --shadow: 0 10px 28px rgba(22, 70, 32, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --pill: 999px;
  --max: 1120px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eee8;
    --muted: #a3b0a6;
    --line: #2d3a30;
    --bg: #141a16;
    --card: #1c241e;
    --mint: #1a2a1d;
    --mint-2: #18241b;
    --nav: rgba(20, 26, 22, 0.92);
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    --price: #ff6b6b;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100dvh;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--green);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-h);
  background: var(--nav);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.brand-name { font-weight: 700; font-size: 16px; line-height: 1.1; }
.brand-en {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
}
.nav a:hover,
.nav a.is-active { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--pill);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
}

.page { display: none; }
.page.is-on { display: block; }

.hero {
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 56px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero p {
  margin: 0 0 28px;
  max-width: 36ch;
  font-size: 17px;
  color: var(--muted);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { height: 46px; padding: 0 22px; }

.phone {
  justify-self: end;
  width: min(320px, 100%);
  background: #111814;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.phone img {
  border-radius: 26px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.band {
  background: var(--mint);
  padding: 28px 0;
}
.band-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.band h2 {
  margin: 0;
  font-size: 28px;
  color: var(--green-deep);
}
.forbids { display: flex; gap: 14px; flex-wrap: wrap; }
.forbid {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--price);
  color: var(--price);
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--card);
  position: relative;
}
.forbid::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 3px;
  background: var(--price);
  transform: rotate(-28deg);
}
.hours { color: var(--green-deep); font-weight: 700; }

#services, #about, #rules { scroll-margin-top: 80px; }
.section { padding: 72px 0; }
.section h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}
.lead {
  margin: 0 0 32px;
  color: var(--muted);
  max-width: 46ch;
}

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  box-shadow: var(--shadow);
}
.service h3 { margin: 0; font-size: 20px; }
.pop { color: var(--muted); font-size: 12px; }
.tag {
  grid-column: 1 / -1;
  justify-self: start;
  background: var(--mint);
  color: var(--green-deep);
  border-radius: var(--pill);
  padding: 4px 12px;
  font-size: 13px;
}
.price { color: var(--price); font-size: 22px; font-weight: 700; }
.mins { color: var(--muted); font-size: 13px; margin-left: 8px; }
.service .btn { grid-column: 2; grid-row: 3; align-self: end; }

.steps {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 24px;
  border-left: 0;
}
.step {
  display: contents;
}
.step-no {
  font-size: 42px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  padding-bottom: 28px;
}
.step-body { padding-bottom: 28px; }
.step-body h3 { margin: 0 0 6px; font-size: 20px; }
.step-body p { margin: 0; color: var(--muted); }

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.facts {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px 16px;
  margin-top: 24px;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts a { color: var(--green-deep); text-decoration: none; }
.shot {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.legal {
  padding: 40px 0 80px;
}
.legal h1 {
  margin: 0 0 8px;
  font-size: 32px;
}
.legal .meta {
  color: var(--muted);
  margin-bottom: 28px;
}
.legal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.legal h2 {
  font-size: 18px;
  margin: 28px 0 10px;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li {
  color: var(--muted);
  font-size: 15px;
}
.legal ol, .legal ul { padding-left: 1.2em; }
.sdk {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0 20px;
}
.sdk th, .sdk td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}
.sdk th { background: var(--mint-2); }

.site-footer {
  background: #16331c;
  color: #d7e8d9;
  padding: 36px 0 24px;
}
@media (prefers-color-scheme: dark) {
  .site-footer { background: #0f1611; }
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.beian {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: #b7cbb8;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.beian a { color: #d7e8d9; }
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.foot-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

@media (max-width: 767px) {
  .wrap { width: calc(100% - 32px); }
  .menu-btn { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 4px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 8px; }
  .nav .btn { margin-top: 8px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 0 36px;
    gap: 28px;
  }
  .phone { justify-self: center; width: min(280px, 86vw); }
  .band-grid { grid-template-columns: 1fr; gap: 16px; }
  .services { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .legal-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
