@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --ink: #26171a;
  --ink-soft: #57444a;
  --pink: #eb879c;
  --pink-soft: #ffb6c1;
  --bg: #fff7f9;
  --card: #ffffff;
  --line: rgba(38, 23, 26, 0.1);
  --sh-s: 0 1px 2px rgba(38, 23, 26, 0.06), 0 3px 8px rgba(38, 23, 26, 0.05);
  --sh-m: 0 2px 4px rgba(38, 23, 26, 0.06), 0 10px 26px rgba(38, 23, 26, 0.09);
  --sh-l: 0 3px 6px rgba(38, 23, 26, 0.07), 0 18px 44px rgba(38, 23, 26, 0.12);
  --dock: 96px;
}

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

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

body {
  margin: 0;
  padding: 0 0 var(--dock);
  background: var(--bg);
  color: var(--ink);
  font-family: 'Roboto', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}

a {
  color: var(--ink);
  text-decoration: none;
}

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

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

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px clamp(14px, 4vw, 34px);
  background: rgba(255, 247, 249, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 -1px 2px rgba(38, 23, 26, 0.05), 0 -14px 34px rgba(38, 23, 26, 0.1);
}

.dock-nav {
  min-width: 0;
  justify-self: start;
  max-width: 100%;
}

.dock-nav p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.dock-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 11px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.dock-nav a:hover,
.dock-nav a.is-current {
  color: var(--ink);
  background: #fff;
  box-shadow: var(--sh-s);
}

.brand {
  justify-self: center;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
  transition: background 220ms ease, transform 220ms ease;
}

.brand:hover {
  background: var(--pink);
  transform: translateY(-1px);
}

.dock-search {
  justify-self: end;
  margin: 0;
  min-width: 0;
}

.dock-search input {
  width: 168px;
  max-width: 100%;
  min-height: 42px;
  padding: 8px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--sh-s);
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.dock-search input::placeholder {
  color: #9b878c;
}

.dock-search input:focus {
  border-color: var(--pink);
  box-shadow: var(--sh-m);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18vh clamp(20px, 7vw, 96px) calc(var(--dock) + 8vh);
  background:
    radial-gradient(circle at 88% 12%, var(--pink-soft) 0%, rgba(255, 182, 193, 0) 46%),
    radial-gradient(circle at 6% 88%, #ffe3e8 0%, rgba(255, 227, 232, 0) 52%),
    var(--bg);
  overflow: hidden;
}

.badge {
  position: absolute;
  top: 15vh;
  left: clamp(20px, 7vw, 96px);
  padding: 7px 15px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--sh-m);
  animation: bob 4s ease-in-out infinite;
}

.hero h1 {
  margin: 0;
  max-width: 15em;
  font-size: clamp(2.4rem, 8.6vw, 6rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: rise 520ms ease both;
}

.hero h1::after {
  content: '';
  display: block;
  width: 88px;
  height: 8px;
  margin-top: 26px;
  background: var(--pink);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 主体 ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: clamp(24px, 4vw, 52px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 6vw, 64px) 72px;
  align-items: start;
}

.body {
  min-width: 0;
}

.body > article {
  background: var(--card);
  box-shadow: var(--sh-m);
  padding: clamp(26px, 4vw, 44px);
  margin-bottom: clamp(20px, 3vw, 32px);
  scroll-margin-top: 28px;
  animation: rise 500ms ease both;
}

.body > article:nth-child(2) { animation-delay: 40ms; }
.body > article:nth-child(3) { animation-delay: 80ms; }
.body > article:nth-child(4) { animation-delay: 120ms; }
.body > article:nth-child(5) { animation-delay: 160ms; }
.body > article:nth-child(6) { animation-delay: 200ms; }
.body > article:nth-child(7) { animation-delay: 240ms; }

.body h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.body h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding-left: 12px;
  border-left: 4px solid var(--pink-soft);
}

.body p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

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

.body strong {
  color: var(--ink);
  font-weight: 700;
}

.body ul,
.body ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
  color: var(--ink-soft);
}

.body li {
  margin: 0.35em 0;
}

.body li::marker {
  color: var(--pink);
}

.body blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  background: #fff2f5;
  border-left: 5px solid var(--pink);
  color: var(--ink);
}

.body blockquote p {
  color: var(--ink);
  margin: 0;
}

.body figure {
  margin: 1.4em 0;
  padding: 12px;
  background: #fff;
  box-shadow: var(--sh-s);
}

.body figcaption {
  margin-top: 8px;
  font-size: 15px;
  color: #8a757b;
}

.body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 16px;
}

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

.body th {
  background: #fff2f5;
  font-weight: 700;
}

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 26px;
  padding: 22px 20px;
  background: var(--card);
  box-shadow: var(--sh-l);
}

.side h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.side .subtitle {
  margin: 4px 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--pink);
  letter-spacing: 0.08em;
}

.side-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 2px 8px 12px;
  font-size: 16px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: color 200ms ease, border-color 200ms ease, padding-left 200ms ease;
}

.side-list a:hover,
.side-list a.is-current {
  color: var(--ink);
  border-left-color: var(--pink);
  padding-left: 16px;
}

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px;
  padding: clamp(40px, 7vw, 76px) clamp(18px, 6vw, 64px) calc(var(--dock) + 34px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.foot-brand {
  margin: 0;
  font-size: clamp(1.9rem, 6.4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pink);
}

.foot small {
  font-size: 15px;
  color: #8a757b;
  text-align: center;
  padding-bottom: 8px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    order: 2;
    margin-bottom: 20px;
  }
}

@media (max-width: 760px) {
  body {
    --dock: 118px;
    font-size: 16px;
  }

  .dock {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    justify-items: stretch;
  }

  .brand {
    justify-self: center;
    font-size: 17px;
    min-height: 40px;
    padding: 7px 14px;
    order: -1;
  }

  .dock-nav {
    justify-self: stretch;
    order: 0;
  }

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

  .dock-search {
    display: none;
  }

  .hero {
    padding-top: 22vh;
  }

  .badge {
    top: 13vh;
  }

  .hero h1::after {
    width: 64px;
    height: 7px;
  }

  .foot {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
  }

  .foot small {
    padding-bottom: 0;
  }
}

@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}
