@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --bg: #000000;
  --card: #121212;
  --card-2: #191919;
  --line: #232323;
  --ink: #ECECEC;
  --dim: #9B9B9B;
  --neon: #7DFFC4;
  --blue: #7EA0FF;
  --gold: #F2C86B;
  --r: 18px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 'Roboto', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', sans-serif;
  letter-spacing: .01em;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--neon); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

h1, h2, h3 { margin: 0; line-height: 1.24; letter-spacing: -.01em; }
h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  text-shadow: 0 0 22px rgba(125, 255, 196, .22);
}

/* ---------- 左侧固定竖排栏 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px;
  background: linear-gradient(180deg, #0B0B0B 0%, #000000 62%);
  border-right: 1px solid #1A1A1A;
  z-index: 40;
}

.mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid #262626;
  display: grid;
  place-items: center;
  color: var(--neon);
  font-weight: 700;
  font-size: 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.mark:hover { transform: translateY(-2px); box-shadow: 0 0 18px rgba(125, 255, 196, .28); }

.burger {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid #262626;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.burger-bars {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 5px 0 var(--neon), 0 -5px 0 var(--neon);
}

.rail-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; min-height: 0; }

.rail-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #C9C9C9;
  font-size: 16px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.rail-link:hover { background: #141414; color: #FFFFFF; transform: translateX(3px); }

.ic {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: 0 0 auto;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(125, 255, 196, .55);
}
.ic-1 { border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px rgba(126, 160, 255, .5); }
.ic-2 { transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 10px rgba(242, 200, 107, .45); }
.ic-3 { border-radius: 2px 8px 2px 8px; }
.ic-4 { border-radius: 50%; background: transparent; border: 2px solid var(--blue); box-shadow: none; }
.ic-5 { width: 12px; height: 3px; border-radius: 2px; }
.ic-6 { width: 8px; height: 12px; border-radius: 4px; background: var(--gold); box-shadow: 0 0 10px rgba(242, 200, 107, .4); }
.ic-contact {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--neon);
  box-shadow: 0 0 9px rgba(125, 255, 196, .4);
}

.rail-link.contact {
  margin-top: auto;
  background: #101010;
  border: 1px solid #222222;
  color: #E8E8E8;
}

/* ---------- 主体 ---------- */
main {
  margin-left: 250px;
  max-width: 1200px;
  padding: 26px 26px 0;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 34px 26px 26px;
  border-radius: var(--r);
  background-color: #050505;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -42% -20%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 100%, rgba(125, 255, 196, .15), transparent 70%);
  pointer-events: none;
}

.hero-copy { position: relative; text-align: left; max-width: 22ch; }

.hero-art {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 6;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: #0B0B0B;
  border: 1px solid #1E1E1E;
  overflow: hidden;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }

.ring {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  box-shadow: 0 0 26px rgba(125, 255, 196, .35);
}
.ring::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  transform: translateX(4px);
  border-left: 16px solid var(--neon);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

/* ---------- 正文 ---------- */
.prose { min-width: 0; }
.prose > * {
  background: var(--card);
  border-radius: var(--r);
  padding: 22px;
  margin: 0 0 18px;
}
.prose > *:last-child { margin-bottom: 0; }

.prose h2 { font-size: clamp(21px, 2.4vw, 25px); color: #FFFFFF; margin: 0 0 10px; }
.prose h3 { font-size: 19px; color: #FFFFFF; margin: 18px 0 8px; }
.prose hr {
  border: 0;
  height: 1px;
  margin: 0 0 16px;
  background: linear-gradient(90deg, rgba(125, 255, 196, .55), var(--line) 62%);
}
.prose p { margin: 0 0 14px; color: #D5D5D5; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.25em; }
.prose li { margin: 0 0 8px; color: #D5D5D5; }
.prose strong { color: #FFFFFF; }
.prose a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
.prose div[id] { scroll-margin-top: 24px; }

/* ---------- 右侧栏 ---------- */
.side { position: sticky; top: 24px; min-width: 0; }
.toc { background: var(--card); border-radius: var(--r); padding: 18px 16px; }
.toc h2 { font-size: 16px; font-weight: 500; letter-spacing: .14em; color: #EDEDED; margin: 0 0 10px; }
.toc hr { border: 0; height: 1px; background: #262626; margin: 0 0 12px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #BFBFBF;
  font-size: 16px;
}
.toc a:hover { background: var(--card-2); color: var(--neon); }

/* ---------- 页脚 ---------- */
.footer {
  margin-left: 250px;
  padding: 26px 26px 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: flex-start;
  border-top: 1px solid #1C1C1C;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.f-brand { flex: 1 1 220px; min-width: 200px; }
.f-logo {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid #262626;
  color: var(--neon);
  font-weight: 700;
}
.f-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.f-name { margin: 10px 0 4px; font-weight: 500; color: #FFFFFF; }
.f-desc { margin: 0; color: var(--dim); font-size: 16px; max-width: 32ch; }

.f-nav { flex: 2 1 260px; }
.f-nav dl { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.f-nav dt, .f-nav dd { margin: 0; }
.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 10px;
  background: var(--card);
  color: #C8C8C8;
  font-size: 16px;
}
.f-nav a:hover { background: #1B1B1B; color: var(--neon); }

.f-sub { flex: 1 1 220px; }
.sub-form { display: flex; gap: 8px; }
.sub-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 12px;
  background: #0D0D0D;
  border: 1px solid #262626;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.sub-form button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--neon);
  color: #04140D;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.sub-form button:hover { filter: brightness(1.1); }

.f-copy {
  flex: 1 1 100%;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #1A1A1A;
  color: #6F6F6F;
  font-size: 16px;
}

/* ---------- 滚动出现 ---------- */
.js .prose > *, .js .side, .js .hero-art {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .prose > .in, .js .side.in, .js .hero-art.in {
  opacity: 1;
  transform: none;
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .rail {
    inset: 0 0 auto 0;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: rgba(0, 0, 0, .94);
    border-right: 0;
    border-bottom: 1px solid #1B1B1B;
    backdrop-filter: blur(8px);
  }
  .mark { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
  .burger { display: inline-flex; }

  .rail-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 58px;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px 18px;
    background: #080808;
    border-bottom: 1px solid #1B1B1B;
    max-height: calc(100vh - 58px);
    overflow: auto;
  }
  .nav-open .rail-nav { display: flex; }
  .rail-link.contact { margin-top: 12px; }

  main { margin-left: 0; max-width: none; padding: 76px 14px 0; }
  .hero { min-height: 56vh; padding: 24px 18px 18px; }
  .hero-art { aspect-ratio: 16 / 9; }
  .content-wrap { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .side { position: static; order: 2; }
  .prose > * { padding: 18px; }
  .prose div[id] { scroll-margin-top: 78px; }
  .footer { margin-left: 0; padding: 22px 14px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .prose > *, .js .side, .js .hero-art {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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