@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

:root {
  --sky: #c8e0f4;
  --rose: #f5e0e8;
  --ink: #171f26;
  --ink-soft: #3f4f5d;
  --muted: #6d7e8d;
  --r: 18px;
  --hi: rgba(255, 255, 255, 0.92);
  --lo: rgba(170, 190, 208, 0.55);
  --lift: -6px -6px 16px var(--hi), 6px 6px 18px var(--lo);
  --lift-sm: -4px -4px 10px var(--hi), 4px 4px 12px var(--lo);
  --sunk: inset -4px -4px 10px var(--hi), inset 4px 4px 10px var(--lo);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Didact Gothic', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: linear-gradient(160deg, #e9f2fa 0%, #f8edf3 46%, #edf1f8 100%);
  background-attachment: fixed;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

a {
  color: #23567a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5rem 1.25rem 3.5rem;
  overflow: hidden;
  background-color: #eef4fa;
  background-image: radial-gradient(circle at 1px 1px, rgba(23, 31, 38, 0.12) 1px, transparent 0);
  background-size: 22px 22px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(233, 242, 250, 0.62), rgba(248, 237, 243, 0.9));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: 'Poiret One', 'Didact Gothic', 'PingFang SC', system-ui, sans-serif;
  font-size: clamp(2rem, 7vw, 4.1rem);
  line-height: 1.25;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-desc {
  margin: 0 auto 1.75rem;
  max-width: 44ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.hero-cue {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(145deg, #fdfefe, #ecf1f7);
  box-shadow: var(--lift-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.hero-cue:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-cue:active {
  transform: scale(0.97);
  box-shadow: var(--sunk);
}

/* ---------- 主体骨架 ---------- */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 7.5rem;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.side {
  position: sticky;
  top: 1.5rem;
  padding: 1.25rem 0.9rem 1.4rem;
  border-radius: var(--r);
  background: linear-gradient(145deg, #fbfdff, #f4e9ef);
  box-shadow: var(--lift);
}

.side small {
  display: block;
  padding-left: 0.55rem;
  font-size: 1rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  font-family: 'Poiret One', 'Didact Gothic', sans-serif;
}

.side h2 {
  margin: 0.15rem 0 0.9rem;
  padding-left: 0.5rem;
  font-family: 'Poiret One', 'Didact Gothic', 'PingFang SC', sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list li + li {
  margin-top: 0.3rem;
}

.side-list a {
  display: block;
  padding: 0.62rem 0.75rem;
  border-radius: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
  background: transparent;
  transition: box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.side-list a:hover {
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(145deg, #fdfeff, #eef2f8);
  box-shadow: var(--lift-sm);
}

.prose {
  min-width: 0;
}

.prose > article {
  margin: 0 0 1.5rem;
  padding: clamp(1.15rem, 3vw, 2.1rem);
  border-radius: var(--r);
  background: linear-gradient(145deg, #f9fcff, #fbf2f7);
  box-shadow: var(--lift);
  scroll-margin-top: 1.25rem;
}

.prose > article:last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3 {
  font-family: 'Poiret One', 'Didact Gothic', 'PingFang SC', sans-serif;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.prose h2 {
  margin: 0.2rem 0 1rem;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
}

.prose h3 {
  margin: 1.6rem 0 0.7rem;
  font-size: clamp(1.2rem, 2.6vw, 1.4rem);
}

.prose small {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  font-family: 'Poiret One', 'Didact Gothic', sans-serif;
}

.prose p {
  margin: 0 0 1.05rem;
  color: var(--ink-soft);
}

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

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose figure {
  margin: 0 0 1.1rem;
}

.prose figcaption {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--muted);
}

.prose img {
  border-radius: 14px;
  box-shadow: var(--lift-sm);
}

.prose time {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 1rem;
  color: var(--ink-soft);
  background: #eef4fa;
  box-shadow: var(--sunk);
}

.prose blockquote {
  margin: 0 0 1.1rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #eef5fb, #faeff5);
  box-shadow: var(--sunk);
  color: var(--ink-soft);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.prose th,
.prose td {
  padding: 0.6rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid rgba(23, 31, 38, 0.08);
}

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  padding: 2.25rem clamp(1rem, 4vw, 2.5rem) 8rem;
  background: linear-gradient(180deg, rgba(249, 237, 243, 0.55), rgba(238, 244, 250, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.foot-brand a {
  font-family: 'Poiret One', 'Didact Gothic', 'PingFang SC', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.foot-brand a:hover {
  text-decoration: none;
}

.foot-nav dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  gap: 0.25rem 1.1rem;
}

.foot-nav dt {
  font-family: 'Poiret One', 'Didact Gothic', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.foot-nav dd {
  margin: 0;
}

.foot-nav dd a {
  display: inline-block;
  padding: 0.6rem 0.15rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.foot-copy {
  font-size: 1rem;
  color: var(--muted);
}

/* ---------- 底部固定导航 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.5rem clamp(0.6rem, 2vw, 1.75rem);
  background: rgba(246, 240, 245, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -6px 18px rgba(165, 185, 205, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.dock-side {
  display: flex;
  gap: 0.15rem;
}

.dock-link {
  display: inline-block;
  padding: 0.7rem 0.6rem;
  border-radius: 12px;
  white-space: nowrap;
  line-height: 1.4;
  color: var(--ink-soft);
  transition: transform 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.dock-link:hover {
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(145deg, #fdfeff, #eef2f8);
  box-shadow: var(--lift-sm);
}

.dock-link:active {
  transform: scale(0.96);
  box-shadow: var(--sunk);
}

.dock-brand {
  flex: none;
  margin: 0 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-family: 'Poiret One', 'Didact Gothic', 'PingFang SC', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--ink);
  background: linear-gradient(145deg, #ffffff, #eaf0f7);
  box-shadow: var(--lift-sm);
}

.dock-brand:hover {
  text-decoration: none;
}

/* ---------- 滚动浮现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-cue,
  .dock-link {
    transition: none;
  }
}

/* ---------- 断点 ---------- */
@media (max-width: 860px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.5rem 1rem 7rem;
    gap: 1.25rem;
  }
  .side {
    position: static;
  }
  .side-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .side-list li + li {
    margin-top: 0;
  }
  .side-list a {
    padding: 0.6rem 0.8rem;
    background: linear-gradient(145deg, #fdfeff, #eef2f8);
    box-shadow: var(--lift-sm);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 68vh;
    padding: 4rem 1.1rem 3rem;
  }
  .dock {
    justify-content: safe center;
  }
  .foot {
    padding-bottom: 9rem;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 1rem;
  }
  .dock-link {
    padding: 0.7rem 0.5rem;
  }
  .dock-brand {
    margin: 0 0.25rem;
    padding: 0.55rem 0.7rem;
  }
}

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