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

:root {
  --ink: #1c1726;
  --pri: #6514ff;
  --sec: #bf00ff;
  --lime: #d8ff3e;
  --paper: #f4efff;
  --tint: #ece2ff;
  --white: #ffffff;
  --muted: #514a63;
  --cond: 'Barlow Condensed', 'Barlow', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --body: 'Barlow', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--cond);
  line-height: 1.12;
  letter-spacing: .01em;
  margin: 0;
}

p { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

/* ===== 头部 ===== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 3px solid var(--ink);
}

.strip {
  background: linear-gradient(90deg, var(--lime), #f3ffb8, var(--lime));
  background-size: 220% 100%;
  animation: stripSlide 9s linear infinite;
  color: var(--ink);
  text-align: center;
  font-family: var(--cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .34em;
  padding: 6px 14px;
  text-transform: uppercase;
}

.brand-row {
  padding: 8px clamp(14px, 4vw, 46px) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
  color: var(--white);
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--lime);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pri), var(--sec) 55%, var(--lime));
  transform: rotate(-8deg);
}

.brand-name {
  font-family: var(--cond);
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: .05em;
}

.menu { padding: 0 clamp(14px, 4vw, 46px); }

.menu p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 4px 0 12px;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  transition: background .24s ease, color .24s ease, border-color .24s ease;
}

.menu a:hover {
  background: var(--lime);
  border-color: var(--ink);
  color: var(--ink);
}

/* ===== 首屏 ===== */
.stage { display: block; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -20% -20% -20%;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  animation: drift 16s linear infinite;
  pointer-events: none;
}

.hero-media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(150deg, var(--pri), var(--sec) 58%, var(--ink));
}

.hero-media figure {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .6s ease;
}

.hero-media figure.is-on { opacity: 1; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(101, 20, 255, .62), rgba(191, 0, 255, .34));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  place-content: center;
  text-align: center;
  padding: clamp(26px, 5vw, 66px);
}

.hero-copy h1 {
  font-size: clamp(40px, 7vw, 90px);
  font-weight: 700;
  letter-spacing: .005em;
  text-wrap: balance;
  text-shadow: 0 6px 0 rgba(101, 20, 255, .55);
}

/* ===== 主体骨架 ===== */
.sheet {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px clamp(16px, 4vw, 56px) 96px;
}

.side {
  align-self: start;
  position: sticky;
  top: 196px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: 22px 18px 24px;
}

.side h2 {
  font-size: 20px;
  letter-spacing: .16em;
  color: var(--pri);
  margin-bottom: 8px;
}

.side .subtitle {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 16px;
  border-left: 5px solid var(--sec);
  padding-left: 10px;
}

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

.side-list li {
  counter-increment: s;
}

.js .side-list li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}

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

.side-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 2px;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px dashed rgba(28, 23, 38, .28);
}

.side-list a::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--cond);
  font-size: 15px;
  font-weight: 700;
  color: var(--sec);
}

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

.side-list a:hover { color: var(--pri); }

/* ===== 正文 ===== */
.content { min-width: 0; }

.content-body > section {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: clamp(22px, 3.2vw, 46px);
  margin: 0 0 48px;
  scroll-margin-top: 200px;
}

.content-body > section:nth-child(even) { background: var(--tint); }
.content-body > section:nth-child(3n) { background: var(--lime); }
.content-body > section:last-child { margin-bottom: 0; }

.content-body h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ink);
}

.content-body h2 + p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 18px;
}

.content-body h3 {
  font-size: clamp(21px, 2.4vw, 26px);
  margin: 26px 0 10px;
  color: var(--pri);
}

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

.content-body ul,
.content-body ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.content-body li { margin-bottom: 8px; }

.content-body a {
  color: var(--pri);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.content-body strong { font-weight: 700; }

.content-body blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 8px solid var(--sec);
  background: rgba(255, 255, 255, .72);
  border-radius: 0 18px 18px 0;
  font-size: 17px;
}

.content-body img {
  border: 3px solid var(--ink);
  border-radius: 22px;
  height: auto;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 16px;
}

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

.content-body th { background: var(--pri); color: var(--white); }

/* ===== 页脚 ===== */
.site-foot {
  background: var(--ink);
  color: #eae2ff;
  padding: 56px clamp(18px, 5vw, 72px) 26px;
}

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

.foot-cols dl { margin: 0; }

.foot-cols dt {
  font-family: var(--cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--lime);
  margin-bottom: 12px;
}

.foot-cols dd { margin: 0; }

.foot-cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 0;
  font-size: 16px;
  text-decoration: none;
  color: #eae2ff;
  border-bottom: 2px solid transparent;
  transition: color .22s ease, border-color .22s ease;
}

.foot-cols dd a:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.foot-brand {
  font-family: var(--cond);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.foot-base {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  text-align: center;
  font-size: 16px;
  color: #c9bde8;
}

/* ===== 动效 ===== */
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-26px, -26px, 0); }
}

@keyframes stripSlide {
  from { background-position: 0 0; }
  to { background-position: 220% 0; }
}

/* ===== 断点 ===== */
@media (max-width: 900px) {
  .sheet {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px clamp(16px, 5vw, 32px) 64px;
  }

  .side { position: static; border-radius: 24px; }

  .content-body > section {
    scroll-margin-top: 210px;
    margin-bottom: 32px;
  }

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

  .hero-copy {
    order: -1;
    padding: 44px 20px 32px;
  }

  .hero-copy h1 { font-size: clamp(34px, 9.4vw, 54px); }

  .hero-media {
    height: 54vw;
    min-height: 210px;
  }

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

@media (max-width: 480px) {
  body { font-size: 17px; }

  .brand-name { font-size: 24px; }

  .menu a {
    padding: 0 11px;
    font-size: 16px;
  }
}

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

  .strip,
  .hero::before { animation: none; }

  .hero-media figure { transition: none; }

  .js .side-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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