@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

:root {
  --mint: #b4fde1;
  --sky: #add8e6;
  --ink: #172620;
  --line: rgba(23, 38, 32, 0.22);
  --card: rgba(255, 255, 255, 0.78);
  --r-xl: 28px;
  --r-lg: 24px;
  --r-md: 20px;
  --r-sm: 16px;
  --clay: inset -3px -3px 10px rgba(23, 38, 32, 0.1), inset 4px 4px 12px rgba(255, 255, 255, 0.85), 8px 8px 22px rgba(23, 38, 32, 0.13);
  --clay-sm: inset -2px -2px 6px rgba(23, 38, 32, 0.09), inset 3px 3px 7px rgba(255, 255, 255, 0.8), 4px 4px 12px rgba(23, 38, 32, 0.12);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --serif: "Cormorant Infant", "Songti SC", "Noto Serif SC", Georgia, serif;
  --script: "Great Vibes", "Songti SC", cursive;
  --rail: 140px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, #dcfff2 0%, rgba(220, 255, 242, 0) 46%),
    radial-gradient(circle at 88% 22%, #dff1fb 0%, rgba(223, 241, 251, 0) 44%),
    linear-gradient(158deg, #eafff6 0%, #e5f4fb 42%, #f7fffc 74%, #dcf8ee 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.24;
  margin: 0 0 0.55em;
  letter-spacing: 0.01em;
  font-weight: 600;
}

h2 > span,
h3 > span {
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}

h2 > span::after,
h3 > span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--mint), var(--sky));
  opacity: 0.9;
}

.shell {
  position: relative;
}

/* 左侧竖排导航 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 10px 14px;
  background: linear-gradient(180deg, #cdfdeb, #aadcf0);
  border-right: 3px solid var(--line);
  box-shadow: 6px 0 24px rgba(23, 38, 32, 0.1);
}

.mark {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-decoration: none;
  border: 3px solid var(--line);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: var(--clay-sm);
  font-family: var(--script);
  font-size: 24px;
  line-height: 1;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mark:hover,
.mark:focus-visible {
  transform: translateY(-3px) rotate(-5deg);
}

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

.rail nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px;
}

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

.rail .nav-a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 6px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #164032;
  background: rgba(255, 255, 255, 0.48);
  border: 3px solid transparent;
  border-radius: var(--r-sm);
  transition: transform 200ms ease-out, background 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}

.rail .nav-a:hover,
.rail .nav-a:focus-visible {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: var(--clay-sm);
  transform: translateY(-2px);
}

/* 页容器 */
.page {
  margin-left: var(--rail);
  padding: 22px;
  max-width: 1320px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* 头部 */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: grid;
  place-items: center;
  padding: 44px 22px;
  text-align: center;
  border: 3px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, #c8fdee 0%, #bee1f7 56%, #eafff7 100%);
  box-shadow: var(--clay);
}

.hero-in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--clay-sm);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  animation: bob 6s ease-in-out infinite;
}

.hero-fig {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: var(--clay-sm);
}

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

.blob-dot {
  background: radial-gradient(circle at 34% 28%, #ffffff 0%, var(--mint) 46%, var(--sky) 100%);
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 56px);
  letter-spacing: 0.02em;
}

.lead {
  margin: 0;
  max-width: 48ch;
  font-size: 17px;
  color: #24503f;
}

.blob {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.75;
  pointer-events: none;
}

.blob-a {
  width: 190px;
  height: 190px;
  left: -50px;
  top: -40px;
  background: radial-gradient(circle at 40% 32%, #ffffff, var(--mint) 65%);
  animation: drift 11s ease-in-out infinite alternate;
}

.blob-b {
  width: 230px;
  height: 230px;
  right: -60px;
  bottom: -70px;
  background: radial-gradient(circle at 55% 45%, #ffffff, var(--sky) 70%);
  animation: drift 14s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -22px, 0) scale(1.08);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* 主区域 */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.sheet {
  min-width: 0;
  padding: 20px;
  border: 3px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--clay);
  backdrop-filter: blur(6px);
}

.entry {
  min-width: 0;
  overflow-wrap: break-word;
}

.entry > section {
  padding: 26px 20px;
  margin-bottom: 26px;
  border: 3px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--clay-sm);
  scroll-margin-top: 24px;
}

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

.entry h2 {
  font-size: clamp(23px, 3vw, 32px);
}

.entry h3 {
  font-size: clamp(19px, 2.2vw, 23px);
}

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

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

.entry ul,
.entry ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.entry li {
  margin-bottom: 0.45em;
}

.entry li::marker {
  color: #2c6d55;
}

.entry a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.entry blockquote {
  margin: 0 0 1em;
  padding: 14px 18px;
  border-left: 6px solid var(--mint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: #f4fffb;
}

.entry figure {
  margin: 0 0 1em;
}

.entry img {
  border: 3px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--clay-sm);
}

.entry figcaption {
  font-size: 14px;
  color: #356050;
}

.entry table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.entry th,
.entry td {
  padding: 8px 10px;
  border: 2px solid rgba(23, 38, 32, 0.16);
  text-align: left;
}

/* 右侧目录 */
.tray {
  position: sticky;
  top: 22px;
  padding: 18px;
  border: 3px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--clay);
}

.tray h2 {
  font-size: 19px;
  margin-bottom: 0.7em;
}

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

.tray a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #eefcf6;
  transition: transform 200ms ease-out, background 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}

.tray a:hover,
.tray a:focus-visible {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: var(--clay-sm);
  transform: translateX(-3px);
}

/* 页脚 */
.foot {
  padding: 24px 20px;
  border: 3px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, #cbfdee, #b8ddef);
  box-shadow: var(--clay);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  margin-bottom: 24px;
  border: 3px solid var(--line);
  border-radius: var(--r-xl);
  background: #ffffff;
  box-shadow: var(--clay-sm);
}

.cta h2 {
  margin: 0;
  font-size: clamp(21px, 2.6vw, 28px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--mint);
  box-shadow: var(--clay-sm);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease-out;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px) scale(1.03);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.cols dl {
  margin: 0;
  padding: 14px 16px;
  border: 3px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--clay-sm);
}

.cols dt {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.cols dd {
  margin: 0 0 6px;
}

.cols dd:last-child {
  margin-bottom: 0;
}

.cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 15px;
  text-decoration: none;
}

.cols dd a:hover,
.cols dd a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copy {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
  color: #22483a;
}

/* 宽屏分栏 */
@media (min-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) 252px;
  }

  .cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 移动端：导航变顶部横条 */
@media (max-width: 899px) {
  :root {
    --rail: 0px;
  }

  .rail {
    position: sticky;
    top: 0;
    right: 0;
    bottom: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-right: 0;
    border-bottom: 3px solid var(--line);
    box-shadow: 0 8px 20px rgba(23, 38, 32, 0.13);
    background: linear-gradient(90deg, #cdfdeb, #aadcf0);
  }

  .mark {
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 15px;
    font-size: 21px;
  }

  .rail nav {
    padding: 0 0 2px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

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

  .rail .nav-a {
    white-space: nowrap;
    padding: 10px 14px;
  }

  .page {
    margin-left: 0;
    padding: 14px;
    gap: 20px;
  }

  .hero {
    min-height: 40vh;
    padding: 30px 16px;
  }

  .hero-fig {
    width: 84px;
    height: 84px;
    border-radius: 26px;
  }

  .sheet {
    padding: 14px;
  }

  .entry > section {
    padding: 20px 15px;
    margin-bottom: 18px;
    scroll-margin-top: 78px;
  }

  .tray {
    position: static;
  }
}

@media (max-width: 419px) {
  body {
    font-size: 16px;
  }

  .blob-a,
  .blob-b {
    opacity: 0.55;
  }
}

/* 视差式入场（支持时） */
@supports (animation-timeline: view()) {
  .entry > section {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 6% cover 26%;
  }
}

@keyframes rise {
  from {
    opacity: 0.4;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    animation-timeline: auto !important;
  }
}

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