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

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

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

body {
  margin: 0;
  background: #000000;
  color: #f2f2f2;
  font-family: "Space Mono", ui-monospace, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", monospace;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
}

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

a { color: #00ff80; }

h1, h2, h3 {
  font-family: "Syncopate", ui-sans-serif, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}

p { margin: 0 0 18px; }

section[id] { scroll-margin-top: 84px; }

/* ---------- 顶栏 ---------- */
.top {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #000000;
  border-bottom: 4px solid #00ff80;
  position: relative;
  z-index: 60;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #00ff80;
  color: #000000;
  border: 3px solid #00ff80;
  text-decoration: none;
  font-family: "Syncopate", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}

.brand:hover { background: #0000ff; border-color: #0000ff; color: #ffffff; }

.topnav { display: flex; gap: 6px; align-items: stretch; }

.grp { position: relative; }

.grp > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 3px solid #00ff80;
  color: #00ff80;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.grp > summary::-webkit-details-marker { display: none; }
.grp > summary:hover,
.grp[open] > summary { background: #00ff80; color: #000000; }

.drop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #000000;
  border: 3px solid #00ff80;
  z-index: 90;
}

.drop li + li { border-top: 2px solid #0000ff; }

.drop a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  color: #f2f2f2;
  text-decoration: none;
  font-size: 15px;
}

.drop a:hover { background: #0000ff; color: #ffffff; }

/* ---------- 粘性锚点条 ---------- */
.barwrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0000ff;
  border-bottom: 4px solid #00ff80;
}

.bar {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bar a {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border-right: 2px solid #000000;
  white-space: nowrap;
}

.bar a:hover { background: #00ff80; color: #000000; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  background: #000000;
  border-bottom: 4px solid #00ff80;
  overflow: hidden;
}

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

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.92)),
    linear-gradient(0deg, rgba(0, 0, 255, 0.55), rgba(0, 0, 0, 0) 62%);
}

.htxt {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: 900px;
  padding: 24px 20px 64px;
  text-align: right;
  border-right: 10px solid #00ff80;
}

.hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.85rem, 6vw, 4.1rem);
  text-shadow: 5px 5px 0 #0000ff;
  word-break: break-word;
}

/* ---------- 导语带 ---------- */
.lede {
  padding: 28px 20px 30px;
  border-bottom: 4px solid #00ff80;
  background: #000000;
}

.lede h2 {
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  color: #00ff80;
  margin: 0 0 10px;
}

.lede .subtitle {
  margin: 0;
  max-width: 72ch;
  padding-left: 12px;
  border-left: 6px solid #0000ff;
  color: #ffffff;
  font-size: 16px;
}

/* ---------- 主体网格 ---------- */
.grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

@media (min-width: 960px) {
  .grid { grid-template-columns: minmax(0, 1fr) 264px; gap: 44px; }
}

.col { min-width: 0; }

.col section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 4px solid #0000ff;
}

.col section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.col h2 {
  font-size: clamp(1.45rem, 3.6vw, 2.1rem);
  color: #00ff80;
  border-left: 10px solid #0000ff;
  padding-left: 12px;
  margin: 0 0 14px;
}

.col h2 + p { margin-top: 0; color: #cfcfcf; }

.col h3 { font-size: 1.15rem; color: #ffffff; margin: 24px 0 10px; }

.col p { max-width: 70ch; }

.col a {
  color: #00ff80;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.col a:hover { background: #00ff80; color: #000000; text-decoration: none; }

.col ul, .col ol { padding-left: 1.3em; max-width: 68ch; }
.col li { margin-bottom: 8px; }

.col figure {
  margin: 24px 0;
  border: 4px solid #00ff80;
  background: #080808;
}

.col figure img { width: 100%; }

.col figcaption {
  padding: 8px 12px;
  border-top: 3px solid #00ff80;
  font-size: 14px;
  color: #a8a8a8;
}

.col blockquote {
  margin: 24px 0;
  padding: 12px 16px;
  border-left: 10px solid #0000ff;
  background: #05051a;
  color: #eaeaea;
}

.col blockquote p:last-child { margin-bottom: 0; }

.col table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.col th, .col td { border: 2px solid #00ff80; padding: 8px 10px; text-align: left; }
.col th { background: #00ff80; color: #000000; }

.col strong { color: #ffffff; }

/* ---------- 右侧栏 ---------- */
.rail {
  border: 4px solid #00ff80;
  background: #000000;
  height: max-content;
}

@media (min-width: 960px) {
  .rail { position: sticky; top: 64px; }
}

.rail h2 {
  margin: 0;
  padding: 12px 14px;
  background: #00ff80;
  color: #000000;
  font-family: "Space Mono", monospace;
  font-size: 15px;
  letter-spacing: 0.14em;
}

.rail ul { margin: 0; padding: 0; list-style: none; }
.rail li + li { border-top: 2px solid #0000ff; }

.rail li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  color: #f2f2f2;
  text-decoration: none;
  font-size: 15px;
}

.rail li a:hover { background: #0000ff; color: #ffffff; }

.rail .totop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-top: 4px solid #00ff80;
  background: #000000;
  color: #00ff80;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.rail .totop:hover { background: #00ff80; color: #000000; }

/* ---------- 页脚 ---------- */
footer {
  background: #000000;
  border-top: 4px solid #00ff80;
  margin-top: 40px;
}

.fcols {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 20px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 760px) {
  .fcols { grid-template-columns: 1.1fr 1fr 1fr; }
}

.fhead {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: #00ff80;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 3px solid #0000ff;
}

footer address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.fbrand {
  font-family: "Syncopate", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
}

.fhost { font-size: 15px; color: #9a9a9a; word-break: break-all; }

.flinks { margin: 0; padding: 0; list-style: none; }
.flinks li + li { margin-top: 6px; }

.flinks a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #f2f2f2;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 2px solid #0000ff;
}

.flinks a:hover { background: #00ff80; color: #000000; border-color: #00ff80; }

.fnav dl { margin: 0; }

.fnav dt {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #6f6f6f;
  margin: 10px 0 4px;
}

.fnav dt:first-of-type { margin-top: 0; }

.fnav dd { margin: 0 0 4px; }

.fnav dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #f2f2f2;
  text-decoration: none;
  font-size: 15px;
}

.fnav dd a:hover { background: #0000ff; color: #ffffff; }

.sub { display: flex; border: 3px solid #00ff80; }

.sub input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px;
  background: #000000;
  color: #ffffff;
  border: 0;
  font: inherit;
  font-size: 15px;
}

.sub input:focus { outline: 3px solid #0000ff; outline-offset: -3px; }

.sub button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  background: #00ff80;
  color: #000000;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.sub button:hover { background: #0000ff; color: #ffffff; }

.copy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px 26px;
  border-top: 2px solid #0000ff;
  font-size: 14px;
  color: #8d8d8d;
  text-align: center;
}

/* ---------- 动效 ---------- */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 719px) {
  .top { padding: 8px; }
  .grp > summary { padding: 0 12px; font-size: 14px; }
  .drop { min-width: 180px; }

  .htxt {
    margin-left: 0;
    text-align: left;
    border-right: 0;
    border-left: 10px solid #00ff80;
    padding: 20px 16px 52px;
    max-width: 100%;
  }

  .hero h1 { text-shadow: 4px 4px 0 #0000ff; }

  .lede { padding: 22px 16px 24px; }
  .grid { padding: 28px 16px 48px; }

  .col h2 { border-left-width: 8px; padding-left: 10px; }
  .col p { max-width: 100%; }

  .rail h2 { letter-spacing: 0.1em; }

  .fcols { padding: 32px 16px 24px; }
  .copy { padding: 12px 16px 22px; }
}

@media (max-width: 380px) {
  body { font-size: 16px; }
  .grp > summary { padding: 0 10px; letter-spacing: 0.04em; }
}

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