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

:root {
  --ink: #000000;
  --paper: #f2fff8;
  --green: #00ff80;
  --blue: #0000ff;
  --muted: #a9ffd5;
  --side: 224px;
  --strip: 36px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
  transition: none;
}

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(0, 255, 128, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 128, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--paper);
  font-family: Figtree, "Noto Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--green);
  text-underline-offset: 3px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 12px;
}

hr {
  border: 0;
  height: 4px;
  background: var(--green);
  margin: 26px 0;
}

h2 + hr {
  height: 6px;
  margin: 0 0 22px;
  background: linear-gradient(90deg, var(--green) 0 46%, var(--blue) 46% 100%);
}

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

/* ---------- 顶部细条 ---------- */
.strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--strip);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  background: var(--blue);
  border-bottom: 2px solid var(--green);
  z-index: 60;
}

.strip-tag {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-bars {
  margin-left: auto;
  flex: 0 0 120px;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 16px);
}

/* ---------- 左侧固定栏 ---------- */
.shell {
  display: block;
}

.side {
  position: fixed;
  top: var(--strip);
  left: 0;
  bottom: 0;
  width: var(--side);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px 28px;
  background: var(--ink);
  border-right: 3px solid var(--green);
  overflow-y: auto;
  z-index: 55;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--blue);
  color: var(--paper);
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  word-break: break-all;
}

.brand img {
  height: 32px;
  width: auto;
}

.side-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--green);
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.side-nav a:hover,
.side-nav a:focus-visible {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

/* ---------- 主体 ---------- */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: start;
  padding-left: var(--side);
  padding-top: var(--strip);
}

section {
  padding: 0 clamp(16px, 3vw, 40px);
  min-width: 0;
}

/* ---------- 英雄区 ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  min-height: 45vh;
  padding: clamp(20px, 4vw, 44px) 0;
  border-bottom: 6px solid var(--green);
}

.hero-media {
  border: 3px solid var(--blue);
  background: var(--ink);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
}

.slab {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, var(--blue) 0 14px, var(--ink) 14px 28px);
}

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

.hero-txt h1 {
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 16px;
  overflow-wrap: break-word;
}

.lede {
  margin: 0 0 0 auto;
  max-width: 40ch;
  color: var(--muted);
  font-size: 17px;
}

.band {
  height: 16px;
  margin: 0 -10px;
  background: var(--blue);
  border-top: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: skewY(-1.1deg);
}

/* ---------- 正文 ---------- */
.body {
  padding: 0 0 64px;
}

div[id] {
  scroll-margin-top: calc(var(--strip) + 18px);
}

.body div {
  padding: 34px 0 14px;
  border-bottom: 2px solid rgba(0, 255, 128, 0.28);
}

.body div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.body h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  letter-spacing: -0.025em;
}

.body h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-top: 26px;
}

.body p {
  max-width: 68ch;
  margin: 0 0 18px;
}

.body ul,
.body ol {
  max-width: 68ch;
  padding-left: 22px;
  margin: 0 0 20px;
}

.body li {
  margin: 0 0 8px;
}

.body strong {
  color: var(--green);
}

.body blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 6px solid var(--blue);
  background: rgba(0, 0, 255, 0.18);
  max-width: 66ch;
}

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

.body figure {
  margin: 22px 0;
  border: 3px solid var(--green);
}

.body figure figcaption {
  padding: 8px 10px;
  font-size: 16px;
  border-top: 3px solid var(--green);
}

.body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 16px;
}

.body th,
.body td {
  border: 2px solid var(--green);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.body th {
  background: var(--blue);
  color: #fff;
}

.body img {
  border: 3px solid var(--green);
  margin: 0 0 18px;
}

/* ---------- 侧栏 ---------- */
aside {
  position: sticky;
  top: var(--strip);
  align-self: start;
  border-left: 3px solid var(--blue);
  padding: 28px 14px 40px;
  min-width: 0;
}

aside h2 {
  font-size: 16px;
  letter-spacing: 0.18em;
  margin: 0 0 10px;
}

aside hr {
  margin: 0 0 16px;
  height: 3px;
  background: var(--blue);
}

.idx {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.idx a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-left: 4px solid var(--green);
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
}

.idx a:hover,
.idx a:focus-visible {
  background: var(--blue);
  border-left-color: var(--green);
  color: #fff;
}

/* ---------- 页脚 ---------- */
footer {
  margin-left: var(--side);
  border-top: 4px solid var(--green);
  background: var(--ink);
  padding: 16px clamp(16px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.foot-mark a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.foot-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
}

.foot-nav a:hover,
.foot-nav a:focus-visible {
  color: var(--ink);
  background: var(--green);
  padding: 0 6px;
}

.foot-copy {
  font-size: 16px;
  color: var(--muted);
}

/* ---------- 入场错落 ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.side-nav li,
.idx li {
  animation: rise 0.28s steps(4, end) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

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

/* ---------- 移动端 ---------- */
@media (max-width: 880px) {
  .strip {
    position: static;
    height: auto;
    min-height: 40px;
    padding: 8px 12px;
  }

  .strip-bars {
    flex-basis: 64px;
  }

  .side {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 3px solid var(--green);
    padding: 12px;
    gap: 12px;
    overflow: visible;
  }

  .side-nav ol {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .side-nav li {
    flex: 0 0 auto;
  }

  .side-nav a {
    padding: 8px 14px;
    white-space: nowrap;
  }

  main {
    display: block;
    padding-left: 0;
    padding-top: 0;
  }

  section {
    padding: 0 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px 0;
    border-bottom: 4px solid var(--green);
  }

  .hero-txt {
    order: -1;
    text-align: left;
  }

  .lede {
    margin-left: 0;
    text-align: left;
    max-width: none;
  }

  .hero-media img {
    max-height: 260px;
  }

  .band {
    margin: 0 -16px;
  }

  aside {
    position: static;
    border-left: 0;
    border-top: 4px solid var(--blue);
    padding: 24px 16px 36px;
  }

  footer {
    margin-left: 0;
  }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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