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

:root {
  --violet: #6514ff;
  --magenta: #bf00ff;
  --ink: #1c1726;
  --paper: #f6f2ff;
  --line: #e3d8ff;
  --soft: #ffffff;
  --radius: 18px;
  --shadow: 0 16px 34px rgba(28, 23, 38, .1);
  --display: Newsreader, Georgia, "Songti SC", "Noto Serif SC", serif;
  --text: Roboto, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(101, 20, 255, .18) 1px, transparent 0);
  background-size: 28px 28px;
  animation: drift 24s linear infinite;
}

@keyframes drift {
  to { background-position: 28px 56px; }
}

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

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

/* ---- 顶栏 ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
  transition: background .25s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
  position: relative;
  z-index: 3;
}

.mark-char,
.mark-img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex: none;
}

.mark-char {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  color: #fff;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
}

.mark-img { object-fit: cover; }

.top-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  position: relative;
  z-index: 3;
  transition: transform .22s ease, background .22s ease, color .22s ease;
}

.top-cta:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.menu { position: relative; z-index: 3; }

.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  transition: background .22s ease, color .22s ease;
}

.menu > summary::-webkit-details-marker { display: none; }

.bars {
  width: 16px;
  height: 10px;
  display: block;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.menu > summary:hover { background: var(--violet); color: #fff; border-color: var(--violet); }

.menu-list {
  position: fixed;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 92px 0 40px;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  overflow-y: auto;
  background: linear-gradient(158deg, var(--violet), var(--magenta) 68%, var(--ink));
  animation: fadeIn .26s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
}

.menu-list a {
  display: block;
  padding: 12px 22px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(22px, 5.6vw, 38px);
  line-height: 1.25;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  transition: padding-left .22s ease, color .22s ease;
}

.menu-list li:last-child a { border-bottom: 0; }

.menu-list a:hover { padding-left: 34px; color: #ffe1ff; }

.top:has(.menu[open]) { background: var(--violet); border-bottom-color: rgba(255, 255, 255, .35); }
.top:has(.menu[open]) .brand { color: #fff; }
.top:has(.menu[open]) .mark-char { background: #fff; color: var(--violet); }
.top:has(.menu[open]) .top-cta { color: #fff; border-color: rgba(255, 255, 255, .7); }
.top:has(.menu[open]) .menu > summary { background: #fff; color: var(--violet); border-color: #fff; }

/* ---- 首屏 ---- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  min-height: 66vh;
  padding: 54px 20px 96px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(148deg, var(--violet) 5%, var(--magenta) 58%, var(--ink) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .13) 0 2px, transparent 2px 24px);
  animation: slide 18s linear infinite;
  pointer-events: none;
}

@keyframes slide {
  to { background-position: 240px 0; }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: left;
}

.eyebrow {
  margin: 0;
  font-size: 16px;
  letter-spacing: .28em;
  color: #ffd9ff;
}

.hero h1 {
  margin: .18em 0 .3em;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 7.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.lede {
  margin: 0;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.7;
  color: #f1e6ff;
}

.hero-media {
  position: relative;
  z-index: 1;
  max-width: 940px;
  will-change: transform;
}

.hero-media:empty { display: none; }

.hero-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(10, 4, 25, .42);
  border: 3px solid rgba(255, 255, 255, .5);
}

.slash {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(110deg, var(--ink) 0 26px, transparent 26px 52px);
  z-index: 1;
}

/* ---- 布局 ---- */
.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 16px 76px;
}

@media (min-width: 1000px) {
  .cols {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 56px;
    padding-top: 68px;
  }
}

.stage { min-width: 0; }

/* ---- 侧栏 ---- */
.side {
  align-self: start;
  padding: 20px 18px;
  background: var(--soft);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 1000px) {
  .side { position: sticky; top: 88px; }
}

.side-title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .04em;
}

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

.side-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 4px 6px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  transition: background .2s ease, transform .2s ease;
}

.side-list a b {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--magenta);
  flex: none;
}

.side-list a:hover { background: #f1e8ff; transform: translateX(3px); }

/* ---- 正文 ---- */
.prose { display: block; }

.prose div {
  position: relative;
  margin: 0 0 40px;
  padding: 30px 22px;
  background: var(--soft);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
  overflow: hidden;
}

.prose div:nth-child(even) {
  background: linear-gradient(164deg, #ffffff 30%, #f4ecff 100%);
}

.prose div::before {
  content: "";
  position: absolute;
  top: -52px;
  right: -52px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  opacity: .12;
}

.prose div > * { position: relative; }

.prose h2,
.prose h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.01em;
  margin: .1em 0 .55em;
  scroll-margin-top: 96px;
}

.prose h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); }
.prose h3 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); }

.prose h2 > span,
.prose h3 > span,
.side-title > span,
.cta h2 > span {
  background: linear-gradient(transparent 66%, rgba(191, 0, 255, .3) 66%);
  padding-bottom: .06em;
}

.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

.prose a {
  color: var(--violet);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .2s ease;
}

.prose a:hover { color: var(--magenta); }

.prose ul,
.prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--magenta); }

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

.prose blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 6px solid var(--magenta);
  background: #f8f1ff;
  border-radius: 0 12px 12px 0;
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose figure { margin: 1.2em 0; }
.prose figcaption { font-size: 16px; color: #6b5f84; margin-top: .5em; }

.prose img { border-radius: 14px; }

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

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.prose th { background: #f2e8ff; }

.prose hr {
  border: 0;
  height: 3px;
  margin: 1.6em 0;
  background: repeating-linear-gradient(110deg, var(--violet) 0 14px, transparent 14px 28px);
}

/* ---- 页脚 ---- */
.foot {
  margin-top: 20px;
  padding: 52px 16px 30px;
  background: var(--ink);
  color: #efe7ff;
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
}

.cta {
  max-width: 1180px;
  margin: 0 auto 40px;
  padding: 34px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-radius: 24px;
  background: linear-gradient(122deg, var(--violet), var(--magenta));
  box-shadow: 0 20px 44px rgba(0, 0, 0, .34);
}

.cta h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1.15;
  color: #fff;
}

.cta h2 > span { background: linear-gradient(transparent 70%, rgba(255, 255, 255, .45) 70%); }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform .22s ease, background .22s ease;
}

.btn:hover { background: #ffe6ff; transform: translateY(-3px) rotate(-1.6deg); }

.foot-bar {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.foot address {
  font-style: normal;
  font-weight: 700;
  letter-spacing: .08em;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ded1f8;
  text-decoration: none;
  transition: color .2s ease;
}

.foot-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.foot .copy {
  margin: 0 0 0 auto;
  font-size: 16px;
  color: #b7aacd;
}

/* ---- 滚动出现 ---- */
.js .prose div {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

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

@media (min-width: 760px) {
  .prose div { padding: 40px 34px; margin-bottom: 48px; }
  .hero { padding: 74px 34px 118px; }
  .cols { padding-left: 24px; padding-right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
  .js .prose div { opacity: 1; transform: none; }
}

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