@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

:root {
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --ink: #171f26;
  --bg: #eaf1f7;
  --mute: #54646f;
  --raise: -6px -6px 14px rgba(255, 255, 255, .95), 6px 6px 16px rgba(23, 31, 38, .13);
  --raise-sm: -3px -3px 8px rgba(255, 255, 255, .92), 3px 3px 9px rgba(23, 31, 38, .12);
  --inset: inset -3px -3px 8px rgba(255, 255, 255, .9), inset 3px 3px 8px rgba(23, 31, 38, .13);
  --nav-w: 236px;
  --rail-w: 252px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-left: var(--nav-w);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(23, 31, 38, .09) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--ink);
  font-family: 'Cabin', 'Amatic SC', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: .008em;
}

a { color: #1c4a6b; }

img { display: block; }

.skip {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 60;
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 14px;
  background: #eef4f9;
  box-shadow: var(--raise-sm);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-190%);
  transition: transform .16s ease;
}

.skip:focus { transform: none; }

/* ---------- 左栏固定导航 ---------- */

.sidenav {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--nav-w);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 18px 24px;
  overflow-y: auto;
  background: linear-gradient(165deg, #e5f0f9, #f7e7ef);
  box-shadow: 9px 0 26px rgba(23, 31, 38, .10);
}

.brand {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, #eef5fb, #f8e8f0);
  box-shadow: var(--raise-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
}

.brand-text { display: block; }

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

.sidenav nav a {
  display: block;
  min-height: 46px;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e9f2f9, #f7e9f0);
  box-shadow: var(--raise-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: 16.5px;
  line-height: 1.35;
  transition: box-shadow .15s ease, transform .15s ease;
}

.sidenav nav a:hover,
.sidenav nav a:focus-visible {
  box-shadow: var(--inset);
  transform: translateY(1px);
}

.sidenav nav a:active { transform: scale(.982); }

.cta {
  margin-top: auto;
  display: block;
  padding: 15px 16px;
  min-height: 48px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--blue), var(--pink));
  box-shadow: var(--raise);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .06em;
  transition: box-shadow .15s ease, transform .15s ease;
}

.cta:active { box-shadow: var(--inset); transform: scale(.982); }

/* ---------- 主体 ---------- */

main {
  max-width: 1150px;
  margin: 0 auto;
  padding: 34px clamp(14px, 2.4vw, 38px) 72px;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  gap: 30px;
  align-items: start;
}

.hero {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
}

.hero-h {
  margin: 0;
  max-width: 17em;
  font-size: clamp(27px, 4.2vw, 46px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: .012em;
}

.collage {
  margin: 0;
  min-height: 168px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.plate {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, #d9ebf8, #f8e4ed);
  box-shadow: var(--raise);
}

.plate-1 {
  width: 44%;
  max-width: 340px;
  aspect-ratio: 16 / 10;
  transform: translateY(-14px) rotate(-2deg);
}

.plate-2 {
  width: 31%;
  max-width: 248px;
  aspect-ratio: 1 / 1;
  transform: translateY(20px) rotate(2.4deg);
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow { min-width: 0; }

.flow > section {
  margin: 0 0 34px;
  padding: 30px clamp(18px, 2.6vw, 34px) 34px;
  border-radius: 4px;
  border-bottom: 3px solid var(--blue);
  background: linear-gradient(150deg, #eef5fb, #f8ebf1);
  box-shadow: var(--raise);
  scroll-margin-top: 24px;
}

.flow > section:nth-child(even) { border-bottom-color: var(--pink); }

.flow > section:last-child { margin-bottom: 0; }

#home {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 36px clamp(20px, 3vw, 44px) 42px;
  border-bottom: 3px solid var(--pink);
  background: linear-gradient(140deg, #e5f1fb, #fbe9f1);
}

#home h1 {
  margin: 0 0 20px;
  max-width: 15em;
  font-size: clamp(27px, 4vw, 44px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: .012em;
}

#home h2 {
  margin: 0 0 20px;
  max-width: 17em;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.28;
}

#home p {
  margin: 0 0 12px;
  max-width: 33em;
  color: #33404a;
}

.flow p { margin: 0 0 1em; }

.flow h2 {
  margin: 1.4em 0 .6em;
  font-size: 24px;
  line-height: 1.36;
}

.flow h3 {
  margin: 1.2em 0 .5em;
  font-size: 20px;
  line-height: 1.4;
}

.flow h2:first-child,
.flow h3:first-child { margin-top: 0; }

.flow small {
  display: block;
  font-size: 16px;
  letter-spacing: .2em;
  color: var(--mute);
  margin-bottom: 2px;
}

.flow ul,
.flow ol { margin: 0 0 1em; padding-left: 1.35em; }

.flow li { margin: .35em 0; }

.flow a {
  color: #1c4a6b;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.flow img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--raise-sm);
  margin: 8px 0;
}

.flow figure { margin: 1.2em 0; }

.flow blockquote {
  margin: 1.2em 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: #e6f0f8;
  box-shadow: var(--inset);
}

.flow blockquote p:last-child { margin-bottom: 0; }

/* ---------- 右侧栏 ---------- */

.rail {
  position: sticky;
  top: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px 24px;
  border-radius: 4px;
  border-bottom: 3px solid var(--pink);
  background: linear-gradient(150deg, #eaf3fa, #f9eaf1);
  box-shadow: var(--raise);
}

.rail small {
  display: block;
  font-size: 16px;
  letter-spacing: .22em;
  color: var(--mute);
}

.rail-h {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.35;
}

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

.rail-list a {
  display: block;
  padding: 11px 13px;
  min-height: 44px;
  border-radius: 12px;
  background: #e8f1f9;
  box-shadow: var(--inset);
  color: #22303a;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.35;
  transition: box-shadow .15s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  box-shadow: var(--raise-sm);
  background: #eef5fb;
}

/* ---------- 页脚 ---------- */

footer {
  padding: 44px clamp(16px, 2.6vw, 40px) 28px;
  background: linear-gradient(180deg, #e5f0f9, #f7e8ef);
  box-shadow: 0 -9px 26px rgba(23, 31, 38, .08);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  max-width: 1080px;
}

.foot-mark {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.sub input {
  flex: 1 1 130px;
  min-height: 46px;
  padding: 11px 15px;
  border: 0;
  border-radius: 14px;
  background: #e7f0f8;
  box-shadow: var(--inset);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}

.sub input::placeholder { color: #6c7c88; }

.sub button {
  min-height: 46px;
  padding: 11px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue), var(--pink));
  box-shadow: var(--raise-sm);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}

.sub button:active { box-shadow: var(--inset); transform: scale(.982); }

footer dl { margin: 0; }

footer dt {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #26404f;
}

footer dd { margin: 0 0 4px; }

footer dd a {
  display: inline-block;
  padding: 9px 0;
  min-height: 40px;
  color: #2b3a45;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}

footer dd a:hover,
footer dd a:focus-visible {
  color: #10181e;
  border-bottom-color: var(--blue);
}

.copy {
  margin: 28px 0 0;
  font-size: 16px;
  color: #47565f;
}

/* ---------- 进入动画 ---------- */

.js .rev {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}

.js .rev.in {
  opacity: 1;
  transform: none;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 980px) {
  body { padding-left: 0; padding-bottom: 86px; }

  .sidenav {
    inset: auto 0 0 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 -9px 22px rgba(23, 31, 38, .14);
  }

  .brand {
    flex: 0 0 auto;
    padding: 11px 13px;
    font-size: 17px;
    border-radius: 13px;
  }

  .sidenav nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; }

  .sidenav nav ul { flex-direction: row; gap: 8px; }

  .sidenav nav a {
    white-space: nowrap;
    padding: 12px 14px;
    min-height: 44px;
    font-size: 16px;
  }

  .cta {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 12px 15px;
    min-height: 44px;
    border-radius: 13px;
  }

  main { padding: 20px 14px 46px; }

  .stage { grid-template-columns: minmax(0, 1fr); gap: 22px; }

  .rail { position: static; order: 3; }

  .hero {
    align-items: flex-start;
    text-align: left;
  }

  .hero-h { font-size: clamp(25px, 7vw, 34px); }

  .collage {
    min-height: 112px;
    justify-content: center;
    gap: 11px;
  }

  .plate-1 {
    width: 54%;
    max-width: 240px;
    max-height: 116px;
    transform: rotate(-1.6deg);
  }

  .plate-2 {
    width: 33%;
    max-width: 150px;
    max-height: 98px;
    transform: translateY(10px) rotate(2deg);
  }

  #home {
    min-height: 0;
    align-items: flex-start;
    text-align: left;
    padding: 26px 20px 30px;
  }

  #home h1 { font-size: clamp(25px, 7vw, 34px); }

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .rev {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * { transition-duration: .01ms !important; }
}

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