@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
  --coral: #FF6B5A;
  --plum: #3B1F4A;
  --cream: #FFF3E6;
  --ink: #2A1536;
  --rust: #C44A3B;
  --blush: #FFE1D9;
  --line: #E7D3C1;
  --radius: 28px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: 'Nunito', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
}

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

a { color: var(--rust); }

h1, h2, h3, .brand, .f-brand a, .kicker {
  font-family: 'Fredoka', 'Nunito', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ---------- 背景视差层 ---------- */
.bg {
  position: fixed;
  inset: -12vh 0 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.bg span {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}

.bg .b1 {
  width: 68vw; height: 68vw;
  left: -18vw; top: 6vh;
  background: radial-gradient(circle at 32% 30%, #FFD3CB, #FF6B5A);
  opacity: .26;
}

.bg .b2 {
  width: 40vw; height: 40vw;
  right: -10vw; top: 26vh;
  background: radial-gradient(circle at 60% 40%, #6B427F, #3B1F4A);
  opacity: .18;
}

.bg .b3 {
  width: 26vw; height: 26vw;
  left: 26vw; top: 58vh;
  background: radial-gradient(circle at 40% 60%, #FFB7A8, #FF6B5A);
  opacity: .22;
}

.bg .b4 {
  width: 52vw; height: 52vw;
  right: 8vw; bottom: -14vh;
  background: radial-gradient(circle at 50% 50%, #FFE1D9, #FF9A86);
  opacity: .2;
}

.bg .b5 {
  width: 18vw; height: 18vw;
  left: -4vw; bottom: 8vh;
  background: radial-gradient(circle at 50% 50%, #7A4C90, #3B1F4A);
  opacity: .14;
}

/* ---------- 顶部导航 ---------- */
.dock {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 243, 230, .94);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--plum);
}

.menu {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 20px;
}

.menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.m-left { justify-content: flex-end; }
.m-right { justify-content: flex-start; }

.menu ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--plum);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.menu ul a:hover,
.menu ul a:focus-visible {
  background: var(--coral);
  color: #fff;
}

.menu a.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(17px, 1.8vw, 21px);
  white-space: nowrap;
  letter-spacing: .01em;
}

.chips {
  background: var(--plum);
  border-top: 1px dashed rgba(255, 243, 230, .28);
}

.chips ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
  padding: 6px 20px;
  max-width: 1180px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips ul::-webkit-scrollbar { display: none; }

.chips ul a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}

.chips ul a:hover,
.chips ul a:focus-visible {
  background: var(--coral);
  color: #fff;
}

/* ---------- 主区 ---------- */
main { position: relative; z-index: 1; }

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 6vh, 66px) 20px clamp(34px, 7vh, 84px);
  min-height: clamp(300px, 58vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--rust);
}

.hero h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(38px, 8.4vw, 104px);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--ink);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: clamp(20px, 3vw, 42px);
  align-items: start;
}

/* ---------- 正文 ---------- */
.prose { min-width: 0; }

.prose article {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3.6vw, 34px);
}

.prose article > div {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 46px);
  scroll-margin-top: 142px;
  box-shadow: 0 18px 40px -34px rgba(59, 31, 74, .9);
}

.prose article > div:nth-child(even) {
  background: var(--plum);
  color: var(--cream);
}

.prose h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -.01em;
}

.prose h3 {
  margin: 1.5em 0 .4em;
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.4;
  font-weight: 600;
}

.prose h2 + h3 { margin-top: .4em; }

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

.prose .subtitle,
.prose .subhead,
.prose .desc,
.prose .lead {
  margin: 0 0 1.1em;
  font-size: 17px;
  font-weight: 600;
  color: var(--rust);
}

.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.35em; }
.prose li { margin-bottom: .35em; }

.prose a {
  color: var(--rust);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose img {
  display: block;
  border-radius: 20px;
  margin: 1.1em 0;
}

.prose blockquote {
  margin: 0 0 1em;
  padding: 12px 20px;
  border-left: 6px solid var(--coral);
  background: rgba(255, 107, 90, .1);
  border-radius: 0 18px 18px 0;
}

.prose article > div:nth-child(even) .subtitle,
.prose article > div:nth-child(even) .subhead,
.prose article > div:nth-child(even) .desc,
.prose article > div:nth-child(even) .lead {
  color: #FFC9BF;
}

.prose article > div:nth-child(even) a { color: #FFC9BF; }
.prose article > div:nth-child(even) blockquote {
  background: rgba(255, 243, 230, .12);
}

.prose article > div:nth-child(even) blockquote,
.prose article > div:nth-child(even) strong { color: var(--cream); }

/* ---------- 右栏 ---------- */
.rail {
  position: sticky;
  top: 142px;
  align-self: start;
  background: var(--blush);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}

.rail h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.rail .subtitle {
  margin: 4px 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--rust);
  letter-spacing: .04em;
}

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

.rail ul a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--plum);
  font-weight: 600;
  font-size: 16px;
}

.rail ul a:hover,
.rail ul a:focus-visible {
  background: var(--coral);
  color: #fff;
}

.rail .totop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.rail .totop:hover,
.rail .totop:focus-visible { background: var(--coral); }

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  margin-top: clamp(44px, 7vw, 92px);
  background: var(--plum);
  color: var(--cream);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
  padding: 34px clamp(20px, 4vw, 48px);
}

.f-brand a {
  display: block;
  font-size: clamp(30px, 5.6vw, 62px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--cream);
  text-decoration: none;
}

.f-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.f-nav ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 12px;
  color: #FFD9CF;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}

.f-nav ul a:hover,
.f-nav ul a:focus-visible {
  background: var(--coral);
  color: #fff;
}

.f-copy {
  font-size: 16px;
  color: #FFC9BF;
  white-space: nowrap;
}

/* ---------- 滚动显现 ---------- */
html.js .prose article > div,
html.js .rail {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .75s cubic-bezier(.22, .7, .3, 1);
}

html.js .prose article > div.in,
html.js .rail.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; }
  .rail { position: static; order: 2; }
  .prose article > div { scroll-margin-top: 128px; }
}

@media (max-width: 820px) {
  .menu {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 4px 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .menu::-webkit-scrollbar { display: none; }
  .menu ul { flex: 0 0 auto; flex-wrap: nowrap; }
  .m-left { order: 1; }
  .m-right { order: 2; }
  .menu ul a { padding: 0 10px; }
  .menu a.brand {
    order: -1;
    position: sticky;
    left: 0;
    z-index: 2;
    margin-right: 4px;
    padding: 0 16px;
    box-shadow: 16px 0 0 0 #FFF3E6;
  }
  .dock { background: var(--cream); }
  .chips ul { padding: 6px 12px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 560px) {
  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 28px;
  }
  .f-copy { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .prose article > div,
  html.js .rail {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bg span { transform: none !important; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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