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

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

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --deep: #0b160c;
  --txt: #dcf7e2;
  --dim: #9cc9a9;
  --panel: rgba(105, 255, 105, 0.07);
  --chrome: linear-gradient(150deg, #f2fff5 0%, #b6e8c6 28%, #6f8f78 52%, #e9fff0 74%, #9dc4ab 100%);
  --mono: "JetBrains Mono", "PingFang SC", "Microsoft YaHei", ui-monospace, monospace;
  --disp: "Orbitron", "JetBrains Mono", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

body {
  margin: 0;
  color: var(--txt);
  font: 16px/1.6 var(--mono);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% -6%, rgba(0, 255, 255, 0.2), transparent 42%),
    radial-gradient(circle at 88% 2%, rgba(105, 255, 105, 0.18), transparent 40%),
    radial-gradient(circle at 50% 118%, rgba(0, 255, 255, 0.12), transparent 55%),
    var(--deep);
  background-attachment: fixed;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

hr {
  border: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 55%, rgba(0, 255, 255, 0));
}

/* 顶部 HUD 条 */
.hud {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(11, 22, 12, 0.97), rgba(23, 38, 23, 0.74));
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(105, 255, 105, 0.4), 0 10px 26px rgba(0, 0, 0, 0.45);
}

.mark {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  color: #0b160c;
  font: 900 20px/1 var(--disp);
  background: var(--chrome);
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.45), 0 0 18px rgba(105, 255, 105, 0.6), inset 0 -4px 8px rgba(0, 0, 0, 0.25);
}

.mark .markImg { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.topNav { flex: 1; min-width: 0; }

.topNav p {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
}

.topNav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 16px;
  color: #c9f4d6;
  text-decoration: none;
  background: rgba(0, 255, 255, 0.05);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.topNav a:hover {
  background: linear-gradient(120deg, rgba(105, 255, 105, 0.4), rgba(0, 255, 255, 0.4));
  color: #04140a;
  box-shadow: 0 0 16px rgba(105, 255, 105, 0.55);
}

.topNav a.on {
  background: linear-gradient(120deg, rgba(105, 255, 105, 0.55), rgba(0, 255, 255, 0.3));
  color: #06170b;
}

/* 首屏拼贴 */
.hero {
  position: relative;
  overflow: hidden;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 45vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 18px;
  align-items: center;
  padding: 30px 16px 26px;
}

.hero::before {
  content: "✦";
  position: absolute;
  top: 12px;
  right: 9%;
  font-size: 26px;
  color: var(--cyan);
  filter: drop-shadow(0 0 10px #00ffff);
  animation: twinkle 3.8s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.12); }
}

.heroText { position: relative; z-index: 3; }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 16px;
  color: #06170b;
  background: var(--chrome);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.45);
}

.tagAlt {
  background: linear-gradient(120deg, rgba(0, 255, 255, 0.9), rgba(105, 255, 105, 0.85));
  color: #04140a;
}

.heroText h1 {
  margin: 14px 0 16px;
  font-family: var(--disp);
  font-size: clamp(26px, 5.4vw, 46px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #f4fff7;
  text-shadow: 0 0 10px rgba(105, 255, 105, 0.7), 0 0 34px rgba(0, 255, 255, 0.4);
}

.heroArt {
  position: relative;
  min-height: 240px;
  align-self: stretch;
  --py: 0px;
}

.shot {
  position: absolute;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(0, 255, 255, 0.22), rgba(105, 255, 105, 0.12));
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.5), 0 14px 34px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s ease;
}

.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }

.shotA {
  left: 0;
  top: 4%;
  width: 64%;
  height: 64%;
  z-index: 2;
  transform: rotate(-5deg);
  translate: 0 calc(var(--py) * -1);
}

.shotB {
  right: 0;
  bottom: 2%;
  width: 56%;
  height: 58%;
  transform: rotate(6deg);
  translate: 0 calc(var(--py) * 0.7);
}

.shot:hover { transform: rotate(0deg) scale(1.03); }

/* 主体：左侧栏 + 正文 */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px 60px;
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 76px;
  padding: 16px 14px;
  border-radius: 18px;
  background: rgba(23, 38, 23, 0.74);
  box-shadow: inset 0 0 0 2px rgba(0, 255, 255, 0.22), 0 0 26px rgba(0, 255, 255, 0.1);
}

.rail h2 {
  margin: 0;
  font: 700 17px/1.35 var(--disp);
  letter-spacing: 0.04em;
  color: #eaffef;
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.55);
}

.rail hr { margin: 10px 0 12px; }

.railLinks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.railLinks a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: #c6efd2;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.railLinks a:hover {
  background: rgba(105, 255, 105, 0.18);
  color: #eaffef;
}

.sheet { min-width: 0; }

.prose { min-width: 0; }

.prose div {
  background: var(--panel);
  border-radius: 18px;
  padding: 20px 18px;
  margin: 0 0 18px;
  scroll-margin-top: 100px;
}

.prose h2,
.prose h3 {
  margin: 0 0 12px;
  font-family: var(--disp);
  line-height: 1.4;
  color: #f0fff4;
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.45);
}

.prose h2 { font-size: clamp(20px, 3.2vw, 26px); }
.prose h3 { font-size: clamp(18px, 2.6vw, 21px); }

.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.8;
  color: #d3f2dc;
}

.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--cyan); }
.prose strong { color: #f6fffa; }

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.prose blockquote {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(0, 255, 255, 0.1);
}

.prose div > :last-child { margin-bottom: 0; }

/* 页脚 */
.foot {
  margin-top: 20px;
  padding: 26px 16px 18px;
  background: linear-gradient(180deg, rgba(11, 22, 12, 0.45), rgba(11, 22, 12, 0.96));
  box-shadow: 0 -1px 0 rgba(0, 255, 255, 0.28);
}

.footGrid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footGrid dl { margin: 0; }

.footGrid dt {
  font: 700 16px/1.4 var(--disp);
  letter-spacing: 0.04em;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.5);
}

.footGrid dd {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: #cfe8d6;
}

.footGrid a,
.footBase a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: #c9f4d6;
  text-decoration: none;
}

.footGrid a:hover,
.footBase a:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.footBase {
  max-width: 1120px;
  margin: 12px auto 0;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 16px;
  color: var(--dim);
  box-shadow: inset 0 1px 0 rgba(105, 255, 105, 0.2);
}

.footBase p { margin: 0; }

@media (max-width: 860px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rail { position: static; }
  .railLinks { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 22px 16px 8px;
  }
  .hero::before { right: 6%; }
  .heroArt { min-height: 200px; order: 2; }
  .prose div { padding: 18px 14px; }
  .footGrid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .shotA, .shotB { translate: 0 0; }
}

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