@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300&display=swap');

:root {
  --ink: #001e3c;
  --ink-2: #032949;
  --ink-3: #063a63;
  --mint: #99ffcc;
  --neon: #00ff41;
  --paper: #e8fff4;
  --dim: #a6c8d8;
  --line: rgba(153, 255, 204, .18);
  --line-hard: rgba(0, 255, 65, .5);
  --r: 10px;
  --pad: clamp(18px, 4vw, 42px);
  --serif: 'Source Serif 4', Georgia, 'Songti SC', serif;
  --disp: 'Playfair Display', Georgia, 'Songti SC', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(16px, .42vw + 15.2px, 18px);
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: .004em;
  background-image:
    radial-gradient(60vw 46vw at 12% -8%, rgba(153, 255, 204, .16), transparent 62%),
    radial-gradient(52vw 42vw at 92% 8%, rgba(0, 255, 65, .12), transparent 64%),
    radial-gradient(70vw 60vw at 50% 108%, rgba(6, 58, 99, .8), transparent 70%);
  background-attachment: fixed;
}

body.lock { overflow: hidden; }

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

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

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}

.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 头部：品牌独占一行，菜单行在下 ---------- */
.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 30, 60, .84);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid var(--line);
}

.row-a {
  display: flex;
  align-items: center;
  padding: 10px var(--pad) 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--mint);
}

.mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 52% 48% 44% 56% / 46% 54% 46% 54%;
  background: linear-gradient(155deg, var(--mint), var(--neon) 78%);
  color: var(--ink);
  font-family: var(--disp);
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  animation: breathe 8s ease-in-out infinite;
}

.bname {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.1;
  letter-spacing: .015em;
}

.row-b {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 var(--pad) 10px;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(153, 255, 204, .05);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .18em;
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease, color .3s ease, transform .3s ease;
}

.burger:hover {
  border-color: var(--neon);
  background: rgba(0, 255, 65, .14);
  color: var(--paper);
  transform: translateY(-1px);
}

.bars {
  position: relative;
  width: 18px;
  height: 10px;
  flex: none;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s ease, width .35s ease;
}

.bars::before { top: 0; }
.bars::after { bottom: 0; width: 68%; }

.burger:hover .bars::after { width: 100%; }

.flowline {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 255, 65, .55), rgba(153, 255, 204, .08) 70%, transparent);
  animation: drift 9s ease-in-out infinite;
}

/* ---------- 全屏遮罩菜单（aside > nav > ul > li > a） ---------- */
.dock {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: calc(18px + env(safe-area-inset-top)) var(--pad) 40px;
  overflow-y: auto;
  background:
    radial-gradient(70vw 50vw at 8% 4%, rgba(153, 255, 204, .2), transparent 60%),
    radial-gradient(60vw 50vw at 96% 96%, rgba(0, 255, 65, .16), transparent 62%),
    var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -3%, 0) scale(.985);
  transition: opacity .42s cubic-bezier(.2, .85, .2, 1), transform .42s cubic-bezier(.2, .85, .2, 1), visibility .42s;
}

.dock.on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dock-brand {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--mint);
}

.dock-close {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line-hard);
  border-radius: 999px;
  background: transparent;
  color: var(--neon);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .18em;
  cursor: pointer;
}

.dock-close:hover { background: rgba(0, 255, 65, .16); color: var(--paper); }

.dock-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.dock-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 4px;
  font-family: var(--disp);
  font-size: clamp(23px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .3s ease, padding-left .35s cubic-bezier(.2, .8, .2, 1);
}

.dock-nav a:hover { color: var(--neon); padding-left: 14px; }

.dock-cell {
  position: absolute;
  right: -80px;
  bottom: -70px;
  width: 260px;
  height: 260px;
  border-radius: 58% 42% 46% 54% / 44% 58% 42% 56%;
  background: radial-gradient(circle at 36% 34%, rgba(0, 255, 65, .5), rgba(153, 255, 204, .1) 62%, transparent 72%);
  filter: blur(26px);
  animation: morph 16s ease-in-out infinite;
  pointer-events: none;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 45vh;
  padding: clamp(30px, 7vw, 60px) var(--pad) clamp(40px, 8vw, 74px);
  overflow: hidden;
}

.hero h1 {
  position: relative;
  z-index: 3;
  margin: 0;
  max-width: 17ch;
  text-align: center;
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(31px, 6.2vw, 66px);
  line-height: 1.05;
  letter-spacing: -.012em;
  color: var(--paper);
  text-shadow: 0 0 40px rgba(0, 30, 60, .9), 0 0 90px rgba(153, 255, 204, .28);
  text-wrap: balance;
  animation: rise .9s cubic-bezier(.2, .85, .2, 1) both;
}

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

.cell {
  position: absolute;
  filter: blur(30px);
  opacity: .85;
}

.cell-a {
  left: -8%;
  top: 6%;
  width: 44vmin;
  height: 40vmin;
  border-radius: 62% 38% 48% 52% / 40% 60% 40% 60%;
  background: radial-gradient(circle at 40% 36%, rgba(153, 255, 204, .58), transparent 70%);
  animation: morph 18s ease-in-out infinite, breathe 11s ease-in-out infinite;
}

.cell-b {
  right: -10%;
  bottom: -8%;
  width: 50vmin;
  height: 44vmin;
  border-radius: 40% 60% 62% 38% / 58% 42% 56% 44%;
  background: radial-gradient(circle at 56% 60%, rgba(0, 255, 65, .46), transparent 72%);
  animation: morph 22s ease-in-out infinite reverse, breathe 13s ease-in-out infinite;
}

.shot {
  position: absolute;
  width: clamp(96px, 22vw, 220px);
  height: auto;
  border-radius: var(--r);
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(0, 20, 40, .55);
  opacity: .92;
}

.shot-a {
  left: clamp(10px, 5vw, 90px);
  top: 14%;
  transform: rotate(-4deg);
  animation: float 12s ease-in-out infinite;
}

.shot-b {
  right: clamp(10px, 5vw, 90px);
  bottom: 16%;
  transform: rotate(3.5deg);
  animation: float 15s ease-in-out infinite reverse;
}

.shear {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -1px;
  height: 46px;
  background: linear-gradient(90deg, rgba(0, 255, 65, .85), rgba(153, 255, 204, .35) 62%, transparent);
  transform: skewY(-2.2deg);
  opacity: .8;
}

/* ---------- 正文两栏：aside 在左 ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(206px, 252px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px var(--pad) clamp(48px, 7vw, 84px);
}

.rail {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 12px;
  padding: 4px 18px 4px 0;
  border-right: 1px solid var(--line);
}

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--neon);
}

.rail-h {
  margin: 0;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.2;
  color: var(--mint);
}

.seek {
  display: flex;
  gap: 6px;
}

.seek input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .05);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
}

.seek input::placeholder { color: rgba(166, 200, 216, .8); }

.seek input:focus { border-color: var(--neon); outline: none; }

.seek button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-hard);
  border-radius: var(--r);
  background: rgba(0, 255, 65, .12);
  color: var(--neon);
  font-family: var(--mono);
  font-size: 14px;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
}

.seek button:hover { background: var(--neon); color: var(--ink); }

.up {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--dim);
  text-decoration: none;
}

.up:hover { color: var(--neon); }

/* ---------- 正文流 ---------- */
.flow { min-width: 0; }

.flow > section {
  position: relative;
  margin: 0 0 clamp(18px, 2.6vw, 28px);
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--r);
  border-bottom: 2px solid var(--line-hard);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  scroll-margin-top: 128px;
}

.flow > section:last-child { margin-bottom: 0; }

.flow p,
.flow li { max-width: 68ch; }

.flow h2,
.flow h3 {
  font-family: var(--disp);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.008em;
  color: var(--mint);
  text-wrap: balance;
}

.flow h2 { font-size: clamp(23px, 3.2vw, 33px); margin: 0 0 14px; }
.flow h3 { font-size: clamp(19px, 2.3vw, 23px); margin: 26px 0 10px; color: var(--paper); }

.flow small {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--neon);
}

.flow h2:first-child,
.flow small:first-child { margin-top: 0; }

.flow p { margin: 0 0 14px; color: rgba(232, 255, 244, .92); }

.flow ul,
.flow ol { margin: 0 0 16px; padding-left: 22px; }

.flow li { margin-bottom: 8px; }

.flow li::marker { color: var(--neon); }

.flow a {
  color: var(--neon);
  text-decoration-color: rgba(0, 255, 65, .45);
}

.flow a:hover { text-decoration-color: var(--neon); }

.flow strong { color: #fff; font-weight: 600; }

.flow blockquote {
  margin: 0 0 16px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--neon);
  color: var(--mint);
  font-style: italic;
}

.flow figure { margin: 0 0 16px; }

.flow figure img { border-radius: var(--r); }

.flow figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--dim);
}

.flow hr {
  margin: 22px 0;
  border: 0;
  height: 1px;
  background: var(--line);
}

/* 渐进出现 */
.js .flow > section {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2, .85, .2, 1);
}

.js .flow > section.in { opacity: 1; transform: none; }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 30, 60, .2), rgba(6, 58, 99, .3));
  padding: clamp(30px, 5vw, 54px) var(--pad) 26px;
}

.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  max-width: 1080px;
  margin: 0 auto 30px;
}

.foot-addr {
  font-style: normal;
}

.foot-brand {
  display: block;
  margin-bottom: 8px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 25px);
  color: var(--mint);
}

.foot-addr p {
  margin: 0;
  max-width: 40ch;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.62;
}

.foot-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 16px;
  align-content: start;
}

.foot-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: var(--dim);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(153, 255, 204, .08);
  transition: color .25s ease, border-color .25s ease;
}

.foot-nav a:hover { color: var(--neon); border-color: var(--line-hard); }

.sub {
  max-width: 1080px;
  margin: 0 auto 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.subform {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.subform label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--neon);
}

.subform input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .04);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
}

.subform input::placeholder { color: rgba(166, 200, 216, .75); }

.subform input:focus { border-color: var(--neon); outline: none; }

.subform button {
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: linear-gradient(140deg, var(--mint), var(--neon));
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: filter .25s ease, transform .25s ease;
}

.subform button:hover { filter: brightness(1.1); transform: translateY(-1px); }

.submsg {
  flex: 1 1 100%;
  margin: 0;
  min-height: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mint);
}

.cr {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(166, 200, 216, .75);
}

/* ---------- 动效 ---------- */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}

@keyframes morph {
  0%, 100% { border-radius: 62% 38% 48% 52% / 40% 60% 40% 60%; }
  34% { border-radius: 44% 56% 62% 38% / 58% 42% 56% 44%; }
  67% { border-radius: 56% 44% 38% 62% / 46% 54% 46% 54%; }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes drift {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 22px;
  }

  .rail {
    position: static;
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow > section { scroll-margin-top: 118px; }
}

@media (max-width: 620px) {
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .foot-nav { grid-template-columns: minmax(0, 1fr); }
  .shot { width: clamp(88px, 30vw, 140px); opacity: .8; }
  .hero h1 { max-width: 14ch; }
  .shear { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .js .flow > section { opacity: 1; transform: none; }
}

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