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

:root {
  --ink: #1f1726;
  --ink-deep: #150f1b;
  --violet: #56228b;
  --violet-lift: #7a3bb8;
  --brown: #8b4513;
  --paper: #f2ecf4;
  --dim: #c0b2cb;
  --glass: rgba(255, 255, 255, 0.055);
  --line: rgba(242, 236, 244, 0.14);
  --r-xl: 26px 22px 28px 20px;
  --r-lg: 22px 24px 20px 26px;
  --r-md: 18px;
  --r-pill: 999px;
  --shadow: 0 26px 54px -30px rgba(0, 0, 0, 0.95);
  --head: 'Bebas Neue', 'Source Sans 3', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --body: 'Source Sans 3', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 10% -12%, rgba(86, 34, 139, 0.42), transparent 62%),
    radial-gradient(880px 520px at 94% 4%, rgba(139, 69, 19, 0.26), transparent 66%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -20% -30% -20%;
  height: 62vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(42% 58% at 22% 60%, rgba(86, 34, 139, 0.34), transparent 72%),
    radial-gradient(46% 60% at 82% 42%, rgba(139, 69, 19, 0.24), transparent 74%);
  filter: blur(14px);
}

main,
.foot,
.topbar {
  position: relative;
  z-index: 1;
}

a {
  color: var(--paper);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--violet-lift);
  outline-offset: 3px;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px clamp(14px, 3vw, 26px);
  background: rgba(21, 15, 27, 0.74);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid var(--line);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  text-decoration: none;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(148deg, var(--violet), var(--brown));
  box-shadow: var(--shadow);
}

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

.mark-txt {
  font-family: var(--head);
  font-size: 25px;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.03em;
}

.nav-details {
  position: relative;
  margin-left: auto;
}

.sum {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.22s, border-color 0.22s;
}

.sum::-webkit-details-marker {
  display: none;
}

.sum::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-right: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.24s;
}

.nav-details[open] > .sum {
  background: rgba(86, 34, 139, 0.42);
  border-color: rgba(122, 59, 184, 0.62);
}

.nav-details[open] > .sum::after {
  transform: rotate(-135deg) translateY(-3px);
}

.pills {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  margin: 0;
  padding: 13px;
  list-style: none;
  display: grid;
  gap: 7px;
  min-width: min(86vw, 306px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(26, 18, 33, 0.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.pills li {
  list-style: none;
}

.pill {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 16px;
  text-decoration: none;
  color: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.045);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.pill:hover {
  background: rgba(86, 34, 139, 0.55);
  border-color: rgba(122, 59, 184, 0.7);
  transform: translateX(-3px);
}

.call {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  font-size: 16px;
  letter-spacing: 0.09em;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill);
  background: linear-gradient(132deg, var(--violet), var(--brown));
  transition: transform 0.22s, filter 0.22s;
}

.call:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 72vh;
  overflow: hidden;
  padding: clamp(54px, 9vh, 104px) 0 clamp(48px, 8vh, 78px);
  background:
    radial-gradient(72% 92% at 24% 42%, rgba(86, 34, 139, 0.6), transparent 70%),
    radial-gradient(62% 84% at 90% 22%, rgba(139, 69, 19, 0.44), transparent 72%),
    var(--ink-deep);
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.86) contrast(1.05);
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(21, 15, 27, 0.94), rgba(21, 15, 27, 0.54) 58%, rgba(86, 34, 139, 0.36));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

.hero-ghost {
  position: absolute;
  right: -2%;
  bottom: -18%;
  z-index: 1;
  font-family: var(--head);
  font-size: clamp(86px, 16vw, 224px);
  line-height: 0.82;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #fff;
  opacity: 0.075;
  pointer-events: none;
}

.hero h1 {
  margin: 0;
  max-width: 21ch;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(2.5rem, 7.2vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 26px 62px rgba(0, 0, 0, 0.62);
}

/* ---------- 正文与侧栏 ---------- */
.body-sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 60px) clamp(18px, 4vw, 40px) 0;
}

.body-col {
  min-width: 0;
  overflow-wrap: break-word;
}

.body-col article {
  scroll-margin-top: 104px;
}

.body-col > article + article {
  margin-top: 40px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.body-col > * + * {
  margin-top: 22px;
}

.body-col h2 {
  margin: 0 0 12px;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.16;
  letter-spacing: 0.035em;
  color: #fff;
}

.body-col h3 {
  margin: 30px 0 10px;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  color: #fff;
}

.body-col h4 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.body-col p {
  margin: 0;
  color: #e3d9e9;
}

.body-col p + p {
  margin-top: 16px;
}

.body-col .subtitle,
.body-col p.subtitle,
.body-col p.subhead,
.body-col p.desc,
.body-col p.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--dim);
}

.body-col a {
  color: #cfa6f5;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

.body-col ul,
.body-col ol {
  margin: 0;
  padding-left: 22px;
}

.body-col li + li {
  margin-top: 9px;
}

.body-col li::marker {
  color: var(--violet-lift);
}

.body-col blockquote {
  margin: 0;
  padding: 18px 22px;
  border-left: 3px solid var(--violet-lift);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(86, 34, 139, 0.18);
  color: #ece2f2;
}

.body-col blockquote p {
  margin: 0;
}

.body-col figure {
  margin: 0;
  padding: 0;
}

.body-col img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.body-col figcaption {
  margin-top: 9px;
  font-size: 16px;
  color: var(--dim);
}

.body-col table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
}

.body-col th,
.body-col td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.body-col th {
  color: #fff;
  font-weight: 700;
}

.body-col hr {
  height: 1px;
  border: 0;
  background: var(--line);
}

.body-col code {
  padding: 2px 6px;
  font-size: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.rail-title {
  margin: 0 0 8px;
  font-family: var(--head);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #fff;
}

.rail .subtitle {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.68;
  color: var(--dim);
}

.rail-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.rail-menu li {
  list-style: none;
  position: relative;
}

.rail-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 12px 6px 26px;
  font-size: 16px;
  text-decoration: none;
  color: var(--paper);
  border: 1px solid transparent;
  border-radius: 14px 16px 13px 17px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rail-menu li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 11px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--brown);
  transition: background 0.2s, transform 0.2s;
}

.rail-menu a:hover {
  background: rgba(86, 34, 139, 0.42);
  border-color: rgba(122, 59, 184, 0.55);
  color: #fff;
}

.rail-menu li:hover::before {
  background: var(--violet-lift);
  transform: scale(1.4);
}

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 18px 30px;
  align-content: start;
  margin-top: clamp(56px, 9vw, 100px);
  padding: clamp(30px, 5vw, 56px) max(clamp(18px, 4vw, 40px), calc((100% - 1180px) / 2)) 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(86, 34, 139, 0.24), rgba(21, 15, 27, 0.92) 62%);
}

.foot-cta {
  grid-column: 1 / -1;
  margin: 0 0 8px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 36px;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-pill);
  background: linear-gradient(124deg, var(--violet), var(--brown));
  box-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.95);
  transition: transform 0.24s, box-shadow 0.24s;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 54px -22px rgba(0, 0, 0, 0.95);
}

.foot-brand {
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
  color: var(--dim);
}

.foot-brand a {
  display: inline-block;
  margin-bottom: 7px;
  font-family: var(--head);
  font-size: 25px;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
}

.foot-desc {
  display: block;
  max-width: 46ch;
}

.foot-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
  align-content: start;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 15px;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: background 0.2s, border-color 0.2s;
}

.foot-links a:hover {
  background: rgba(86, 34, 139, 0.4);
  border-color: rgba(122, 59, 184, 0.6);
}

.foot-copy {
  grid-column: 1 / -1;
  display: block;
  margin-top: 14px;
  padding-top: 16px;
  font-size: 16px;
  text-align: center;
  color: #9c8daa;
  border-top: 1px solid var(--line);
}

/* ---------- 动效 ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-copy,
.rail {
  animation: fadein 0.6s both;
}

.body-col > article {
  animation: rise 0.55s both;
}

.body-col > article:nth-child(2) {
  animation-delay: 0.06s;
}

.body-col > article:nth-child(3) {
  animation-delay: 0.12s;
}

.body-col > article:nth-child(4) {
  animation-delay: 0.18s;
}

.body-col > article:nth-child(5) {
  animation-delay: 0.24s;
}

.body-col > article:nth-child(6) {
  animation-delay: 0.3s;
}

.body-col > article:nth-child(7) {
  animation-delay: 0.36s;
}

.body-col > article:nth-child(n + 8) {
  animation-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 断点 ---------- */
@media (max-width: 1023px) {
  .body-sec {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: static;
    margin-top: 34px;
  }
}

@media (min-width: 1024px) {
  .topbar {
    flex-wrap: wrap;
  }
  .nav-details {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  .nav-details > .sum {
    padding: 8px 14px;
  }
  .nav-details > .pills {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-details > .pills .pill {
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line);
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .hero {
    min-height: 70vh;
    padding-top: 46px;
  }
  .hero h1 {
    font-size: clamp(2.15rem, 9vw, 3rem);
    max-width: 100%;
  }
  .hero-ghost {
    bottom: -10%;
    font-size: clamp(72px, 22vw, 140px);
  }
  .body-col h2 {
    font-size: clamp(25px, 6.4vw, 32px);
  }
  .foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .foot-links {
    margin-top: 4px;
  }
  .cta-btn {
    width: 100%;
  }
  .foot-copy {
    margin-top: 8px;
  }
}

@media (max-width: 380px) {
  .sum {
    padding: 8px 14px;
  }
  .call {
    padding: 8px 15px;
  }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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