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

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

:root {
  --ink: #1f1726;
  --ink-2: #281d33;
  --plum: #56228b;
  --plum-lt: #9257cf;
  --plum-ink: #c9a5ef;
  --clay: #8b4513;
  --clay-lt: #c67c40;
  --sand: #f5eee5;
  --sand-2: #cbbfb4;
  --sage: #9db08a;
  --line: rgba(245, 238, 229, .14);
  --glass: rgba(245, 238, 229, .055);
  --serif: 'Cinzel', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --sans: 'Josefin Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --shell: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  color: var(--sand);
  background-color: var(--ink);
  background-image:
    radial-gradient(58% 38% at 6% 0%, rgba(86, 34, 139, .5), transparent 72%),
    radial-gradient(46% 36% at 100% 10%, rgba(139, 69, 19, .38), transparent 70%),
    radial-gradient(70% 46% at 50% 104%, rgba(86, 34, 139, .28), transparent 72%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sand); text-decoration: none; }
a:hover { color: #fff; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--clay-lt);
  outline-offset: 3px;
}

/* 页头 */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(31, 23, 38, .9);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--line);
}

.brand-row {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 13px 22px 9px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .16em;
  color: var(--sand);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--sand);
  background: linear-gradient(140deg, var(--plum), var(--clay));
  border: 1px solid rgba(245, 238, 229, .3);
  border-radius: 52% 46% 58% 48% / 48% 56% 44% 52%;
  object-fit: cover;
}

.brand-mark svg { width: 22px; height: 22px; }

.menu-row {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 22px 10px;
  border-top: 1px solid rgba(245, 238, 229, .07);
}

.menu-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.group { position: relative; }

.group-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  font: inherit;
  font-size: 15px;
  letter-spacing: .14em;
  color: var(--sand-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.group-btn::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.group:hover .group-btn,
.group:focus-within .group-btn {
  color: #fff;
  border-color: var(--line);
  background: rgba(245, 238, 229, .07);
}

.group-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 186px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(40, 29, 51, .97);
  border: 1px solid var(--line);
  border-radius: 16px 4px 16px 16px;
  box-shadow: 0 26px 46px -26px #000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}

.group:hover .group-list,
.group:focus-within .group-list {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.group-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 12px;
  font-size: 16px;
  border-radius: 4px;
}

.group-list a:hover { background: rgba(86, 34, 139, .55); }

.menu-toggle { display: none; }

/* 页面骨架 */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px 22px 44px;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.side {
  position: sticky;
  top: 132px;
  padding: 20px 16px;
  background: var(--glass);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border: 1px solid var(--line);
  border-radius: 26px 6px 26px 26px;
}

.side h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--sage);
}

.subtitle {
  margin: 0 0 14px;
  padding-bottom: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sand-2);
  border-bottom: 1px solid var(--line);
}

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

.side a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 9px;
  font-size: 15.5px;
  color: var(--sand-2);
  border-left: 2px solid transparent;
  border-radius: 4px;
}

.side a:hover,
.side a:focus-visible {
  color: #fff;
  background: rgba(86, 34, 139, .4);
  border-left-color: var(--clay-lt);
}

.body { display: grid; gap: 22px; min-width: 0; }

/* 首屏 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  padding: clamp(22px, 4vw, 48px);
  min-height: min(45vh, 430px);
  border: 1px solid var(--line);
  border-radius: 30px 8px 30px 30px;
  background: linear-gradient(116deg, #311f45 0%, #47225e 48%, #4d2618 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 340px;
  height: 340px;
  border-radius: 58% 42% 46% 54% / 48% 52% 48% 52%;
  background: radial-gradient(circle at 35% 35%, rgba(157, 176, 138, .35), rgba(86, 34, 139, .1) 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: linear-gradient(90deg, var(--plum), var(--clay));
  clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
}

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

.hero h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 43px);
  line-height: 1.34;
  letter-spacing: .04em;
  text-wrap: balance;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 26px;
  font-size: 16px;
  letter-spacing: .2em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: linear-gradient(100deg, var(--clay), var(--plum));
  box-shadow: 0 18px 34px -20px #000;
}

.hero-cta::after {
  content: '';
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.hero-art {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 180px;
  will-change: transform;
}

.blob { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; max-height: 320px; }

.hero-img {
  position: relative;
  width: 100%;
  max-width: 310px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 58% 42% 46% 54% / 48% 52% 48% 52%;
  box-shadow: 0 34px 64px -32px #000;
}

/* 正文卡片 */
.body div:not(.hero) {
  position: relative;
  padding: clamp(20px, 3.4vw, 38px);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 26px 52px -36px #000;
  color: #ded5cc;
}

.body div:not(.hero)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--plum-lt), var(--clay));
}

.body h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(21px, 3vw, 29px);
  line-height: 1.42;
  letter-spacing: .03em;
  color: var(--sand);
}

.body h3 {
  margin: 26px 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: .04em;
  color: #fff;
}

.body p { margin: 0 0 14px; }
.body p:last-child { margin-bottom: 0; }

.body ul,
.body ol { margin: 0 0 16px; padding-left: 22px; }
.body li { margin: 7px 0; }
.body li::marker { color: var(--clay-lt); }

.body a {
  color: var(--plum-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(201, 165, 239, .45);
}

.body a:hover { color: #fff; }

.body strong { color: #fff; font-weight: 600; }

.body blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  color: var(--sand);
  background: rgba(139, 69, 19, .16);
  border-left: 3px solid var(--clay);
  border-radius: 0 4px 4px 0;
}

.body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.body th,
.body td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); }
.body th { color: var(--sage); font-weight: 500; letter-spacing: .06em; }
.body img { margin: 14px 0; border-radius: 18px; }
.body hr { margin: 26px 0; height: 1px; border: 0; background: var(--line); }

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr auto;
  gap: 24px;
  margin-top: 20px;
  padding: 0 clamp(18px, 4vw, 48px) 30px;
  border-top: 1px solid var(--line);
  background: rgba(18, 13, 24, .9);
}

.foot-mark {
  grid-column: 1 / -1;
  margin: 24px 0 4px;
  font-family: var(--serif);
  font-size: clamp(38px, 11vw, 118px);
  line-height: 1;
  letter-spacing: .06em;
  color: rgba(245, 238, 229, .1);
  white-space: nowrap;
  overflow: hidden;
}

.foot-addr {
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .12em;
  color: var(--sand);
}

.foot-seed {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 52% 48% 50% 40%;
  background: linear-gradient(140deg, var(--plum-lt), var(--clay));
}

.foot dl { margin: 0; }

.foot dt,
.foot-cap {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .24em;
  color: var(--sage);
}

.foot dd { margin: 0; }

.foot-nav a,
.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 16px;
  color: var(--sand-2);
}

.foot-nav a:hover,
.foot-list a:hover { color: #fff; }

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

.foot-col { min-width: 0; }

.to-top {
  align-self: start;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--sand-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.to-top::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: rotate(45deg);
}

.to-top:hover { color: #fff; border-color: var(--clay-lt); }

.foot-base {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  padding-top: 16px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .12em;
  color: #8f8680;
  border-top: 1px solid rgba(245, 238, 229, .08);
}

div[id] { scroll-margin-top: 124px; }

/* 动效 */
.js .body div:not(.hero) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}

.js .body div.in { opacity: 1; transform: none; }

.js .side li {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.js .side li.in { opacity: 1; transform: none; }

.js .side li:nth-child(2) { transition-delay: .05s; }
.js .side li:nth-child(3) { transition-delay: .1s; }
.js .side li:nth-child(4) { transition-delay: .15s; }
.js .side li:nth-child(5) { transition-delay: .2s; }
.js .side li:nth-child(6) { transition-delay: .25s; }
.js .side li:nth-child(7) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 窄屏 */
@media (max-width: 900px) {
  .page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 16px 32px;
  }

  .body { order: 1; width: 100%; }
  .side { order: 2; position: static; width: 100%; border-radius: 6px 26px 26px 26px; }

  .hero { grid-template-columns: 1fr; min-height: 0; border-radius: 26px 6px 26px 26px; }
  .hero-art { min-height: 150px; }
  .hero-img { max-width: 240px; }

  div[id] { scroll-margin-top: 104px; }
}

@media (max-width: 860px) {
  .brand-row { padding: 12px 16px 8px; }
  .menu-row { padding: 0 16px 12px; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 10px;
    padding: 9px 22px;
    font: inherit;
    font-size: 16px;
    letter-spacing: .16em;
    color: var(--sand);
    background: rgba(245, 238, 229, .08);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
  }

  .menu-toggle[aria-expanded="true"] { color: #fff; border-color: var(--clay-lt); }

  .js .menu { display: none; }
  .menu.open { display: block; }

  .menu-groups { flex-direction: column; gap: 12px; margin-top: 12px; padding-bottom: 8px; }

  .group-btn {
    min-height: 40px;
    padding: 4px 0;
    font-size: 14px;
    letter-spacing: .2em;
    color: var(--sage);
    pointer-events: none;
  }

  .group-btn::after { display: none; }

  .group-list {
    position: static;
    min-width: 0;
    padding: 0 0 0 14px;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .group-list a { min-height: 44px; padding: 10px 4px; }
  .group-list a:hover { background: transparent; color: #fff; }
}

@media (max-width: 700px) {
  .foot {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 16px 26px;
  }

  .foot-mark { font-size: clamp(34px, 12vw, 64px); }

  .to-top { grid-column: 1 / -1; justify-self: start; }

  .body div:not(.hero) { padding: 20px 18px 22px; }
}

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