@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=EB+Garamond:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #000000;
  --fg: #ffffff;
  --green: #00ff80;
  --blue: #0000ff;
  --edge: 3px;
  --pad: clamp(16px, 4vw, 40px);
  --bar-h: 64px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: 'Crimson Text', 'EB Garamond', Georgia, 'Songti SC', 'Noto Serif CJK SC', serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}

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

a { color: var(--green); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { background: var(--green); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: 'EB Garamond', 'Crimson Text', Georgia, 'Songti SC', serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 3.2vw, 1.55rem); }

p { margin: 0 0 1em; }

/* ---------- 底部固定条 ---------- */
.bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  border-top: var(--edge) solid var(--green);
  padding: 8px var(--pad) calc(8px + env(safe-area-inset-bottom, 0px));
}
.mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--blue);
  border: var(--edge) solid var(--green);
  color: #fff;
  font-weight: 800;
  line-height: 1;
}
.mark:hover { background: var(--green); color: var(--ink); }
.mark-txt { font-size: 20px; font-family: 'EB Garamond', Georgia, serif; }
.mark-img { width: 34px; height: 34px; object-fit: cover; }

.burger {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 46px;
  padding: 0 14px;
  background: var(--green);
  color: var(--ink);
  border: var(--edge) solid var(--green);
  font: inherit; font-weight: 700; letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 0;
}
.burger:hover { background: var(--ink); color: var(--green); }
.burger-lines {
  display: block;
  width: 15px; height: 10px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}
.cta {
  justify-self: end;
  display: inline-flex; align-items: center;
  min-height: 46px;
  padding: 0 16px;
  background: var(--blue);
  color: #fff;
  border: var(--edge) solid var(--green);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cta:hover { background: var(--green); color: var(--ink); }

/* ---------- 全屏菜单 ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  background: var(--blue);
  color: #fff;
  padding: 16px var(--pad) 28px;
  overflow-y: auto;
}
.menu.is-open { display: flex; }
.menu-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: var(--edge) solid var(--green);
}
.menu-label { font-weight: 800; letter-spacing: 0.1em; }
.menu-x {
  min-height: 44px; padding: 0 16px;
  background: var(--ink); color: var(--green);
  border: var(--edge) solid var(--green);
  font: inherit; font-weight: 700; cursor: pointer;
  border-radius: 0;
}
.menu-x:hover { background: var(--green); color: var(--ink); }
.menu-nav { margin: auto 0; }
.menu-list { list-style: none; margin: 0; padding: 0; border-top: var(--edge) solid var(--green); }
.menu-list li { border-bottom: var(--edge) solid var(--green); }
.menu-list a {
  display: flex; align-items: baseline; gap: 14px;
  min-height: 54px;
  padding: 14px 4px;
  color: #fff;
  border: 0;
  font-size: clamp(1.05rem, 4.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
}
.menu-list a:hover { background: var(--green); color: var(--ink); }
.menu-list em {
  font-style: normal;
  font-size: 0.66em;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 1px 6px;
  flex: 0 0 auto;
}
.menu-list a:hover em { color: var(--ink); border-color: var(--ink); }

/* ---------- 骨架 ---------- */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 0 clamp(20px, 3vw, 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad) 40px;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  grid-column: 1 / -1;
  margin: 0 calc(var(--pad) * -1) 34px;
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 22px 96px;
  background: var(--blue);
  border-bottom: var(--edge) solid var(--green);
  clip-path: polygon(0 0, 100% 0, 100% 89%, 0 100%);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: grayscale(1) contrast(1.35);
  transform: scale(1.06);
}
.hero-num {
  position: absolute;
  left: -3vw; bottom: -7vw;
  z-index: 1;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(120px, 34vw, 330px);
  font-weight: 800;
  line-height: 0.78;
  color: rgba(0, 255, 128, 0.18);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 24ch; }
.hero-h1 {
  color: #fff;
  text-shadow: 6px 6px 0 var(--ink);
  margin-bottom: 18px;
  word-break: break-word;
}
.hero-sub {
  display: inline-block;
  margin: 0;
  padding: 7px 12px;
  max-width: 40ch;
  background: var(--ink);
  border: var(--edge) solid var(--green);
  color: #fff;
  font-size: 0.94rem;
  text-align: left;
}

/* ---------- 正文 ---------- */
.prose { min-width: 0; }
.prose > section {
  padding: 26px 0 30px;
  border-top: var(--edge) solid var(--green);
  scroll-margin-top: 18px;
}
.prose > section:first-child { border-top: 0; padding-top: 10px; }
.prose h2, .prose h3 { margin-top: 0.2em; }
.prose h2 > span, .prose h3 > span {
  background: linear-gradient(transparent 64%, var(--green) 64%);
  padding: 0 3px;
}
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.35em; }
.prose li { margin-bottom: 0.42em; }
.prose strong, .prose b { color: var(--green); }
.prose blockquote {
  margin: 0 0 1.1em;
  padding: 12px 16px;
  border-left: 8px solid var(--blue);
  background: #0c0c0c;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.1em; font-size: 0.96rem; }
.prose th, .prose td { border: 2px solid var(--green); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: #0c0c0c; }
.prose figure { margin: 0 0 1.2em; }
.prose figcaption { font-size: 0.85rem; color: #a5a5a5; padding-top: 6px; }
.prose code { font-family: ui-monospace, 'Courier New', monospace; background: #111; padding: 1px 5px; }
.prose hr { border: 0; border-top: var(--edge) solid var(--blue); margin: 1.4em 0; }

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 20px;
  align-self: start;
  margin-top: 30px;
  padding: 16px;
  background: #050505;
  border: var(--edge) solid var(--blue);
}
.side-h { margin: 0 0 12px; font-size: 1rem; letter-spacing: 0.08em; }
.side-h span { background: var(--green); color: var(--ink); padding: 2px 9px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-top: 2px dotted #303030; }
.side-list li:first-child { border-top: 0; }
.side-list a {
  display: block;
  min-height: 40px;
  padding: 9px 2px;
  color: #ededed;
  border: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}
.side-list a:hover { background: var(--green); color: var(--ink); }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 44px;
  padding: 32px var(--pad) 120px;
  background: #000;
  border-top: var(--edge) solid var(--green);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}
.foot-col h3 { margin: 0 0 12px; font-size: 1rem; }
.foot-col h3 span { background: var(--green); color: var(--ink); padding: 2px 9px; }
.foot address { font-style: normal; line-height: 1.7; color: #c6c6c6; }
.foot-brand { font-weight: 800; font-size: 1.1rem; color: var(--green); letter-spacing: 0.06em; }
.foot-host { font-size: 0.86rem; color: #8f8f8f; word-break: break-all; }

.sub { display: flex; flex-wrap: wrap; gap: 8px; }
.sub label { width: 100%; font-size: 0.86rem; color: #b9b9b9; }
.sub input {
  flex: 1 1 120px;
  min-height: 44px;
  padding: 0 10px;
  background: #0b0b0b;
  color: #fff;
  border: var(--edge) solid var(--green);
  font: inherit;
  border-radius: 0;
}
.sub button {
  min-height: 44px;
  padding: 0 18px;
  background: var(--green);
  color: var(--ink);
  border: var(--edge) solid var(--green);
  font: inherit; font-weight: 700; cursor: pointer;
  border-radius: 0;
}
.sub button:hover { background: var(--ink); color: var(--green); }

.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { border-bottom: 1px solid #262626; }
.foot-links a {
  display: block;
  min-height: 40px;
  padding: 8px 0;
  color: #ededed;
  border: 0;
  font-size: 0.92rem;
}
.foot-links a:hover { background: var(--green); color: var(--ink); }

.foot-bottom {
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 14px;
  border-top: var(--edge) solid var(--green);
  text-align: center;
  font-size: 0.84rem;
  color: #9a9a9a;
}
.foot-bottom p { margin: 0; }

/* ---------- 动效 ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity 0.4s linear, transform 0.4s linear; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-media img { transform: none !important; }
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; margin-top: 34px; order: 3; }
  .hero { margin-left: -16px; margin-right: -16px; min-height: 64vh; padding: 62px 18px 88px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta { padding: 0 12px; font-size: 0.92rem; }
}

@media (max-width: 380px) {
  body { font-size: 16px; }
  .bar { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .burger { padding: 0 10px; }
  .cta { padding: 0 10px; }
  .shell { padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 901px) {
  .hero-num { bottom: -9vw; }
}

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