@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

:root {
  --pink: #F7C8DA;
  --pink-deep: #E39BB8;
  --cream: #FFF6E9;
  --ink: #4A3B6B;
  --ink-2: #6F5C97;
  --line: rgba(74, 59, 107, .16);
  --glass: rgba(255, 255, 255, .56);
  --shadow: 0 22px 44px -26px rgba(74, 59, 107, .6);
  --r: 28px;
  --rail: 108px;
  --fh: 'Nunito', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --fb: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  padding-left: var(--rail);
  font-family: var(--fb);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(74, 59, 107, .13) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
  overflow-x: clip;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--fh); line-height: 1.25; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }

h2 span, h3 span, h4 span {
  background-image: linear-gradient(94deg, var(--ink) 8%, #A9517F 62%, var(--pink-deep) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem .5rem 1.4rem;
  overflow-y: auto;
  background: rgba(255, 246, 233, .84);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: .4rem .25rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}

.mark { border-radius: 16px; }

.brand-t {
  writing-mode: vertical-rl;
  font-family: var(--fh);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .18em;
}

.rail-nav { width: 100%; }

.rail-nav p {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  margin: 0;
  padding: 0;
}

.rl {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding: .3rem .38rem;
  border-radius: 16px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
  background: transparent;
  transition: background .25s ease, transform .25s ease;
}

.rl:hover, .rl:focus-visible {
  background: rgba(247, 200, 218, .78);
  transform: translateX(2px);
}

.ic { width: 12px; height: 12px; flex: 0 0 12px; color: var(--pink-deep); }
.rl:hover .ic { color: var(--ink); }

.rail-cta {
  margin-top: auto;
  writing-mode: vertical-rl;
  min-height: 44px;
  padding: .85rem .5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 16px;
  letter-spacing: .1em;
  text-decoration: none;
  box-shadow: 0 12px 24px -14px rgba(74, 59, 107, .9);
}

.rail-cta:hover { background: #3A2E55; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 4.5rem) 0;
  text-align: right;
  background-image: radial-gradient(rgba(74, 59, 107, .22) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}

.hero-copy {
  max-width: 24ch;
  margin-left: auto;
}

.kinetic {
  font-weight: 900;
  font-size: clamp(2.1rem, 6.2vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  white-space: pre-wrap;
  word-break: break-word;
}

.ch {
  display: inline-block;
  background-image: linear-gradient(126deg, var(--ink) 4%, #A9517F 52%, var(--pink-deep) 92%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: chIn .72s cubic-bezier(.18, .92, .24, 1) backwards, chFlow 7s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * 45ms), calc(var(--i, 0) * 90ms);
}

@keyframes chIn {
  from { opacity: 0; transform: translateY(.45em) rotate(-7deg) scale(.9); }
  to { opacity: 1; transform: none; }
}

@keyframes chFlow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.hero-sub {
  margin: .9rem 0 0;
  max-width: 34ch;
  margin-left: auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(.5rem, 3vw, 2rem);
  will-change: transform;
}

.hero-img {
  position: relative;
  z-index: 2;
  width: min(560px, 86vw);
  max-height: 46vh;
  object-fit: cover;
  border-radius: 46% 46% 28% 28% / 38% 38% 22% 22%;
  box-shadow: var(--shadow);
}

.blob {
  position: absolute;
  bottom: 0;
  width: min(620px, 92vw);
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFE4EE, var(--pink) 72%);
  opacity: .95;
  animation: float 9s ease-in-out infinite;
}

.blob-b {
  width: min(320px, 52vw);
  height: 30%;
  left: 6%;
  bottom: 30%;
  background: radial-gradient(circle at 40% 30%, #FFF, #EBD9F5 80%);
  opacity: .7;
  animation-delay: -3.5s;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

/* ---------- 正文骨架 ---------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.1rem, 4vw, 2.5rem) 5rem;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.side {
  position: sticky;
  top: 1.6rem;
  padding: 1.2rem 1rem 1.3rem;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.side-h {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .55rem;
  padding-left: .35rem;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .08rem;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .45rem .6rem;
  border-radius: 16px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  transition: background .22s ease;
}

.side-list a:hover,
.side-list a:focus-visible { background: rgba(247, 200, 218, .74); }

.body-sec { min-width: 0; }

.post { max-width: 70ch; }

.post article {
  scroll-margin-top: 34px;
  padding: clamp(1.2rem, 3vw, 2.1rem);
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.post article + article { margin-top: clamp(1.5rem, 4vw, 2.4rem); }

.post h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.95rem);
  font-weight: 800;
  margin-bottom: .8rem;
}

.post h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 1.4rem 0 .6rem;
}

.post p { line-height: 1.88; }
.post strong { font-weight: 700; }
.post ul, .post ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.post li { margin: .38rem 0; line-height: 1.8; }

.post a {
  color: #9B4C77;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post img { border-radius: 20px; margin: .4rem 0 1rem; }

.post blockquote {
  margin: 1.2rem 0;
  padding: .9rem 1.1rem;
  border-left: 4px solid var(--pink-deep);
  border-radius: 0 20px 20px 0;
  background: rgba(247, 200, 218, .32);
}

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

/* ---------- 页脚 ---------- */
.foot {
  padding: clamp(2rem, 6vw, 3.6rem) clamp(1.1rem, 4vw, 2.5rem) 1.6rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(247, 200, 218, 0), rgba(247, 200, 218, .58));
}

.cta {
  max-width: 1200px;
  margin: 0 auto clamp(1.6rem, 4vw, 2.6rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
  border-radius: 36px;
  background: linear-gradient(122deg, #FFFFFF, rgba(255, 246, 233, .92));
  box-shadow: var(--shadow);
}

.cta-h { font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 900; }

.cta-a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .6rem 1.4rem;
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}

.cta-a:hover { background: var(--pink-deep); transform: translateY(-2px); }

.foot-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.4rem;
}

.fb-mark { border-radius: 14px; margin-bottom: .4rem; }

.fb-name {
  font-family: var(--fh);
  font-weight: 900;
  font-size: 1.1rem;
  margin: 0;
}

.fdl { margin: 0; }

.fdl dt {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: .35rem;
}

.fdl dd { margin: 0; }

.fdl a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .35rem 0;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.fdl a:hover,
.fdl a:focus-visible { border-bottom-color: var(--ink); }

.copy {
  max-width: 1200px;
  margin: 1.6rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-2);
}

/* ---------- 入场 ---------- */
[data-reveal] { opacity: 1; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2, .9, .2, 1);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

:focus-visible { outline: 3px solid #A9517F; outline-offset: 2px; border-radius: 8px; }

/* ---------- 断点 ---------- */
@media (max-width: 980px) {
  body { padding-left: 0; }

  .rail {
    position: sticky;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: .55rem;
    padding: .45rem .7rem;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand { flex-direction: row; gap: .45rem; padding: .2rem .2rem; }
  .brand-t { writing-mode: horizontal-tb; letter-spacing: .08em; }
  .mark { width: 34px; height: 34px; }

  .rail-nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; }
  .rail-nav p { flex-direction: row; gap: .18rem; }
  .rl { white-space: nowrap; padding: .35rem .55rem; }
  .rl:hover { transform: none; }

  .rail-cta {
    margin-top: 0;
    writing-mode: horizontal-tb;
    padding: .55rem .85rem;
    white-space: nowrap;
    letter-spacing: .04em;
  }

  .hero {
    min-height: calc(100vh - 60px);
    padding: 1.8rem 1.15rem 0;
    gap: 1.3rem;
  }

  .hero-copy { max-width: 100%; }
  .hero-sub { margin-left: 0; }
  .hero-img { width: min(460px, 88vw); max-height: 40vh; }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 1.6rem;
  }

  .side { position: static; }
  .side-list { flex-direction: row; flex-wrap: wrap; gap: .4rem; }
  .side-list a { background: rgba(255, 255, 255, .62); padding: .45rem .7rem; }

  .post { max-width: none; }
  .post article { scroll-margin-top: 86px; }

  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .cta { border-radius: 26px; }
  .kinetic { font-size: clamp(1.95rem, 9.4vw, 2.9rem); }
  .hero-img { max-height: 34vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

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