@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --ink: #000000;
  --panel: #121212;
  --midnight: #0a1730;
  --text: #e6ecf4;
  --muted: #c2cddd;
  --dim: #8f9bb0;
  --line: rgba(120, 170, 255, 0.16);
  --glass: rgba(16, 22, 34, 0.62);
  --neon: #5df2c0;
  --blue: #5aa9ff;
  --gold: #ffcc66;
  --purple: #b18cff;
  --r: 10px;
  --bar: 112px;
  --mono: 'Fira Code', 'Share Tech Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'PingFang SC', 'Microsoft YaHei', monospace;
}

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

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

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom));
}

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

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 底部固定条 ---------- */
.site-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.96) 46%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.9);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}

.bar-inner {
  position: relative;
  z-index: 80;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-line {
  flex: 1 0 100%;
  margin: 0;
  padding-left: 2px;
}

.brand {
  display: inline-block;
  font-size: 16px;
  letter-spacing: 0.34em;
  color: #fff;
  text-shadow: 0 0 10px rgba(93, 242, 192, 0.4);
}

.bar-row {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.menu-btn {
  flex: 1 1 auto;
  min-height: 44px;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.24em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.menu-btn:hover { background: rgba(93, 242, 192, 0.12); border-color: rgba(93, 242, 192, 0.5); }

.contact {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: #04120d;
  background: var(--neon);
  border-radius: var(--r);
  box-shadow: 0 0 16px rgba(93, 242, 192, 0.32);
}

/* ---------- 遮罩菜单 ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px calc(var(--bar) + 26px);
  background: rgba(2, 6, 14, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s;
}

.menu.open { opacity: 1; visibility: visible; transform: none; }

.menu p {
  margin: 0;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 10px;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.menu a::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-right: 12px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
}

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

/* 打开时锁定滚动 */
body.menu-open { overflow: hidden; }

/* ---------- 版心 ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  gap: 0 34px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px 64px;
}

/* ---------- 首屏 ---------- */
.hero {
  grid-column: 1 / -1;
  position: relative;
  margin: 0 -18px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 22px calc(var(--bar) + 54px);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(20, 46, 96, 0.85), transparent 62%),
    radial-gradient(80% 60% at 90% 100%, rgba(93, 242, 192, 0.16), transparent 70%),
    #000814;
  clip-path: ellipse(152% 100% at 50% 0);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(90, 169, 255, 0.09) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(90, 169, 255, 0.07) 0 1px, transparent 1px 64px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-fig {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.52) saturate(1.1);
  transform: scale(1.08);
  will-change: transform;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 7.2vw, 62px);
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 22px rgba(90, 169, 255, 0.45);
}

.hero-desc {
  margin: 0 auto;
  max-width: 32ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.hero-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 62px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--neon), var(--blue), var(--purple), transparent);
  transform: skewY(-2deg);
  box-shadow: 0 0 16px rgba(90, 169, 255, 0.55);
  opacity: 0.9;
}

/* ---------- 正文区 ---------- */
main > div:not(.hero) {
  grid-column: 1;
  scroll-margin-top: 22px;
  margin: 16px 0;
  padding: 26px 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.wrap h2,
.wrap h3 {
  margin: 0 0 14px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #fff;
}

.wrap h2 { font-size: clamp(20px, 3.6vw, 27px); }

.wrap h3 { font-size: clamp(17px, 2.6vw, 20px); color: #eaf2ff; }

.wrap h2 span,
.wrap h3 span,
.rail-title span {
  position: relative;
  display: inline-block;
}

.wrap h2 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), rgba(93, 242, 192, 0));
  box-shadow: 0 0 10px rgba(93, 242, 192, 0.6);
}

main div p { margin: 0 0 14px; color: var(--muted); }

main div p:last-child { margin-bottom: 0; }

main div a { color: var(--gold); border-bottom: 1px dashed rgba(255, 204, 102, 0.45); }

main div a:hover { color: #fff; border-bottom-color: #fff; }

main div ul,
main div ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
}

main div li { margin: 0 0 8px; }

main div li::marker { color: var(--neon); }

main div strong { color: #fff; }

main div blockquote {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-left: 3px solid var(--purple);
  background: rgba(177, 140, 255, 0.08);
  border-radius: 0 var(--r) var(--r) 0;
  color: #d7dcea;
}

main div figure { margin: 18px 0; }

main div img { width: 100%; border-radius: var(--r); }

main div figcaption {
  margin-top: 8px;
  font-size: 15px;
  color: var(--dim);
}

main div table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 16px;
}

main div th,
main div td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
  color: var(--muted);
}

main div th { color: #fff; background: rgba(255, 255, 255, 0.04); }

main div hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

/* ---------- 侧栏 ---------- */
.rail {
  grid-column: 2;
  grid-row: 2 / span 300;
  align-self: start;
  position: sticky;
  top: 22px;
  display: grid;
  gap: 14px;
  padding: 16px 0 0;
}

.rail-card {
  padding: 16px 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rail-title {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: #fff;
}

.rail-title span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: rgba(93, 242, 192, 0.6);
  box-shadow: 0 0 8px rgba(93, 242, 192, 0.5);
}

.rail-links { display: flex; flex-direction: column; }

.rail-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 6px;
  font-size: 16px;
  color: #c9d6e8;
  border-bottom: 1px dashed rgba(120, 170, 255, 0.14);
}

.rail-links a:last-child { border-bottom: 0; }

.rail-links a:hover { color: var(--neon); }

/* ---------- 页脚 ---------- */
.site-foot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 18px 26px;
  border-top: 1px solid var(--line);
}

.foot-giant {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  font-size: clamp(34px, 11vw, 76px);
  line-height: 1;
  letter-spacing: 0.06em;
  color: #fff;
  opacity: 0.86;
  text-shadow: 0 0 20px rgba(90, 169, 255, 0.28);
}

.foot-col { margin: 0; min-width: 0; }

.foot-col a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: #b9c6d8;
  border-bottom: 1px solid transparent;
}

.foot-col a:hover { color: var(--neon); border-bottom-color: rgba(93, 242, 192, 0.6); }

.foot-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--dim);
}

.foot-legal small { font-size: 15px; letter-spacing: 0.06em; }

.foot-legal a { color: var(--muted); }

.foot-legal a:hover { color: var(--neon); }

/* ---------- 动效 ---------- */
.js main > div:not(.hero),
.js .rail-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js main > div.in,
.js .rail-card.in { opacity: 1; transform: none; }

.js main > div.in li { animation: rowIn 0.45s ease both; }

.js main > div.in li:nth-child(2) { animation-delay: 0.05s; }
.js main > div.in li:nth-child(3) { animation-delay: 0.1s; }
.js main > div.in li:nth-child(4) { animation-delay: 0.15s; }
.js main > div.in li:nth-child(5) { animation-delay: 0.2s; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 断点 ---------- */
@media (max-width: 1023px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .site-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 78px; }
  .hero-band { bottom: 52px; }
}

@media (min-width: 720px) {
  .site-bar { padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); }
  .bar-inner { flex-wrap: nowrap; align-items: center; }
  .brand-line { flex: 1 1 auto; }
  .bar-row { width: auto; }
  .menu-btn { flex: 0 0 auto; padding: 0 26px; }
}

@media (min-width: 1024px) {
  main > div:not(.hero) { padding: 32px 30px; }
}

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