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

:root {
  --mint: #99ffcc;
  --green: #00ff41;
  --ink: #001e3c;
  --ink-deep: #00111f;
  --ink-soft: #062b4f;
  --text: #ddfff1;
  --body: #c3e7da;
  --dim: #8dbfae;
  --line: rgba(153, 255, 204, 0.2);
  --line-soft: rgba(153, 255, 204, 0.1);
  --rail: 190px;
  --sans: 'Space Grotesk', 'Archivo', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: clip;
  padding-left: var(--rail);
  background: var(--ink);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -25% -15% auto auto;
  width: 72vw;
  height: 72vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 46% 54% 62% 38% / 48% 40% 60% 52%;
  background:
    radial-gradient(circle at 32% 30%, rgba(0, 255, 65, 0.2), transparent 58%),
    radial-gradient(circle at 68% 64%, rgba(153, 255, 204, 0.17), transparent 62%);
  filter: blur(46px);
  pointer-events: none;
  animation: breathe 16s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1) translate3d(0, 0, 0); opacity: 0.85; }
  50% { transform: scale(1.14) translate3d(-2%, 2%, 0); opacity: 1; }
}

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

a:focus-visible,
.rail a:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 左侧竖排导航 ---------- */

.rail {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 18px 26px 20px;
  background: linear-gradient(180deg, rgba(0, 17, 31, 0.96), rgba(0, 30, 60, 0.94));
  border-right: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
}

.mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 44% 56% 52% 48% / 52% 44% 56% 48%;
  background: linear-gradient(140deg, var(--green), var(--mint));
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 0 26px rgba(0, 255, 65, 0.35);
  animation: breathe 9s ease-in-out infinite;
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-list a {
  display: block;
  padding: 11px 12px;
  min-height: 44px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.rail-list a:hover,
.rail-list a.on {
  color: var(--mint);
  background: rgba(153, 255, 204, 0.08);
  border-left-color: var(--green);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 40px;
  min-height: 45vh;
  padding: 54px 40px 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--green), var(--mint) 55%, transparent);
  transform: skewY(-1.1deg);
  transform-origin: left bottom;
}

.hero-copy { position: relative; z-index: 2; }

h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.lead {
  margin: 16px 0 0;
  max-width: 44ch;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.7;
}

.hero-art {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 44% 56% 38% 62% / 54% 42% 58% 46%;
  background:
    radial-gradient(circle at 30% 26%, rgba(0, 255, 65, 0.45), transparent 58%),
    radial-gradient(circle at 74% 70%, rgba(153, 255, 204, 0.4), transparent 60%),
    var(--ink-soft);
  transform: translate3d(0, var(--py, 0), 0);
  animation: breathe 13s ease-in-out infinite;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

/* ---------- 主栅格 ---------- */

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

.wrap {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 52px;
  max-width: 1160px;
  padding: 56px 40px 96px;
}

.side {
  align-self: start;
  position: sticky;
  top: 34px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.side h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--mint);
}

.side hr {
  margin: 10px 0 14px;
  height: 2px;
  width: 54px;
  border: 0;
  background: linear-gradient(90deg, var(--green), rgba(0, 255, 65, 0));
}

.side-list { display: flex; flex-direction: column; }

.side-list a {
  display: block;
  padding: 9px 0;
  min-height: 40px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px dashed var(--line-soft);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.side-list a:hover,
.side-list a.on {
  color: var(--mint);
  padding-left: 6px;
}

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

.content { min-width: 0; }

.doc {
  max-width: 70ch;
  font-size: 17px;
  color: var(--body);
}

.doc article {
  scroll-margin-top: 88px;
  padding-top: 10px;
}

.doc article + article {
  margin-top: 46px;
  padding-top: 42px;
  border-top: 1px solid var(--line-soft);
}

.doc h2 {
  margin: 0;
  font-size: clamp(21px, 2.7vw, 29px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.doc h2::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 11px;
  vertical-align: 0.1em;
  border-radius: 58% 42% 50% 50% / 48% 56% 44% 52%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(0, 255, 65, 0.85);
}

.doc h2 + hr,
.doc h3 + hr {
  margin: 13px 0 20px;
  height: 2px;
  width: 86px;
  border: 0;
  background: linear-gradient(90deg, var(--green), rgba(0, 255, 65, 0));
}

.doc h3 {
  margin: 34px 0 6px;
  font-size: 19px;
  font-weight: 600;
  color: var(--mint);
}

.doc p { margin: 0 0 18px; }

.doc ul,
.doc ol {
  margin: 0 0 20px;
  padding-left: 1.25em;
}

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

.doc a {
  color: var(--mint);
  text-decoration-color: rgba(153, 255, 204, 0.5);
  text-underline-offset: 3px;
}

.doc a:hover { color: var(--green); }

.doc strong { color: #ffffff; font-weight: 600; }

.doc blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--mint);
  color: var(--dim);
}

.doc img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border-bottom: 3px solid var(--green);
}

.doc figure {
  margin: 0 0 20px;
  padding: 0;
  border-radius: 10px;
  border-bottom: 3px solid var(--green);
  background: var(--ink-soft);
}

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

.doc th,
.doc td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.doc th { color: var(--mint); font-weight: 500; }

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

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

.foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px 40px;
  padding: 66px 40px 46px;
  background: linear-gradient(180deg, var(--ink-soft), var(--ink-deep));
  border-top: 1px solid var(--line);
}

.foot h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(26px, 4.6vw, 44px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.foot hr {
  grid-column: 1 / -1;
  margin: 0;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--green), rgba(0, 255, 65, 0) 70%);
}

.cta {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 30px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--green), var(--mint));
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 65, 0.28);
}

.foot nav { grid-column: 1 / -1; }

.foot dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 4px 26px;
  margin: 0;
}

.foot dt { margin: 0; }

.foot dt a {
  display: block;
  padding: 10px 0 2px;
  min-height: 40px;
  color: var(--mint);
  font-size: 16px;
  text-decoration: none;
}

.foot dt a:hover { color: var(--green); }

.foot dd {
  margin: 0;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.5;
}

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

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-self: end;
}

.foot ul a {
  display: inline-block;
  padding: 8px 0;
  min-height: 40px;
  color: var(--dim);
  font-size: 16px;
  text-decoration: none;
}

.foot ul a:hover { color: var(--mint); }

/* ---------- 移动端 ---------- */

@media (max-width: 900px) {
  body { padding-left: 0; padding-top: 58px; }

  .rail {
    inset: 0 0 auto 0;
    width: 100%;
    height: 58px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .rail::-webkit-scrollbar { display: none; }

  .mark {
    width: 40px;
    height: 40px;
    margin: 0 8px 0 0;
    flex: none;
    font-size: 18px;
  }

  .rail-list { flex-direction: row; gap: 2px; }

  .rail-list a {
    white-space: nowrap;
    padding: 10px 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0;
  }

  .rail-list a:hover,
  .rail-list a.on { border-left: 0; border-bottom-color: var(--green); }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    padding: 34px 20px 44px;
  }

  h1 { max-width: 24ch; }

  .hero-art { aspect-ratio: 16 / 11; }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 34px 20px 64px;
  }

  .content { order: 1; }

  .side {
    order: 2;
    position: static;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .doc article { scroll-margin-top: 74px; }

  .foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 48px 20px 36px;
  }

  .foot ul { justify-self: start; }

  .foot dl { grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); }
}

@media (max-width: 380px) {
  .doc { font-size: 16px; }
  .foot h2 { font-size: 25px; }
}

@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;
  }
}

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