html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

:root {
  --bg: #cfe3f5;
  --hi: #e9f2fc;
  --lo: #bcd6ee;
  --cream: #fbfdff;
  --pink: #f5e0e8;
  --pink-d: #e2bccd;
  --ink: #171f26;
  --soft: #3f5160;
  --r: 14px;
  --up: -6px -6px 14px rgba(255, 255, 255, 0.92), 6px 6px 18px rgba(23, 31, 38, 0.16);
  --down: inset -3px -3px 8px rgba(255, 255, 255, 0.9), inset 3px 3px 10px rgba(23, 31, 38, 0.16);
}

body {
  margin: 0;
  padding-left: 252px;
  min-height: 100vh;
  font-family: 'Exo', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 100% 0, #eef6fd, rgba(238, 246, 253, 0) 62%),
    linear-gradient(165deg, #ddebfa 0%, #cfe3f5 48%, #c1d8ef 100%);
  background-attachment: fixed;
}

[id] {
  scroll-margin-top: 26px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px 24px;
  border-radius: 0 20px 20px 0;
  background: linear-gradient(160deg, #deedfb, #c5dbf1);
  box-shadow: 10px 0 26px rgba(23, 31, 38, 0.1);
}

.rail-brand {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f4fafe, #cfe1f3);
  box-shadow: var(--up);
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.rail-brand:active {
  transform: scale(0.96);
  box-shadow: var(--down);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-glyph {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--pink), var(--pink-d));
  box-shadow: var(--down);
}

.rail-toggle {
  display: none;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(145deg, #eef6fd, #cfe1f3);
  box-shadow: var(--up);
  cursor: pointer;
}

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rail-group span {
  display: block;
  padding: 10px 6px 2px;
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--soft);
}

.rail-item a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(145deg, #eaf3fd, #cbdff2);
  box-shadow: var(--up);
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.rail-item a:hover {
  color: #19344a;
  box-shadow: -3px -3px 8px rgba(255, 255, 255, 0.95), 3px 3px 10px rgba(23, 31, 38, 0.18);
}

.rail-item a[aria-current='page'] {
  background: linear-gradient(145deg, var(--pink), #eac9d8);
  box-shadow: var(--down);
  font-weight: 600;
}

.rail-item a:active {
  transform: scale(0.97);
  box-shadow: var(--down);
}

.rail-contact {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(145deg, #fbe9f0, #e8c8d8);
  box-shadow: var(--up);
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.rail-contact:active {
  transform: scale(0.97);
  box-shadow: var(--down);
}

/* ---------- 版心 ---------- */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px;
}

.main {
  padding-bottom: 44px;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 52px 0 40px;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shot {
  position: absolute;
  margin: 0;
  width: 35%;
  max-width: 300px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0.72;
  background: linear-gradient(145deg, #f1f8fe, #cbdff2);
  box-shadow: -10px -10px 26px rgba(255, 255, 255, 0.85), 12px 14px 30px rgba(23, 31, 38, 0.18);
}

.shot-a {
  left: 0;
  top: 7%;
  transform: rotate(-6deg);
}

.shot-b {
  right: 0;
  bottom: 6%;
  transform: rotate(5deg);
  background: linear-gradient(145deg, #fdeef4, #e5c4d4);
}

.shot-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-fill {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(60% 60% at 30% 25%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
    linear-gradient(145deg, rgba(245, 224, 232, 0.6), rgba(200, 224, 244, 0.15));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 0 10px;
  text-align: center;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #3a2731;
  background: linear-gradient(145deg, var(--pink), #e6c6d6);
  box-shadow: var(--up);
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(145deg, #eaf3fd, #c9def1);
  box-shadow: var(--up);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-solid {
  background: linear-gradient(145deg, #fbe8f0, #e6c3d4);
}

.btn:hover {
  box-shadow: -3px -3px 9px rgba(255, 255, 255, 0.95), 4px 4px 12px rgba(23, 31, 38, 0.2);
}

.btn:active {
  transform: scale(0.97);
  box-shadow: var(--down);
}

/* ---------- 引导块 ---------- */
.lead {
  margin: 4px 0 30px;
  padding: 24px 28px;
  border-radius: var(--r);
  background: linear-gradient(145deg, #f8fcff, #e3eefa);
  box-shadow: var(--up);
}

.lead h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.lead .subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--soft);
}

/* ---------- 正文 ---------- */
.prose {
  padding: 4px 0 28px;
  overflow-wrap: break-word;
}

.prose > div {
  position: relative;
  margin: 0 0 26px;
  padding: 26px 26px 34px;
  border-radius: var(--r);
  background: linear-gradient(145deg, #fcfdff, #e6f1fb);
  box-shadow: var(--up);
  overflow: hidden;
}

.prose > div::after {
  content: '';
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 15px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink-d), rgba(245, 224, 232, 0));
}

.prose h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.34;
  letter-spacing: -0.015em;
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  line-height: 1.4;
}

.prose p {
  margin: 0 0 14px;
  color: #22303b;
}

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
}

.prose li {
  margin: 0 0 8px;
}

.prose a {
  color: #1c3a52;
  text-decoration: underline;
  text-decoration-color: var(--pink-d);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 12px;
  box-shadow: var(--up);
}

.prose blockquote {
  margin: 0 0 14px;
  padding: 14px 18px;
  border-radius: 12px;
  color: #3a2731;
  background: linear-gradient(145deg, var(--pink), #efd3e0);
  box-shadow: var(--down);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 0 0 14px;
}

.prose th,
.prose td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(23, 31, 38, 0.12);
}

.prose code,
.prose pre {
  font-family: 'Roboto Mono', monospace;
  font-size: 15px;
}

.prose pre {
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 12px;
  background: #dfeaf6;
  box-shadow: var(--down);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 12px;
  padding: 40px 0 26px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(186, 213, 238, 0.9));
  box-shadow: inset 0 4px 14px rgba(255, 255, 255, 0.9);
}

.foot-cta {
  padding: 28px 26px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(145deg, #fdeef4, #e3eefb);
  box-shadow: var(--up);
}

.foot-cta h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: -0.02em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 26px;
  margin: 28px 0 8px;
}

.foot-addr {
  font-style: normal;
}

.foot-brand {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 10px;
  font-weight: 600;
  background: linear-gradient(145deg, #f7fbfe, #d8e7f6);
  box-shadow: var(--down);
}

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-list li a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 2px;
  color: #22303b;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid rgba(226, 188, 205, 0.65);
}

.foot-list li a:hover {
  border-bottom-color: var(--ink);
}

.copy {
  margin: 22px 0 0;
  text-align: center;
  font-size: 16px;
  color: var(--soft);
}

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .btn,
  .rail-item a,
  .rail-contact,
  .rail-brand {
    transition: none;
  }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  body {
    padding-left: 0;
    font-size: 16.5px;
  }

  [id] {
    scroll-margin-top: 92px;
  }

  .rail {
    position: sticky;
    inset: 0 0 auto 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 20px rgba(23, 31, 38, 0.14);
  }

  .rail-brand {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .rail-toggle {
    display: inline-flex;
    align-items: center;
  }

  .rail-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: 68vh;
    overflow-y: auto;
    padding: 10px 14px 16px;
    border-radius: 0 0 18px 18px;
    background: #d8e8f7;
    box-shadow: 0 16px 26px rgba(23, 31, 38, 0.2);
  }

  .rail-nav.is-open {
    display: block;
  }

  .rail-contact {
    margin: 0 0 0 auto;
    padding: 0 18px;
    min-height: 46px;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero {
    min-height: 70vh;
    padding: 40px 0 34px;
  }

  .shot {
    width: 43%;
    opacity: 0.6;
  }

  .shot-a {
    top: 4%;
    left: -4%;
  }

  .shot-b {
    bottom: 5%;
    right: -4%;
  }

  .lead {
    padding: 20px 18px;
  }

  .prose > div {
    padding: 22px 18px 32px;
  }

  .prose > div::after {
    left: 18px;
    right: 18px;
  }

  .foot-cols {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .foot-addr {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 30px;
  }

  .badge {
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .btn {
    padding: 0 18px;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
