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

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

:root {
  --red: #ff0000;
  --violet: #8b00ff;
  --ink: #261717;
  --txt: #f7f0f0;
  --dim: #c9b6bd;
  --glass: rgba(255, 255, 255, 0.09);
  --glass-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.18);
  --line-2: rgba(255, 255, 255, 0.1);
  --blur: blur(16px);
}

html {
  background: #120a0a;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 106px;
  font-family: 'Share Tech Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--txt);
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58vw 52vw at 12% -6%, rgba(255, 0, 0, 0.42), transparent 62%),
    radial-gradient(52vw 48vw at 92% 4%, rgba(139, 0, 255, 0.48), transparent 64%),
    radial-gradient(86vw 62vw at 50% 110%, rgba(139, 0, 255, 0.26), transparent 66%),
    linear-gradient(180deg, #2e1616 0%, #1a0f0f 58%, #130b0b 100%);
}

img { max-width: 100%; height: auto; }
a { color: #ffc0c0; text-underline-offset: 3px; text-decoration-color: rgba(255, 0, 0, 0.55); }
a:hover { color: #fff; }
p { margin: 0 0 16px; }
button, input { font: inherit; }

.skip {
  position: absolute;
  left: 14px;
  top: -60px;
  z-index: 40;
  padding: 12px 18px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(120deg, var(--red), var(--violet));
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: top 0.18s ease;
}
.skip:focus { top: 0; }

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  min-height: 45vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 22px;
  text-align: right;
}

.hero h1 {
  margin: 0;
  font-size: clamp(29px, 6.2vw, 52px);
  line-height: 1.18;
  letter-spacing: 0.005em;
  color: #fff;
  background: linear-gradient(96deg, #ffffff 0%, #ffb0b0 45%, #cf9fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lede {
  margin: 12px 0 0;
  max-width: 54ch;
  margin-left: auto;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.7;
}

.hero-art {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--glass-2);
  box-shadow: 0 30px 70px -46px #000;
}
.hero-art img {
  display: block;
  width: 100%;
  max-height: 38vh;
  object-fit: cover;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 42px;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: 22px;
  align-items: start;
}

.pane {
  min-width: 0;
  padding: 26px 24px 32px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 26px 64px -34px #000, inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.tag-h,
.pane h2,
.side h2,
.foot h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
}

.tag-h::before,
.pane h2::before,
.foot h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--red), var(--violet));
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
  vertical-align: 1px;
}

hr {
  height: 1px;
  border: 0;
  margin: 0 0 18px;
  background: linear-gradient(90deg, var(--red), var(--violet) 42%, rgba(255, 255, 255, 0.08) 90%);
  opacity: 0.9;
}

.pane article[id] { scroll-margin-top: 26px; }
.pane article[id] + article[id] {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.pane h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 500;
  color: #ffd8d8;
}

.pane ul, .pane ol { margin: 0 0 16px; padding-left: 1.35em; }
.pane li { margin: 0 0 8px; }
.pane strong { color: #fff; }
.pane img { border-radius: 16px; border: 1px solid var(--line-2); }
.pane blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 2px solid var(--violet);
  border-radius: 0 14px 14px 0;
  background: var(--glass-2);
  color: var(--dim);
}
.pane table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 16px; }
.pane th, .pane td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); text-align: left; }

.side {
  position: sticky;
  top: 18px;
  padding: 20px 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--glass-2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 54px -36px #000, inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.side-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 12px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
}
.side-list a:hover { background: rgba(255, 255, 255, 0.11); color: #fff; }

.totop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}
.totop:hover { background: rgba(255, 255, 255, 0.15); }

.foot {
  display: grid;
  grid-template-columns: 1.25fr 1.1fr 0.9fr;
  gap: 18px;
  max-width: 1140px;
  margin: 0 auto 26px;
  padding: 24px 20px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--glass-2);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 24px 60px -44px #000;
}

.foot-col { min-width: 0; }
.foot-brand { margin: 0 0 8px; font-size: 18px; color: #fff; letter-spacing: 0.08em; }
.foot-kw { margin: 0; color: var(--dim); font-size: 16px; line-height: 1.65; }

.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 4px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
}
.foot-list a:hover { color: #fff; }

.sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.sub input {
  flex: 1 1 120px;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
  font-size: 16px;
}
.sub input::placeholder { color: #a99ba2; }
.sub input:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.sub button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(120deg, var(--red), var(--violet));
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.sub-tip { margin: 0; width: 100%; font-size: 16px; color: #ffd0d0; }
.sub-tip:empty { display: none; }

.foot-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  color: var(--dim);
  font-size: 16px;
}
.copy { margin: 0; }
.foot-mini { display: flex; flex-wrap: wrap; gap: 4px; }
.foot-mini a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 8px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
}
.foot-mini a:hover { color: #fff; }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(26, 14, 14, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -20px 44px -28px #000;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.dock .spacer { flex: 1; }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--red), var(--violet));
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  box-shadow: 0 0 22px -6px rgba(255, 0, 0, 0.85);
}
.cta:hover { color: #fff; filter: brightness(1.08); }

.menu-btn { position: relative; z-index: 32; }
.menu-btn > summary {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.menu-btn > summary::-webkit-details-marker { display: none; }
.menu-btn > summary:hover { background: rgba(255, 255, 255, 0.16); }
.menu-btn[open] > summary { background: rgba(255, 255, 255, 0.2); }
.bars {
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.menu-btn:not([open]) > menu { display: none; }
.menu-btn > menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 26px 18px 116px;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  overflow-y: auto;
  background: rgba(19, 10, 10, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.menu-btn > menu li { list-style: none; }
.menu-btn > menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}
.menu-btn > menu a:hover,
.menu-btn > menu a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--line);
}

.rv { opacity: 1; }
.reveal-on .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-on .rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; }
  .foot { grid-template-columns: 1fr; gap: 16px; }
  .hero { min-height: 0; padding-top: 42px; }
  .hero-art img { max-height: 32vh; }
}

@media (max-width: 560px) {
  body { font-size: 16px; padding-bottom: 100px; }
  .pane { padding: 22px 16px 28px; border-radius: 24px; }
  .brand { font-size: 16px; }
  .cta { padding: 0 13px; }
  .dock { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .foot { margin-bottom: 20px; padding: 20px 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on .rv { opacity: 1; transform: none; transition: none; }
  .skip { transition: none; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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