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

:root {
  --pink: #F7E9EF;
  --rose: #E0457B;
  --ink: #2B2036;
  --paper: #FFFAFC;
  --dim: rgba(43, 32, 54, .14);
  --r: 28px;
  --w: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.75 "Cormorant Infant", Georgia, "Songti SC", "Noto Serif SC", serif;
  letter-spacing: .01em;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

small {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--rose);
  margin-bottom: 4px;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Cormorant Infant", Georgia, "Songti SC", serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
}

/* 顶部细条 */
.ribbon {
  background: var(--ink);
  color: var(--pink);
}
.ribbon p {
  margin: 0;
  padding: 9px 20px;
  text-align: center;
  font-size: 16px;
  letter-spacing: .24em;
  font-weight: 600;
  text-transform: uppercase;
}

/* 头部 */
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--pink);
  border-bottom: 3px solid var(--ink);
}

.nav-l { justify-self: start; }
.nav-r { justify-self: end; }
.nav p {
  display: flex;
  gap: 2px;
  margin: 0;
  flex-wrap: wrap;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .16s ease, color .16s ease;
}
.nav a:hover {
  background: var(--rose);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  text-decoration: none;
  min-height: 44px;
  padding: 0 10px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.brand-txt {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .06em;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.burger:hover { background: var(--ink); color: var(--pink); }
.burger .bar {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.burger em { font-style: normal; }

/* 全屏遮罩菜单 */
.veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
  background: var(--ink);
  color: var(--pink);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
  overflow-y: auto;
}
.veil.on { opacity: 1; visibility: visible; }
.veil-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 3px solid var(--rose);
  padding-bottom: 12px;
}
.veil-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--rose);
}
.veil-x {
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--rose);
  background: transparent;
  color: var(--pink);
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.veil-x:hover { background: var(--rose); color: #fff; }
.veil-nav p {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.veil-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 6px 4px;
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(247, 233, 239, .16);
  transition: color .16s ease;
}
.veil-nav a:hover { color: var(--rose); }

/* 粘性锚点条 */
.strip {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--rose);
  color: #fff;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 3px solid var(--ink);
}
.strip p {
  display: flex;
  gap: 0;
  margin: 0;
  min-width: max-content;
  padding: 0 10px;
}
.strip a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 4px solid transparent;
  transition: border-color .16s ease, background-color .16s ease;
}
.strip a:hover { background: rgba(43, 32, 54, .18); }
.strip a.on { border-bottom-color: #fff; }

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 70vh;
  background: var(--pink);
  position: relative;
  overflow: hidden;
}
.hero-art {
  position: relative;
  min-height: 380px;
  will-change: transform;
}
.ph {
  position: absolute;
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--rose);
}
.ph-img { width: 100%; height: 100%; object-fit: cover; }
.ph-a {
  width: 60%;
  aspect-ratio: 3 / 4;
  top: 9%;
  left: 5%;
  background: var(--rose);
  animation: drift 9s ease-in-out infinite alternate;
}
.ph-b {
  width: 50%;
  aspect-ratio: 1 / 1;
  bottom: 9%;
  right: 6%;
  background: var(--ink);
  animation: drift 11s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -14px, 0); }
}

.band {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -26px;
  height: 70px;
  background: var(--ink);
  clip-path: polygon(0 62%, 100% 12%, 100% 100%, 0 100%);
  z-index: 3;
}

.hero-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  gap: 14px;
  padding: 60px 40px 90px;
}
.kicker {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--rose);
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.14;
  margin: 0;
  max-width: 16ch;
}
.lead {
  margin: 0;
  max-width: 34ch;
  font-size: 18px;
  line-height: 1.65;
  color: #4a3b56;
}

/* 正文骨架 */
.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 56px 20px 80px;
}
.body {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 74px;
  background: var(--pink);
  border-radius: var(--r);
  padding: 22px 18px;
}
.rail-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 14px;
}
.rail small { color: var(--rose); }
.rail h2 {
  font-size: 22px;
  margin: 0 0 12px;
}
.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 10px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background-color .16s ease, color .16s ease;
}
.rail-list a:hover { background: var(--rose); color: #fff; }

/* 正文 */
.prose {
  background: #fff;
  border-radius: var(--r);
  padding: 8px 30px 30px;
  min-width: 0;
  overflow-wrap: break-word;
}
.prose div {
  padding: 26px 0 30px;
  border-bottom: 2px solid var(--dim);
  scroll-margin-top: 74px;
}
.prose div:last-child { border-bottom: 0; }
.prose h2 {
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.24;
  margin: 0 0 .5em;
}
.prose h3 {
  font-size: clamp(19px, 2.4vw, 23px);
  margin: 1.3em 0 .4em;
}
.prose p, .prose li {
  font-size: 17px;
  line-height: 1.8;
  max-width: 66ch;
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--rose); text-underline-offset: 3px; }
.prose img, .prose figure img {
  border-radius: 18px;
  margin: 1em 0;
}
.prose figure { margin: 1em 0; }
.prose blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 5px solid var(--rose);
  background: var(--pink);
  border-radius: 0 18px 18px 0;
}
.prose blockquote p { margin: 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 16px;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--dim);
}
.prose th { background: var(--pink); }
.prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  background: var(--pink);
  padding: 1px 5px;
  border-radius: 6px;
}

/* 页脚 */
.foot {
  background: var(--ink);
  color: var(--pink);
  padding: 40px 20px 28px;
}
.bigmark {
  font-family: "Great Vibes", "Cormorant Infant", cursive;
  font-size: clamp(38px, 9vw, 92px);
  line-height: 1.05;
  margin: 0 0 26px;
  color: var(--rose);
  word-break: break-word;
}
.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 2px solid rgba(247, 233, 239, .26);
  padding-top: 20px;
}
.cols dl { margin: 0; }
.cols dt {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--rose);
  margin-bottom: 6px;
}
.cols dd { margin: 0; }
.cols dd a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 16px;
  transition: color .16s ease;
}
.cols dd a:hover { color: var(--rose); }
.foot-brand { display: block; padding: 8px 0; font-size: 16px; }
.cr {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 2px solid rgba(247, 233, 239, .26);
  font-size: 16px;
  letter-spacing: .1em;
}

/* 响应式 */
@media (max-width: 980px) {
  .body { grid-template-columns: 210px minmax(0, 1fr); gap: 22px; }
  .hero-copy { padding: 48px 26px 82px; }
}

@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .brand { justify-self: start; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { min-height: 0; height: 44vh; min-height: 260px; }
  .hero-copy {
    align-items: flex-end;
    text-align: right;
    padding: 34px 22px 62px;
  }
  .hero h1 { max-width: 14ch; }
  .band { height: 44px; bottom: -14px; }

  .wrap { padding: 34px 16px 56px; }
  .body { grid-template-columns: 1fr; gap: 18px; }
  .rail { position: static; padding: 16px; }
  .rail ol {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
  }
  .rail-list a { white-space: nowrap; }
  .prose { padding: 4px 18px 22px; }
  .prose p, .prose li { max-width: none; }

  .cols { grid-template-columns: 1fr 1fr; }
  .cols dl:last-child { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .ribbon p { font-size: 16px; letter-spacing: .12em; }
  .brand-txt { font-size: 19px; }
  .hero-copy { padding: 28px 16px 54px; }
  .cols { grid-template-columns: 1fr; }
  .cols dl:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ph-a, .ph-b { animation: none; }
  * { transition-duration: .01ms !important; }
}

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