@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

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

:root {
  --mint: #99ffcc;
  --neon: #00ff41;
  --navy: #001e3c;
  --paper: #f3fff9;
  --foam: #e2fff1;
  --text: #0d2438;
  --serif: 'Cormorant Garamond', 'Libre Baskerville', Georgia, 'Songti SC', 'Noto Serif SC', serif;
  --sans: 'Libre Baskerville', Georgia, 'Songti SC', 'Noto Serif SC', 'Times New Roman', serif;
  --edge: rgba(0, 30, 60, .12);
  --radius: 18px;
}

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

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  background:
    radial-gradient(circle at 12% 6%, rgba(153, 255, 204, .55), transparent 44%),
    radial-gradient(circle at 88% 20%, rgba(0, 255, 65, .13), transparent 42%),
    linear-gradient(180deg, #f3fff9 0%, #ecfff6 52%, #f8fffb 100%);
  -webkit-font-smoothing: antialiased;
}

main [id] { scroll-margin-top: 150px; }

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

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 12px clamp(14px, 3vw, 36px) 14px;
  background: rgba(243, 255, 249, .84);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--edge);
}

.crest {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0 10px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 2px 8px;
  text-decoration: none;
  color: var(--navy);
}

.glyph,
.logoimg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 56% 44% 62% 38%;
  background: radial-gradient(circle at 32% 28%, var(--neon), var(--mint) 55%, #2ad38f);
  animation: breathe 8s ease-in-out infinite;
}

.logoimg { animation-duration: 11s; }

.brandname {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.2;
}

.dockrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.dock { grid-column: 2; min-width: 0; }

.pillnav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e4fff2;
  color: var(--navy);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease, color .3s ease;
}

.pillnav a:hover,
.pillnav a:focus-visible {
  background: var(--mint);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -12px rgba(0, 30, 60, .8);
}

.pillnav a[aria-current="true"] {
  background: var(--navy);
  color: #d9ffec;
}

.cta {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #c9ffe4;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
  box-shadow: 0 12px 26px -16px var(--navy);
  transition: transform .3s ease, background .3s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  background: #003153;
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1320px;
  margin: clamp(10px, 2vw, 22px) auto 0;
  padding: clamp(44px, 8vh, 92px) clamp(16px, 4vw, 48px) 0;
  min-height: clamp(430px, 70vh, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #eafff6;
  border-radius: clamp(22px, 4vw, 44px);
  background:
    radial-gradient(circle at 22% 18%, #014c3d, transparent 46%),
    radial-gradient(circle at 82% 6%, #003a5e, transparent 54%),
    linear-gradient(165deg, #00223f, #001b33 55%, #00302a);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 60% 40% 55% 45%;
  filter: blur(26px);
  pointer-events: none;
}

.hero::before {
  width: min(58vw, 430px);
  aspect-ratio: 1;
  left: -9%;
  top: -14%;
  opacity: .5;
  background: radial-gradient(circle at 40% 40%, var(--mint), transparent 68%);
  animation: breathe 17s ease-in-out infinite;
}

.hero::after {
  width: min(50vw, 370px);
  aspect-ratio: 1;
  right: -10%;
  bottom: 6%;
  opacity: .34;
  background: radial-gradient(circle at 50% 50%, var(--neon), transparent 70%);
  animation: breathe 22s ease-in-out infinite reverse;
}

.herotext {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 820px;
}

.herotext > * { animation: rise .85s ease both; }
.herotext > :nth-child(2) { animation-delay: .09s; }
.herotext > :nth-child(3) { animation-delay: .18s; }

.badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(153, 255, 204, .55);
  background: rgba(153, 255, 204, .1);
  color: var(--mint);
  font-size: 1rem;
  letter-spacing: .16em;
  animation: rise .85s ease both, float 9s 1s ease-in-out infinite;
}

.herotitle {
  margin: 0;
  max-width: 20ch;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5.6vw, 4rem);
  line-height: 1.1;
  text-wrap: balance;
}

.herodesc {
  margin: 0;
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.88;
  color: rgba(234, 255, 246, .84);
}

.herofigure {
  width: min(100%, 1080px);
  margin: clamp(26px, 5vh, 52px) 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(153, 255, 204, .32), rgba(0, 255, 65, .14));
  border-radius: min(44vw, 280px) min(44vw, 280px) 0 0 / min(22vw, 110px) min(22vw, 110px) 0 0;
  animation: rise .95s .2s ease both;
}

.heroimg {
  display: block;
  width: 100%;
  height: clamp(180px, 32vh, 360px);
  object-fit: cover;
}

.cellfield {
  position: relative;
  display: block;
  height: clamp(160px, 26vh, 300px);
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 255, 65, .38), transparent 60%),
    radial-gradient(circle at 72% 62%, rgba(153, 255, 204, .55), transparent 62%);
}

.cellfield i {
  position: absolute;
  border-radius: 58% 42% 46% 54%;
  background: radial-gradient(circle at 35% 30%, var(--mint), #00c37a);
  opacity: .55;
  animation: breathe 13s ease-in-out infinite;
}

.cellfield i:nth-child(1) { width: 120px; height: 120px; left: 10%; top: 16%; }
.cellfield i:nth-child(2) { width: 86px; height: 86px; left: 44%; top: 44%; animation-duration: 18s; }
.cellfield i:nth-child(3) { width: 150px; height: 150px; right: 8%; top: 8%; animation-duration: 23s; background: radial-gradient(circle at 35% 30%, #d6ffe9, #00e070); }

/* ---------- 主体：左侧栏 + 正文 ---------- */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 208px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 4vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) clamp(16px, 4vw, 40px) 0;
  animation: rise .8s .1s ease both;
}

.rail {
  position: sticky;
  top: 136px;
  min-width: 0;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #e6fff5);
}

.railtitle {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--navy);
}

.rail hr {
  height: 2px;
  border: 0;
  margin: 0 0 12px;
  background: linear-gradient(90deg, var(--neon), rgba(0, 255, 65, 0));
}

.railist {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}

.railist li { counter-increment: rail; }

.railist a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 4px;
  font-size: 1rem;
  color: #123b52;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 30, 60, .14);
  transition: color .3s ease, padding-left .3s ease;
}

.railist a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--serif);
  font-size: .95rem;
  color: #39a37a;
}

.railist a:hover,
.railist a[aria-current="true"] {
  color: var(--navy);
  padding-left: 8px;
}

/* ---------- 正文 ---------- */

.flow {
  min-width: 0;
  overflow-wrap: break-word;
}

.flow > div + div { margin-top: clamp(28px, 4vw, 52px); }

.flow h2 {
  margin: 0 0 .35em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.22;
  color: var(--navy);
}

.flow h3 {
  margin: 2em 0 .5em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.3;
  color: var(--navy);
}

.flow hr {
  border: 0;
  height: 3px;
  max-width: 120px;
  margin: 1.6em 0;
  background: linear-gradient(90deg, var(--neon), rgba(153, 255, 204, 0));
}

.flow h2 + hr,
.flow h3 + hr { margin: .9em 0 1.4em; }

.flow p {
  margin: 0 0 1.15em;
  max-width: 70ch;
  font-size: 1.0625rem;
  line-height: 1.9;
}

.flow a {
  color: #046b4a;
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 65, .7);
  text-underline-offset: 3px;
  transition: background .25s ease;
}

.flow a:hover { background: rgba(153, 255, 204, .5); }

.flow ul,
.flow ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  max-width: 70ch;
}

.flow li { margin: .45em 0; line-height: 1.85; }

.flow strong { color: var(--navy); }

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

.flow figure {
  margin: 1.6em 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--foam);
}

.flow blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--neon);
  border-radius: 0 14px 14px 0;
  background: rgba(153, 255, 204, .24);
  font-style: italic;
}

.flow blockquote p:last-child { margin: 0; }

.flow table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: collapse;
  font-size: 1rem;
}

.flow th,
.flow td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 30, 60, .12);
}

/* ---------- 页脚 ---------- */

.seabed {
  margin-top: clamp(44px, 7vw, 90px);
  padding: clamp(34px, 6vw, 64px) clamp(16px, 4vw, 40px) 22px;
  color: #d3ffee;
  border-radius: clamp(26px, 4vw, 46px) clamp(26px, 4vw, 46px) 0 0;
  background:
    radial-gradient(circle at 15% 0%, #01493a, transparent 55%),
    radial-gradient(circle at 88% 10%, #003a63, transparent 60%),
    linear-gradient(180deg, #001e33, #00121f);
}

.footgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  max-width: 1180px;
  margin: 0 auto;
}

.giant {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 8.5vw, 5.2rem);
  line-height: .98;
  letter-spacing: .01em;
  background: linear-gradient(100deg, var(--mint), var(--neon) 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footlinks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.footlinks dl { margin: 0; }

.footlinks dt {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .2em;
  color: #8dffc8;
}

.footlinks dd { margin: 0; }

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

.footlinks a {
  display: block;
  min-height: 40px;
  padding: 9px 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #c6f6dd;
  text-decoration: none;
  transition: color .3s ease, transform .3s ease;
}

.footlinks a:hover,
.footlinks a:focus-visible {
  color: #ffffff;
  transform: translateX(3px);
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: clamp(24px, 4vw, 40px) auto 0;
  padding-top: 14px;
  font-size: 1rem;
  color: rgba(211, 255, 238, .8);
  border-top: 1px solid rgba(153, 255, 204, .24);
}

.toplink {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(153, 255, 204, .16);
  color: #d9ffef;
  text-decoration: none;
  transition: background .3s ease;
}

.toplink:hover,
.toplink:focus-visible { background: rgba(0, 255, 65, .3); }

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

@keyframes breathe {
  0%, 100% { transform: scale(1); border-radius: 54% 46% 58% 42%; }
  50% { transform: scale(1.08); border-radius: 44% 56% 42% 58%; }
}

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

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

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

@media (max-width: 940px) {
  .masthead { position: static; }
  .hero { border-radius: 0; }
  .stage { grid-template-columns: minmax(0, 1fr); padding-top: 26px; }
  .rail { position: static; order: -1; padding: 14px; }
  .railist { display: flex; flex-wrap: wrap; gap: 6px; }
  .railist a {
    padding: 6px 12px;
    border: 0;
    background: #ffffff;
    border-radius: 999px;
  }
  .railist a:hover { padding-left: 12px; }
  .footgrid { grid-template-columns: minmax(0, 1fr); }
  main [id] { scroll-margin-top: 18px; }
}

@media (max-width: 660px) {
  .dockrow { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dock { grid-column: 1; }
  .cta { grid-column: 1; justify-self: center; }
  .pillnav ul { gap: 5px; }
  .pillnav a { padding: 8px 12px; }
  .footlinks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hero { min-height: clamp(400px, 68vh, 620px); padding-top: 36px; }
  .hero::before, .hero::after { filter: blur(20px); }
}

@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}
