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

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: #001e3c;
  color: #d7f2ea;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .01em;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: -25%;
  z-index: -2;
  background:
    radial-gradient(38% 34% at 18% 16%, rgba(153, 255, 204, .18), transparent 72%),
    radial-gradient(32% 30% at 82% 68%, rgba(0, 255, 65, .14), transparent 74%),
    radial-gradient(46% 42% at 62% 4%, rgba(0, 90, 120, .55), transparent 76%);
  filter: blur(26px);
  animation: breathe 17s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(153, 255, 204, .16) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 20%, transparent 85%);
}

@keyframes breathe {
  0%, 100% { transform: scale(1) translate3d(0, 0, 0); }
  50% { transform: scale(1.08) translate3d(1%, -1.5%, 0); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes drift {
  0%, 100% { border-radius: 62% 38% 55% 45% / 48% 52% 44% 56%; }
  50% { border-radius: 44% 56% 38% 62% / 58% 42% 60% 40%; }
}

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

a { color: #99ffcc; }

:focus-visible {
  outline: 2px solid #00ff41;
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 60;
  transform: translateY(-160%);
  background: #99ffcc;
  color: #001e3c;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease;
}

.skip:focus { transform: none; }

/* 顶部两行：品牌行 + 菜单行 */
.masthead {
  padding-top: 18px;
  background: linear-gradient(180deg, rgba(0, 30, 60, .92), rgba(0, 30, 60, .55) 70%, transparent);
}

.bar-brand { padding-bottom: 6px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: #eafff6;
  text-decoration: none;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .06em;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #eafff6, #00ff41 55%, #0a7a4a);
  box-shadow: 0 0 0 6px rgba(0, 255, 65, .14), 0 0 22px rgba(0, 255, 65, .5);
  animation: breathe 6s ease-in-out infinite;
  flex: 0 0 auto;
}

.bar-nav { padding-bottom: 12px; }

.nav-root {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-group { position: relative; }

.nav-label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(153, 255, 204, .06);
  color: #b6f2d8;
  font: inherit;
  font-size: 16px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.nav-label:hover,
.nav-group.open .nav-label,
.nav-group:focus-within .nav-label {
  background: rgba(153, 255, 204, .16);
  border-color: rgba(153, 255, 204, .34);
  color: #eafff6;
}

.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 210px;
  margin: 8px 0 0;
  padding: 10px;
  list-style: none;
  display: grid;
  gap: 2px;
  background: rgba(2, 30, 54, .97);
  border: 1px solid rgba(153, 255, 204, .22);
  border-radius: 16px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.nav-group:hover .nav-sub,
.nav-group:focus-within .nav-sub,
.nav-group.open .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #cdeee4;
  text-decoration: none;
  font-size: 16px;
}

.nav-sub a:hover { background: rgba(153, 255, 204, .14); color: #eafff6; }

/* 主区 */
main { display: block; }

#main { scroll-margin-top: 96px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  min-height: 100vh;
  padding: clamp(40px, 9vh, 120px) 0 clamp(48px, 8vh, 96px);
}

.hero-copy { text-align: left; }

.badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 65, .45);
  background: rgba(0, 255, 65, .1);
  color: #b6ffcd;
  font-size: 15px;
  letter-spacing: .22em;
  animation: floaty 7s ease-in-out infinite;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #f2fffb;
  text-wrap: balance;
}

.hero-lead {
  margin: 0;
  max-width: 46ch;
  font-size: 17px;
  color: #a9d4c9;
}

.hero-cta { margin: 28px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(120deg, #99ffcc, #00ff41);
  color: #00241a;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .03em;
  box-shadow: 0 18px 36px -20px rgba(0, 255, 65, .95);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -18px rgba(0, 255, 65, 1); }

.hero-art {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 1), 0 0 0 1px rgba(153, 255, 204, .16) inset;
}

.hero-img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.blob {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 34% 28%, rgba(234, 255, 246, .95), rgba(0, 255, 65, .55) 38%, rgba(0, 90, 120, .9) 78%),
    #032a4f;
  border-radius: 62% 38% 55% 45% / 48% 52% 44% 56%;
  filter: saturate(115%);
  animation: drift 13s ease-in-out infinite, breathe 13s ease-in-out infinite;
}

/* 正文 + 右侧栏 */
.split {
  display: flex;
  align-items: flex-start;
  gap: clamp(22px, 3vw, 40px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.panel {
  flex: 1 1 auto;
  min-width: 0;
  padding: clamp(20px, 3vw, 42px);
  border-radius: 18px;
  background: rgba(4, 38, 64, .66);
  border: 1px solid rgba(153, 255, 204, .16);
  box-shadow: 0 34px 60px -44px rgba(0, 0, 0, .95);
  backdrop-filter: blur(8px);
}

.panel div {
  scroll-margin-top: 110px;
  padding: clamp(20px, 2.6vw, 32px) 0;
  border-top: 1px solid rgba(153, 255, 204, .13);
}

.panel div:first-child { border-top: 0; padding-top: 4px; }

.panel small {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  letter-spacing: .2em;
  color: #00ff41;
  text-transform: none;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.5vw, 27px);
  line-height: 1.32;
  font-weight: 600;
  color: #eafff6;
}

.panel h3 {
  margin: 22px 0 10px;
  font-size: 19px;
  font-weight: 600;
  color: #ccffe6;
}

.panel p { margin: 0 0 14px; }

.panel p:last-child { margin-bottom: 0; }

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

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

.panel a { text-decoration-color: rgba(153, 255, 204, .45); text-underline-offset: 3px; }

.panel img { border-radius: 14px; margin: 16px 0; }

.panel blockquote {
  margin: 18px 0;
  padding: 14px 20px;
  border-left: 3px solid #00ff41;
  border-radius: 0 14px 14px 0;
  background: rgba(0, 255, 65, .07);
  color: #d9f7ec;
}

.rail {
  flex: 0 0 258px;
  position: sticky;
  top: 104px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(6, 44, 72, .6);
  border: 1px solid rgba(153, 255, 204, .18);
  box-shadow: 0 26px 48px -40px rgba(0, 0, 0, .95);
}

.rail small {
  display: block;
  font-size: 15px;
  letter-spacing: .2em;
  color: #00ff41;
  margin-bottom: 6px;
}

.rail h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  color: #eafff6;
  letter-spacing: .04em;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 10px;
  color: #bfe5d9;
  text-decoration: none;
  font-size: 16px;
  border-left: 2px solid rgba(153, 255, 204, .28);
}

.rail-list a:hover { background: rgba(153, 255, 204, .12); color: #eafff6; border-left-color: #00ff41; }

/* 页脚三栏 */
.foot {
  margin-top: 8px;
  padding: clamp(38px, 6vw, 68px) 0 0;
  background: linear-gradient(180deg, rgba(0, 24, 46, .55), rgba(0, 20, 38, .95));
  border-top: 1px solid rgba(153, 255, 204, .16);
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 30px;
}

.foot-brand address {
  font-style: normal;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .05em;
  color: #eafff6;
  margin-bottom: 10px;
}

.foot-desc { margin: 0; font-size: 16px; color: #9dc7bb; max-width: 40ch; }

.foot-nav dl { margin: 0; display: grid; gap: 6px; }

.foot-nav dt {
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: .2em;
  color: #00ff41;
}

.foot-nav dt:first-child { margin-top: 0; }

.foot-nav dd { margin: 0; }

.foot-nav a,
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  color: #c4e8dd;
  text-decoration: none;
  font-size: 16px;
}

.foot-nav a:hover,
.foot-links a:hover { color: #99ffcc; text-decoration: underline; text-underline-offset: 4px; }

.foot-links ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 2px; }

.totop {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(153, 255, 204, .4);
  background: rgba(153, 255, 204, .08);
  color: #ccffe6;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.totop:hover { background: #99ffcc; color: #00241a; }

.foot-bottom {
  border-top: 1px solid rgba(153, 255, 204, .14);
  padding: 16px 0 26px;
}

.foot-bottom p { margin: 0; font-size: 15px; color: #8fb6ab; letter-spacing: .06em; }

/* 滚动显现 */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.22, .7, .3, 1);
}

.rv.in { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(153, 255, 204, .1);
  }
}

@media (max-width: 899px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .hero-art { max-width: 460px; }

  .hero-img { aspect-ratio: 4 / 3; }

  .blob { aspect-ratio: 4 / 3; }

  .split { flex-direction: column; }

  .rail { position: static; width: 100%; flex: 0 0 auto; }

  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    margin: 2px 0 8px 10px;
    padding: 2px 0 2px 10px;
    background: transparent;
    border: 0;
    border-left: 2px solid rgba(153, 255, 204, .28);
    border-radius: 0;
    box-shadow: none;
  }

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

@media (max-width: 480px) {
  body { font-size: 16px; }

  .panel { padding: 18px 16px; }

  .brand { font-size: 19px; }

  .badge { font-size: 15px; }
}

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

  body::before,
  .brand-dot,
  .badge,
  .blob { animation: none; }

  .rv { opacity: 1; transform: none; transition: none; }
}

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