@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --bg: #c8e0f4;
  --bg-deep: #b9d5ee;
  --pink: #f5e0e8;
  --ink: #171f26;
  --ink-soft: #3d4e5d;
  --r: 14px;
  --out: -5px -5px 15px rgba(255, 255, 255, 0.92), 6px 6px 16px rgba(23, 31, 38, 0.16);
  --out-sm: -3px -3px 8px rgba(255, 255, 255, 0.9), 3px 3px 9px rgba(23, 31, 38, 0.15);
  --in: inset -3px -3px 7px rgba(255, 255, 255, 0.9), inset 3px 3px 8px rgba(23, 31, 38, 0.16);
  --rail: 108px;
  --top: 38px;
}

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

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

body {
  margin: 0;
  padding-left: var(--rail);
  padding-top: var(--top);
  font-family: 'Roboto', system-ui, -apple-system, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: linear-gradient(150deg, #d5e7f8, #bbd6ee 60%, #c9e1f4);
  background-attachment: fixed;
}

a { color: inherit; }

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

/* 顶部细条 */
.topline {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--top);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 22px;
  z-index: 40;
  background: var(--ink);
  color: var(--pink);
  font-size: 14px;
  letter-spacing: 0.24em;
}

.toplineText { text-transform: none; }

/* 左侧固定导轨 */
.rail {
  position: fixed;
  top: var(--top);
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 10px 18px;
  background: linear-gradient(160deg, #d8e9f8, #bdd7ee);
  box-shadow: 6px 0 20px rgba(23, 31, 38, 0.13);
}

.mark {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(145deg, #f7e7ee, #e7cfda);
  box-shadow: var(--out-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mark img { width: 28px; height: 28px; border-radius: 8px; }

.mark:active { box-shadow: var(--in); transform: scale(0.97); }

.railNav {
  width: 100%;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.railNav p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.railNav a {
  display: block;
  padding: 11px 6px;
  min-height: 42px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: box-shadow 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.railNav a:first-child {
  color: var(--ink);
  font-weight: 500;
  background: linear-gradient(145deg, #f7e7ee, #e8d2dd);
  box-shadow: var(--out-sm);
}

.railNav a:hover {
  color: var(--ink);
  box-shadow: var(--out-sm);
}

.railNav a:active {
  box-shadow: var(--in);
  transform: scale(0.97);
}

/* 英雄区 */
.hero {
  position: relative;
  min-height: calc(100vh - var(--top));
  min-height: calc(100svh - var(--top));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 64px 6vw 110px;
  overflow: hidden;
  isolation: isolate;
}

.heroFig {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  background: linear-gradient(135deg, #171f26, #3d4e5d);
}

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

.heroVeil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(23, 31, 38, 0.72), rgba(200, 224, 244, 0.2) 46%, rgba(245, 224, 232, 0.96));
}

.heroCopy {
  position: relative;
  z-index: 2;
  max-width: 580px;
  text-align: right;
}

.heroCopy h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.heroLead {
  margin: 0 0 26px auto;
  max-width: 40ch;
  font-size: 17px;
  color: var(--ink-soft);
}

.heroJump { margin: 0; }

.heroJump a {
  display: inline-block;
  padding: 13px 30px;
  min-height: 46px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: linear-gradient(145deg, #fbeef3, #ead3de);
  box-shadow: var(--out);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.heroJump a:active { box-shadow: var(--in); transform: scale(0.98); }

.heroBand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  z-index: 1;
  background: linear-gradient(90deg, #c8e0f4, #f5e0e8);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  opacity: 0.95;
}

/* 正文 + 右栏 */
.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  gap: 46px;
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 5vw 76px;
}

main [id] { scroll-margin-top: calc(var(--top) + 18px); }

.prose { min-width: 0; }

.prose > div {
  margin: 0 0 46px;
  padding-bottom: 6px;
}

.prose > div:last-child { margin-bottom: 0; }

.prose h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.9vw, 30px);
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin: 26px 0 8px;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 500;
}

.prose hr {
  border: 0;
  height: 2px;
  margin: 0 0 20px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), rgba(245, 224, 232, 0));
}

.prose p { margin: 0 0 16px; }

.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding: 18px 20px 18px 38px;
  border-radius: var(--r);
  background: linear-gradient(145deg, #d3e6f7, #c1daef);
  box-shadow: var(--in);
}

.prose li { margin: 0 0 8px; }
.prose li:last-child { margin-bottom: 0; }

.prose strong { font-weight: 700; }

.prose a {
  color: #14476b;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 22px 0;
  padding: 18px 22px;
  border-radius: var(--r);
  background: linear-gradient(145deg, #f8ecf1, #ecd7e0);
  box-shadow: var(--out-sm);
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: var(--out-sm);
}

.prose figure { margin: 22px 0; }
.prose figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 8px; }

/* 右侧栏 */
.side {
  position: sticky;
  top: calc(var(--top) + 22px);
  padding: 20px 18px 22px;
  border-radius: 16px;
  background: linear-gradient(145deg, #d7e9f8, #bfd8ee);
  box-shadow: var(--out);
}

.side h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.side hr {
  border: 0;
  height: 2px;
  margin: 0 0 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), rgba(245, 224, 232, 0));
}

.sideList {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sideList a {
  display: block;
  padding: 10px 10px;
  min-height: 42px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink-soft);
  transition: box-shadow 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sideList a:hover { color: var(--ink); box-shadow: var(--out-sm); }
.sideList a:active { box-shadow: var(--in); transform: scale(0.98); }

.toTop {
  display: block;
  padding: 11px 12px;
  min-height: 42px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.06em;
  background: linear-gradient(145deg, #fbeef3, #e9d1dd);
  box-shadow: var(--out-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.toTop:active { box-shadow: var(--in); transform: scale(0.98); }

/* 页脚 */
.foot {
  padding: 60px 5vw 30px;
  background: linear-gradient(155deg, #c4dcf1, #b3cfe8);
  box-shadow: inset 6px 6px 22px rgba(23, 31, 38, 0.1);
}

.footGrid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
}

.foot address { font-style: normal; }

.bigBrand {
  display: block;
  font-size: clamp(32px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.footLinks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.footLinks a {
  display: block;
  padding: 11px 8px;
  min-height: 44px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  color: var(--ink);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.footLinks a:hover { box-shadow: var(--out-sm); }
.footLinks a:active { box-shadow: var(--in); transform: scale(0.98); }

.copy {
  max-width: 1140px;
  margin: 38px auto 0;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* 动效 */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--i, 0) * 55ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .mark, .railNav a, .heroJump a, .sideList a, .toTop, .footLinks a { transition: none; }
}

@media (max-width: 900px) {
  body { padding-left: 0; padding-top: 0; }

  .topline { display: none; }

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

  .mark { width: 42px; height: 42px; border-radius: 13px; font-size: 19px; }

  .railNav { flex: 1; overflow-x: auto; overflow-y: hidden; }

  .railNav p { flex-direction: row; gap: 8px; }

  .railNav a {
    white-space: nowrap;
    font-size: 16px;
    padding: 11px 14px;
  }

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

  .hero {
    min-height: calc(100vh - 58px);
    min-height: calc(100svh - 58px);
    padding: 48px 20px 84px;
  }

  .heroLead { font-size: 16px; }

  .content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 34px 18px 52px;
  }

  .side { position: static; }

  .sideList { flex-direction: row; flex-wrap: wrap; }
  .sideList a { padding: 10px 12px; }

  .foot { padding: 46px 18px 26px; }

  .footGrid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 380px) {
  .footLinks ul { grid-template-columns: 1fr; }
}

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