@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 {
  --ink: #192617;
  --deep: #0a120c;
  --lime: #87ff71;
  --cyan: #01cdfe;
  --pink: #ff71ce;
  --violet: #b967ff;
  --text: #e4ffe0;
  --dim: #a9c9a6;
  --line: rgba(135, 255, 113, 0.22);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Figtree, "Noto Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  background: var(--deep);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    radial-gradient(120% 65% at 50% 108%, rgba(1, 205, 254, 0.2), transparent 68%),
    radial-gradient(90% 55% at 6% -6%, rgba(255, 113, 206, 0.16), transparent 66%),
    radial-gradient(80% 60% at 96% 12%, rgba(185, 103, 255, 0.14), transparent 70%);
}

header, nav, main, footer {
  position: relative;
  z-index: 1;
}

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

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

small {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  color: var(--cyan);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

/* 顶部：品牌居中，菜单分列两侧 */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.4rem 0.8rem;
  padding: 0.65rem clamp(0.9rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(25, 38, 23, 0.97), rgba(10, 18, 12, 0.9));
  z-index: 25;
}

.masthead ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.masthead .side-a { justify-self: end; }
.masthead .side-b { justify-self: start; }

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.7rem;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #f4fff2;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(135, 255, 113, 0.85), 0 0 28px rgba(1, 205, 254, 0.55);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  font-size: 16px;
  line-height: 1.5;
  color: #d9ffd6;
  text-decoration: none;
  border: 1px solid rgba(135, 255, 113, 0.35);
  border-radius: 999px;
  background: rgba(135, 255, 113, 0.06);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover,
.pill:focus-visible {
  background: var(--lime);
  color: #0a120c;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(1, 205, 254, 0.35), 0 10px 20px -10px rgba(135, 255, 113, 0.7);
}

/* 二级粘性锚点条 */
.ticker {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 18, 12, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.ticker ul {
  list-style: none;
  margin: 0;
  padding: 0.45rem clamp(0.9rem, 3vw, 2rem);
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ticker a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
  font-size: 16px;
  text-decoration: none;
  color: var(--dim);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ticker a:hover,
.ticker a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
  text-shadow: 0 0 12px rgba(135, 255, 113, 0.8);
}

/* 首屏：文在上、图在下，文案右对齐 */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.3rem;
  padding: clamp(1.2rem, 4vw, 2.8rem) clamp(1rem, 4vw, 2.4rem) clamp(2rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.hero-ghost {
  position: absolute;
  top: -0.02em;
  right: -0.03em;
  z-index: 0;
  font-size: clamp(3.2rem, 15vw, 10rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(1, 205, 254, 0.4);
  pointer-events: none;
  user-select: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: -4%;
  height: 46%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(1, 205, 254, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 113, 206, 0.3) 1px, transparent 1px);
  background-size: 100% 32px, 48px 100%;
  transform: perspective(420px) rotateX(74deg);
  transform-origin: bottom;
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: 46rem;
  text-align: right;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 7vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #f4fff2;
  text-shadow: 0 0 12px rgba(135, 255, 113, 0.6), 0 0 42px rgba(1, 205, 254, 0.45);
}

.hero-desc {
  position: relative;
  z-index: 2;
  margin: 0.9rem 0 0 auto;
  max-width: 38rem;
  text-align: right;
  color: var(--dim);
  font-size: 1.02rem;
}

.hero-fig {
  position: relative;
  z-index: 2;
  margin: 0;
  align-self: flex-end;
  width: 100%;
  max-width: 62rem;
  border: 1px solid var(--line);
  background: rgba(25, 38, 23, 0.5);
  box-shadow: 0 30px 60px -34px rgba(1, 205, 254, 0.8);
}

/* 正文区：侧栏在左 */
.stage {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.6rem);
  align-items: start;
}

.rail {
  border: 1px solid var(--line);
  padding: 1rem 0.9rem 1.1rem;
  background: linear-gradient(180deg, rgba(1, 205, 254, 0.09), rgba(135, 255, 113, 0.03));
  box-shadow: 0 22px 44px -36px rgba(1, 205, 254, 1);
}

.rail h2 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  color: #f2fff0;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.rail-list a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-height: 40px;
  padding: 0.4rem 0.1rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px dashed rgba(135, 255, 113, 0.16);
  transition: transform 0.18s ease, color 0.18s ease;
}

.rail-list .idx {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: var(--lime);
  transform: translateX(4px);
  text-shadow: 0 0 14px rgba(135, 255, 113, 0.6);
}

.body { min-width: 0; }

.body section {
  padding: clamp(1rem, 3vw, 1.8rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.4rem;
}

.body section:first-child {
  border-top: 0;
  padding-top: 0;
}

.body h2 {
  margin: 0.1rem 0 0.8rem;
  font-size: clamp(1.32rem, 3.6vw, 1.85rem);
  line-height: 1.28;
  color: #f2fff0;
  text-shadow: 0 0 16px rgba(1, 205, 254, 0.45);
}

.body h3 {
  margin: 1.2rem 0 0.5rem;
  font-size: 1.12rem;
  color: var(--lime);
}

.body p {
  margin: 0 0 1rem;
  color: #d9f2d6;
}

.body ul,
.body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  color: #d9f2d6;
}

.body li { margin: 0.35rem 0; }

.body a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

.body a:hover { color: var(--lime); }

.body strong { color: #f6fff4; }

.body blockquote {
  margin: 1.2rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--pink);
  background: rgba(255, 113, 206, 0.08);
  color: #f0e4f7;
}

.body figure { margin: 1.2rem 0; }

.body img { border: 1px solid var(--line); }

/* 页脚：大 CTA + 三列 dl */
.foot {
  border-top: 1px solid var(--line);
  padding: clamp(1.8rem, 5vw, 3.4rem) clamp(1rem, 4vw, 2rem) 1.4rem;
  background: linear-gradient(180deg, rgba(1, 205, 254, 0.13), rgba(10, 18, 12, 0.97) 46%);
}

.foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.foot-nav { display: contents; }

.foot-cta h2 {
  margin: 0.1rem 0 0.6rem;
  font-size: clamp(1.55rem, 5vw, 2.3rem);
  line-height: 1.2;
  color: #f4fff2;
  text-shadow: 0 0 18px rgba(255, 113, 206, 0.5);
}

.foot-cta p {
  margin: 0 0 1rem;
  max-width: 34rem;
  color: var(--dim);
  font-size: 0.99rem;
}

.pill-cta {
  background: var(--lime);
  border-color: var(--lime);
  color: #0a120c;
  font-weight: 600;
  box-shadow: 0 0 26px -6px rgba(135, 255, 113, 0.6);
}

.pill-cta:hover,
.pill-cta:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04140a;
  box-shadow: 0 0 30px -4px rgba(1, 205, 254, 0.8);
}

.foot dl { margin: 0; }

.foot dt {
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.foot dd { margin: 0; }

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0;
  font-size: 16px;
  color: #cfeacb;
  text-decoration: none;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

.foot dd a:hover,
.foot dd a:focus-visible {
  color: var(--lime);
  text-shadow: 0 0 14px rgba(135, 255, 113, 0.7);
}

.foot-bottom {
  max-width: 1180px;
  margin: clamp(1.4rem, 4vw, 2.4rem) auto 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--dim);
  font-size: 0.92rem;
}

.foot-bottom p { margin: 0; }

.foot-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0.7rem;
  text-decoration: none;
  color: var(--cyan);
  border: 1px solid var(--line);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.foot-bottom a:hover,
.foot-bottom a:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
}

@media (max-width: 900px) {
  .masthead {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .masthead .side-a,
  .masthead .side-b {
    justify-self: center;
    width: 100%;
  }
  .masthead ul { justify-content: center; }
  .stage { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .hero-copy,
  .hero-desc { max-width: none; }
}

@media (max-width: 520px) {
  .foot-inner { grid-template-columns: 1fr; }
  .foot-bottom { justify-content: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  .rail-list li {
    animation: railIn 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
  }
  .rail-list li:nth-child(1) { animation-delay: 0.04s; }
  .rail-list li:nth-child(2) { animation-delay: 0.09s; }
  .rail-list li:nth-child(3) { animation-delay: 0.14s; }
  .rail-list li:nth-child(4) { animation-delay: 0.19s; }
  .rail-list li:nth-child(5) { animation-delay: 0.24s; }
  .rail-list li:nth-child(6) { animation-delay: 0.29s; }
  .rail-list li:nth-child(7) { animation-delay: 0.34s; }
  .hero-ghost { animation: drift 10s ease-in-out infinite alternate; }
}

@keyframes railIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail-list li,
  .hero-ghost { animation: none; }
  .pill:hover,
  .rail-list a:hover { transform: none; }
}

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