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

:root {
  --ice: #c8e0f4;
  --rose: #f5e0e8;
  --ink: #171f26;
  --soft: #41525e;
  --bg-a: #f1f7fc;
  --bg-b: #e3edf6;
  --bg-c: #efe7ee;
  --panel: #e9f2fa;
  --panel-2: #eef4fb;
  --r: 14px;
  --r-sm: 4px;
  --out: -6px -6px 14px rgba(255, 255, 255, 0.92), 7px 7px 18px rgba(23, 31, 38, 0.14);
  --out-sm: -3px -3px 8px rgba(255, 255, 255, 0.9), 4px 4px 10px rgba(23, 31, 38, 0.12);
  --in: inset -4px -4px 10px rgba(255, 255, 255, 0.92), inset 4px 4px 10px rgba(23, 31, 38, 0.13);
  --font: 'Archivo', 'Space Grotesk', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: linear-gradient(158deg, var(--bg-a) 0%, var(--bg-b) 58%, var(--bg-c) 100%);
  background-attachment: fixed;
  letter-spacing: 0.01em;
}

body:has(.nav-check:checked) { overflow: hidden; }

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

a { color: #1c5a80; text-underline-offset: 3px; }
a:focus-visible,
label:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #3d7ba6;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 顶栏 ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem clamp(0.9rem, 4vw, 2.5rem);
  background: linear-gradient(150deg, rgba(241, 247, 252, 0.94), rgba(233, 242, 250, 0.94));
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel-2);
  box-shadow: var(--out-sm);
  text-decoration: none;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.brand img,
.brand svg { width: 34px; height: 34px; border-radius: 50%; }

.brand:hover { box-shadow: var(--out); }
.brand:active { transform: scale(0.96); box-shadow: var(--in); }

.brand.small { width: 38px; height: 38px; }
.brand.small img,
.brand.small svg { width: 28px; height: 28px; }

.nav-check {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-sm);
  background: var(--panel-2);
  box-shadow: var(--out-sm);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.burger:hover { box-shadow: var(--out); }
.burger:active { transform: scale(0.97); box-shadow: var(--in); }

.bars {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 -6px 0 rgba(23, 31, 38, 0.55), 0 6px 0 rgba(23, 31, 38, 0.55);
}

.burger-close { display: none; }
.nav-check:checked ~ .burger .burger-open { display: none; }
.nav-check:checked ~ .burger .burger-close { display: inline; }

.nav-check:focus-visible ~ .burger { outline: 2px solid #3d7ba6; outline-offset: 2px; }

/* ---------- 全屏菜单 ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.6rem 0 1.6rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(155deg, #eef6fc 0%, #e6f0f9 46%, #f7e8ef 100%);
  transition: opacity 220ms ease;
}

.nav-check:checked ~ .menu {
  opacity: 1;
  pointer-events: auto;
}

.menu > ol {
  list-style: none;
  margin: 0;
  padding: 0 1.1rem;
  width: min(520px, 94vw);
  display: grid;
  gap: 0.45rem;
  text-align: right;
}

.menu > ol > li > a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 46px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--panel-2);
  box-shadow: var(--out-sm);
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.menu > ol > li > a:hover { box-shadow: var(--out); transform: translateX(-3px); }
.menu > ol > li > a:active { box-shadow: var(--in); transform: scale(0.99); }

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

.hero {
  display: grid;
  gap: 1.1rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.9rem clamp(0.9rem, 4vw, 2.5rem) 1.4rem;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--ice);
  box-shadow: var(--out);
  min-height: 128px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r);
  will-change: transform;
}

.badge {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  margin: 0;
  padding: 0.24rem 0.7rem;
  border-radius: var(--r-sm);
  background: var(--rose);
  box-shadow: var(--out-sm);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #4a3038;
}

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

h1 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(1.85rem, 5.4vw, 3rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- 主区 ---------- */

main {
  display: grid;
  gap: 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.4rem clamp(0.9rem, 4vw, 2.5rem) 2.6rem;
}

.prose > section {
  position: relative;
  margin: 0 0 1.4rem;
  padding: 1.25rem clamp(0.95rem, 3vw, 1.8rem);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--out);
  scroll-margin-top: 86px;
}

.prose > section:nth-child(even) { background: var(--panel-2); }

.prose > section > h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.28rem, 2.8vw, 1.72rem);
  line-height: 1.28;
  letter-spacing: -0.008em;
}

.prose h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.prose p { margin: 0 0 0.9rem; }
.prose p:last-child { margin-bottom: 0; }

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose li { margin: 0.35rem 0; }
.prose li::marker { color: #7b93a5; }
.prose strong { color: #0f2b3a; font-weight: 600; }

.prose blockquote {
  margin: 1rem 0;
  padding: 0.85rem 1.05rem;
  border-radius: var(--r-sm);
  background: #e4eef7;
  box-shadow: var(--in);
  color: #2d4453;
}

.prose figure { margin: 1rem 0; }

.prose img {
  border-radius: var(--r-sm);
  box-shadow: var(--out-sm);
}

.prose time {
  display: inline-block;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  color: #5f7484;
}

.subtitle {
  margin: 0.15rem 0 0.85rem;
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  color: #5f7484;
}

/* ---------- 侧栏 ---------- */

.rail {
  align-self: start;
  padding: 1.1rem 1.1rem 1.2rem;
  border-radius: var(--r);
  background: var(--panel-2);
  box-shadow: var(--out);
}

.rail h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

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

.rail-list li { margin-bottom: 0.5rem; }
.rail-list li:last-child { margin-bottom: 0; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  background: var(--panel);
  box-shadow: var(--in);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.rail-list a:hover { box-shadow: var(--out-sm); transform: translateX(-2px); }
.rail-list a:active { transform: scale(0.985); }

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

footer {
  display: grid;
  gap: 1.1rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.6rem clamp(0.9rem, 4vw, 2.5rem) 2.6rem;
}

footer > section {
  padding: 1.1rem 1.15rem;
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--out);
}

footer h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.foot-name {
  margin: 0.6rem 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.foot-links ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.foot-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.foot-links a:hover { background: var(--panel-2); box-shadow: var(--in); }

.sub-form { display: grid; gap: 0.6rem; }

.sub-form input {
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 0;
  border-radius: var(--r-sm);
  background: #e3edf7;
  box-shadow: var(--in);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
}

.sub-form button {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--rose);
  box-shadow: var(--out-sm);
  color: #3c2a31;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.sub-form button:hover { box-shadow: var(--out); }
.sub-form button:active { transform: scale(0.97); box-shadow: var(--in); }

.foot-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: #e6eff8;
}

.foot-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: #5a7080;
  letter-spacing: 0.04em;
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-sm);
  background: var(--panel-2);
  box-shadow: var(--out-sm);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.to-top:hover { box-shadow: var(--out); }
.to-top:active { transform: scale(0.97); box-shadow: var(--in); }

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

@media (min-width: 620px) {
  .sub-form { grid-template-columns: 1fr auto; }
  footer { grid-template-columns: 1fr 1fr; }
  .foot-bottom { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    min-height: 45vh;
    padding-top: 1.1rem;
  }
  .hero-media { min-height: 240px; max-height: 45vh; }
  .hero-copy { padding-bottom: 0.4rem; }
}

@media (min-width: 980px) {
  main {
    grid-template-columns: minmax(0, 1fr) 268px;
    align-items: start;
    gap: 2rem;
  }
  .rail { position: sticky; top: 86px; }
  footer { grid-template-columns: 1.15fr 1fr 1.1fr; }
  .foot-bottom { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu,
  .burger,
  .brand,
  .rail-list a,
  .menu > ol > li > a,
  .to-top,
  .sub-form button { transition: none; }
  .hero-img { transform: none !important; }
  .menu > ol > li > a:hover,
  .rail-list a:hover { transform: none; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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