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

:root {
  --mint: #99ffcc;
  --neon: #00ff41;
  --ink: #001e3c;
  --deep: #00162c;
  --glass: rgba(153, 255, 204, 0.07);
  --line: rgba(153, 255, 204, 0.22);
  --txt: #e2f8ef;
  --dim: #a6c8bf;
  --pad: clamp(1rem, 4vw, 2.75rem);
  --radius: 4px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Raleway, "Helvetica Neue", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--txt);
  background:
    radial-gradient(58rem 40rem at 8% -10%, rgba(0, 255, 65, 0.18), transparent 62%),
    radial-gradient(52rem 38rem at 96% 2%, rgba(153, 255, 204, 0.16), transparent 64%),
    linear-gradient(180deg, #001e3c 0%, #012a4a 46%, #00152a 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto -10vw;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(40rem 26rem at 30% 40%, rgba(0, 255, 65, 0.12), transparent 70%),
              radial-gradient(34rem 22rem at 78% 30%, rgba(153, 255, 204, 0.12), transparent 70%);
  filter: blur(28px);
  animation: drift 18s ease-in-out infinite alternate;
}

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

a { color: var(--neon); }

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

::selection {
  background: rgba(0, 255, 65, 0.35);
  color: #001428;
}

/* ---------- 顶部两行：品牌行 + 菜单行 ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: linear-gradient(180deg, rgba(0, 30, 60, 0.94), rgba(0, 30, 60, 0.74));
  border-bottom: 1px solid var(--line);
}

.brandrow {
  padding: 0.65rem var(--pad) 0.2rem;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--mint);
  font-family: Lora, Georgia, serif;
  font-size: 1.32rem;
  letter-spacing: 0.14em;
}

.brandname { line-height: 1.2; }

.blob {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: linear-gradient(140deg, var(--neon), var(--mint));
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.6);
  animation: morph 9s ease-in-out infinite, breathe 6s ease-in-out infinite;
}

.menurow {
  padding: 0 var(--pad) 0.5rem;
}

.navtoggle { display: block; }

.navtoggle > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.35rem 0.7rem;
  margin-bottom: 0.25rem;
  cursor: pointer;
  list-style: none;
  color: var(--mint);
  font-size: 1rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}

.navtoggle > summary::-webkit-details-marker { display: none; }

.navlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.navlist a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
  color: var(--txt);
  font-size: 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.navlist a:hover {
  background: var(--glass);
  border-color: var(--line);
  color: var(--mint);
}

.pip {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.75);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 2.4rem);
  text-align: center;
  padding: clamp(1.6rem, 6vw, 4rem) var(--pad) 0;
  overflow: hidden;
}

.herotxt { max-width: 44rem; }

.hero h1 {
  margin: 0 0 0.9rem;
  font-family: Lora, Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  background: linear-gradient(112deg, var(--mint), var(--neon) 54%, #7ad9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--dim);
}

.herofig {
  margin: 0;
  width: 100%;
  max-width: 62rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 34px 80px -34px rgba(0, 255, 65, 0.4);
}

.herofig img {
  display: block;
  width: 100%;
  will-change: transform;
}

/* ---------- 主体网格：左栏 + 正文 ---------- */

.wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 4.5rem) var(--pad) clamp(2.5rem, 7vw, 5rem);
}

.rail,
.sheet > div,
.sheet > article {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rail {
  order: -1;
  padding: 1.1rem 1.1rem 0.8rem;
}

.railhead {
  margin: 0 0 0.4rem;
  font-family: Lora, Georgia, serif;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.22em;
  color: var(--mint);
}

.rail hr {
  border: 0;
  height: 1px;
  margin: 0 0 0.7rem;
  background: linear-gradient(90deg, var(--neon), rgba(153, 255, 204, 0.04));
}

.raillist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.05rem;
}

.raillist a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.3rem 0.3rem;
  text-decoration: none;
  color: var(--txt);
  font-size: 1rem;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.raillist a:hover {
  color: var(--neon);
  background: rgba(0, 255, 65, 0.08);
}

.railtop { margin: 0.6rem 0 0; }

.railtop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.3rem;
  color: var(--dim);
  font-size: 1rem;
  text-decoration: none;
}

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

.stage { min-width: 0; }

.sheet {
  display: grid;
  gap: 1.2rem;
}

.sheet > div,
.sheet > article {
  padding: clamp(1.1rem, 3.2vw, 2rem);
  scroll-margin-top: 11rem;
}

.sheet h2,
.sheet h3,
.sheet h4 {
  font-family: Lora, Georgia, serif;
  font-weight: 600;
  line-height: 1.28;
  color: var(--mint);
  margin: 0 0 0.6rem;
}

.sheet h2 { font-size: clamp(1.36rem, 3.6vw, 1.9rem); }
.sheet h3 { font-size: 1.16rem; }
.sheet h4 { font-size: 1.04rem; letter-spacing: 0.02em; }

.sheet hr {
  border: 0;
  height: 1px;
  margin: 0.15rem 0 1rem;
  background: linear-gradient(90deg, rgba(0, 255, 65, 0.8), rgba(153, 255, 204, 0.03));
}

.sheet p {
  margin: 0 0 1rem;
  color: var(--txt);
}

.sheet p:last-child,
.sheet ul:last-child,
.sheet ol:last-child { margin-bottom: 0; }

.sheet ul,
.sheet ol { margin: 0 0 1rem; padding-left: 1.35rem; }
.sheet li { margin-bottom: 0.35rem; }
.sheet li::marker { color: var(--neon); }

.sheet a {
  color: var(--mint);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

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

.sheet strong { color: #ffffff; font-weight: 600; }

.sheet blockquote {
  margin: 0 0 1rem;
  padding: 0.4rem 0 0.4rem 1rem;
  border-left: 2px solid var(--neon);
  color: var(--dim);
}

.sheet img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.sheet figure { margin: 0 0 1rem; }

/* ---------- 页脚：四栏 + 大品牌字 ---------- */

footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem var(--pad);
  padding: clamp(2.4rem, 7vw, 4.5rem) var(--pad) 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 255, 65, 0.07), transparent 62%);
}

footer .giant {
  grid-column: 1 / -1;
  margin: 0 0 0.4rem;
  font-family: Lora, Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 12vw, 7rem);
  line-height: 0.98;
  letter-spacing: 0.03em;
  word-break: break-word;
  background: linear-gradient(100deg, var(--mint), var(--neon) 58%, #5fc9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

footer .col {
  margin: 0;
  display: grid;
  align-content: start;
}

footer .col a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 0;
  color: var(--dim);
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(153, 255, 204, 0.1);
  transition: color 0.2s ease;
}

footer .col a:hover { color: var(--mint); }

footer .copy {
  grid-column: 1 / -1;
  margin: 1.4rem 0 0;
  text-align: center;
  font-size: 1rem;
  color: var(--dim);
}

footer small {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1rem;
  color: rgba(166, 200, 191, 0.7);
}

/* ---------- 动效 ---------- */

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; }
  50% { border-radius: 45% 55% 38% 62% / 58% 42% 62% 38%; }
}

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

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2%, 3%, 0) scale(1.08); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

/* ---------- 断点 ---------- */

@media (min-width: 900px) {
  .navtoggle > summary { display: none; }
  .brandrow { padding-top: 0.8rem; }
  .brandmark { font-size: 1.5rem; }
  .navlist { gap: 0.45rem; }
  .wrap {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
  .rail {
    order: 0;
    position: sticky;
    top: 9.5rem;
  }
  footer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .navlist { max-height: 46vh; overflow-y: auto; }
  .hero { min-height: 62vh; padding-top: 1.4rem; }
  .sheet > div,
  .sheet > article { padding: 1.05rem 0.95rem; }
  .rail { padding: 0.95rem 0.95rem 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

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