@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

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

:root {
  --ink: #241a2e;
  --ink-2: #57465f;
  --purple: #56228b;
  --purple-2: #7b41b3;
  --umber: #8b4513;
  --paper: #f4ede1;
  --paper-2: #fbf6ee;
  --line: rgba(36, 26, 46, .14);
  --soft: 0 22px 48px -30px rgba(36, 26, 46, .7);
  --r-a: 22px;
  --r-b: 16px;
}

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

body {
  margin: 0;
  font-family: "Cabin", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
p { line-height: 1.75; }
a { color: var(--purple); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--purple-2); outline-offset: 2px; border-radius: 8px; }

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 9% 12%, rgba(86, 34, 139, .10), transparent 40%),
    radial-gradient(circle at 93% 5%, rgba(139, 69, 19, .11), transparent 36%),
    radial-gradient(circle at 80% 90%, rgba(86, 34, 139, .08), transparent 44%),
    repeating-linear-gradient(97deg, rgba(36, 26, 46, .032) 0 2px, transparent 2px 8px);
}

.skip {
  position: absolute;
  left: 14px;
  top: -70px;
  z-index: 70;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  transition: top .2s ease;
}
.skip:focus { top: 12px; }

/* ---------- 顶部：分翼胶囊导航 ---------- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px clamp(14px, 3vw, 32px);
  background: rgba(244, 237, 225, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wing { flex: 1 1 0; min-width: 0; }
.nav-wing ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
}
.wing-a ul { justify-content: flex-end; }
.wing-b ul { justify-content: flex-start; }
.nav-wing a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: .94rem;
  white-space: nowrap;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.nav-wing a:hover { background: var(--purple); border-color: var(--purple); color: #fff; transform: translateY(-1px); }

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  color: var(--ink);
  text-decoration: none;
}
.mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-block;
  object-fit: cover;
  border-radius: 52% 44% 56% 46% / 46% 54% 44% 56%;
  background: linear-gradient(140deg, var(--purple), var(--umber));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.brand-name {
  font-family: "Amatic SC", "Cabin", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .09em;
}

.seek {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 3px 3px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
}
.seek input {
  width: 7.2em;
  min-height: 34px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .94rem;
  color: var(--ink);
}
.seek input:focus { outline: none; }
.seek button {
  min-height: 38px;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--umber);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s ease;
}
.seek button:hover { background: var(--purple); }

/* ---------- 首屏 ---------- */
main { position: relative; z-index: 1; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  min-height: 45vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 40px) clamp(52px, 6vw, 70px);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  z-index: -1;
  opacity: .92;
  background: linear-gradient(90deg, var(--purple), #6d2f7f 46%, var(--umber));
  clip-path: polygon(0 54%, 100% 0, 100% 100%, 0 100%);
}

.hero-art {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 58% 42% 46% 54% / 48% 52% 48% 52%;
  background: linear-gradient(160deg, #e6ddf0, #f2e3d5);
  box-shadow: var(--soft);
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-art img.on { opacity: 1; }
.hero-art .blob {
  position: absolute;
  inset: 16%;
  border-radius: 46% 54% 40% 60% / 56% 44% 56% 44%;
  background: linear-gradient(150deg, var(--purple-2), var(--umber));
  opacity: .55;
}

.hero-say { text-align: right; }
.hero-say h1 {
  margin: 0 0 .28em;
  font-family: "Amatic SC", "Cabin", sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .03em;
  color: var(--purple);
  text-align: right;
  text-wrap: balance;
}
.hero-lead {
  margin: 0 0 0 auto;
  max-width: 32ch;
  color: var(--ink-2);
  font-size: 1.02rem;
  text-align: right;
}

/* ---------- 主体：左栏 + 正文 ---------- */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px clamp(16px, 4vw, 40px) 48px;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: start;
}

.rail {
  position: sticky;
  top: 84px;
  padding: 18px 15px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-a) var(--r-b) var(--r-a) var(--r-b);
  background: var(--paper-2);
  box-shadow: var(--soft);
}
.rail-h {
  margin: 0;
  font-size: 1.06rem;
  letter-spacing: .2em;
  color: var(--umber);
}
.rail .subtitle {
  margin: 2px 0 12px;
  font-size: .86rem;
  letter-spacing: .1em;
  color: var(--ink-2);
}
.rail nav ul {
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rail nav a {
  display: block;
  min-height: 40px;
  padding: 8px 11px;
  border-left: 3px solid transparent;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.rail nav a:hover { background: #efe4f3; border-left-color: var(--purple); color: var(--purple); }

/* ---------- 正文排版 ---------- */
.content-body { min-width: 0; }

.content-body > article {
  padding: clamp(26px, 3.5vw, 42px) 0;
  border-top: 1px dashed rgba(139, 69, 19, .35);
  scroll-margin-top: 100px;
}
.content-body > article:first-child { border-top: 0; padding-top: 4px; }

.content-body h2 {
  margin: .1em 0 .55em;
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--purple);
}
.content-body h2::after {
  content: "";
  display: block;
  width: 78px;
  height: 7px;
  margin-top: .5em;
  border-radius: 0 9px 0 9px;
  background: linear-gradient(90deg, var(--umber), var(--purple));
}
.content-body h3 {
  margin: 1.5em 0 .5em;
  font-size: 1.12rem;
  line-height: 1.4;
  color: var(--umber);
}
.content-body h3::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 9px;
  border-radius: 60% 40% 55% 45%;
  background: var(--umber);
  vertical-align: 2px;
}
.content-body p { margin: 0 0 1em; }
.content-body ul, .content-body ol { margin: 0 0 1em; padding-left: 1.3em; }
.content-body li { margin: .35em 0; }
.content-body a { color: var(--purple); }
.content-body strong { color: var(--ink); }
.content-body img { margin: 1em 0; border-radius: var(--r-b); box-shadow: var(--soft); }
.content-body figure { margin: 1.2em 0; }
.content-body figcaption { font-size: .9rem; color: var(--ink-2); }
.content-body blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 4px solid var(--purple);
  border-radius: var(--r-b);
  background: #efe6f2;
}
.content-body table {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
  font-size: .96rem;
}
.content-body th, .content-body td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.content-body hr { border: 0; border-top: 1px dashed var(--line); margin: 1.6em 0; }

/* ---------- 页脚 ---------- */
.site-foot {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 40px) 22px;
  border-radius: 42px 42px 0 0;
  color: #ece3f3;
  background-color: #1f1726;
  background-image:
    radial-gradient(circle at 12% 0, rgba(139, 69, 19, .48), transparent 46%),
    radial-gradient(circle at 86% 12%, rgba(86, 34, 139, .58), transparent 52%);
}
.site-foot a { color: #e8daf4; }

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.foot-top h2 { margin: 0; font-size: 1.32rem; letter-spacing: .12em; }
.foot-top .subtitle { margin: 4px 0 0; font-size: .88rem; color: #c8b5d8; }

.foot-form { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-form input {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: inherit;
  font-size: .95rem;
}
.foot-form input::placeholder { color: #c6b3d7; }
.foot-form button {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--umber);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s ease;
}
.foot-form button:hover { background: var(--purple-2); }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr);
  gap: 22px 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.foot-cols dl { margin: 0; }
.foot-cols dt {
  margin-bottom: 6px;
  font-size: .82rem;
  letter-spacing: .2em;
  color: #c8b5d8;
}
.foot-cols dd { margin: 0 0 2px; }
.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: .96rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.foot-cols a:hover { border-bottom-color: #c8b5d8; }

.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand .mark { width: 44px; height: 44px; }
.foot-name {
  font-family: "Amatic SC", "Cabin", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.foot-base {
  max-width: 1080px;
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
  font-size: .9rem;
  color: #c8b5d8;
}
.foot-base p { margin: 0; }

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .site-top { position: static; flex-wrap: wrap; row-gap: 6px; }
  .brand { order: 1; flex: 1 1 auto; }
  .seek { order: 2; }
  .nav-wing { order: 3; flex: 1 1 100%; }
  .nav-wing ul { justify-content: flex-start; overflow-x: auto; padding-bottom: 3px; }
  .wing-a ul { justify-content: flex-start; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 20px;
    padding-bottom: 56px;
  }
  .hero-art { aspect-ratio: 16 / 10; }
  .hero-say h1 { text-align: left; }
  .hero-lead { margin: 0; max-width: none; text-align: left; }

  .shell { grid-template-columns: 1fr; padding-bottom: 36px; }
  .rail { position: static; order: -1; padding: 13px 12px 15px; border-radius: 18px; }
  .rail nav ul { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .rail nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    white-space: nowrap;
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
  }
  .rail nav a:hover { border-color: var(--purple); }

  .content-body > article { scroll-margin-top: 18px; }

  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .seek input { width: 5em; }
  .brand-name { font-size: 1.34rem; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-cols a { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .nav-wing a:hover { transform: none; }
}

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