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

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --deep: #0b160c;
  --glass: rgba(23, 38, 23, 0.55);
  --line: rgba(105, 255, 105, 0.24);
  --r: 10px;
  --pad: clamp(1rem, 4vw, 2.4rem);
  --chrome: linear-gradient(135deg, #effdff 0%, #a3bcab 20%, #ffffff 36%, #7d9a86 52%, #ddffe6 70%, #ffffff 88%);
  --sans: 'Outfit', 'Rubik', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }

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

a { color: inherit; text-decoration: none; }

button, input { font: inherit; color: inherit; }

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: #e6f5e8;
  background:
    radial-gradient(58vw 48vh at 88% -8%, rgba(0, 255, 255, 0.18), transparent 70%),
    radial-gradient(52vw 44vh at 2% 12%, rgba(105, 255, 105, 0.16), transparent 72%),
    radial-gradient(46vw 40vh at 50% 108%, rgba(0, 255, 255, 0.12), transparent 70%),
    var(--deep);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ---------- 顶部两行 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(11, 22, 12, 0.95), rgba(11, 22, 12, 0.62));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem var(--pad);
  min-height: 58px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand,
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.3rem 0.2rem;
}

.brandname {
  font-family: 'Rubik', var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(105, 255, 105, 0.45));
}

.mark img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.5);
}

.seek { margin-left: auto; }

.seek input {
  width: min(26ch, 30vw);
  min-height: 42px;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 255, 255, 0.07);
  letter-spacing: 0.03em;
  transition: background 0.25s, box-shadow 0.25s;
}

.seek input::placeholder { color: #90b79c; }

.seek input:focus {
  background: rgba(0, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.18);
  outline: none;
}

.burger {
  margin-left: 0.2rem;
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #06170b;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  background: linear-gradient(135deg, var(--neon), var(--cyan) 78%);
  box-shadow: 0 0 20px rgba(105, 255, 105, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.2s, box-shadow 0.2s;
}

.burger:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(0, 255, 255, 0.6); }

/* ---------- 全屏遮罩菜单 ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
  padding: clamp(1.1rem, 6vw, 3.5rem);
  background:
    radial-gradient(48vw 48vh at 82% 8%, rgba(0, 255, 255, 0.22), transparent 66%),
    radial-gradient(42vw 40vh at 6% 92%, rgba(105, 255, 105, 0.18), transparent 70%),
    rgba(8, 20, 10, 0.96);
  backdrop-filter: blur(18px);
  transform: translateY(-104%);
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1), visibility 0.5s;
}

.top.open .menu { transform: translateY(0); visibility: visible; }

.menu p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.9rem;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(23, 38, 23, 0.55);
  font-family: 'Rubik', var(--sans);
  font-weight: 600;
  font-size: clamp(1rem, 2.3vw, 1.35rem);
  letter-spacing: 0.06em;
  transition: border-color 0.25s, box-shadow 0.25s, color 0.25s, transform 0.25s, opacity 0.25s;
}

.menu a:hover {
  color: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 255, 255, 0.45);
  transform: translateY(-2px);
}

.menu a.off { opacity: 0.25; }

.shut {
  align-self: center;
  min-height: 44px;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--cyan);
  background: rgba(0, 255, 255, 0.08);
  color: var(--cyan);
  letter-spacing: 0.18em;
  cursor: pointer;
}

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  min-height: 70vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3rem) var(--pad);
}

.hero-fig {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 58vh;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.35);
  background:
    linear-gradient(160deg, #10301a 0%, #0e2f33 48%, #0a1a11 100%),
    var(--deep);
  box-shadow: 0 0 42px rgba(0, 255, 255, 0.2), inset 0 0 70px rgba(105, 255, 105, 0.14);
}

.hero-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  text-align: right;
  min-width: 0;
}

h1 {
  font-family: 'Rubik', var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 6.4vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(0, 255, 255, 0.38));
}

.lede {
  max-width: 44ch;
  color: #bfe8cd;
  font-size: 1.02rem;
}

/* ---------- 侧栏 + 正文 ---------- */
.shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3rem) var(--pad);
}

.rail {
  position: sticky;
  top: 112px;
  padding: 1rem 0.9rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.rail h2 {
  font-family: 'Rubik', var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.55);
}

.rail hr {
  border: 0;
  height: 1px;
  margin: 0.55rem 0 0.75rem;
  background: linear-gradient(90deg, var(--neon), rgba(0, 255, 255, 0.6), transparent);
}

.rail-list { display: flex; flex-direction: column; gap: 0.1rem; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.5rem;
  font-size: 0.92rem;
  color: #c7e6d1;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.rail-list a:hover {
  background: rgba(0, 255, 255, 0.1);
  border-left-color: var(--cyan);
  color: #fff;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.4vw, 1.5rem);
  min-width: 0;
  overflow-wrap: anywhere;
}

.prose section {
  padding: clamp(1.1rem, 3vw, 2rem);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(23, 38, 23, 0.68), rgba(12, 26, 16, 0.7));
  backdrop-filter: blur(9px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 30px rgba(4, 12, 6, 0.4);
  scroll-margin-top: 118px;
}

.prose h2 {
  font-family: 'Rubik', var(--sans);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.28;
  color: #f2fff5;
  letter-spacing: 0.01em;
}

.prose h3 {
  font-size: 1.12rem;
  line-height: 1.4;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.3);
}

.prose hr {
  border: 0;
  height: 1px;
  margin: 0.7rem 0 1rem;
  background: linear-gradient(90deg, var(--neon), var(--cyan), transparent);
}

.prose p { margin: 0.7rem 0; }
.prose p:first-of-type { margin-top: 0.3rem; }

.prose a {
  color: var(--neon);
  text-decoration: underline;
  text-decoration-color: rgba(105, 255, 105, 0.5);
  text-underline-offset: 3px;
}

.prose a:hover { color: #fff; text-decoration-color: var(--cyan); }

.prose strong { color: #ffffff; }

.prose ul,
.prose ol { padding-left: 1.25rem; margin: 0.7rem 0; }
.prose li { margin: 0.35rem 0; }

.prose blockquote {
  margin: 0.9rem 0;
  padding: 0.5rem 0 0.5rem 0.95rem;
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  background: rgba(0, 255, 255, 0.07);
  color: #d7f4e2;
}

.prose time {
  color: var(--cyan);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.prose figure { margin: 0.9rem 0; }
.prose figure img { border-radius: var(--r); border: 1px solid var(--line); }
.prose figcaption { font-size: 0.86rem; color: #9dc3aa; margin-top: 0.4rem; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0.9rem 0;
}

.prose th,
.prose td {
  border: 1px solid rgba(105, 255, 105, 0.18);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.prose th { background: rgba(0, 255, 255, 0.08); color: #effff5; }

.prose code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(0, 255, 255, 0.12);
}

/* ---------- 页脚 ---------- */
footer {
  margin-top: clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid rgba(0, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.08), rgba(11, 22, 12, 0.92) 38%, #07130a);
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.4rem) var(--pad);
}

.foot-brand {
  font-family: 'Rubik', var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.foot-brand span:last-child {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.4));
}

.cta a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0.7rem 2rem;
  border-radius: 999px;
  color: #06170b;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, var(--neon), var(--cyan) 82%);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.22s, box-shadow 0.22s;
}

.cta a::before { content: "✦"; margin-right: 0.55rem; }

.cta a:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(105, 255, 105, 0.6); }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.4rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(1.2rem, 4vw, 2rem);
}

.foot-cols dl { min-width: 0; }

.foot-cols dt {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  color: var(--neon);
  text-shadow: 0 0 10px rgba(105, 255, 105, 0.5);
  margin-bottom: 0.4rem;
}

.foot-cols dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.95rem;
  color: #c7e6d1;
  border-bottom: 1px dashed rgba(105, 255, 105, 0.16);
  transition: color 0.22s, text-shadow 0.22s;
}

.foot-cols dd a:hover { color: #fff; text-shadow: 0 0 12px rgba(0, 255, 255, 0.75); }

.foot-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.8rem var(--pad) 1.6rem;
  border-top: 1px solid rgba(105, 255, 105, 0.14);
  font-size: 0.85rem;
  color: #8fb69c;
}

.foot-base .totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 1.3rem;
  }

  .hero-fig { order: 2; aspect-ratio: 16 / 10; max-height: 34vh; }

  .hero-copy { align-items: flex-end; }

  .shell { grid-template-columns: minmax(0, 1fr); }

  .rail { position: static; }

  .rail-list { flex-direction: row; flex-wrap: wrap; gap: 0.35rem; }

  .rail-list a {
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
  }

  .prose section { scroll-margin-top: 100px; }
}

@media (max-width: 620px) {
  .bar { flex-wrap: wrap; gap: 0.45rem; padding-bottom: 0.7rem; }

  .brand { flex: 1 1 auto; min-width: 0; }

  .brandname { font-size: 1rem; }

  .burger { order: 2; }

  .seek { order: 3; flex: 1 1 100%; margin: 0; }

  .seek input { width: 100%; }

  .menu a { font-size: 1rem; }

  .foot-top { grid-template-columns: minmax(0, 1fr); }

  .cta a { width: 100%; justify-content: center; }

  .foot-cols { grid-template-columns: minmax(0, 1fr); }

  .prose section { padding: 1.05rem 0.95rem; }
}

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-fig { animation: rise 0.6s both; }

  .prose section { animation: rise 0.55s both; }
  .prose section:nth-child(2) { animation-delay: 0.06s; }
  .prose section:nth-child(3) { animation-delay: 0.12s; }
  .prose section:nth-child(4) { animation-delay: 0.18s; }
  .prose section:nth-child(5) { animation-delay: 0.24s; }
  .prose section:nth-child(6) { animation-delay: 0.3s; }
  .prose section:nth-child(7) { animation-delay: 0.36s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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