@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 {
  --ink: #1f1726;
  --ink-2: #2a2033;
  --plum: #56228b;
  --plum-lt: #b98ce6;
  --clay: #8b4513;
  --clay-lt: #d8a073;
  --paper: #f3ece4;
  --muted: #c9bccf;
  --line: rgba(243, 236, 228, 0.14);
  --shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.85);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --ui: 'Quicksand', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --hand: 'Caveat', 'Quicksand', 'PingFang SC', 'Microsoft YaHei', cursive;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 34% at 12% 6%, rgba(86, 34, 139, 0.45), transparent 70%),
    radial-gradient(38% 30% at 90% 20%, rgba(139, 69, 19, 0.32), transparent 72%),
    radial-gradient(52% 42% at 74% 96%, rgba(86, 34, 139, 0.26), transparent 72%),
    linear-gradient(180deg, #241a2e 0%, #1f1726 62%);
}

img { max-width: 100%; }

a { color: var(--clay-lt); }

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 80;
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--plum);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip:focus { top: 0; }

/* 顶栏 */
.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px clamp(14px, 4vw, 34px);
  background: rgba(31, 23, 38, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.mark {
  flex: 0 0 auto;
  order: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 52% 48% 44% 56% / 48% 52% 48% 52%;
  background: linear-gradient(140deg, var(--plum), var(--clay));
  color: var(--paper);
  box-shadow: var(--shadow);
}
.mark svg { width: 26px; height: 26px; display: block; }

.burger {
  order: 3;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  background: rgba(243, 236, 228, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.burger:hover { background: rgba(185, 140, 230, 0.2); }
.lbl-d { display: none; }

.dock { order: 2; margin-left: auto; }
.dock ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dock a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.dock a:hover,
.dock a:focus-visible { color: var(--paper); background: rgba(185, 140, 230, 0.18); }

/* 主视觉 */
.hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
  min-height: 70vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px) clamp(16px, 4vw, 34px) clamp(34px, 6vw, 68px);
}

.hero-txt { text-align: center; }

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, #fff 12%, var(--plum-lt) 58%, var(--clay-lt) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: 54% 46% 44% 56% / 46% 54% 46% 54%;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
  background: linear-gradient(150deg, rgba(86, 34, 139, 0.5), rgba(139, 69, 19, 0.35));
}

.hero-art img,
.hero-art svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-art img {
  object-fit: cover;
  transform: translate3d(0, var(--py, 0), 0) scale(1.07);
  will-change: transform;
}
.hero-art .blob { transform: scale(1.02); }

/* 内容区 */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  align-items: start;
  gap: clamp(22px, 3.4vw, 44px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 34px) clamp(30px, 5vw, 60px);
}

.content { min-width: 0; }

.prose { max-width: 70ch; }

.prose > section {
  scroll-margin-top: 96px;
  margin: 0 0 26px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(243, 236, 228, 0.055), rgba(243, 236, 228, 0.018));
  box-shadow: var(--shadow);
}
.prose > section:last-child { margin-bottom: 0; }

.prose h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.4;
  font-weight: 600;
  color: #fff;
}
.prose h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 5px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--plum-lt), var(--clay-lt));
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--plum-lt);
}

.prose p { margin: 0 0 14px; color: #e7ddea; }
.prose p:last-child { margin-bottom: 0; }

.prose ul,
.prose ol { margin: 0 0 14px; padding-left: 1.25em; }
.prose li { margin: 6px 0; }

.prose blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 4px solid var(--clay);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(139, 69, 19, 0.16);
  color: #f0e6f0;
}

.prose strong { color: #fff; }

.prose img { height: auto; border-radius: var(--r-sm); }

/* 侧栏 */
.side {
  position: sticky;
  top: 92px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(243, 236, 228, 0.06);
  box-shadow: var(--shadow);
}

.side h2 {
  margin: 0 0 6px;
  font-family: var(--hand);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--plum-lt);
}

.side .subtitle {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.side-nav { margin: 0; padding: 0; list-style: none; }
.side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 2px;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}
.side-nav li:last-child a { border-bottom: 0; }
.side-nav a:hover { color: var(--clay-lt); }

/* 页脚 */
footer {
  margin-top: clamp(30px, 6vw, 64px);
  padding: clamp(30px, 6vw, 54px) clamp(16px, 4vw, 34px) 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(86, 34, 139, 0.32), rgba(31, 23, 38, 0.92));
}

.cta { text-align: center; }

.cta-brand {
  display: inline-block;
  padding: 6px 8px;
  font-family: var(--hand);
  font-size: clamp(34px, 8vw, 68px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.cta-brand:hover { color: var(--plum-lt); border-color: var(--clay); }

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  max-width: 1180px;
  margin: 14px auto 0;
}

address {
  font-style: normal;
  font-size: 16px;
  color: var(--muted);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 4px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
}
.foot-nav a:hover { color: var(--paper); }

.copy {
  max-width: 1180px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 16px;
  color: rgba(201, 188, 207, 0.78);
}

/* 动效 */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* 断点 */
@media (max-width: 899px) {
  .bar { flex-wrap: wrap; }
  .dock {
    display: none;
    order: 4;
    width: 100%;
    margin: 0 0 6px;
  }
  .dock.open { display: block; }
  .dock ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .dock li.g { display: block; }
  .dock a { padding: 10px 14px; border-radius: var(--r-sm); background: rgba(243, 236, 228, 0.05); }
}

@media (min-width: 900px) {
  .lbl-m { display: none; }
  .lbl-d { display: inline; }
  .dock li.g { display: none; }
  .dock.open li.g { display: block; }
}

@media (max-width: 939px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: 2; }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 26px;
    text-align: center;
  }
  .hero-art { order: 2; aspect-ratio: 4 / 3; max-height: 46vh; }
  .hero-txt { order: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art img { transform: none; }
  .burger, .dock a, .cta-brand { transition: none; }
}

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