:root {
  --ink: #171f26;
  --ink-2: #2b3b47;
  --muted: #5f7280;
  --blue: #c8e0f4;
  --rose: #f5e0e8;
  --paper: #eef5fa;
  --paper-2: #fbf2f6;
  --raise: -6px -6px 14px rgba(255, 255, 255, 0.95), 6px 6px 18px rgba(23, 31, 38, 0.13);
  --raise-sm: -3px -3px 8px rgba(255, 255, 255, 0.9), 3px 3px 9px rgba(23, 31, 38, 0.12);
  --sink: inset -4px -4px 10px rgba(255, 255, 255, 0.9), inset 4px 4px 10px rgba(23, 31, 38, 0.16);
  --r: 16px;
  --r-card: 4px;
}

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

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

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  color: var(--ink);
  background:
    linear-gradient(160deg, var(--paper) 0%, var(--paper-2) 58%, var(--blue) 145%);
  background-attachment: fixed;
}

a {
  color: #1b4a6b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 236px) minmax(0, 1fr);
  gap: 34px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 26px 46px;
  align-items: start;
}

/* ---------- 侧栏导航 ---------- */
.rail {
  position: sticky;
  top: 18px;
  align-self: start;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border-radius: var(--r);
  background: linear-gradient(145deg, #f5fafd, #fbf1f6);
  box-shadow: var(--raise);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(145deg, var(--blue), var(--rose));
  box-shadow: var(--raise-sm);
  color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.brand:active {
  transform: scale(0.97);
  box-shadow: var(--sink);
}

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

.brand-glyph {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
}

.rail nav {
  min-width: 0;
  max-width: 100%;
}

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

.rail li {
  display: flex;
  min-width: 0;
}

.rail ul a {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.rail ul a:hover,
.rail ul a:focus-visible {
  background: linear-gradient(145deg, #e9f3fb, #fbeef4);
  box-shadow: var(--sink);
  color: var(--ink);
}

.rail ul a.on {
  background: linear-gradient(145deg, #e2eff9, #faeaf1);
  box-shadow: var(--sink);
  color: var(--ink);
  font-weight: 500;
}

.rail-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue), var(--rose));
  box-shadow: var(--raise-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

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

/* ---------- 主区 ---------- */
main {
  min-width: 0;
  max-width: 100%;
}

main > div {
  position: relative;
  margin: 0 0 30px;
  padding: clamp(22px, 3.6vw, 44px);
  min-width: 0;
  max-width: 100%;
  border-radius: var(--r);
  background: linear-gradient(145deg, #f6fafd, #fdf3f7);
  box-shadow: var(--raise);
  scroll-margin-top: 104px;
  overflow-wrap: break-word;
}

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

main > div > small,
.eyebrow {
  display: block;
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted);
}

main > div h2 {
  margin: 0 0 16px;
  font-size: clamp(1.32rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

main > div h3 {
  margin: 26px 0 10px;
  font-size: 1.12rem;
  line-height: 1.45;
}

main > div p {
  margin: 0 0 1em;
  max-width: 68ch;
}

main > div p:last-child {
  margin-bottom: 0;
}

main > div ul,
main > div ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
  max-width: 68ch;
}

main > div li {
  margin-bottom: 0.45em;
}

main > div figure {
  margin: 22px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sink);
}

main > div figure img {
  display: block;
  width: 100%;
  height: auto;
}

main > div aside {
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: linear-gradient(145deg, #eef6fb, #fdf2f6);
  box-shadow: var(--sink);
}

main > div blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--sink);
  color: var(--ink-2);
}

main > div blockquote p:last-child {
  margin-bottom: 0;
}

main > div img,
main > div svg,
main > div video,
main > div iframe {
  max-width: 100%;
  height: auto;
}

main > div table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1em;
  overflow-x: auto;
  border-collapse: collapse;
}

main > div pre {
  max-width: 100%;
  overflow-x: auto;
}

/* ---------- 头图 ---------- */
main > div.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 70vh;
  padding: 0;
  overflow: hidden;
  scroll-margin-top: 104px;
}

.hero-fig {
  margin: 0;
  position: relative;
  min-height: 340px;
  border-radius: var(--r) 0 0 var(--r);
  overflow: hidden;
  box-shadow: none;
  background-color: #e5eef6;
  background-image:
    radial-gradient(rgba(23, 31, 38, 0.18) 1px, transparent 1px),
    linear-gradient(150deg, rgba(200, 224, 244, 0.85), rgba(245, 224, 232, 0.85));
  background-size: 16px 16px, 100% 100%;
}

.hero-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  min-width: 0;
  padding: clamp(24px, 4vw, 58px);
  text-align: right;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.2vw, 3.15rem);
  line-height: 1.24;
  letter-spacing: -0.018em;
  font-weight: 700;
  overflow-wrap: break-word;
}

.lede {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ---------- 结尾联系 ---------- */
main > div.closing {
  background: linear-gradient(145deg, #e7f2fa, #fceff5);
}

.closing .contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--raise-sm);
}

.closing .host {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  word-break: break-all;
}

.closing .acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.closing .acts a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(145deg, #f6fafd, #fdf3f7);
  box-shadow: var(--raise-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.closing .acts a:active {
  transform: scale(0.97);
  box-shadow: var(--sink);
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 26px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 36px;
  align-items: end;
}

.foot-mark {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(2.4rem, 8.6vw, 5rem);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: rgba(23, 31, 38, 0.18);
  overflow-wrap: break-word;
}

.foot-intro {
  margin: 0;
  max-width: 46ch;
  font-size: 0.9rem;
  color: var(--muted);
}

.foot-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  justify-content: flex-end;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.foot-links a:hover {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--sink);
  color: var(--ink);
}

.foot-copy {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 12px;
}

/* ---------- 滚动动效 ---------- */
.js main > div[data-rv] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.js main > div[data-rv].in {
  opacity: 1;
  transform: none;
}

/* ---------- 移动端 ---------- */
@media (max-width: 880px) {
  body {
    font-size: 16.5px;
  }

  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 0 14px 30px;
    max-width: 100%;
  }

  .rail {
    position: sticky;
    top: 0;
    z-index: 30;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 0 0 var(--r) var(--r);
    background: linear-gradient(145deg, #f4f9fd, #fbf1f6);
    max-width: 100%;
    overflow: hidden;
  }

  .brand {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
  }

  .rail nav {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .rail nav::-webkit-scrollbar {
    display: none;
  }

  .rail ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    width: max-content;
  }

  .rail li {
    flex: 0 0 auto;
  }

  .rail ul a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 14px;
    white-space: nowrap;
    background: linear-gradient(145deg, #f6fafd, #fdf3f7);
    box-shadow: var(--raise-sm);
    font-size: 0.9rem;
  }

  .rail-cta {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  main > div.hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-fig {
    border-radius: var(--r) var(--r) 0 0;
    min-height: 188px;
    max-height: 240px;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
    padding: 22px 20px 26px;
  }

  .lede {
    max-width: none;
  }

  main > div {
    padding: 22px 18px;
    margin-bottom: 20px;
    scroll-margin-top: 76px;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 16px 26px;
    gap: 14px;
  }

  .foot-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .foot-mark {
    font-size: 2.35rem;
  }

  .closing .contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js main > div[data-rv] {
    opacity: 1;
    transform: none;
  }
}

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