@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --ink: #172623;
  --ink-2: #1e332d;
  --ink-3: #12201d;
  --jade: #5cc6b0;
  --sand: #d4c4a8;
  --clay: #c67b5c;
  --olive: #6b7b3c;
  --paper: #e9e2d5;
  --line: rgba(212, 196, 168, 0.2);
  --line-hard: rgba(212, 196, 168, 0.38);
  --mono: 'Share Tech Mono', 'Fira Code', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'Fira Code', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.82;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='170' height='170' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

img { max-width: 100%; }

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

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

/* ---- 顶部细条 ---- */
.ledge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 28px;
  padding: 4px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--ink);
  background: linear-gradient(92deg, var(--jade), var(--olive) 58%, var(--clay));
  transition: opacity 0.25s ease-out;
}

.ledge-dot {
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ---- 顶栏 ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(19, 32, 29, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.mark {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 8px 4px 0;
  text-decoration: none;
  color: var(--sand);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.brand-img {
  height: 28px;
  width: auto;
  display: block;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 12px;
  background: rgba(212, 196, 168, 0.06);
  border: 1px solid var(--line-hard);
  border-radius: 4px;
  color: var(--sand);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.2s ease-out, color 0.2s ease-out;
}

.burger:hover { background: var(--jade); color: var(--ink); border-color: var(--jade); }

.burger-bars {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
  display: block;
}

.burger-bars::before,
.burger-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.burger-bars::before { top: -5px; }
.burger-bars::after { top: 5px; }

/* ---- 锚点条 ---- */
.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 14px 9px;
  max-width: 1180px;
  margin: 0 auto;
  scrollbar-width: none;
  transition: opacity 0.25s ease-out;
}

.chips::-webkit-scrollbar { display: none; }

.chips a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--sand);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  background: rgba(212, 196, 168, 0.04);
  transition: background 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out;
}

.chips a:hover { background: var(--jade); color: var(--ink); border-color: var(--jade); }

/* ---- 全屏抽屉 ---- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 150px 20px 60px;
  background: rgba(17, 29, 26, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease-out, visibility 0.28s ease-out;
}

body.nav-open .drawer { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }
body.nav-open .ledge,
body.nav-open .chips { opacity: 0; }

.drawer nav { width: 100%; max-width: 520px; }
.drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }

.drawer li a {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 56px;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(212, 196, 168, 0.15);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 19px;
  letter-spacing: 0.05em;
  transition: color 0.2s ease-out, padding-left 0.25s ease-out;
}

.drawer li a b {
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--jade);
}

.drawer li a:hover,
.drawer li a:focus-visible { color: var(--jade); padding-left: 16px; }

/* ---- 首屏 ---- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 60px 20px 110px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 50% -15%, #26443d 0%, #172623 52%, #101d1a 100%);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5) saturate(0.82) contrast(1.04);
}

.hero-in { position: relative; z-index: 3; max-width: 900px; }

.hero h1 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(33px, 7.4vw, 76px);
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: #f3ece0;
  text-shadow: 0 3px 26px rgba(9, 18, 16, 0.7);
}

.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--jade);
}

.hero-kicker span { position: relative; padding: 0 2px; }

.hero-kicker span::before,
.hero-kicker span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jade));
}

.hero-kicker span::before { right: 100%; margin-right: 12px; }
.hero-kicker span::after { left: 100%; margin-left: 12px; transform: scaleX(-1); }

.hero-desc {
  margin: 22px auto 0;
  max-width: 34em;
  font-size: 16.5px;
  color: #c9c2b3;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 30px;
  padding: 10px 26px;
  border-radius: 4px;
  background: var(--jade);
  color: #10201c;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  box-shadow: 0 12px 26px rgba(9, 20, 17, 0.45);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(9, 20, 17, 0.55); }

.hero-band {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -2px;
  height: 76px;
  z-index: 2;
  background: linear-gradient(97deg, var(--jade), var(--olive) 48%, var(--sand));
  clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
}

/* ---- 主体骨架 ---- */
.shell {
  display: grid;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 16px 70px;
}

main { min-width: 0; }

/* ---- 左栏 ---- */
.rail { font-family: var(--mono); min-width: 0; }

.rail-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--sand);
}

.rail-title span {
  position: relative;
  padding-left: 14px;
}

.rail-title span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 1px;
  background: var(--jade);
}

.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.rail li a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 8px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  color: #cbc3b2;
  text-decoration: none;
  font-size: 13.5px;
  transition: background 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out;
}

.rail li a b {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--jade);
}

.rail li a:hover {
  background: rgba(92, 198, 176, 0.11);
  color: #ffffff;
  border-left-color: var(--jade);
}

.rail-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 6px 12px;
  border: 1px dashed var(--line-hard);
  border-radius: 4px;
  color: var(--sand);
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: 0.14em;
}

.rail-top:hover { border-color: var(--jade); color: var(--jade); }

/* ---- 正文 ---- */
.prose {
  max-width: 820px;
  padding: 24px 18px 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(212, 196, 168, 0.07), rgba(212, 196, 168, 0.02));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 18px 44px rgba(8, 18, 15, 0.32);
  overflow-wrap: break-word;
}

.prose > section {
  padding: 40px 0;
  border-top: 1px dashed var(--line);
  scroll-margin-top: 140px;
}

.prose > section:first-of-type { border-top: 0; padding-top: 4px; }
.prose > section:last-of-type { padding-bottom: 4px; }

.prose h2,
.prose h3 {
  font-family: var(--mono);
  line-height: 1.32;
  color: #f2ebdf;
}

.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  font-size: clamp(22px, 3.4vw, 31px);
  font-weight: 400;
}

.prose h2 > span { position: relative; padding-left: 18px; display: inline-block; }

.prose h2 > span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--jade), var(--olive));
}

.prose h3 {
  margin: 30px 0 12px;
  font-size: clamp(18px, 2.4vw, 21px);
  font-weight: 400;
  padding-left: 14px;
  border-left: 2px solid var(--clay);
}

.prose h3 > span { display: inline-block; }

.prose p { margin: 0 0 16px; color: #ddd6c8; }

.prose a { color: var(--jade); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #9fe4d6; }

.prose ul,
.prose ol { margin: 0 0 18px; padding-left: 22px; }

.prose li { margin: 0 0 8px; color: #d8d1c3; }

.prose li::marker { color: var(--jade); }

.prose strong { color: #f4eee3; }

.prose blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--jade);
  border-radius: 0 4px 4px 0;
  background: rgba(92, 198, 176, 0.08);
  color: #e2dcce;
}

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

.prose img {
  display: block;
  width: 100%;
  height: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.prose table {
  display: block;
  width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th { background: rgba(212, 196, 168, 0.09); color: var(--sand); font-weight: 500; }

.prose code {
  font-family: var(--mono);
  font-size: 0.94em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(212, 196, 168, 0.14);
}

.prose pre {
  margin: 22px 0;
  padding: 15px 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(9, 19, 16, 0.6);
}

.prose pre code { background: none; padding: 0; }

.prose hr { border: 0; border-top: 1px dashed var(--line); margin: 30px 0; }

/* ---- 页脚 ---- */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 34px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: #94a79f;
}

.foot p { margin: 0; }

.foot small a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--sand);
  text-decoration: none;
}

.foot small a:hover { border-color: var(--jade); color: var(--jade); }

/* ---- 断点 ---- */
@media (max-width: 899px) {
  .rail nav ul {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .rail nav ul::-webkit-scrollbar { display: none; }
  .rail li a { white-space: nowrap; border-left: 0; border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px; }
  .rail-title,
  .rail-top { display: none; }

  .shell { padding-top: 34px; gap: 18px; }

  .hero h1 { font-size: clamp(30px, 8.6vw, 46px); }
  .hero-desc { font-size: 16px; }
  .prose { padding: 20px 15px 34px; }
  .prose > div { padding: 32px 0; scroll-margin-top: 132px; }
}

@media (min-width: 900px) {
  .shell {
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 44px;
    padding-top: 76px;
  }

  .rail { position: sticky; top: 148px; align-self: start; }

  .prose { padding: 38px 42px 52px; }

  .drawer nav { max-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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