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

:root {
  --mint: #99ffcc;
  --neon: #00ff41;
  --ink: #001e3c;
  --ink-2: #012a52;
  --line: rgba(153, 255, 204, 0.16);
  --text: #d8f6e8;
  --dim: #9ccbb4;
}

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

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

body {
  margin: 0;
  font-family: 'Barlow', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.74;
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(0, 255, 65, 0.14) 0 1.4px, transparent 1.5px),
    radial-gradient(circle, rgba(153, 255, 204, 0.1) 0 1.4px, transparent 1.5px),
    repeating-linear-gradient(90deg, rgba(153, 255, 204, 0.05) 0 1px, transparent 1px 4px);
  background-size: 36px 36px, 36px 36px, auto;
  background-position: 0 0, 18px 18px, 0 0;
  opacity: 0.85;
}

body::after {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 40% at 12% 8%, rgba(0, 255, 65, 0.17), transparent 70%),
    radial-gradient(46% 46% at 88% 84%, rgba(153, 255, 204, 0.13), transparent 72%);
  filter: blur(34px);
  animation: breathe 15s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

img { max-width: 100%; }

/* 顶部两行：品牌独占一行，菜单另起一行 */
.masthead {
  position: relative;
  z-index: 20;
  position: sticky;
  top: 0;
  background: rgba(0, 22, 44, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brandrow {
  max-width: 1240px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(153, 255, 204, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  text-decoration: none;
  color: #eefff6;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.07em;
}

.mark {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: radial-gradient(circle at 34% 30%, var(--neon), #0a7a3f 58%, var(--ink-2));
  box-shadow: 0 0 0 1px rgba(153, 255, 204, 0.55), 0 0 22px rgba(0, 255, 65, 0.45);
  animation: breathe 7s ease-in-out infinite;
}

.menurot {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 12px;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 5px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.menu > li { position: relative; }

.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 8px;
  text-decoration: none;
  color: #c8eeda;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu > li > a:hover,
.menu > li > a:focus-visible {
  background: var(--mint);
  color: var(--ink);
}

.has-sub > a::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.sub {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  min-width: 200px;
  background: rgba(1, 36, 68, 0.98);
  border: 1px solid rgba(153, 255, 204, 0.28);
  border-radius: 10px;
  box-shadow: 0 26px 54px -24px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.has-sub:hover > .sub,
.has-sub:focus-within > .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sub a { min-height: 42px; }

.shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 20px 70px;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: start;
}

/* 左侧 aside 目录 */
.rail {
  position: sticky;
  top: 138px;
}

.rail h2 {
  margin: 0 0 10px;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--mint);
}

.rail h2 > span {
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}

.rail h2 > span::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.raillist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.raillist li a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: #bfe6d4;
  text-decoration: none;
  border-left: 2px solid rgba(153, 255, 204, 0.18);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.raillist li a:hover,
.raillist li a:focus-visible {
  background: var(--mint);
  color: var(--ink);
  border-left-color: var(--neon);
}

main { min-width: 0; }

main > article { scroll-margin-top: 150px; }

main > article:not(.hero):not(.outro) {
  position: relative;
  padding: clamp(22px, 3vw, 38px) clamp(18px, 2.6vw, 32px);
  margin-bottom: clamp(16px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(1, 42, 82, 0.62), rgba(0, 26, 51, 0.36));
  box-shadow: 0 26px 52px -34px rgba(0, 0, 0, 0.95);
}

main > article:not(.hero):not(.outro)::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 54px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

/* Hero：双图错位拼贴，文案居中，色带斜切 */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(153, 255, 204, 0.18);
  border-radius: 10px;
  background: linear-gradient(160deg, #00294d, #001a33 70%);
}

.collage {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 1;
}

.collage .tile {
  position: absolute;
  width: min(46%, 330px);
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(153, 255, 204, 0.34);
  box-shadow: 0 30px 70px -22px rgba(0, 0, 0, 0.85);
  opacity: 0.86;
}

.collage .tile:nth-child(1) { left: 3%; top: 7%; transform: rotate(-4.5deg); }
.collage .tile:nth-child(2) { right: 3%; bottom: 9%; transform: rotate(3.5deg); }

.blob {
  position: absolute;
  display: block;
  filter: blur(7px);
  opacity: 0.6;
}

.b1 {
  left: 5%;
  top: 10%;
  width: 40%;
  height: 44%;
  border-radius: 46% 54% 62% 38% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 40% 40%, rgba(0, 255, 65, 0.55), rgba(0, 255, 65, 0) 70%);
  animation: breathe 11s ease-in-out infinite;
}

.b2 {
  right: 4%;
  bottom: 12%;
  width: 42%;
  height: 46%;
  border-radius: 60% 40% 45% 55% / 45% 60% 40% 55%;
  background: radial-gradient(circle at 60% 50%, rgba(153, 255, 204, 0.5), rgba(153, 255, 204, 0) 70%);
  animation: breathe 13s ease-in-out infinite reverse;
}

.hero::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -1px;
  height: 48px;
  z-index: 2;
  background: linear-gradient(90deg, var(--neon), var(--mint) 55%, var(--neon));
  transform: skewY(-2.4deg);
  opacity: 0.92;
}

.hero-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 9vh 6%;
  max-width: 960px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -10% -14%;
  z-index: -1;
  filter: blur(10px);
  background: radial-gradient(closest-side, rgba(0, 18, 38, 0.78), rgba(0, 18, 38, 0));
}

h1 {
  margin: 0;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: #f2fff9;
  text-shadow: 0 8px 34px rgba(0, 18, 38, 0.9);
}

main h2,
main h3 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: #b6ffd9;
}

main h2 {
  font-size: clamp(1.45rem, 2.9vw, 2rem);
  margin: 0.15em 0 0.62em;
}

main h3 {
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  margin: 1.4em 0 0.5em;
}

main h2 > span,
main h3 > span {
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}

main h2 > span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon), rgba(0, 255, 65, 0));
}

main p { margin: 0 0 1.05em; }
main ul, main ol { margin: 0 0 1.1em; padding-left: 1.35em; }
main li { margin: 0.35em 0; }

main a {
  color: var(--neon);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

main a:hover { color: var(--mint); }

main strong { color: #f4fff9; }

main blockquote {
  margin: 1.2em 0;
  padding: 0.7em 1em;
  border-left: 3px solid var(--neon);
  border-radius: 0 10px 10px 0;
  background: rgba(0, 255, 65, 0.07);
  color: #d6f7e6;
}

main figure { margin: 1.3em 0; }
main figure img { display: block; border-radius: 10px; }
main img { max-width: 100%; height: auto; }

main table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  font-size: 0.95rem;
}

main th, main td {
  border: 1px solid rgba(153, 255, 204, 0.2);
  padding: 8px 10px;
  text-align: left;
}

main hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.6em 0;
}

.outro {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 18px clamp(18px, 2.6vw, 32px);
  border: 1px dashed rgba(153, 255, 204, 0.3);
  border-radius: 10px;
  overflow: hidden;
}

.cells {
  order: 2;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cells span {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(153, 255, 204, 0.42);
  background: radial-gradient(circle at 35% 30%, rgba(0, 255, 65, 0.9), rgba(0, 255, 65, 0.05) 70%);
  animation: breathe 6s ease-in-out infinite;
}

.cells span:nth-child(2) { width: 16px; height: 16px; animation-delay: -2s; }
.cells span:nth-child(3) { width: 30px; height: 30px; animation-delay: -4s; }

.totop { order: 1; margin: 0; }

.totop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(153, 255, 204, 0.42);
  color: var(--mint);
  font-size: 0.95rem;
  text-decoration: none;
}

.totop a:hover { background: var(--mint); color: var(--ink); }

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(153, 255, 204, 0.2);
  background: linear-gradient(180deg, rgba(0, 30, 60, 0.5), #001428);
}

.footgrid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 20px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

.fcol h2 {
  margin: 0 0 12px;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--mint);
}

.fcol h2 > span {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--neon);
}

.fcol dl { margin: 0; }
.fcol dt { margin: 0 0 4px; }
.fcol dd { margin: 0 0 8px; color: var(--dim); font-size: 0.95rem; }

.fcol dt a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 0;
  font-size: 0.95rem;
  color: #c8eeda;
  text-decoration: none;
}

.fcol dt a:hover {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(153, 255, 204, 0.14);
}

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

.footlinks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.footlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #c8eeda;
  text-decoration: none;
}

.footlinks a:hover { background: rgba(153, 255, 204, 0.14); color: var(--mint); }

/* 滚动显现 */
.js main > article {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.75, 0.3, 1);
}

.js main > article.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 18px;
  }

  .rail {
    position: static;
    margin-bottom: 6px;
  }

  .rail h2 { display: none; }

  .raillist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .raillist li a {
    border: 1px solid rgba(153, 255, 204, 0.28);
    border-radius: 999px;
    padding: 8px 14px;
    min-height: 42px;
    background: rgba(1, 42, 82, 0.5);
  }
}

@media (max-width: 820px) {
  .masthead { position: static; }

  .brand { font-size: 1.3rem; }

  .menu { gap: 0; }

  .sub {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 6px 18px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-sub > a::after { display: none; }
}

@media (max-width: 700px) {
  .footgrid { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
}

@media (max-width: 600px) {
  .hero { min-height: 64vh; }
  .collage .tile { width: 52%; }
  .hero-copy { padding: 10vh 5%; }
  main > article { scroll-margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms;
    animation-iteration-count: 1;
    transition-duration: 0.001ms;
  }

  .js main > article { opacity: 1; transform: none; }
}

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