@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

:root {
  --ink: #000000;
  --green: #00ff80;
  --blue: #0000ff;
  --paper: #ffffff;
  --dim: #9fe8c4;
  --edge: 3px solid #00ff80;
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Exo 2', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

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

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

a:hover { background: var(--green); color: var(--ink); }

h1, h2, h3 {
  font-family: Orbitron, 'Exo 2', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  text-wrap: balance;
}

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* ---- 页头：品牌居左 / 平铺文字链接 ---- */
.site-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: var(--edge);
  background: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 4px 6px;
  color: var(--paper);
  font-family: Orbitron, 'Exo 2', sans-serif;
  border: 3px solid var(--ink);
}

.brand:hover { color: var(--ink); border-color: var(--ink); }

.brandname { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.08em; }

.brandmark { width: 32px; height: 32px; object-fit: contain; }

.nav-top { margin-left: auto; min-width: 0; }

.nav-top p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 3px;
}

.nav-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 9px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  border-bottom: 2px solid transparent;
}

.nav-top a:hover { border-bottom-color: var(--ink); }

@media (min-width: 900px) {
  .site-top { position: sticky; top: 0; z-index: 30; padding: 12px 28px; }
  .nav-top a { font-size: 1.02rem; padding: 6px 11px; }
}

/* ---- 首屏 ---- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 70vh;
  padding: 44px 20px 52px;
  border-bottom: var(--edge);
  background: var(--ink);
}

.hero-copy { flex: 1 1 300px; min-width: 0; }

.hero h1 {
  font-size: clamp(2.1rem, 8vw, 4.4rem);
  color: var(--paper);
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

.hero-jump {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 22px;
  border: 3px solid var(--green);
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--ink);
}

.hero-jump:hover { background: var(--green); color: var(--ink); }

.hero-art {
  flex: 0 0 auto;
  margin: 0;
  width: 190px;
  padding: 8px;
  border: 3px solid var(--green);
  background: var(--blue);
  box-shadow: 11px 11px 0 var(--green);
}

.hero-art img { width: 100%; }

@media (min-width: 900px) {
  .hero { padding: 60px 32px; gap: 40px; }
  .hero-art { width: 260px; }
}

/* ---- 版心：正文 + 右侧边栏 ---- */
.wrap {
  flex: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 30px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

@media (min-width: 960px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 52px;
    padding: 46px 28px 80px;
    align-items: start;
  }
  .side { position: sticky; top: 104px; }
}

.main-col { min-width: 0; }

.content { min-width: 0; }

.content > div,
.content > section {
  border-top: 3px solid var(--green);
  padding: 28px 0 36px;
  scroll-margin-top: 104px;
}

.content > div:first-child,
.content > section:first-child { border-top: 0; padding-top: 0; }

.content h2 {
  font-size: clamp(1.32rem, 3.6vw, 1.95rem);
  color: var(--green);
  margin-bottom: 16px;
}

.content h2 span { display: inline-block; }

.content h3 {
  font-size: 1.14rem;
  color: var(--green);
  border-left: 6px solid var(--blue);
  padding-left: 11px;
  margin: 22px 0 12px;
}

.content h3 span { display: inline-block; }

.content p { margin: 0 0 16px; max-width: 72ch; }

.content ul,
.content ol { margin: 0 0 18px; padding-left: 1.35em; }

.content li { margin: 0 0 8px; }

.content strong { color: var(--green); }

.content a { border-bottom: 2px solid var(--blue); }

.content a:hover { border-bottom-color: var(--ink); }

.content blockquote {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 6px solid var(--green);
  background: #08130d;
}

.content img { border: 3px solid var(--green); margin: 0 0 18px; }

.content table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }

.content th,
.content td { border: 2px solid var(--green); padding: 9px 10px; text-align: left; }

/* ---- 侧栏：钴蓝块面 ---- */
.side {
  border: 3px solid var(--green);
  border-radius: 10px;
  background: var(--blue);
  padding: 16px 14px 18px;
}

.side-title {
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--paper);
  margin-bottom: 12px;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 11px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  color: var(--paper);
  font-weight: 600;
}

.side-list a:hover { background: var(--green); color: var(--ink); border-color: var(--green); }

/* ---- 页脚：两栏 + 底栏 ---- */
.site-foot {
  margin-top: auto;
  border-top: var(--edge);
  background: var(--ink);
  padding: 34px 20px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

@media (min-width: 780px) {
  .site-foot { grid-template-columns: 1fr 1fr; gap: 40px; padding: 44px 28px 16px; }
}

.site-foot div h2 {
  font-size: 0.94rem;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 12px;
}

.foot-brand p { margin: 0; }

.foot-brand a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: Orbitron, 'Exo 2', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 4px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  margin: 0;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 2px 3px;
  font-weight: 600;
}

.foot-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 2px solid var(--blue);
  padding-top: 10px;
}

.foot-base p { margin: 0; color: var(--dim); font-size: 0.95rem; }

.foot-base a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }

/* ---- 滚动显现 ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s linear, transform 0.2s linear;
}

.js .reveal.in { opacity: 1; transform: none; }

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

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