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

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

:root {
  --pink: #FF5C8A;
  --plum: #2B1B33;
  --cream: #FFF4EC;
  --pink-soft: rgba(255, 92, 138, 0.16);
  --line: rgba(255, 244, 236, 0.14);
  --glass: rgba(255, 244, 236, 0.06);
  --r: 18px;
  --head: 'Varela Round', 'Nunito Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --body: 'Nunito Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--cream);
  background:
    radial-gradient(900px 620px at 88% -12%, rgba(255, 92, 138, 0.24), transparent 62%),
    radial-gradient(720px 520px at -6% 26%, rgba(255, 92, 138, 0.11), transparent 58%),
    var(--plum);
  background-attachment: fixed;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--head); line-height: 1.28; margin: 0; font-weight: 400; }
[id] { scroll-margin-top: 150px; }

/* ---------- 顶部两行 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(43, 27, 51, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mast-brand {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 18px 4px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 4px 16px 4px 4px;
  border-radius: 999px;
  background: var(--pink-soft);
  transition: background 0.25s ease, transform 0.25s ease;
}
.brand:hover { background: rgba(255, 92, 138, 0.3); transform: translateY(-2px); }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(140deg, var(--pink), #ffb4a2);
  box-shadow: 0 0 0 3px rgba(255, 92, 138, 0.22);
}

.brand-name {
  font-family: var(--head);
  font-size: 19px;
  letter-spacing: 0.02em;
}

.mast-menu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2px 18px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.top-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.top-nav::-webkit-scrollbar { display: none; }

.top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 999px;
  font-family: var(--head);
  font-size: 16px;
  white-space: nowrap;
  color: var(--cream);
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.top-nav a::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.75;
  flex: none;
}
.top-nav a:hover { background: var(--pink-soft); transform: translateY(-2px); }

.finder {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 3px 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  transition: border-color 0.25s ease;
}
.finder:focus-within { border-color: var(--pink); }
.finder input {
  width: 96px;
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--cream);
  font: inherit;
  font-size: 16px;
}
.finder input:focus { outline: none; }
.finder input::placeholder { color: rgba(255, 244, 236, 0.55); }
.finder-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: var(--plum);
  font: inherit;
  font-family: var(--head);
  font-size: 16px;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.finder-btn:hover { filter: brightness(1.1); }

/* ---------- 骨架 ---------- */
.frame {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 18px 54px;
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 132px;
  align-self: start;
  padding-top: 18px;
}

.side-nav ul { flex-direction: column; gap: 2px; }

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  color: rgba(255, 244, 236, 0.8);
  transition: background 0.25s ease, color 0.25s ease, padding-left 0.25s ease, border-color 0.25s ease;
}
.side-nav .dot {
  font-family: var(--head);
  font-size: 16px;
  color: rgba(255, 92, 138, 0.85);
  letter-spacing: 0.04em;
}
.side-nav a:hover {
  background: var(--glass);
  color: var(--cream);
  border-left-color: var(--pink);
  padding-left: 17px;
}

.stage { min-width: 0; }
.paper { min-width: 0; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(16px, 3vw, 38px);
  align-items: center;
  min-height: 70vh;
  padding: 18px 0 34px;
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255, 92, 138, 0.32), rgba(255, 244, 236, 0.05) 72%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-big {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 6%;
  font-family: var(--head);
  font-size: clamp(46px, 8.6vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 244, 236, 0.55);
  opacity: 0.7;
  z-index: 2;
  animation: floaty 7s ease-in-out infinite;
  pointer-events: none;
}
.hero-big span {
  display: inline-block;
  animation: pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--i) * 70ms);
}

.hero-copy { text-align: center; }

.hero-brand {
  margin: 0 0 6px;
  font-family: var(--head);
  font-size: 16px;
  letter-spacing: 0.34em;
  color: var(--pink);
}

.hero-title {
  font-size: clamp(28px, 4.1vw, 48px);
  margin: 0 0 12px;
  color: var(--cream);
  background: linear-gradient(96deg, #FFF4EC 6%, #FF5C8A 52%, #ffd0a8 96%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slidefill 10s ease-in-out infinite, pop 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hero-desc {
  margin: 0 auto 18px;
  max-width: 34em;
  color: rgba(255, 244, 236, 0.82);
}

.hero-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--head);
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-solid { background: linear-gradient(100deg, #FF5C8A, #ff9a86); color: var(--plum); }
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(255, 92, 138, 0.35); }
.btn-ghost { border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); transform: translateY(-3px); }

/* ---------- 眉题小标 ---------- */
.strip {
  position: relative;
  padding: 2px 0 14px;
  margin: 0 0 18px;
  border: 0;
  background: none;
  backdrop-filter: none;
}
.strip:hover { transform: none; }

small {
  display: block;
  font-family: var(--head);
  font-size: 16px;
  letter-spacing: 0.26em;
  color: var(--pink);
  margin-bottom: 4px;
}

.strip h2 { font-size: clamp(20px, 2.5vw, 27px); }

/* ---------- 正文卡 ---------- */
article > section {
  position: relative;
  margin: 0 0 20px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
article > section:hover {
  border-color: rgba(255, 92, 138, 0.45);
  background: rgba(255, 244, 236, 0.085);
  transform: translateY(-3px);
}

article > section.hero,
article > section.strip {
  border: 0;
  background: none;
  padding-left: 0;
  padding-right: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
article > section.hero:hover,
article > section.strip:hover { background: none; border-color: transparent; }
article > section.hero:hover { transform: none; }

article > section h2 {
  font-size: clamp(21px, 2.6vw, 29px);
  margin: 0 0 12px;
  color: var(--cream);
  background: linear-gradient(92deg, #FFF4EC, #ffc0d0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

article > section h3 {
  font-size: 19px;
  margin: 18px 0 8px;
  color: #ffd9e2;
}

article > section p,
article > section li {
  color: rgba(255, 244, 236, 0.87);
}

.paper a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.paper a:hover { color: #ffabc0; }

.paper ul, .paper ol { padding-left: 1.25em; margin: 0 0 1em; }
.paper li { margin: 0.35em 0; }
.paper li::marker { color: var(--pink); }

.paper blockquote {
  margin: 0 0 1em;
  padding: 12px 18px;
  border-left: 3px solid var(--pink);
  border-radius: 0 12px 12px 0;
  background: var(--pink-soft);
}
.paper blockquote p:last-child { margin-bottom: 0; }

.paper img { border-radius: 14px; margin: 0.6em 0 1em; }

.paper table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 16px; }
.paper th, .paper td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.paper th { font-family: var(--head); color: #ffd9e2; }

.paper code {
  font-size: 15px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(43, 27, 51, 0.75);
}

.paper hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* ---------- 页脚 ---------- */
.base {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 18px 26px;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr;
  gap: 26px;
  border-top: 1px solid var(--line);
}

.base-brand {
  font-family: var(--head);
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--pink);
}

.base-desc { font-size: 16px; color: rgba(255, 244, 236, 0.68); margin: 0; }

.base-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.base-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 16px;
  color: rgba(255, 244, 236, 0.82);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.base-nav a:hover { color: var(--pink); padding-left: 5px; }

.sub-form { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-form input {
  flex: 1 1 140px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  color: var(--cream);
  font: inherit;
  font-size: 16px;
}
.sub-form input:focus { outline: none; border-color: var(--pink); }
.sub-form input::placeholder { color: rgba(255, 244, 236, 0.5); }

.base-foot {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 16px;
  color: rgba(255, 244, 236, 0.6);
}
.base-foot p { margin: 0; }

/* ---------- 回到顶部 ---------- */
.totop {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 60;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(43, 27, 51, 0.92);
  color: var(--cream);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}
.totop.on { opacity: 1; pointer-events: auto; }
.totop:hover { border-color: var(--pink); }

/* ---------- 滚动入场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}
.reveal.in { opacity: 1; transform: none; }
article > section.reveal.in:hover { transform: translateY(-3px); }
article > section.hero.reveal.in:hover { transform: none; }

/* ---------- 动效 ---------- */
@keyframes pop {
  from { opacity: 0; transform: translateY(0.55em) scale(0.92); }
  to { opacity: 1; transform: none; }
}
@keyframes slidefill {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes floaty {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-1.5deg) translateY(-9px); }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .mast-brand { padding: 8px 14px 2px; }
  .mast-menu { padding: 0 14px 8px; }
  .finder input { width: 74px; }

  .frame {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 6px 14px 44px;
  }
  .rail { position: static; padding: 0 0 6px; }
  .side-nav { overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav ul { flex-direction: row; gap: 6px; }
  .side-nav a {
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 999px;
    min-height: 42px;
    padding: 8px 12px;
    white-space: nowrap;
    background: var(--glass);
  }
  .side-nav a:hover { padding-left: 12px; border-bottom-color: var(--pink); }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 6px 0 22px;
  }
  .hero-art { aspect-ratio: 16 / 10; }

  .base { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 30px 14px 22px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-title { font-size: clamp(26px, 7.4vw, 34px); }
  .hero-big { font-size: clamp(40px, 13vw, 64px); }
  .brand-name { font-size: 17px; }
  .finder input { width: 62px; }
  .finder-btn { padding: 0 12px; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

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