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

:root {
  --neon: #87ff71;
  --cyan: #01cdfe;
  --violet: #b967ff;
  --ink: #192617;
  --deep: #0b120a;
  --line: rgba(135, 255, 113, 0.24);
  --txt: #e2f2dc;
  --dim: #a3bc9f;
  --r: 28px;
  --maxw: 1160px;
  --font-h: 'Figtree', 'Noto Sans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-b: 'Noto Sans', 'Figtree', 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;
  background-color: var(--ink);
  background-image:
    radial-gradient(58vw 58vw at 90% -10%, rgba(1, 205, 254, 0.18), transparent 62%),
    radial-gradient(52vw 52vw at 2% 3%, rgba(135, 255, 113, 0.14), transparent 64%);
  background-repeat: no-repeat;
  color: var(--txt);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
}

h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

/* 顶部细条 */
.strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px clamp(14px, 4vw, 40px);
  background: linear-gradient(90deg, var(--neon), var(--cyan) 55%, var(--violet));
  color: #08110a;
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.strip p { margin: 0; }

.strip .bar {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(8, 17, 10, 0.35);
}

/* 页头 */
.head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px clamp(14px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(11, 18, 10, 0.97), rgba(11, 18, 10, 0.74));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brandmark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(140deg, var(--neon), var(--cyan));
  color: #08110a;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(135, 255, 113, 0.4);
}

.brandmark img { display: block; }

.topnav { margin-left: auto; min-width: 0; }

.topnav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topnav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--txt);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.topnav a:hover,
.topnav a:focus-visible,
.topnav a.on {
  background: var(--neon);
  border-color: var(--neon);
  color: #08110a;
}

.grp { position: relative; }

.grp > a::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  flex-direction: column;
  min-width: 176px;
  padding: 8px;
  list-style: none;
  background: rgba(11, 18, 10, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.grp:hover .drop,
.grp:focus-within .drop { display: flex; }

/* 主区 */
main { display: block; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  gap: 12px;
  min-height: 45vh;
  max-width: var(--maxw);
  margin: clamp(14px, 3vw, 30px) auto 0;
  padding: clamp(30px, 6vw, 66px) clamp(18px, 6vw, 60px) clamp(42px, 7vw, 76px);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

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

.art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
  transform: scale(1.06);
  will-change: transform;
}

.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 18, 10, 0.34), rgba(11, 18, 10, 0.92)),
    linear-gradient(180deg, rgba(11, 18, 10, 0.2), rgba(11, 18, 10, 0.9));
}

.art.blank {
  background:
    radial-gradient(60% 90% at 78% 20%, rgba(185, 103, 255, 0.55), transparent 70%),
    radial-gradient(70% 90% at 20% 80%, rgba(1, 205, 254, 0.5), transparent 72%),
    linear-gradient(160deg, #21381f, #0b120a);
}

.art.blank::before {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background-image:
    linear-gradient(rgba(135, 255, 113, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 255, 113, 0.25) 1px, transparent 1px);
  background-size: 100% 30px, 52px 100%;
  transform: perspective(300px) rotateX(58deg);
  transform-origin: bottom;
  mix-blend-mode: screen;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(1, 205, 254, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 205, 254, 0.24) 1px, transparent 1px);
  background-size: 100% 26px, 48px 100%;
  transform: perspective(320px) rotateX(60deg);
  transform-origin: bottom;
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, transparent, #000 45%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 40ch;
  margin-left: auto;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.14;
  color: #f4fff0;
  text-shadow: 0 0 22px rgba(135, 255, 113, 0.45), 0 0 60px rgba(1, 205, 254, 0.3);
}

.hero .lead {
  margin: 0;
  font-size: 17px;
  color: #cfe6ca;
}

/* 双栏 */
.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: clamp(20px, 3vw, 42px);
  max-width: var(--maxw);
  margin: clamp(26px, 4vw, 46px) auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
  align-items: start;
}

.content > div {
  position: relative;
  scroll-margin-top: 108px;
  margin: 0;
  padding: clamp(22px, 3.4vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(31, 49, 32, 0.86), rgba(17, 27, 17, 0.92));
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.content > div + div { margin-top: clamp(18px, 3vw, 28px); }

.content > div::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 55%, var(--violet));
}

.content > div:nth-child(1) { animation-delay: 0.02s; }
.content > div:nth-child(2) { animation-delay: 0.08s; }
.content > div:nth-child(3) { animation-delay: 0.14s; }
.content > div:nth-child(4) { animation-delay: 0.2s; }
.content > div:nth-child(5) { animation-delay: 0.26s; }
.content > div:nth-child(6) { animation-delay: 0.32s; }
.content > div:nth-child(7) { animation-delay: 0.38s; }

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

.content h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.28;
  color: #f0ffec;
  text-shadow: 0 0 18px rgba(135, 255, 113, 0.35);
}

.content h2 + p {
  margin-top: -4px;
  color: #c6dfc1;
}

.content h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  color: var(--neon);
}

.content p { margin: 0 0 14px; }

.content strong { color: var(--neon); }

.content a {
  color: var(--cyan);
  text-decoration-color: rgba(1, 205, 254, 0.45);
  text-underline-offset: 3px;
}

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

.content li { margin: 0.35em 0; }

.content blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 4px solid var(--cyan);
  border-radius: 0 16px 16px 0;
  background: rgba(1, 205, 254, 0.09);
}

.content figure { margin: 0 0 16px; }

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

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

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

.content code {
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(1, 205, 254, 0.14);
  font-size: 16px;
}

/* 右侧栏 */
.side {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(31, 49, 32, 0.94), rgba(13, 21, 12, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(1, 205, 254, 0.08);
}

.side h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.side .subtitle {
  margin: 6px 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--neon);
  letter-spacing: 0.05em;
}

.side nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  border-radius: 12px;
  color: var(--txt);
  font-size: 16px;
  text-decoration: none;
}

.side a:hover,
.side a:focus-visible,
.side a.on {
  background: rgba(135, 255, 113, 0.13);
  border-left-color: var(--neon);
  color: #eaffdf;
}

.totop { margin: 16px 0 0; }

.totop a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: var(--cyan);
  font-size: 16px;
  text-decoration: none;
}

/* 页脚 */
.foot {
  margin-top: clamp(44px, 7vw, 84px);
  padding: 34px 20px 46px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(9, 15, 9, 0.85));
}

.foot p {
  margin: 0 0 6px;
  font-family: var(--font-h);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--neon);
  text-shadow: 0 0 16px rgba(135, 255, 113, 0.5);
}

.foot small {
  font-size: 16px;
  color: var(--dim);
}

@media (max-width: 900px) {
  .head { position: static; flex-wrap: wrap; }

  .topnav {
    flex: 1 0 100%;
    margin-left: 0;
    order: 3;
  }

  .topnav ul { flex-wrap: wrap; }

  .grp > a::after { transform: rotate(45deg); }

  .drop {
    position: static;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 4px;
    min-width: 0;
    margin: 4px 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .hero {
    min-height: 0;
    clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
    padding: 42px 20px 52px;
  }

  .hero-copy { max-width: 100%; }

  .body-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 26px;
  }

  .content > div { scroll-margin-top: 20px; }

  .side {
    position: static;
    order: 2;
  }
}

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

  .strip { font-size: 16px; }

  .topnav a { padding: 0 10px; }

  .hero h1 { font-size: 30px; }
}

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

  .content > div { animation: none; }

  .art img { transform: none; }
}

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