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

:root {
  --mint: #b4fde1;
  --sky: #add8e6;
  --ink: #172620;
  --ink-2: #21382f;
  --paper: #eafaf3;
  --line: rgba(180, 253, 225, 0.3);
  --r-lg: 22px;
  --r-sm: 14px;
  --clay: inset -3px -3px 10px rgba(6, 20, 15, 0.6), 5px 5px 0 rgba(173, 216, 230, 0.2);
  --clay-soft: inset -2px -2px 8px rgba(6, 20, 15, 0.45), 4px 4px 0 rgba(173, 216, 230, 0.14);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: #172620;
  background-image:
    radial-gradient(900px 520px at 10% -10%, rgba(180, 253, 225, 0.18), transparent 62%),
    radial-gradient(720px 480px at 96% 4%, rgba(173, 216, 230, 0.15), transparent 64%),
    radial-gradient(640px 520px at 40% 108%, rgba(180, 253, 225, 0.1), transparent 66%);
  background-attachment: fixed;
  color: var(--paper);
  font: 400 17px/1.7 "Quicksand", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  overflow-x: clip;
}

a { color: var(--sky); }
a:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.stage { min-height: 100svh; display: flex; flex-direction: column; }

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px clamp(14px, 4vw, 34px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 18px 8px 12px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(150deg, #26443a, #1a2b24);
  box-shadow: var(--clay);
  color: var(--mint);
  text-decoration: none;
  font: 700 21px/1 "Caveat", "Quicksand", sans-serif;
  letter-spacing: 0.05em;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover { transform: translateY(-2px) rotate(-1.5deg); }
.logo .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(180, 253, 225, 0.22);
}

.menu { flex: 1 1 340px; min-width: 0; }
.menu ol,
.sticky ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 15px;
  border: 3px solid rgba(173, 216, 230, 0.32);
  border-radius: 999px;
  background: rgba(173, 216, 230, 0.1);
  color: #dff3ec;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, color 0.2s, border-color 0.2s;
}
.menu a:hover {
  transform: translateY(-3px) rotate(-1.5deg);
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 20px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--clay);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}
.contact:hover { transform: translateY(-3px) rotate(1.5deg); background: var(--sky); }

.sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 8px 0;
  background: rgba(15, 27, 22, 0.9);
  backdrop-filter: blur(8px);
  border-top: 3px solid rgba(180, 253, 225, 0.16);
  border-bottom: 3px solid rgba(180, 253, 225, 0.16);
}
.sticky ol {
  padding: 0 clamp(14px, 4vw, 34px);
  overflow-x: auto;
  scrollbar-width: none;
}
.sticky ol::-webkit-scrollbar { display: none; }
.sticky a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 15px;
  border: 2px dashed rgba(180, 253, 225, 0.36);
  border-radius: 999px;
  color: #cdeee2;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s ease-out;
}
.sticky a:hover,
.sticky a.on {
  background: rgba(180, 253, 225, 0.18);
  border-style: solid;
  border-color: var(--mint);
  color: #ffffff;
  transform: translateY(-1px);
}

.hero {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 9vh, 96px) clamp(18px, 5vw, 40px) clamp(40px, 8vh, 78px);
  min-height: calc(100svh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.badge {
  display: inline-block;
  padding: 9px 20px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--sky);
  color: var(--ink);
  font: 700 19px/1.2 "Caveat", "Quicksand", sans-serif;
  letter-spacing: 0.1em;
  transform: rotate(-2.5deg);
  box-shadow: var(--clay);
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-9px); }
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 10vw, 5.6rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--mint);
  text-shadow: 3px 4px 0 rgba(9, 24, 18, 0.9), 7px 9px 0 rgba(173, 216, 230, 0.3);
}

.lede {
  margin: 0;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.7;
  color: #cfe9df;
}

main { padding: 0 clamp(14px, 4vw, 34px) 70px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 10px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

.rail {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 3px solid rgba(180, 253, 225, 0.3);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(38, 62, 52, 0.94), rgba(23, 38, 32, 0.94));
  box-shadow: var(--clay);
}
.rail-t {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mint);
}
.rail-t span {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 3px dotted rgba(180, 253, 225, 0.45);
}
.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rail ol a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 11px;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  color: #d7efe5;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.rail ol a:hover {
  background: rgba(180, 253, 225, 0.15);
  border-color: rgba(180, 253, 225, 0.42);
  color: #ffffff;
}
.totop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 3px solid var(--mint);
  border-radius: 999px;
  background: rgba(180, 253, 225, 0.12);
  color: var(--mint);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.totop:hover { background: var(--mint); color: var(--ink); transform: translateY(-3px); }

.body { min-width: 0; }

div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
div > section {
  scroll-margin-top: 88px;
  padding: clamp(18px, 3.4vw, 32px);
  border: 3px solid rgba(180, 253, 225, 0.26);
  border-radius: 4px;
  background: rgba(180, 253, 225, 0.06);
  backdrop-filter: blur(6px);
  box-shadow: var(--clay-soft);
}
div h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  line-height: 1.32;
  font-weight: 800;
  color: var(--mint);
  letter-spacing: 0.01em;
}
div h2 span {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 4px solid rgba(173, 216, 230, 0.5);
}
div h3 {
  margin: 20px 0 10px;
  font-size: 1.15rem;
  color: var(--sky);
  font-weight: 700;
}
div h3 span {
  display: inline-block;
  padding: 2px 12px;
  border: 2px solid rgba(173, 216, 230, 0.4);
  border-radius: 999px;
}
div p { margin: 0 0 14px; line-height: 1.8; }
div p:last-child { margin-bottom: 0; }
div strong { color: var(--mint); }
div a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
div a:hover { color: var(--mint); }
div ul, div ol { padding-left: 1.35em; line-height: 1.8; margin: 0 0 14px; }
div li { margin: 6px 0; }
div blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 5px solid var(--mint);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(180, 253, 225, 0.08);
}
div blockquote p:last-child { margin-bottom: 0; }
div img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border: 3px solid rgba(180, 253, 225, 0.3);
  border-radius: var(--r-sm);
}
div code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(173, 216, 230, 0.16);
}

.foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 34px clamp(16px, 4vw, 34px) 42px;
  border-top: 3px solid rgba(180, 253, 225, 0.22);
}
.foot p {
  margin: 0;
  font: 700 clamp(2rem, 9vw, 4.2rem)/1 "Caveat", "Quicksand", sans-serif;
  letter-spacing: 0.02em;
  color: rgba(180, 253, 225, 0.48);
}
.foot small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #bfe0d5;
}
.foot small a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 16px;
  border: 2px solid rgba(180, 253, 225, 0.4);
  border-radius: 999px;
  color: var(--mint);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.foot small a:hover { background: var(--mint); color: var(--ink); }

.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rv.in { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .menu { flex: 1 1 100%; order: 3; }
  .menu ol {
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .menu ol::-webkit-scrollbar { display: none; }
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; order: 3; }
  .body { order: 1; }
  .hero { min-height: calc(100svh - 210px); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .lede { font-size: 17px; }
  div > section { padding: 18px 16px; }
  .foot p { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

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