@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Orbitron:wght@700;900&display=swap');

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: #1f1f1f;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  background-color: #f5f5f5;
  background-image:
    linear-gradient(rgba(31, 31, 31, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 31, 31, .05) 1px, transparent 1px);
  background-size: 34px 34px;
}

img { max-width: 100%; }
a { color: inherit; }

.shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
}

/* 左侧竖排栏 */
.rail {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100vh;
  padding: 22px 18px 26px;
  overflow-y: auto;
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border-right: 1px solid rgba(31, 31, 31, .16);
}

.mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  text-decoration: none;
  color: #1f1f1f;
  border: 1px solid #1f1f1f;
  background: rgba(255, 255, 255, .6);
  transition: background .25s ease, color .25s ease;
}
.mark:hover { background: #1f1f1f; color: #fff; }
.mark img { display: block; width: 26px; height: 26px; object-fit: contain; }
.glyph {
  font-family: 'Orbitron', 'PingFang SC', sans-serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

.rail-title {
  margin: 0;
  font-family: 'Orbitron', 'JetBrains Mono', 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: .1em;
}
.rail hr {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid #1f1f1f;
}

.rail nav { min-width: 0; }
.rail nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rail nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 8px;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  color: #3d3d3d;
  border-left: 2px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.rail nav a:hover {
  color: #1f1f1f;
  background: rgba(31, 31, 31, .06);
  border-left-color: #1f1f1f;
}

.rail-foot { margin-top: auto; }
.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 16px;
  text-decoration: none;
  color: #1f1f1f;
  border: 1px solid #1f1f1f;
  transition: background .25s ease, color .25s ease;
}
.contact:hover { background: #1f1f1f; color: #fff; }

/* 主区 */
.stage { min-width: 0; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 116px;
  gap: 16px;
  min-height: 70vh;
  padding: 30px 30px 26px;
  align-items: stretch;
}

.hero-copy {
  grid-column: 3 / span 4;
  grid-row: 2 / span 2;
  align-self: center;
  justify-self: end;
  max-width: 40ch;
  text-align: right;
}
.hero-copy h1 {
  margin: 0 0 16px;
  font-family: 'Orbitron', 'JetBrains Mono', 'PingFang SC', sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.24;
  letter-spacing: .015em;
}
.lede {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.85;
  color: #4c4c4c;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  font-size: 16px;
  letter-spacing: .09em;
  text-decoration: none;
  color: #fff;
  background: #1f1f1f;
  border: 1px solid #1f1f1f;
  transition: background .25s ease, color .25s ease;
}
.cta:hover { background: #fff; color: #1f1f1f; }

.badge {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 3;
  padding: 7px 16px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .18em;
  color: #1f1f1f;
  border: 1px solid #1f1f1f;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 玻璃卡片 */
.tile {
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(31, 31, 31, .16);
  box-shadow: 0 4px 18px rgba(31, 31, 31, .07);
  transition: transform .35s ease, box-shadow .35s ease;
}
.tile:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(31, 31, 31, .13);
}
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }

.tile-a { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.tile-b { grid-column: 1 / span 3; grid-row: 3 / span 2; }

/* 正文区 */
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 30px;
  align-items: start;
  padding: 10px 30px 76px;
}

.prose {
  counter-reset: sec;
  max-width: 760px;
  min-width: 0;
}
.prose div {
  counter-increment: sec;
  padding-bottom: 42px;
  margin-bottom: 46px;
  border-bottom: 1px dashed rgba(31, 31, 31, .2);
  scroll-margin-top: 96px;
}
.prose div:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}
.prose div::before {
  display: block;
  margin-bottom: 10px;
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 16px;
  letter-spacing: .22em;
  color: #8c8c8c;
  content: counter(sec, decimal-leading-zero);
}

.prose h2 {
  margin: 0 0 12px;
  font-family: 'Orbitron', 'JetBrains Mono', 'PingFang SC', sans-serif;
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: .03em;
}
.prose h3 {
  margin: 30px 0 10px;
  font-size: 20px;
  line-height: 1.5;
}
.prose hr {
  margin: 0 0 22px;
  border: 0;
  border-top: 2px solid #1f1f1f;
}
.prose p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.95;
}
.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.prose li {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.9;
}
.prose a {
  color: #1f1f1f;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { background: rgba(31, 31, 31, .09); }
.prose strong { font-weight: 700; }
.prose figure { margin: 24px 0; }
.prose img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(31, 31, 31, .16);
}
.prose blockquote {
  margin: 24px 0;
  padding: 6px 0 6px 18px;
  color: #3a3a3a;
  border-left: 3px solid #1f1f1f;
}
.prose table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 16px;
}
.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid rgba(31, 31, 31, .22);
}

.tile-side {
  position: sticky;
  top: 22px;
  height: 340px;
}

/* 页脚 */
.base {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  padding: 26px 30px 30px;
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(31, 31, 31, .18);
}
.base-cta {
  margin: 0;
  font-family: 'Orbitron', 'JetBrains Mono', 'PingFang SC', sans-serif;
  font-size: 22px;
}
.base-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-bottom: 2px;
  text-decoration: none;
  border-bottom: 2px solid #1f1f1f;
}
.base-copy { font-size: 16px; color: #5a5a5a; }
.base-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.base-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.base-links a:hover { border-bottom-color: #1f1f1f; }

/* 动效 */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.rail nav li { animation: rise .45s cubic-bezier(.22, .8, .3, 1) both; }
.rail nav li:nth-child(1) { animation-delay: .03s; }
.rail nav li:nth-child(2) { animation-delay: .07s; }
.rail nav li:nth-child(3) { animation-delay: .11s; }
.rail nav li:nth-child(4) { animation-delay: .15s; }
.rail nav li:nth-child(5) { animation-delay: .19s; }
.rail nav li:nth-child(6) { animation-delay: .23s; }
.rail nav li:nth-child(7) { animation-delay: .27s; }
.hero-copy { animation: rise .6s ease both; }
.tile-a { animation: rise .6s .1s ease both; }
.tile-b { animation: rise .6s .2s ease both; }
.prose div { animation: rise .5s ease both; }

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

@media (max-width: 1100px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .tile-side { position: static; height: 220px; order: -1; }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }

  .rail {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: auto;
    padding: 8px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(31, 31, 31, .18);
  }
  .mark { flex: 0 0 auto; width: 38px; height: 38px; }
  .rail-title { flex: 0 0 auto; font-size: 16px; white-space: nowrap; }
  .rail hr { display: none; }
  .rail nav { flex: 1 1 auto; }
  .rail nav ul { flex-direction: row; gap: 4px; }
  .rail nav a {
    min-height: 44px;
    padding: 8px 10px;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .rail nav a:hover { border-left-color: transparent; border-bottom-color: #1f1f1f; }
  .rail-foot { flex: 0 0 auto; margin-top: 0; margin-left: auto; }
  .contact { min-height: 40px; padding: 6px 12px; }

  .hero {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 12px;
    min-height: 0;
    padding: 22px 16px 24px;
  }
  .hero-copy {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
    max-width: none;
    text-align: left;
  }
  .badge { top: 14px; right: 16px; padding: 6px 12px; }
  .tile-a { grid-column: 1 / 2; grid-row: auto; height: 108px; }
  .tile-b { grid-column: 2 / 3; grid-row: auto; height: 108px; }

  .board { padding: 8px 16px 56px; }
  .tile-side { height: 190px; }

  .base {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 22px 16px 26px;
  }
  .base-links { gap: 16px; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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