@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

:root {
  --mint: #b4fde1;
  --sky: #add8e6;
  --ink: #172620;
  --clay-a: #21392f;
  --clay-b: #1b2e26;
  --txt: #e9f7ef;
  --dim: #a6c6b9;
  --line: rgba(180, 253, 225, .38);
  --line-soft: rgba(173, 216, 230, .26);
  --pop: 4px 4px 9px rgba(4, 12, 9, .55), inset -3px -3px 9px rgba(0, 0, 0, .42), inset 3px 3px 9px rgba(180, 253, 225, .14);
  --pop-sm: 3px 3px 8px rgba(4, 12, 9, .45), inset -2px -2px 7px rgba(0, 0, 0, .34), inset 2px 2px 7px rgba(180, 253, 225, .12);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

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

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

body {
  margin: 0;
  padding-bottom: 172px;
  background:
    radial-gradient(900px 520px at 10% -12%, rgba(180, 253, 225, .17), transparent 62%),
    radial-gradient(780px 470px at 94% 4%, rgba(173, 216, 230, .15), transparent 64%),
    var(--ink);
  color: var(--txt);
  font-family: "DM Sans", "Nunito", system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

h1, h2, h3, .brand, .dock-cta, address, .sub button {
  font-family: "Nunito", "DM Sans", system-ui, sans-serif;
}

.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3.2vw, 26px) 30px;
}

/* ---------- 角落品牌 ---------- */
.brand {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 90;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, .45);
  border-radius: 18px;
  background: linear-gradient(150deg, var(--mint), var(--sky));
  box-shadow: var(--pop);
  color: var(--ink);
  font-weight: 900;
  font-size: 1.4rem;
  text-decoration: none;
  transition: transform .22s var(--spring);
}
.brand:hover { transform: translateY(-3px) rotate(-4deg); }
.brand .mark-img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; display: block; }

/* ---------- 底部固定导航 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 10px clamp(10px, 3vw, 18px) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(23, 38, 32, .74), rgba(23, 38, 32, .98) 40%);
  border-top: 3px solid var(--line);
  backdrop-filter: blur(9px);
}
.dock nav { flex: 1; min-width: 0; }
.dock ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.dock li { min-width: 0; }
.dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
  padding: 5px 3px;
  border: 3px solid transparent;
  border-radius: 16px;
  color: var(--txt);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform .2s var(--spring), background .2s ease-out, color .2s ease-out, border-color .2s ease-out;
}
.dock a .ico { opacity: .7; flex: none; }
.dock a:hover,
.dock a:focus-visible,
.dock a.on {
  background: linear-gradient(160deg, rgba(180, 253, 225, .24), rgba(173, 216, 230, .18));
  border-color: var(--line);
  transform: translateY(-2px);
}
.dock a.on { color: #fff; }
.dock-cta {
  align-self: center;
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 0 14px;
  border: 3px solid rgba(255, 255, 255, .42);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--mint), var(--sky));
  box-shadow: var(--pop-sm);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--spring);
}
.dock-cta:hover { transform: translateY(-2px) scale(1.03); }

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  min-height: 70vh;
  padding: clamp(78px, 10vh, 116px) 0 clamp(22px, 4vh, 40px);
}
.hero-copy { text-align: right; }
h1 {
  margin: 0 0 .4em;
  font-size: clamp(1.85rem, 5vw, 3.05rem);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .22);
}
.lede {
  margin: 0 0 0 auto;
  max-width: 44ch;
  color: var(--dim);
  font-size: 1rem;
}
.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border: 4px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--pop);
}
.hero-media.is-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  border: 4px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(180, 253, 225, .18), rgba(173, 216, 230, .12));
  box-shadow: var(--pop);
}
.blob {
  width: 46%;
  aspect-ratio: 1;
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  background: linear-gradient(150deg, var(--mint), var(--sky));
  box-shadow: var(--pop-sm);
  animation: wobble 7s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%; }
  50% { border-radius: 58% 42% 44% 56% / 52% 56% 44% 48%; }
}

/* ---------- 主体 ---------- */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  align-items: start;
  gap: clamp(18px, 3vw, 36px);
  padding-bottom: 20px;
}

.prose {
  min-width: 0;
  font-size: 1rem;
  overflow-wrap: break-word;
}
.prose > section {
  padding: 32px 0;
  border-top: 3px dashed rgba(180, 253, 225, .17);
  scroll-margin-top: 22px;
}
.prose > section:first-child { border-top: 0; padding-top: 6px; }
.prose p { margin: 0 0 1.05em; max-width: 68ch; }
.prose h2 {
  display: inline-block;
  margin: 0 0 .6em;
  padding: 11px 18px;
  border: 3px solid rgba(255, 255, 255, .48);
  border-radius: 18px;
  background: linear-gradient(150deg, var(--mint), #d5fff0 56%, var(--sky));
  box-shadow: var(--pop-sm);
  color: #10201a;
  font-size: clamp(1.3rem, 3.2vw, 1.85rem);
  font-weight: 900;
  line-height: 1.34;
  scroll-margin-top: 22px;
}
.prose h3 {
  margin: 1.5em 0 .5em;
  color: var(--mint);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.4;
}
.prose small,
.rail small {
  display: block;
  margin: 0 0 6px;
  color: var(--sky);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.prose ul,
.prose ol { margin: 0 0 1.1em; padding-left: 1.3em; max-width: 66ch; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--sky); }
.prose strong { color: var(--mint); font-weight: 800; }
.prose blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border: 3px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(180, 253, 225, .1), rgba(173, 216, 230, .07));
  box-shadow: var(--pop-sm);
  color: var(--dim);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img {
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--pop-sm);
  margin: .6em 0;
}

/* ---------- 右侧目录 ---------- */
.rail {
  position: sticky;
  top: 84px;
  padding: 18px 16px;
  border: 3px solid var(--line);
  border-radius: 0;
  background: linear-gradient(160deg, var(--clay-a), var(--clay-b));
  box-shadow: var(--pop-sm);
}
.rail h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.3;
}
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  border: 2px solid transparent;
  border-radius: 14px;
  color: var(--txt);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: background .2s ease-out, border-color .2s ease-out, transform .2s var(--spring);
}
.toc a b { flex: none; color: var(--sky); font-family: "Nunito", sans-serif; font-size: .95rem; }
.toc a:hover,
.toc a.on {
  background: rgba(180, 253, 225, .14);
  border-color: var(--line);
  transform: translateX(-2px);
}

/* ---------- 页脚 ---------- */
footer { margin-top: 34px; }
.foot-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 14px;
}
.foot-col {
  padding: 18px 16px;
  border: 3px solid var(--line);
  border-radius: 0;
  background: linear-gradient(160deg, var(--clay-a), var(--clay-b));
  box-shadow: var(--pop-sm);
  min-width: 0;
}
address {
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
  color: #fff;
}
.sub { display: grid; gap: 8px; }
.sub label { color: var(--mint); font-weight: 800; }
.sub input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 3px solid var(--line-soft);
  border-radius: 14px;
  background: #12211b;
  color: var(--txt);
  font-family: inherit;
  font-size: 1rem;
}
.sub button {
  min-height: 46px;
  border: 3px solid rgba(255, 255, 255, .4);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--mint), var(--sky));
  box-shadow: var(--pop-sm);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s var(--spring);
}
.sub button:hover { transform: translateY(-2px); }
.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 8px;
}
.foot-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 4px;
  border-bottom: 2px solid rgba(180, 253, 225, .15);
  color: var(--txt);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.foot-links a:hover { color: var(--mint); }
.copy {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 1rem;
  text-align: center;
}

/* ---------- 滚动出现 ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease-out, transform .5s var(--spring);
}

/* ---------- 桌面 ---------- */
@media (min-width: 761px) {
  body { padding-bottom: 126px; }
  .dock ul { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .dock nav { max-width: 830px; margin: 0 auto; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  main { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; top: auto; }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 16px;
    padding-top: 82px;
  }
  .hero-copy { order: -1; text-align: right; }
  .hero-media img,
  .hero-media.is-empty { aspect-ratio: 16 / 11; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .dock a { font-size: 1rem; }
  .prose > section { padding: 26px 0; }
}

@media (max-width: 400px) {
  .dock-cta { padding: 0 10px; }
  .toc { grid-template-columns: minmax(0, 1fr); }
  .foot-links { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .brand, .dock a, .dock-cta, .toc a, .sub button { transition: none; }
  .blob { animation: none; }
}

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