@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&family=Comic+Neue:wght@300;400;700&display=swap');

:root {
  --ink: #26171a;
  --ink-soft: #5b4348;
  --rose-ink: #b8506a;
  --pink: #eb879c;
  --blush: #ffb6c1;
  --cream: #fdeef1;
  --white: #fffafb;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --edge: rgba(255, 255, 255, 0.94);
  --ring: rgba(235, 135, 156, 0.42);
  --shadow-s: 0 1px 2px rgba(38, 23, 26, 0.05), 0 4px 12px rgba(235, 135, 156, 0.16);
  --shadow-m: 0 2px 4px rgba(38, 23, 26, 0.06), 0 14px 30px rgba(235, 135, 156, 0.22);
  --shadow-l: 0 4px 8px rgba(38, 23, 26, 0.07), 0 26px 60px rgba(235, 135, 156, 0.3);
  --dock-h: 78px;
  --font: "Baloo 2", "Comic Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(560px 420px at 8% 4%, rgba(255, 182, 193, 0.55), transparent 68%),
    radial-gradient(620px 520px at 96% 22%, rgba(235, 135, 156, 0.32), transparent 70%),
    radial-gradient(700px 620px at 50% 100%, rgba(255, 255, 255, 0.95), transparent 72%);
  background-attachment: fixed;
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + 30px + env(safe-area-inset-bottom));
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.32;
}

a {
  color: var(--rose-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 999px;
}

.page {
  display: block;
  padding-bottom: clamp(28px, 6vw, 60px);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
  padding: clamp(80px, 13vh, 140px) clamp(18px, 5vw, 60px) clamp(56px, 10vh, 90px);
  overflow: hidden;
}

.hero-ghost {
  position: absolute;
  left: 50%;
  top: 4%;
  transform: translateX(-50%);
  font-size: clamp(76px, 17vw, 210px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(235, 135, 156, 0.18);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 7.4vw, 66px);
  line-height: 1.16;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.85);
}

.hero-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 600;
  color: var(--rose-ink);
  letter-spacing: 0.06em;
}

.hero-copy .subtitle {
  margin: 0 auto;
  max-width: 30em;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
}

.hero-art {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 420px;
  justify-self: center;
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  width: 78%;
  aspect-ratio: 1 / 1;
  border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
  background: linear-gradient(148deg, var(--blush), var(--pink) 62%, #d96684);
  box-shadow: var(--shadow-l), inset 0 -8px 18px rgba(255, 255, 255, 0.45);
  animation: morph 12s ease-in-out infinite;
}

.hero-art .hero-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-l);
}

.hero-art .hero-photo + .blob {
  display: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-m);
}

.blob-a { width: 64px; height: 64px; top: 4%; right: 10%; animation: float 7s ease-in-out infinite; }
.blob-b { width: 42px; height: 42px; bottom: 12%; left: 4%; animation: float 9s ease-in-out infinite reverse; }
.blob-c { width: 26px; height: 26px; top: 32%; left: 0; animation: float 6s ease-in-out infinite; }
.blob-d { width: 54px; height: 54px; bottom: 2%; right: 22%; animation: float 10s ease-in-out infinite reverse; }

@keyframes morph {
  0%, 100% { border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%; }
  50% { border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; }
}

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

/* ---------- 正文 ---------- */
.content {
  counter-reset: sec;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.content > div {
  position: relative;
  counter-increment: sec;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--edge);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 46px);
  margin-bottom: clamp(26px, 5vw, 56px);
  box-shadow: var(--shadow-m);
  scroll-margin-top: 24px;
  scroll-margin-bottom: calc(var(--dock-h) + 26px);
}

.content > div:nth-of-type(even) {
  background: rgba(255, 246, 248, 0.86);
}

.content > div::before {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 22px;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: rgba(184, 80, 106, 0.6);
  pointer-events: none;
}

.content > div > *:last-child {
  margin-bottom: 0;
}

.content h2 {
  margin: 0 0 10px;
  font-size: clamp(23px, 3.6vw, 33px);
}

.content h3 {
  margin: 26px 0 8px;
  font-size: clamp(19px, 2.4vw, 22px);
}

.content p {
  margin: 0 0 16px;
  line-height: 1.92;
}

.content p.subtitle,
.content p.subhead,
.content p.desc,
.content p.lead {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 17px;
}

.content ul,
.content ol {
  margin: 0 0 18px;
  padding-left: 1.4em;
}

.content li {
  margin-bottom: 8px;
  line-height: 1.85;
}

.content a {
  text-decoration-color: rgba(235, 135, 156, 0.7);
  text-underline-offset: 3px;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-s);
}

.content figure,
.content aside {
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-s);
}

.content blockquote {
  margin: 20px 0;
  padding: 6px 0 6px 18px;
  border-left: 4px solid var(--blush);
  color: var(--ink-soft);
}

.content strong {
  color: #1b0f12;
}

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

.content th,
.content td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(235, 135, 156, 0.28);
  text-align: left;
}

.content > div.hit {
  animation: flash 0.9s ease;
}

@keyframes flash {
  from { box-shadow: 0 0 0 6px var(--ring), var(--shadow-m); }
  to { box-shadow: var(--shadow-m); }
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: 1080px;
  margin: clamp(30px, 7vw, 70px) auto 0;
  padding: 0 clamp(16px, 4vw, 32px) clamp(20px, 5vw, 44px);
  text-align: center;
}

.foot-brand {
  margin: 0 0 12px;
  font-size: clamp(38px, 12vw, 108px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--pink);
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
}

.foot small {
  display: block;
  font-size: 16px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ---------- 底部导航条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(10px, 3vw, 24px) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 251, 0.84);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-top: 1px solid var(--edge);
  box-shadow: 0 -8px 26px rgba(235, 135, 156, 0.2);
}

.dock-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  text-decoration: none;
  color: var(--rose-ink);
}

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

.dock-letter {
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.dock-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.dock-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.dock-nav ul::-webkit-scrollbar {
  display: none;
}

.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-s);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.dock-nav a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}

.dock-nav a[aria-current] {
  background: var(--pink);
  border-color: rgba(235, 135, 156, 0.6);
  color: var(--ink);
  box-shadow: inset 0 -3px 8px rgba(255, 255, 255, 0.5), var(--shadow-s);
}

.dock-search {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.dock-search input {
  width: clamp(86px, 16vw, 168px);
  min-height: 42px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(235, 135, 156, 0.42);
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(38, 23, 26, 0.06);
}

.dock-search input.miss {
  animation: shake 0.38s ease;
  border-color: var(--rose-ink);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.dock-search button {
  min-height: 42px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 220ms ease, background-color 220ms ease;
}

.dock-search button:hover {
  transform: translateY(-2px);
  background: #3a2228;
}

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding-left: clamp(16px, 5vw, 32px);
    padding-right: clamp(16px, 5vw, 32px);
    gap: 26px;
  }

  .hero-art {
    max-width: 240px;
    order: 2;
  }

  .hero-ghost {
    top: 2%;
    font-size: clamp(60px, 20vw, 130px);
  }
}

@media (max-width: 719px) {
  .dock-search button {
    display: none;
  }

  .dock-logo {
    width: 44px;
    height: 44px;
  }

  .dock-nav a {
    font-size: 16px;
    padding: 8px 13px;
  }
}

@media (max-width: 400px) {
  .hero-art {
    max-width: 190px;
  }

  .dock-search input {
    width: 84px;
    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;
  }
}

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