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

:root {
  --black: #000000;
  --panel: #121212;
  --card: #0b0b0b;
  --line: #1e1e1e;
  --text: #e6e6e6;
  --dim: #9aa3ad;
  --blue: #4d7cff;
  --radius: 18px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #ffffff; }
p { margin: 0 0 1.1em; }

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

div[id] { scroll-margin-top: 132px; }

/* 顶部 */
.hd {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.strip {
  margin: 0;
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: #8ea3c9;
  background: linear-gradient(100deg, #061020 0%, #000000 62%);
  border-bottom: 1px solid #101822;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hd-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 10px;
}

.brandrow { padding: 8px 0 2px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.mark {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(77, 124, 255, 0.75);
  transform: rotate(45deg);
}

.nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 4px 0 0;
  border-top: 1px solid #141414;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #b7bec8;
  border-radius: 10px;
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: #ffffff;
  background: #151a22;
}

.nav a.on {
  color: #ffffff;
  background: #0f1a2e;
  box-shadow: inset 0 -2px 0 var(--blue);
}

/* 首屏 */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - 124px);
  min-height: calc(100svh - 124px);
  overflow: hidden;
  background: #04070d;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-media { position: absolute; inset: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: grayscale(0.35) contrast(1.15);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.3) 48%, #000000 97%),
    radial-gradient(62% 70% at 0% 100%, rgba(77, 124, 255, 0.2), transparent 72%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 11vh;
  animation: rise 0.6s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 7vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 0 26px rgba(77, 124, 255, 0.32);
}

.lede {
  max-width: 46ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: #a7b2c1;
}

/* 主体 */
main { padding-bottom: 48px; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
  padding-top: 46px;
}

.body { min-width: 0; }

.body > div {
  margin: 0 0 18px;
  padding: 26px 22px;
  background-color: var(--card);
  background-image: linear-gradient(112deg, rgba(77, 124, 255, 0.1), transparent 46%);
  border-radius: var(--radius);
}

.body h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.body h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  color: #ffffff;
}

.body p,
.body li { color: #c8ced7; }

.body > div > small,
.side small {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--blue);
}

.body ul,
.body ol { padding-left: 1.25em; }
.body li { margin-bottom: 0.5em; }

.body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 10px 0 16px;
}

.body blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--panel);
  border-radius: var(--radius);
  color: #d7dce3;
}

.body a {
  color: #a9c3ff;
  border-bottom: 1px solid rgba(77, 124, 255, 0.45);
}

.body a:hover { color: #ffffff; }

/* 侧栏 */
.side {
  position: sticky;
  top: 132px;
  padding: 20px 16px;
  background: var(--panel);
  border-radius: var(--radius);
}

.side h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #ffffff;
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: idx;
}

.side-list li { counter-increment: idx; }

.side-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 4px;
  font-size: 16px;
  color: #b7bec8;
  border-bottom: 1px solid #1b1b1b;
}

.side-list li:last-child a { border-bottom: 0; }

.side-list a::before {
  content: counter(idx, decimal-leading-zero);
  font-size: 13px;
  color: var(--blue);
}

.side-list a:hover { color: #ffffff; }

/* 页脚 */
.foot {
  margin-top: 20px;
  padding-top: 44px;
  background: #000000;
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 36px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 32px;
}

.foot dl { margin: 0; }

.foot dt {
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--blue);
}

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

.foot dd ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot dd a {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: #c2c9d2;
}

.foot dd a:hover { color: #ffffff; }

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub input {
  flex: 1 1 130px;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  color: #ffffff;
  background: #0c0c0c;
  border: 1px solid #232323;
  border-radius: 10px;
}

.sub button {
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: var(--blue);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(77, 124, 255, 0.35);
}

.sub button:hover { filter: brightness(1.12); }

.copy {
  margin: 0;
  padding: 18px 20px 28px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #767d86;
  border-top: 1px solid #141414;
}

@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; gap: 26px; }
  .side { position: static; order: 2; }
  .side-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .side-list a { border-bottom: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .strip { font-size: 12px; letter-spacing: 0.14em; }
  .brand { font-size: 19px; }
  .nav a { padding: 10px 11px; }
  .hero { clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); }
  .hero-copy { padding-bottom: 9vh; }
  .stage { padding-top: 32px; }
  .body > div { padding: 20px 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .foot dd ul { grid-template-columns: 1fr; }
  .side-list { grid-template-columns: 1fr; }
}

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

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