:root {
  --ink: #1f1726;
  --ink-soft: #2b2138;
  --purple: #56228b;
  --brown: #8b4513;
  --cream: #f7f0e5;
  --cream-2: #efe3d1;
  --cream-dim: rgba(247, 240, 229, 0.78);
  --cream-line: rgba(247, 240, 229, 0.18);
  --r-xl: 28px;
  --r-md: 18px;
  --r-pill: 999px;
  --serif: 'Cormorant Infant', Georgia, 'Songti SC', 'Noto Serif SC', 'Times New Roman', serif;
  --script: 'Great Vibes', 'Cormorant Infant', Georgia, 'Songti SC', 'Noto Serif SC', serif;
  --shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.85);
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
  background-color: var(--ink);
  background-image:
    radial-gradient(78vw 62vh at 92% -8%, rgba(86, 34, 139, 0.62), transparent 70%),
    radial-gradient(64vw 54vh at -12% 24%, rgba(139, 69, 19, 0.44), transparent 68%),
    radial-gradient(90vw 66vh at 46% 112%, rgba(86, 34, 139, 0.42), transparent 74%);
  background-repeat: no-repeat;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 顶部：品牌行 + 菜单行 */
.masthead {
  position: relative;
  z-index: 30;
  padding: 16px clamp(16px, 4vw, 52px) 8px;
}

.brandbar {
  display: flex;
  justify-content: center;
  padding: 4px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--script);
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.brand .logo {
  width: 44px;
  height: 44px;
  border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  object-fit: cover;
}

.navbar {
  display: block;
  text-align: center;
}

.navbar-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: rgba(247, 240, 229, 0.1);
  color: var(--cream);
  font-size: 16px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  cursor: pointer;
  list-style: none;
}

.navbar-toggle::-webkit-details-marker {
  display: none;
}

.navbar-toggle::marker {
  content: '';
}

.navbar-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.navbar-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  color: var(--cream-dim);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.navbar-menu a:hover,
.navbar-menu a:focus-visible {
  background: rgba(247, 240, 229, 0.14);
  color: #fff;
  transform: translateY(-1px);
}

/* 版面 */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 0 clamp(16px, 4vw, 52px) 56px;
}

.prose {
  grid-column: 1;
  min-width: 0;
}

/* 首屏 */
.hero {
  position: relative;
  display: grid;
  gap: 30px;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px 0 48px;
}

.hero-ghost {
  position: absolute;
  right: 0;
  bottom: 4vh;
  z-index: 0;
  margin: 0;
  font-family: var(--script);
  font-size: clamp(5rem, 17vw, 13rem);
  line-height: 0.86;
  color: rgba(247, 240, 229, 0.07);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}

.hero-art,
.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-fig {
  margin: 0;
  max-height: 42vh;
  overflow: hidden;
  border-radius: 52% 48% 42% 58% / 46% 54% 46% 54%;
  box-shadow: var(--shadow);
}

.hero-fig .hero-img {
  width: 100%;
  height: 100%;
  max-height: 42vh;
  object-fit: cover;
}

.blob {
  aspect-ratio: 1 / 1.02;
  max-height: 42vh;
  border-radius: 54% 46% 40% 60% / 48% 56% 44% 52%;
  background-image:
    radial-gradient(circle at 30% 26%, rgba(247, 240, 229, 0.28), transparent 58%),
    linear-gradient(148deg, var(--purple), var(--brown));
  box-shadow: var(--shadow);
}

.hero-copy {
  text-align: left;
}

h1 {
  margin: 0 0 0.28em;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
}

.hero-lead {
  max-width: 40ch;
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(247, 240, 229, 0.82);
}

/* 正文区块（page.content 内的 section） */
.prose > section:not(.hero) {
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-xl);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(139, 69, 19, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--ink);
  box-shadow: var(--shadow);
  scroll-margin-top: 132px;
}

.prose > section:not(.hero):nth-of-type(even) {
  background-color: var(--cream-2);
}

.prose h2 {
  margin: 0 0 0.5em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.3;
  color: var(--purple);
}

.prose h3 {
  margin: 1.6em 0 0.45em;
  font-size: 1.16rem;
  line-height: 1.45;
  color: var(--brown);
}

.prose p {
  margin: 0 0 1em;
  font-size: 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.prose li {
  margin: 0.35em 0;
}

.prose li::marker {
  color: var(--brown);
}

.prose a {
  color: var(--purple);
  text-underline-offset: 3px;
}

.prose figure {
  margin: 1.3em 0;
}

.prose img {
  border-radius: var(--r-md);
}

.prose blockquote {
  margin: 1.3em 0;
  padding: 16px 22px;
  border: 0;
  border-radius: var(--r-md);
  background: rgba(86, 34, 139, 0.1);
  color: var(--ink-soft);
}

.prose strong {
  color: var(--purple);
}

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

.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
}

.prose th {
  color: var(--brown);
  font-weight: 600;
}

.prose tbody tr:nth-child(odd) {
  background: rgba(86, 34, 139, 0.06);
}

.prose > section p.subtitle {
  margin: -0.25em 0 1em;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: rgba(31, 23, 38, 0.58);
}

/* 侧栏 */
.side {
  grid-column: 1;
  margin-bottom: 8px;
  padding: 24px;
  border-radius: var(--r-xl);
  background: rgba(247, 240, 229, 0.08);
  box-shadow: 0 20px 44px -32px rgba(0, 0, 0, 0.9);
}

.side h2 {
  margin: 0 0 0.12em;
  font-family: var(--script);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.25;
}

.side .subtitle {
  margin: 0 0 1.1em;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: rgba(247, 240, 229, 0.6);
}

.side-menu {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 14px;
  color: rgba(247, 240, 229, 0.86);
  text-decoration: none;
  transition: background 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.side-menu a:hover,
.side-menu a:focus-visible {
  background: rgba(247, 240, 229, 0.14);
  color: #fff;
  transform: translateX(4px);
}

/* 页脚 */
.colophon {
  display: grid;
  gap: 30px;
  margin-top: 44px;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 52px) 30px;
  border-top-left-radius: 52px;
  border-top-right-radius: 52px;
  background-image: linear-gradient(
    158deg,
    rgba(86, 34, 139, 0.6),
    rgba(31, 23, 38, 0.96) 52%,
    rgba(139, 69, 19, 0.55)
  );
}

.colophon h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: rgba(247, 240, 229, 0.58);
}

.col-brand {
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--cream);
  text-decoration: none;
}

.colophon menu {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.colophon menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 17px;
  color: rgba(247, 240, 229, 0.86);
  text-decoration: none;
}

.colophon menu a:hover,
.colophon menu a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.col-host {
  margin: 0;
  font-size: 17px;
  word-break: break-all;
  color: rgba(247, 240, 229, 0.82);
}

.sub-form {
  display: grid;
  gap: 10px;
}

.sub-form input {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(247, 240, 229, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.sub-form button {
  min-height: 46px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--purple);
  color: var(--cream);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.sub-form button:hover {
  background: var(--brown);
  transform: translateY(-1px);
}

.colophon-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-line);
}

.copy {
  margin: 0;
  font-size: 16px;
  color: rgba(247, 240, 229, 0.6);
}

.base-links {
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.base-links a {
  min-height: 40px !important;
  font-size: 16px !important;
  color: rgba(247, 240, 229, 0.62) !important;
}

/* 动效 */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* 平板及以上 */
@media (min-width: 760px) {
  .colophon {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
  }
  .colophon-base {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .masthead {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background: linear-gradient(to bottom, rgba(31, 23, 38, 0.94), rgba(31, 23, 38, 0.68));
  }
}

@media (min-width: 1000px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) 288px;
    align-items: start;
    gap: 36px;
  }
  .prose {
    grid-column: 1;
    grid-row: 1;
  }
  .side {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 158px;
  }
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
  }
  .hero-copy {
    justify-self: end;
    text-align: right;
  }
  .hero-lead {
    margin-left: auto;
  }
  .hero-fig,
  .hero-fig .hero-img,
  .blob {
    max-height: 64vh;
  }
}

/* 手机端首屏：文字先出现 */
@media (max-width: 819px) {
  .hero-copy {
    order: -1;
  }
  .hero {
    min-height: auto;
    padding-top: 16px;
    gap: 24px;
  }
  .hero-ghost {
    bottom: auto;
    top: 6px;
    font-size: 4.4rem;
  }
}

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