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

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000000;
  --paper: #fffdf6;
  --line: 3px solid #000000;
  --shadow: 5px 5px 0 #000000;
}

* { box-sizing: border-box; }

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

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  padding-bottom: 82px;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, .mark span {
  font-family: 'Cormorant Garamond', 'Libre Baskerville', Georgia, 'Songti SC', 'STSong', serif;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }

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

::selection { background: var(--blue); color: #000; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* 角标品牌 */
.chrome { position: relative; z-index: 60; }

.mark {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--blue);
  border: var(--line);
  box-shadow: 4px 4px 0 #000;
  font-size: 24px;
  text-decoration: none;
  color: #000;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mark img { width: 30px; height: 30px; display: block; }
.mark:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }

/* 底部胶囊导航 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--paper);
  border-top: var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
}

.dock p {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dock p::-webkit-scrollbar { display: none; }

.dock a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  background: #ffffff;
  border: var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.dock a:hover { background: var(--blue); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 #000; }

/* 首屏 */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 44px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 112px 22px 104px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  background: var(--blue);
  border-top: var(--line);
  clip-path: polygon(0 64%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero-copy { max-width: 34ch; }

.hero h1 {
  font-size: clamp(38px, 6.4vw, 74px);
  margin: 0 0 18px;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
  max-width: 32ch;
  margin: 0 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--red);
  border: var(--line);
  box-shadow: var(--shadow);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #000; }

.hero-art { margin: 0; }
.hero-img {
  display: block;
  width: 100%;
  border: var(--line);
  box-shadow: 10px 10px 0 #000;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-art:hover .hero-img { transform: translate(-3px, -3px); box-shadow: 13px 13px 0 #000; }

/* 正文区 */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 40px;
  align-items: start;
  padding: 56px 0 70px;
  border-top: var(--line);
}

.prose { min-width: 0; }

.prose > div {
  padding-bottom: 30px;
  margin-bottom: 34px;
  border-bottom: var(--line);
}
.prose > div:last-child { border-bottom: 0; margin-bottom: 0; }

.prose h2 {
  position: relative;
  padding-left: 20px;
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 14px;
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .16em;
  bottom: .16em;
  width: 10px;
  background: var(--blue);
  border: 2px solid #000;
}

.prose h3 {
  font-size: 22px;
  margin: 26px 0 10px;
}

.prose p { line-height: 1.8; margin: 0 0 16px; max-width: 70ch; }

.prose a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.prose a:hover { background: var(--blue); }

.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 0 0 8px; line-height: 1.75; }

.prose blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 8px solid var(--red);
  background: #eef7ff;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose figure { margin: 0 0 20px; }
.prose img { border: var(--line); box-shadow: 6px 6px 0 #000; }
.prose figcaption { font-size: 16px; color: #333; margin-top: 8px; }

.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.prose th, .prose td { border: 2px solid #000; padding: 9px; text-align: left; }
.prose th { background: var(--blue); }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #ececec;
  padding: 1px 5px;
  font-size: 15px;
}
.prose pre { overflow-x: auto; padding: 14px; border: var(--line); background: #f4f4f4; }

.prose time { font-weight: 700; }

/* 侧栏 */
.rail {
  position: sticky;
  top: 22px;
  background: var(--blue);
  border: var(--line);
  box-shadow: 6px 6px 0 #000;
  padding: 18px;
}

.rail-title { font-size: 27px; margin: 0 0 6px; }

.subtitle {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #000;
}

.rail-list { list-style: none; margin: 0 0 16px; padding: 0; }
.rail-list li { margin: 0 0 8px; }
.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  background: var(--paper);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 3px 3px 0 #000;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.rail-list a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #000; background: var(--red); }

.rail-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: #000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.rail-top:hover { background: var(--red); color: #000; }

/* 页脚 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--red);
  border-top: var(--line);
  padding: 16px 22px;
}
.foot p { margin: 0; font-weight: 700; }
.foot small { font-size: 16px; }
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

/* 动效 */
@media (prefers-reduced-motion: no-preference) {
  .rail-list li {
    animation: rise .42s ease-out both;
  }
  .rail-list li:nth-child(1) { animation-delay: .02s; }
  .rail-list li:nth-child(2) { animation-delay: .07s; }
  .rail-list li:nth-child(3) { animation-delay: .12s; }
  .rail-list li:nth-child(4) { animation-delay: .17s; }
  .rail-list li:nth-child(5) { animation-delay: .22s; }
  .rail-list li:nth-child(6) { animation-delay: .27s; }
  .hero-copy > * {
    animation: rise .5s ease-out both;
  }
  .hero-copy h1 { animation-delay: .04s; }
  .hero-copy .hero-lead { animation-delay: .12s; }
  .hero-copy .btn { animation-delay: .2s; }
}

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

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

/* 移动端 */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 30px;
    padding: 92px 18px 78px;
  }
  .hero-copy { max-width: none; }
  .hero-lead { max-width: 40ch; }
  .hero::after { height: 38px; }
  .hero-img { box-shadow: 7px 7px 0 #000; }
  .wrap { padding: 0 18px; }
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 40px 0 56px;
  }
  .rail { position: static; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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