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

:root {
  --ink: #192617;
  --ink-2: #20301d;
  --neon: #87ff71;
  --mustard: #ffce5c;
  --text: #e9f3e3;
  --muted: #a8c0a1;
  --dash: rgba(135, 255, 113, 0.34);
  --grid: rgba(135, 255, 113, 0.075);
}

*,
*::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(circle at 10% 6%, rgba(255, 206, 92, 0.13), transparent 42%),
    radial-gradient(circle at 92% 18%, rgba(135, 255, 113, 0.13), transparent 46%),
    repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 30px);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}

a {
  color: var(--neon);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

p {
  margin: 0 0 1.05em;
}

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}

::selection {
  background: var(--neon);
  color: var(--ink);
}

.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px) 132px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  min-height: 70vh;
  padding: clamp(58px, 9vh, 96px) 0 clamp(38px, 7vh, 62px);
  border-bottom: 4px solid var(--neon);
  overflow: hidden;
}

.hero::before {
  content: "996";
  position: absolute;
  right: -3%;
  top: -8%;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 206, 92, 0.32);
  font-size: clamp(110px, 25vw, 280px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.8;
  transform: rotate(-6deg);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5.4vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.06;
}

.hero-h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 8px;
  margin: 22px auto 0;
  background: var(--mustard);
  clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 70%);
}

.hero-desc {
  max-width: 42ch;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  background: var(--mustard);
  box-shadow: 5px 5px 0 var(--neon);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero-cta:hover {
  box-shadow: 8px 8px 0 var(--neon);
  transform: translate(-2px, -2px);
  text-decoration: none;
}

.hero-art {
  position: relative;
  margin: 0;
  min-height: clamp(220px, 40vh, 380px);
}

.shape {
  position: absolute;
  display: block;
  z-index: 0;
}

.s1 {
  top: 2%;
  left: 4%;
  width: 118px;
  height: 118px;
  background: var(--neon);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(9deg);
}

.s2 {
  right: 2%;
  bottom: 4%;
  width: 106px;
  height: 106px;
  border: 3px dashed var(--mustard);
  border-radius: 50%;
}

.s3 {
  left: 0;
  bottom: 20%;
  width: 76px;
  height: 76px;
  background: var(--mustard);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  transform: rotate(-11deg);
  mix-blend-mode: screen;
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  border: 3px solid var(--neon);
}

/* ---------- 主体：左栏目录 + 右栏正文 ---------- */

.body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(34px, 6vh, 58px) 0 0;
}

.rail {
  position: sticky;
  top: 20px;
  padding: 18px 16px 20px;
  border: 2px dashed var(--dash);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(135, 255, 113, 0.06) 0 6px,
    transparent 6px 14px
  );
}

.eyebrow {
  display: inline-block;
  color: var(--mustard);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.rail-h {
  margin: 0.15em 0 0.85em;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

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

.rail-list li + li {
  border-top: 1px dotted rgba(233, 243, 227, 0.18);
}

.rail-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 42px;
  padding: 9px 0;
  color: var(--text);
  font-size: 0.95rem;
}

.rail-list a:hover {
  color: var(--neon);
  text-decoration: none;
}

.rail-num {
  color: var(--mustard);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

/* ---------- 正文 ---------- */

.prose {
  min-width: 0;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose div {
  scroll-margin-top: 16px;
}

.prose div[id] {
  padding: clamp(28px, 4vh, 46px) 0;
  border-top: 2px dashed var(--dash);
}

.prose div[id]:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.prose h2 {
  position: relative;
  margin: 0 0 0.7em;
  padding-left: 18px;
  font-size: clamp(1.32rem, 2.6vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  bottom: 0.16em;
  width: 8px;
  background: var(--neon);
  clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
}

.prose h3 {
  margin: 1.5em 0 0.55em;
  color: var(--mustard);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.prose h2 + h3 {
  margin-top: 0;
}

.prose small {
  display: inline-block;
  color: var(--mustard);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.prose strong {
  color: var(--mustard);
  font-weight: 600;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--neon);
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 5px solid var(--mustard);
  background: rgba(255, 206, 92, 0.07);
  color: var(--text);
}

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

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 0 0 1.3em;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 9px 12px;
  border: 1px dashed var(--dash);
  text-align: left;
}

.prose th {
  background: rgba(135, 255, 113, 0.1);
  color: var(--neon);
  font-weight: 600;
}

.prose figure {
  margin: 1.4em 0;
}

.prose figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.prose img {
  border: 2px solid var(--dash);
}

.prose a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.prose hr {
  height: 0;
  margin: 2em 0;
  border: 0;
  border-top: 3px dotted var(--dash);
}

.to-top-wrap {
  margin: 44px 0 0;
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 2px dashed var(--neon);
  color: var(--neon);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
}

.to-top:hover {
  background: var(--neon);
  color: var(--ink);
  text-decoration: none;
}

/* ---------- 页脚 ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 26px;
  margin-top: 56px;
  padding: 26px 0 0;
  border-top: 4px solid var(--mustard);
}

.foot-logo {
  color: var(--neon);
  font-size: clamp(1.55rem, 4.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.foot-logo:hover {
  text-decoration: none;
  color: var(--mustard);
}

.foot-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.88rem;
}

.foot-link:hover {
  color: var(--neon);
  text-decoration: none;
}

.foot-legal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

/* ---------- 底部固定条 ---------- */

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 8px clamp(10px, 3vw, 24px) calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--neon);
  background: rgba(20, 31, 18, 0.95);
  backdrop-filter: blur(8px);
}

.bar-in {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--neon);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 15px;
  height: 15px;
  background: var(--mustard);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.brand-img {
  width: 22px;
  height: 22px;
}

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

.bar-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.bar-nav::-webkit-scrollbar {
  display: none;
}

.bar-list {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bar-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid transparent;
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
}

.bar-link:hover,
.bar-link:focus-visible {
  border-color: var(--neon);
  color: var(--neon);
  text-decoration: none;
}

.bar-link[aria-current] {
  border-color: var(--mustard);
  color: var(--mustard);
}

.bar-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  background: var(--neon);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.bar-call:hover {
  background: var(--mustard);
  text-decoration: none;
}

/* ---------- 动效 ---------- */

.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .bar-list li {
    animation: pop-in 0.4s cubic-bezier(0.2, 0.8, 0.3, 1) backwards;
  }

  .bar-list li:nth-child(2) {
    animation-delay: 0.04s;
  }

  .bar-list li:nth-child(3) {
    animation-delay: 0.08s;
  }

  .bar-list li:nth-child(4) {
    animation-delay: 0.12s;
  }

  .bar-list li:nth-child(5) {
    animation-delay: 0.16s;
  }

  .bar-list li:nth-child(6) {
    animation-delay: 0.2s;
  }

  .bar-list li:nth-child(7) {
    animation-delay: 0.24s;
  }

  .hero-cta {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: clamp(50px, 8vh, 72px);
    text-align: center;
  }

  .hero-art {
    order: 2;
    width: 100%;
    max-width: 400px;
    min-height: 190px;
    margin: 6px auto 0;
  }

  .hero-img {
    min-height: 190px;
  }

  .body {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
  }

  .rail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }

  .rail-list li + li {
    border-top: 1px dotted rgba(233, 243, 227, 0.18);
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .brand-txt {
    font-size: 0.9rem;
  }

  .bar-link {
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .s1 {
    width: 88px;
    height: 88px;
  }

  .s2 {
    width: 78px;
    height: 78px;
  }

  .s3 {
    width: 58px;
    height: 58px;
  }
}

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