@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: #f7f4ff;
  --paper2: #ece5ff;
  --mist: #d9cfff;
  --edge: 3px solid var(--ink);
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(101, 20, 255, .14) 1px, transparent 1px);
  background-size: 22px 22px;
  font-family: "Roboto", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Newsreader", Georgia, "Songti SC", serif;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -.015em;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
}

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

img {
  max-width: 100%;
}

.mark,
.foot-mark,
.art-img {
  display: block;
}

/* ---------- 顶部两行 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: var(--edge);
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
  padding: 4px 0;
}

.brandword {
  font-family: "Newsreader", Georgia, serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.mark {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 2px solid var(--ink);
}

.mark-shape {
  background: var(--violet);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}

.brandrow-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--violet);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--magenta);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.burger {
  min-height: 44px;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  font: 500 16px/1.2 "Roboto", sans-serif;
  cursor: pointer;
  transition: background .22s ease, color .22s ease;
}

.burger:hover,
.burger:focus-visible {
  background: var(--ink);
  color: #fff;
}

.strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-top: 1px solid rgba(28, 23, 38, .18);
  background: var(--paper2);
  scrollbar-width: thin;
}

.strip-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-right: 1px solid rgba(28, 23, 38, .16);
  transition: background .2s ease, color .2s ease;
}

.strip-link:hover,
.strip-link:focus-visible {
  background: var(--violet);
  color: #fff;
}

/* ---------- 全屏遮罩菜单 ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 18px 18px 40px;
  overflow-y: auto;
  color: #fff;
  background: var(--ink);
  background-image:
    radial-gradient(circle at 85% 8%, rgba(191, 0, 255, .55), transparent 52%),
    radial-gradient(circle at 8% 92%, rgba(101, 20, 255, .68), transparent 58%);
}

.veil[hidden] {
  display: none;
}

.veil-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, .3);
}

.veil-brand {
  font-family: "Newsreader", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.veil-x {
  min-height: 44px;
  padding: 10px 18px;
  background: #fff;
  color: var(--ink);
  border: 2px solid #fff;
  font: 700 16px/1.2 "Roboto", sans-serif;
  cursor: pointer;
}

.veil-nav {
  display: block;
  margin-top: 8px;
}

.veil-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 14px 4px;
  color: #fff;
  text-decoration: none;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.2;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  transition: color .2s ease, padding-left .2s ease;
}

.veil-link:hover,
.veil-link:focus-visible {
  color: var(--mist);
  padding-left: 12px;
}

.veil-num {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--magenta);
  letter-spacing: .1em;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 20px 64px;
  overflow: hidden;
  border-bottom: var(--edge);
  background-image:
    radial-gradient(circle at 18% 24%, rgba(191, 0, 255, .26), transparent 54%),
    radial-gradient(circle at 82% 74%, rgba(101, 20, 255, .26), transparent 56%),
    repeating-radial-gradient(rgba(28, 23, 38, .2) 0 1.5px, transparent 1.5px 17px);
  animation: heroDrift 22s linear infinite;
}

@keyframes heroDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 40px -30px, -40px 30px, 0 34px; }
}

.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blk {
  position: absolute;
  display: block;
}

.blk-a {
  width: 190px;
  height: 190px;
  top: -46px;
  left: -50px;
  background: var(--violet);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.blk-b {
  width: 130px;
  height: 130px;
  bottom: -34px;
  right: -30px;
  background: var(--magenta);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.blk-c {
  width: 60px;
  height: 60px;
  top: 16%;
  right: 12%;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.blk-d {
  width: 26px;
  height: 96px;
  bottom: 14%;
  left: 9%;
  background: var(--ink);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--ink);
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 7.5vw, 68px);
  line-height: 1.04;
}

.lede {
  margin: 20px auto 0;
  max-width: 620px;
  font-size: 17.5px;
  color: rgba(28, 23, 38, .78);
}

.hero-art {
  position: relative;
  z-index: 2;
  width: min(360px, 100%);
  min-height: 118px;
  margin: 34px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.art-img {
  width: 100%;
  height: auto;
  border: var(--edge);
  box-shadow: 8px 8px 0 var(--ink);
}

.art-a,
.art-b,
.art-c {
  display: block;
}

.art-a {
  width: 66px;
  height: 66px;
  background: var(--violet);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.art-b {
  width: 84px;
  height: 84px;
  background: var(--magenta);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 3px var(--ink);
}

.art-c {
  width: 48px;
  height: 48px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ---------- 正文骨架 ---------- */
main {
  display: block;
}

.doc {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 72px;
  align-items: start;
}

.doc > aside {
  grid-column: 1;
  grid-row: 1 / span 40;
}

.doc > article {
  grid-column: 2;
  min-width: 0;
  padding: 44px 0;
  border-top: 2px solid rgba(28, 23, 38, .16);
}

.doc > article:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

article[id] {
  scroll-margin-top: 132px;
}

.rail {
  position: sticky;
  top: 132px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 rgba(28, 23, 38, .18);
  padding: 16px 16px 10px;
}

.rail small,
.doc small {
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--violet);
  margin-bottom: 8px;
}

.rail h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rail;
}

.rail-list li {
  counter-increment: rail;
  animation: rise .4s ease both;
}

.rail-list li:nth-child(2) { animation-delay: .05s; }
.rail-list li:nth-child(3) { animation-delay: .1s; }
.rail-list li:nth-child(4) { animation-delay: .15s; }
.rail-list li:nth-child(5) { animation-delay: .2s; }
.rail-list li:nth-child(6) { animation-delay: .25s; }
.rail-list li:nth-child(7) { animation-delay: .3s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px dashed rgba(28, 23, 38, .22);
}

.rail-list a::before {
  content: counter(rail);
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--magenta);
  margin-right: 10px;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: var(--violet);
}

/* ---------- 正文排版 ---------- */
.doc h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 14px;
}

.doc h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 30px 0 10px;
}

.doc p {
  max-width: 68ch;
}

.doc ul,
.doc ol {
  max-width: 68ch;
  padding-left: 22px;
  margin: 0 0 18px;
}

.doc li {
  margin-bottom: 10px;
}

.doc ul li::marker {
  color: var(--magenta);
}

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

.doc a:hover,
.doc a:focus-visible {
  background: var(--magenta);
  color: #fff;
  text-decoration-color: transparent;
}

.doc strong {
  font-weight: 700;
  background: linear-gradient(transparent 62%, rgba(191, 0, 255, .32) 62%);
}

.doc blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  background: var(--paper2);
  border-left: 7px solid var(--magenta);
}

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

.doc img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 22px 0;
  border: var(--edge);
}

.doc hr {
  border: 0;
  height: 3px;
  background: var(--ink);
  margin: 32px 0;
  max-width: 120px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 16px;
}

.doc th,
.doc td {
  border: 2px solid var(--ink);
  padding: 10px 12px;
  text-align: left;
}

.doc th {
  background: var(--paper2);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .3s ease, transform .3s ease;
}

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

/* ---------- 页脚 ---------- */
.foot {
  background: var(--ink);
  color: #f3eeff;
  padding: 56px 20px 26px;
  border-top: 6px solid var(--violet);
  background-image:
    radial-gradient(circle at 92% 6%, rgba(191, 0, 255, .38), transparent 44%),
    radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: auto, 20px 20px;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 42px;
}

.fcol {
  margin: 0;
  min-width: 0;
}

.fcol dt {
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--magenta);
}

.fcol dd {
  margin: 0;
}

.fcol a {
  display: block;
  min-height: 42px;
  padding: 10px 0;
  color: var(--mist);
  text-decoration: none;
  font-size: 16px;
  transition: color .2s ease, padding-left .2s ease;
}

.fcol a:hover,
.fcol a:focus-visible {
  color: #fff;
  padding-left: 6px;
}

.foot-mark {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 2px solid var(--magenta);
  margin-top: 4px;
}

.foot-shape {
  display: block;
  width: 48px;
  height: 48px;
  margin-top: 4px;
  background: var(--violet);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}

.sub {
  max-width: 520px;
  margin: 0 auto 34px;
  padding: 22px;
  border: 2px solid rgba(255, 255, 255, .38);
  background: rgba(101, 20, 255, .2);
}

.sub-title {
  margin: 0 0 12px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.sub-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sub-in {
  flex: 1 1 180px;
  min-height: 46px;
  padding: 10px 14px;
  font: 400 16px/1.4 "Roboto", sans-serif;
  color: var(--ink);
  background: #fff;
  border: 2px solid #fff;
}

.sub-in:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
}

.sub-btn {
  min-height: 46px;
  padding: 10px 22px;
  font: 700 16px/1.4 "Roboto", sans-serif;
  color: #fff;
  background: var(--magenta);
  border: 2px solid #fff;
  cursor: pointer;
  transition: background .2s ease;
}

.sub-btn:hover,
.sub-btn:focus-visible {
  background: var(--violet);
}

.copy {
  text-align: center;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: 16px;
  color: rgba(243, 238, 255, .82);
}

/* ---------- 断点 ---------- */
@media (max-width: 940px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-top: 34px;
  }

  .doc > aside {
    grid-column: 1;
    grid-row: auto;
  }

  .rail {
    position: static;
    box-shadow: 5px 5px 0 rgba(28, 23, 38, .16);
  }

  .rail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  article[id] {
    scroll-margin-top: 148px;
  }
}

@media (max-width: 620px) {
  .brandword {
    font-size: 20px;
  }

  .hero {
    min-height: 70vh;
    padding: 44px 18px 52px;
  }

  .blk-a {
    width: 120px;
    height: 120px;
    top: -34px;
    left: -32px;
  }

  .blk-b {
    width: 90px;
    height: 90px;
  }

  .blk-d {
    display: none;
  }

  .rail-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc {
    padding-left: 16px;
    padding-right: 16px;
  }

  .foot {
    padding: 44px 16px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero {
    animation: none;
  }

  .rail-list li,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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