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

:root {
  --neon: #87ff71;
  --cyan: #01cdfe;
  --pink: #ff71ce;
  --violet: #b967ff;
  --ink: #192617;
  --deep: #0e1a0d;
  --paper: #ddf3d7;
  --line: rgba(1, 205, 254, 0.32);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--paper);
  background: var(--ink);
  background-image:
    radial-gradient(120% 70% at 50% 0%, rgba(185, 103, 255, 0.18), transparent 62%),
    radial-gradient(90% 60% at 10% 12%, rgba(1, 205, 254, 0.14), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(1, 205, 254, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 205, 254, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.28) 48%, transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.28) 48%, transparent 88%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  opacity: 0.5;
}

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

img { max-width: 100%; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 26, 13, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brandbar {
  display: flex;
  align-items: center;
  padding: 9px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(135, 255, 113, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #f2fff0;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  text-shadow: 0 0 12px rgba(135, 255, 113, 0.85), 0 0 30px rgba(1, 205, 254, 0.5);
}

.brand span { padding-top: 2px; }
.brand .mark {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  border: 1px solid var(--neon);
}

.menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px clamp(16px, 4vw, 44px) 8px;
}

.menu > ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu > ol > li { position: relative; }

.menu > ol > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.menu > ol > li > a:hover,
.menu > ol > li > a:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
  text-shadow: 0 0 10px var(--neon);
}

.sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 176px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(10, 22, 10, 0.98);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--neon);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(1, 205, 254, 0.25);
  display: none;
}

.has-sub:hover > .sub,
.has-sub:focus-within > .sub { display: block; }

.sub a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9rem;
}

.sub a:hover,
.sub a:focus-visible {
  color: var(--neon);
  background: rgba(135, 255, 113, 0.1);
}

.cta {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 20px;
  background: var(--neon);
  color: #0b1709;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(135, 255, 113, 0.55);
  white-space: nowrap;
}

.cta:hover,
.cta:focus-visible {
  background: var(--cyan);
  color: #05130f;
  box-shadow: 0 0 24px var(--cyan);
}

main { position: relative; z-index: 1; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(26px, 6vw, 70px) clamp(18px, 5vw, 64px);
  overflow: hidden;
  background:
    radial-gradient(115% 72% at 50% 0%, rgba(255, 113, 206, 0.28), transparent 62%),
    linear-gradient(180deg, rgba(1, 205, 254, 0.14), transparent 72%);
  border-bottom: 1px solid rgba(135, 255, 113, 0.2);
}

.hero-bg {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.hero-bg span {
  grid-area: 1 / 1;
  font-size: clamp(3rem, 13vw, 10rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: rgba(135, 255, 113, 0.14);
  -webkit-text-stroke: 2px rgba(135, 255, 113, 0.3);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero-bg span.on {
  opacity: 1;
  transform: scale(1);
}

.hero-media {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 66vh;
  overflow: hidden;
  border: 2px solid var(--neon);
  background: linear-gradient(180deg, rgba(255, 113, 206, 0.35), rgba(1, 205, 254, 0.22) 55%, rgba(185, 103, 255, 0.4));
  box-shadow: 0 0 42px rgba(1, 205, 254, 0.35), inset 0 0 60px rgba(0, 0, 0, 0.45);
  will-change: transform;
}

.hero-media::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -58%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe066, var(--pink) 58%, var(--violet));
  box-shadow: 0 0 60px rgba(255, 113, 206, 0.7);
  animation: hueSpin 9s linear infinite alternate;
  z-index: 1;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  z-index: 2;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(1, 205, 254, 0.75) 26px 28px),
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(1, 205, 254, 0.5) 18px 20px);
  transform: perspective(240px) rotateX(62deg);
  transform-origin: bottom;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 72%);
  mask-image: linear-gradient(180deg, transparent, #000 72%);
}

.hero-img {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes hueSpin {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(52deg); }
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  justify-self: center;
  max-width: 34rem;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: #f4fff2;
  text-shadow: 0 0 10px rgba(135, 255, 113, 0.85), 0 0 34px rgba(1, 205, 254, 0.55);
  animation: flick 4.6s ease-in-out infinite;
}

@keyframes flick {
  0%, 100% { text-shadow: 0 0 10px rgba(135, 255, 113, 0.85), 0 0 34px rgba(1, 205, 254, 0.55); }
  50% { text-shadow: 0 0 6px rgba(1, 205, 254, 0.9), 0 0 28px rgba(255, 113, 206, 0.6); }
}

.lead {
  margin: 0;
  padding: 14px 18px;
  font-size: 1rem;
  color: #e8ffe4;
  border-top: 2px solid var(--cyan);
  border-bottom: 2px solid var(--pink);
  background: rgba(10, 24, 9, 0.55);
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 254px;
  align-items: start;
  gap: clamp(24px, 4vw, 52px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 4vw, 40px) 60px;
}

.content { min-width: 0; }

.content > section {
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 3px solid rgba(135, 255, 113, 0.45);
  scroll-margin-top: 150px;
}

.content > section:first-child { padding-top: 0; }
.content > section:last-child { border-bottom: 0; }

.content h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  color: #f2fff0;
  letter-spacing: 0.02em;
  text-shadow: 0 0 14px rgba(135, 255, 113, 0.45);
}

.content h3 {
  margin: 24px 0 10px;
  font-size: 1.14rem;
  line-height: 1.4;
  color: var(--cyan);
}

.content p {
  margin: 0 0 15px;
  max-width: 70ch;
}

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

.content hr {
  border: 0;
  border-top: 2px solid rgba(135, 255, 113, 0.5);
  margin: 16px 0;
}

.content blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--pink);
  background: rgba(255, 113, 206, 0.09);
  color: #f6e9ff;
}

.content img {
  display: block;
  margin: 20px 0;
  height: auto;
  border: 1px solid var(--line);
}

.content table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.content th, .content td {
  border: 1px solid rgba(1, 205, 254, 0.28);
  padding: 10px 12px;
  text-align: left;
}

.content th {
  background: rgba(1, 205, 254, 0.14);
  color: var(--neon);
}

.rail {
  position: sticky;
  top: 122px;
  align-self: start;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--neon);
  background: rgba(12, 26, 11, 0.72);
  box-shadow: 0 0 26px rgba(1, 205, 254, 0.16);
}

.rail h2 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  letter-spacing: 0.28em;
  color: var(--neon);
  text-shadow: 0 0 10px rgba(135, 255, 113, 0.6);
}

.rail hr {
  border: 0;
  border-top: 2px solid var(--neon);
  margin: 0 0 12px;
}

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

.rail li { counter-increment: rail; }

.rail li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.94rem;
  border-bottom: 1px dashed rgba(1, 205, 254, 0.22);
}

.rail li a::before {
  content: counter(rail, decimal-leading-zero);
  margin-right: 9px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.rail li a:hover,
.rail li a:focus-visible {
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon);
}

.totop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 16px;
  border: 1px solid var(--neon);
  color: var(--neon);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.totop:hover,
.totop:focus-visible {
  background: var(--neon);
  color: #0b1709;
}

.foot {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 40px) 22px;
  border-top: 3px solid var(--neon);
  background: linear-gradient(180deg, rgba(1, 205, 254, 0.1), rgba(14, 26, 13, 0.94) 55%);
}

.foot-main {
  display: grid;
  grid-template-columns: 1.05fr 2fr;
  gap: clamp(22px, 4vw, 44px);
  max-width: 1180px;
  margin: 0 auto;
}

.foot-brand .brand { font-size: 0.98rem; }

.foot-note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: #b6d9ae;
  letter-spacing: 0.06em;
}

.sub-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sub-form input {
  flex: 1 1 150px;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
}

.sub-form input::placeholder { color: #8fb388; }

.sub-form button {
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #06140a;
  background: var(--cyan);
  border: 0;
  cursor: pointer;
}

.sub-form button:hover,
.sub-form button:focus-visible { background: var(--neon); }

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

.foot dl { margin: 0; }

.foot dt {
  margin-bottom: 6px;
  font-size: 0.84rem;
  letter-spacing: 0.22em;
  color: var(--neon);
}

.foot dd { margin: 0; }

.foot dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.94rem;
  border-bottom: 1px dashed rgba(1, 205, 254, 0.18);
}

.foot dd a:hover,
.foot dd a:focus-visible { color: var(--neon); }

.foot-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(1, 205, 254, 0.24);
  font-size: 0.88rem;
  color: #a9cda1;
}

.foot-end p { margin: 0; }

.foot-end a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  html { scroll-padding-top: 128px; }

  .menu > ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  .menu > ol > li > a {
    padding: 0 8px;
    font-size: 0.9rem;
    justify-content: center;
  }

  .sub { display: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 22px;
    padding-bottom: 34px;
    gap: 20px;
  }

  .hero-copy { order: -1; max-width: none; }
  .hero-media { aspect-ratio: 16 / 9; max-height: none; }
  .hero-bg span { font-size: clamp(2.4rem, 15vw, 5rem); }

  .shell {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 30px;
  }

  .rail { position: static; top: auto; }
  .content > section { scroll-margin-top: 128px; }

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

@media (max-width: 420px) {
  .menu { padding-left: 12px; padding-right: 12px; }
  .brandbar { padding-left: 12px; padding-right: 12px; }
  .cta { padding: 0 14px; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-media, .hero-bg { transform: none !important; }
}

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