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

:root {
  --ink: #1f1726;
  --ink-2: #241a2d;
  --purple: #56228b;
  --brown: #8b4513;
  --brown-l: #c79a6a;
  --text: #efe7f5;
  --muted: #b6a5c6;
  --line: rgba(139, 69, 19, 0.38);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 10% 6%, rgba(86, 34, 139, 0.42), transparent 70%),
    radial-gradient(34vw 34vw at 92% 26%, rgba(139, 69, 19, 0.24), transparent 72%),
    radial-gradient(46vw 46vw at 58% 96%, rgba(86, 34, 139, 0.24), transparent 74%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
}

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

/* 顶栏 */
.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 40px);
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.brand-img {
  height: 34px;
  width: auto;
  display: block;
}

.brand-txt {
  font-size: 19px;
  white-space: nowrap;
}

.search {
  position: relative;
  flex: 1 1 170px;
  max-width: 300px;
}

.search input {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(86, 34, 139, 0.2);
  color: inherit;
  font: inherit;
  font-size: 16px;
  padding: 8px 44px 8px 18px;
}

.search input::placeholder {
  color: #a08fb0;
}

.search-ico {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  stroke: #c8b6d8;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

/* 首屏 */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 110px) clamp(16px, 4vw, 40px) clamp(72px, 11vh, 130px);
}

.eyebrow {
  align-self: flex-start;
  display: inline-block;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--brown-l);
  border-bottom: 1px solid rgba(139, 69, 19, 0.55);
  padding-bottom: 5px;
  margin-bottom: 18px;
}

.hero-h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 17em;
  color: #f8f3fd;
}

.lead {
  margin: 18px 0 0;
  max-width: 34em;
  color: #c4b4d3;
  font-size: 17px;
}

.collage {
  position: relative;
  margin: clamp(28px, 5vh, 48px) 0 0;
  height: clamp(210px, 36vh, 360px);
}

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.94;
}

.blob {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(139, 69, 19, 0.45);
  background: linear-gradient(155deg, rgba(86, 34, 139, 0.55), rgba(31, 23, 38, 0.95));
}

.blob-a {
  left: 0;
  top: 0;
  width: 58%;
  height: 100%;
  border-radius: 64% 36% 48% 52% / 46% 52% 48% 54%;
}

.blob-b {
  right: 2%;
  bottom: -8%;
  width: 44%;
  height: 78%;
  border-radius: 52% 48% 62% 38% / 58% 42% 58% 42%;
  border-color: rgba(86, 34, 139, 0.7);
}

.vein {
  position: absolute;
  left: 44%;
  top: 4%;
  width: 54%;
  height: auto;
  fill: none;
  stroke: rgba(139, 69, 19, 0.6);
  stroke-width: 1.4;
  stroke-linecap: round;
  pointer-events: none;
}

/* 正文区 */
.wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 40px;
}

.prose {
  min-width: 0;
}

.prose > section {
  padding: clamp(28px, 5vw, 52px) 0;
  border-top: 1px dashed rgba(139, 69, 19, 0.4);
  scroll-margin-top: 24px;
}

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

.prose h2 {
  margin: 0.7em 0 0.5em;
  font-size: clamp(1.35rem, 3vw, 1.72rem);
  line-height: 1.32;
  font-weight: 600;
  color: #f6effb;
}

.prose h3 {
  margin: 1.2em 0 0.45em;
  font-size: 1.15rem;
  color: #e9def4;
}

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

.prose a {
  color: #d3a2ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.prose li {
  margin: 0.35em 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(139, 69, 19, 0.35);
}

.prose blockquote {
  margin: 1.2em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--brown);
  border-radius: 0 20px 20px 0;
  background: rgba(86, 34, 139, 0.16);
  color: #dbcee8;
}

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

.prose th,
.prose td {
  border: 1px solid rgba(139, 69, 19, 0.35);
  padding: 9px 12px;
  text-align: left;
}

/* 侧栏 */
.toc {
  position: sticky;
  top: 22px;
  padding: 18px 18px 22px;
  border: 1px solid rgba(139, 69, 19, 0.45);
  border-radius: 18px;
  background: rgba(36, 26, 45, 0.82);
  backdrop-filter: blur(6px);
}

.toc small {
  display: block;
  font-size: 14px;
  letter-spacing: 0.26em;
  color: var(--brown-l);
  margin-bottom: 2px;
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
  margin: 0;
}

.toc-list li + li {
  border-top: 1px solid rgba(139, 69, 19, 0.22);
}

.toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 2px;
  color: #cfc0dd;
  text-decoration: none;
  font-size: 16px;
}

.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--brown);
}

.toc-list a:hover,
.toc-list a:focus-visible {
  color: #fff;
}

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 8vw, 80px);
  padding: 0 clamp(16px, 4vw, 40px) calc(108px + env(safe-area-inset-bottom));
}

.cta {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 64px) clamp(20px, 5vw, 48px);
  border: 1px solid rgba(139, 69, 19, 0.5);
  border-radius: 28px 28px 96px 28px;
  background: linear-gradient(145deg, #56228b, #2a1740 58%, #5b3216);
  text-align: center;
}

.cta-brand {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #f4ecfb;
  color: #2a1740;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.cta-btn:hover {
  background: #fff;
}

.copy {
  max-width: 1120px;
  margin: 22px auto 0;
  text-align: center;
  color: #a08fb0;
  font-size: 16px;
}

/* 底部固定胶囊导航 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px clamp(10px, 3vw, 24px) calc(10px + env(safe-area-inset-bottom));
  background: rgba(24, 17, 30, 0.93);
  border-top: 1px solid rgba(139, 69, 19, 0.45);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.dock dl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.dock dt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.dock dd {
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 69, 19, 0.45);
  color: #ded1e9;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}

.pill:hover,
.pill:focus-visible {
  background: rgba(86, 34, 139, 0.55);
  border-color: var(--brown);
  color: #fff;
}

.dock-brand {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #f4ecfb;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* 入场 */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
    order: 2;
  }
  .dock {
    justify-content: flex-start;
  }
  .collage {
    height: clamp(200px, 32vh, 300px);
  }
}

@media (max-width: 460px) {
  .brand-txt {
    font-size: 17px;
  }
  .search {
    max-width: none;
  }
  .blob-b {
    width: 46%;
  }
  .cta {
    border-radius: 24px 24px 72px 24px;
  }
}

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