@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

:root{
  --ink:#172623;
  --ink-soft:#2c4038;
  --teal:#5cc6b0;
  --sand:#d4c4a8;
  --clay:#c67b5c;
  --olive:#6b7b3c;
  --paper:#f1eadd;
  --paper-2:#e7ddca;
  --line:rgba(23,38,35,.14);
  --rail:212px;
  --display:"Lexend Mega","Public Sans",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  --text:"Public Sans",system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  overflow-x:hidden;
  background:var(--paper);
  background-image:
    radial-gradient(1200px 520px at 88% -8%,rgba(198,123,92,.16),transparent 62%),
    radial-gradient(900px 480px at 4% 104%,rgba(107,123,60,.16),transparent 60%);
  color:var(--ink);
  font-family:var(--text);
  font-size:17px;
  line-height:1.72;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.22;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

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

a{color:inherit}
a:focus-visible,
button:focus-visible{outline:3px solid var(--clay);outline-offset:3px}

/* 左侧竖排导轨 */
.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail);
  z-index:30;
  display:flex;
  flex-direction:column;
  gap:26px;
  padding:22px 16px 26px;
  background:linear-gradient(180deg,#14211e 0%,#1b2f28 52%,#23392f 100%);
  color:var(--sand);
  border-right:4px solid var(--teal);
}

.mark-wrap{margin:0}

.mark{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border:2px solid rgba(212,196,168,.7);
  border-radius:4px;
  background:rgba(92,198,176,.14);
  color:var(--teal);
  font-family:var(--display);
  font-size:19px;
  font-weight:800;
  text-decoration:none;
  overflow:hidden;
  transition:background .25s ease-out,border-color .25s ease-out,transform .25s ease-out;
}
.mark img{width:100%;height:100%;object-fit:cover;display:block}
.mark:hover{background:var(--teal);border-color:var(--teal);color:var(--ink);transform:translateY(-2px)}

.rail nav{min-width:0}

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

.rail-list a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:11px 8px;
  font-size:16px;
  line-height:1.4;
  color:rgba(241,234,221,.9);
  text-decoration:none;
  border-radius:4px;
  border-bottom:2px solid rgba(212,196,168,.14);
  transition:background .22s ease-out,color .22s ease-out,transform .22s ease-out,border-color .22s ease-out;
}

.rail-list a:hover,
.rail-list a:focus-visible{
  background:var(--teal);
  color:var(--ink);
  border-bottom-color:var(--clay);
  transform:translateX(3px);
}

.rail-list i{
  font-family:var(--display);
  font-style:normal;
  font-size:11px;
  letter-spacing:.08em;
  color:var(--teal);
  opacity:.85;
}
.rail-list a:hover i{color:var(--ink);opacity:.75}

/* 主区 */
main{
  position:relative;
  z-index:1;
  margin-left:var(--rail);
}

.doc{display:block;padding-bottom:12px}

.hero{
  position:relative;
  min-height:45vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:var(--paper-2);
  border-bottom:6px solid var(--teal);
}

.hero--flat{
  background:
    radial-gradient(700px 420px at 84% 12%,rgba(92,198,176,.35),transparent 65%),
    linear-gradient(140deg,#20342c 0%,#172623 58%,#2b4234 100%);
}

.hero-media{position:absolute;inset:0}

.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(.86) contrast(1.03);
}

.hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top left,rgba(23,38,35,.94) 0%,rgba(23,38,35,.55) 46%,rgba(23,38,35,.14) 84%);
}

.hero-band{
  position:absolute;
  z-index:2;
  top:-14%;
  bottom:-14%;
  left:-8%;
  width:44%;
  pointer-events:none;
  transform:skewX(-13deg);
  mix-blend-mode:screen;
  background:linear-gradient(100deg,rgba(92,198,176,0) 0%,rgba(92,198,176,.5) 52%,rgba(92,198,176,0) 100%);
}

.hero-copy{
  position:relative;
  z-index:3;
  width:100%;
  padding:56px clamp(20px,5vw,64px) 40px;
  text-align:right;
  color:#f6f0e2;
}

.hero-copy h1{
  margin:0 0 12px;
  font-family:var(--display);
  font-size:clamp(26px,4.4vw,46px);
  line-height:1.14;
  letter-spacing:-.01em;
  font-weight:800;
  text-shadow:0 2px 22px rgba(23,38,35,.45);
}

.hero-copy h2{
  margin:0 0 8px;
  font-size:15px;
  font-weight:700;
  letter-spacing:.24em;
  color:var(--teal);
}

.hero-copy .subtitle{
  margin:0 0 0 auto;
  max-width:48ch;
  font-size:16px;
  line-height:1.6;
  color:rgba(246,240,226,.92);
}

/* 正文分区 */
section > div[id]{
  max-width:880px;
  margin:0 auto;
  padding:36px clamp(18px,4vw,34px) 32px;
  border-bottom:2px solid var(--line);
  scroll-margin-top:24px;
  transition:border-color .3s ease-out;
}

section > div[id]:hover{border-bottom-color:var(--teal)}

section > div[id]:last-child{border-bottom:0}

section > div[id] h2{
  display:inline-block;
  margin:0 0 14px;
  padding-bottom:8px;
  font-family:var(--display);
  font-size:clamp(21px,2.6vw,30px);
  line-height:1.24;
  letter-spacing:-.005em;
  font-weight:800;
  border-bottom:4px solid var(--teal);
}

section > div[id] h3{
  margin:30px 0 10px;
  font-family:var(--display);
  font-size:19px;
  line-height:1.4;
  font-weight:700;
  color:var(--ink-soft);
}

section > div[id] p{margin:0 0 16px}
section > div[id] p.subtitle{
  margin:0 0 18px;
  color:#4a5a4f;
  font-size:16px;
}

section > div[id] ul,
section > div[id] ol{
  margin:0 0 18px;
  padding-left:1.25em;
}
section > div[id] li{margin:0 0 8px}
section > div[id] li::marker{color:var(--clay)}

section > div[id] a{
  color:var(--ink);
  text-decoration:none;
  border-bottom:2px solid var(--teal);
  padding-bottom:1px;
  transition:background .2s ease-out,color .2s ease-out;
}
section > div[id] a:hover{background:var(--teal);color:var(--ink)}

section > div[id] strong{font-weight:700;color:var(--ink)}
section > div[id] em{font-style:normal;background:rgba(212,196,168,.6);padding:0 3px}

section > div[id] blockquote{
  margin:0 0 18px;
  padding:14px 18px;
  border-left:4px solid var(--clay);
  border-radius:0 4px 4px 0;
  background:rgba(212,196,168,.34);
  color:var(--ink-soft);
}
section > div[id] blockquote p:last-child{margin:0}

section > div[id] img{
  border-radius:4px;
  box-shadow:0 18px 38px -26px rgba(23,38,35,.7);
  margin:8px 0 18px;
}

section > div[id] table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 18px;
  font-size:16px;
}
section > div[id] th,
section > div[id] td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}
section > div[id] th{background:rgba(212,196,168,.42);font-weight:700}

section > div[id] code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:15px;
  background:rgba(23,38,35,.07);
  padding:1px 5px;
  border-radius:4px;
}

/* 页脚 */
.foot{
  position:relative;
  z-index:1;
  margin-left:var(--rail);
  padding:46px clamp(18px,4vw,34px) 26px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px 30px;
  align-items:start;
  background:#172623;
  color:var(--sand);
  border-top:6px solid var(--teal);
}

.foot-brand{
  grid-column:1;
  margin:0;
  font-family:var(--display);
  font-size:clamp(20px,2.4vw,26px);
  line-height:1.3;
  font-weight:800;
  color:#f4ecdc;
}

.foot-links{
  grid-column:2;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:4px 18px;
  justify-content:flex-end;
}

.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 2px;
  font-size:16px;
  color:var(--sand);
  text-decoration:none;
  border-bottom:2px solid transparent;
  transition:color .22s ease-out,border-color .22s ease-out;
}
.foot-links a:hover{color:var(--teal);border-bottom-color:var(--teal)}

.foot small{
  grid-column:1 / -1;
  display:block;
  padding-top:16px;
  border-top:1px solid rgba(212,196,168,.22);
  text-align:center;
  font-size:16px;
  color:rgba(212,196,168,.75);
}

/* 滚动出现 */
.js [data-reveal],
.js section > div[id]{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .68s ease-out,transform .68s ease-out,border-color .3s ease-out;
}

.js [data-reveal].in,
.js section > div[id].in{
  opacity:1;
  transform:none;
}

@media (max-width:880px){
  :root{--rail:0px}

  body{padding-top:62px}

  .rail{
    inset:0 0 auto 0;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    border-right:0;
    border-bottom:3px solid var(--teal);
  }

  .rail nav{flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none}
  .rail nav::-webkit-scrollbar{display:none}

  .rail-list{flex-direction:row;gap:4px;padding-bottom:2px}

  .rail-list a{
    padding:11px 10px;
    min-height:44px;
    white-space:nowrap;
    border-bottom:0;
    border-radius:4px;
    font-size:16px;
  }
  .rail-list a:hover{transform:none}
  .rail-list i{display:none}

  .mark{width:40px;height:40px;font-size:17px}

  main{margin-left:0}

  .hero{min-height:42vh}
  .hero-copy{padding:40px 20px 28px}
  .hero-copy .subtitle{max-width:none}

  section > div[id]{padding:30px 18px 26px;scroll-margin-top:78px}

  .foot{
    margin-left:0;
    grid-template-columns:1fr;
    gap:14px;
    padding:36px 18px 22px;
  }
  .foot-links{grid-column:1;justify-content:flex-start}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js [data-reveal],
  .js section > div[id]{opacity:1;transform:none}
  *{transition-duration:.001ms !important;animation-duration:.001ms !important}
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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