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

:root {
  --rose: #eb879c;
  --blush: #ffb6c1;
  --ink: #26171a;
  --ink-soft: #5b4148;
  --link: #a83d5e;
  --card: rgba(255, 255, 255, 0.76);
  --edge: rgba(255, 255, 255, 0.8);
  --line: rgba(38, 23, 26, 0.13);
  --r: 28px;
  --r-sm: 12px;
  --sh: 0 2px 4px rgba(38, 23, 26, 0.05), 0 14px 30px -16px rgba(38, 23, 26, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --sh-lift: 0 4px 8px rgba(38, 23, 26, 0.08), 0 24px 44px -20px rgba(38, 23, 26, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --font-h: 'Caveat', 'Quicksand', -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-b: 'Quicksand', -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background-color: #fdf3f5;
  background-image:
    radial-gradient(58vw 46vw at 8% -4%, #ffe4eb 0%, rgba(255, 228, 235, 0) 62%),
    radial-gradient(52vw 44vw at 96% 12%, #ffd6e1 0%, rgba(255, 214, 225, 0) 64%),
    radial-gradient(70vw 60vw at 50% 108%, #ffe9ef 0%, rgba(255, 233, 239, 0) 70%),
    linear-gradient(180deg, #fdf5f8 0%, #fbeef3 48%, #fdf7f8 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

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

menu { margin: 0; padding: 0; list-style: none; }

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

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
  border-radius: 6px;
}

main div { scroll-margin-top: 26px; }

/* ---------- 顶部主列 ---------- */
.sheet {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 44px) clamp(16px, 4vw, 40px) 8px;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(16px, 3vw, 26px);
  padding-bottom: clamp(18px, 3vw, 28px);
  text-align: left;
}

.hero-copy { position: relative; }

.hero-pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 16px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blush), var(--rose));
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transform: rotate(-1.6deg);
  box-shadow: 0 6px 16px -10px rgba(38, 23, 26, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-h);
  font-size: clamp(2.05rem, 6.2vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-sub {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.hero-art {
  margin: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero-photo {
  display: block;
  width: 100%;
  max-height: 46vh;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--edge);
  box-shadow: var(--sh);
}

/* ---------- 双列：侧栏在左 ---------- */
.stage {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
  margin-top: clamp(18px, 3vw, 32px);
}

.rail {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px 14px;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: var(--sh);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.rail-list { display: flex; flex-direction: column; gap: 2px; }

.rail a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.22s ease;
}

.rail a:hover { background: rgba(235, 135, 156, 0.24); transform: translateX(3px); }

.rail-top {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  color: var(--link) !important;
}

/* ---------- 正文 ---------- */
.prose {
  padding: clamp(20px, 3.6vw, 42px);
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: var(--sh);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 78ch;
}

.prose div {
  padding: 30px 0 6px;
  border-top: 1px solid var(--line);
}

.prose div:first-child { border-top: 0; padding-top: 0; }

.prose :is(h2, h3) {
  margin: 0 0 0.55em;
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0.012em;
  font-size: clamp(1.42rem, 3.4vw, 1.95rem);
}

.prose :is(h2, h3) > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.prose h2 > span::before {
  content: "";
  flex: none;
  width: 0.44em;
  height: 0.44em;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(235, 135, 156, 0.24);
}

.prose p { margin: 0 0 1em; }

.prose ul,
.prose ol { padding-left: 1.3em; margin: 0 0 1em; }

.prose li { margin-bottom: 0.4em; }

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, background 0.2s ease;
}

.prose a:hover { background: rgba(255, 182, 193, 0.4); }

.prose img { border-radius: var(--r-sm); box-shadow: var(--sh); }

.prose blockquote {
  margin: 1.2em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--rose);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
}

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

.prose :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }

/* ---------- 页脚 ---------- */
.colophon {
  max-width: 1120px;
  margin: 34px auto 0;
  padding: 22px clamp(16px, 4vw, 40px) 10px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
}

.colophon p { margin: 0 0 4px; font-weight: 700; color: var(--ink); }

.colophon small { font-size: 15px; }

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px clamp(12px, 3vw, 28px) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 246, 249, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 -10px 34px -20px rgba(38, 23, 26, 0.5);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.dock-side { display: flex; gap: 2px; }
.dock-left { justify-content: flex-end; }
.dock-right { justify-content: flex-start; }

.dock a,
.dock summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.dock a:hover,
.dock summary:hover { background: rgba(235, 135, 156, 0.26); }

.dock-brand {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 14px -10px rgba(38, 23, 26, 0.7);
  white-space: nowrap;
  overflow: hidden;
}

.dock-brand span { text-overflow: ellipsis; overflow: hidden; }

.mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}

.dock-fold { display: none; position: relative; grid-column: 3; grid-row: 1; justify-self: end; }

.dock-fold summary { list-style: none; }

.dock-fold summary::-webkit-details-marker { display: none; }

.dock-fold summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.22s ease;
}

.dock-fold[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

.fold-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(80vw, 320px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--edge);
  background: rgba(255, 248, 251, 0.96);
  box-shadow: 0 20px 44px -22px rgba(38, 23, 26, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.fold-list a { justify-content: flex-start; width: 100%; }

/* ---------- 入场 ---------- */
.prose div,
.rail { transition: opacity 0.26s ease, transform 0.26s ease; }

.js-ready .prose div:not(.in),
.js-ready .rail:not(.in) {
  opacity: 0;
  transform: translateY(16px);
}

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); }

  .prose { order: 1; max-width: none; }

  .rail { order: 2; position: static; }

  .rail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

  .hero { min-height: 62vh; }

  .hero-photo { max-height: 34vh; }

  .dock {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dock-side { display: none; }

  .dock-brand { grid-column: 1; grid-row: 1; justify-self: start; }

  .dock-fold { display: block; }
}

@media (max-width: 420px) {
  body { font-size: 16.5px; }

  .rail-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js-ready .prose div:not(.in),
  .js-ready .rail:not(.in) {
    opacity: 1;
    transform: none;
  }

  .rail a:hover { transform: none; }

  .prose div,
  .rail,
  .hero-art,
  .dock a,
  .dock summary,
  .fold-list a { transition-duration: 0.01ms; }
}

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