@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --r: 18px;
  --max: 1240px;
  --pixel: 'Press Start 2P', 'VT323', ui-monospace, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 Helvetica, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: .01em;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.14; letter-spacing: -.025em; }
p { margin: 0 0 1em; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute;
  top: -4rem;
  left: .5rem;
  z-index: 90;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: var(--r);
}
.skip:focus { top: .5rem; }

/* ---------- 头部：细条 / 品牌行 / 菜单行 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.strip {
  margin: 0;
  padding: .45rem 1rem;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  letter-spacing: .3em;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.brand .logo {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
}

.burger {
  min-height: 44px;
  padding: .5rem 1rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  cursor: pointer;
  font-size: 1rem;
}
.burger:hover { background: var(--ink); color: var(--paper); }

.bar { border-top: 1px solid var(--ink); }
.bar ol {
  display: flex;
  gap: .4rem;
  padding: .45rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.bar ol::-webkit-scrollbar { display: none; }
.bar li { flex: 0 0 auto; }
.bar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .2rem .9rem;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  text-decoration: none;
  font-size: .95rem;
  white-space: nowrap;
}
.bar a:hover { background: var(--ink); color: var(--paper); }

/* ---------- 全屏遮罩菜单 ---------- */
.ov {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow-y: auto;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .32s ease, transform .32s ease, visibility .32s;
}
.ov.open { opacity: 1; visibility: visible; transform: none; }

.ovtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--paper);
}
.ovbrand { font-size: .95rem; letter-spacing: .3em; }
.ov .close {
  min-height: 44px;
  padding: .5rem 1rem;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--paper);
  border-radius: var(--r);
  cursor: pointer;
}
.ov nav { padding-top: 1.2rem; }
.ov ol { display: grid; gap: .4rem; }
.ov a {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 52px;
  padding: .5rem .2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  text-decoration: none;
  font-size: 1.1rem;
}
.ov a b { font-family: var(--pixel); font-size: .62rem; opacity: .7; }

/* ---------- 主体骨架 ---------- */
main { padding: 0 1rem 3rem; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.side { order: 2; }
.col { order: 1; min-width: 0; }

/* ---------- 侧栏 ---------- */
.side {
  display: grid;
  gap: .7rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}
.side h2 {
  font-size: 1rem;
  letter-spacing: .16em;
  line-height: 1.6;
}
.side h2 span {
  display: inline-block;
  padding-bottom: .15rem;
  border-bottom: 2px solid var(--ink);
}
.side h2.totop { letter-spacing: .04em; }
.side h2.totop span { border-bottom: 0; padding-bottom: 0; }
.side h2 a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 .9rem;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  text-decoration: none;
}
.side h2 a:hover { background: var(--ink); color: var(--paper); }

.side ol { display: grid; gap: .45rem; }
.side a {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .35rem .85rem;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  text-decoration: none;
  font-size: .95rem;
}
.side a b { font-family: var(--pixel); font-size: .58rem; }
.side a:hover { background: var(--ink); color: var(--paper); }

/* ---------- 正文 ---------- */
section { display: grid; gap: 1rem; min-width: 0; }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 70vh;
  padding: 5rem 1.4rem 1.6rem 0;
  border-bottom: 2px solid var(--ink);
  scroll-margin-top: 9.5rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 8.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.04em;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 16em;
}
.hero .num {
  position: absolute;
  top: .6rem;
  right: 0;
  font-family: var(--pixel);
  font-size: clamp(2.6rem, 12vw, 7rem);
  line-height: 1;
  color: rgba(0, 0, 0, .13);
  pointer-events: none;
}

section > article {
  border: 1px solid var(--ink);
  border-radius: var(--r);
  padding: 1.4rem 1.2rem;
  scroll-margin-top: 9.5rem;
  min-width: 0;
}

section > article h2,
section > article h3,
section > article h4 {
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  margin-bottom: .6rem;
}
section h2 > span,
section h3 > span { display: inline-block; }

section p { max-width: 64ch; }
section ul,
section ol {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
section ol { list-style: decimal; }
section li { margin-bottom: .35rem; }
section a { text-underline-offset: 3px; }
section strong { font-weight: 700; }
section blockquote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--ink);
}
section table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: .95rem;
}
section th,
section td {
  border: 1px solid var(--ink);
  padding: .5rem .6rem;
  text-align: left;
  vertical-align: top;
}
section img { border-radius: var(--r); }

/* ---------- 页脚 ---------- */
footer {
  border-top: 2px solid var(--ink);
  padding: 2rem 1rem 1.2rem;
}
.fwrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}
address {
  font-style: normal;
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  word-break: break-word;
}
.fwrap ul { display: grid; gap: .1rem; }
.fwrap a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.fwrap a:hover { border-bottom-color: var(--ink); }

.fbar {
  max-width: var(--max);
  margin: 1.6rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .9rem;
}
.fbar p { margin: 0; }
.fbar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 .9rem;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  text-decoration: none;
}
.fbar a:hover { background: var(--ink); color: var(--paper); }

/* ---------- 动效 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.js [data-reveal].in { opacity: 1; transform: none; }

.side li { transition-delay: calc(var(--d, 0) * 0ms); }
.side li:nth-child(1) { transition-delay: .04s; }
.side li:nth-child(2) { transition-delay: .08s; }
.side li:nth-child(3) { transition-delay: .12s; }
.side li:nth-child(4) { transition-delay: .16s; }
.side li:nth-child(5) { transition-delay: .2s; }
.side li:nth-child(6) { transition-delay: .24s; }
.side li:nth-child(7) { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ov { transition: none; }
}

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .fwrap { grid-template-columns: 2fr 1fr; align-items: start; }
  .hero { padding-right: 3rem; }
  section > article { padding: 1.8rem 1.6rem; }
}

@media (min-width: 900px) {
  .wrap {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
  }
  .side {
    grid-column: 1 / span 3;
    order: 0;
    position: sticky;
    top: 10rem;
  }
  .col { grid-column: 4 / -1; order: 0; }
  .strip { padding-left: 2rem; }
  .brandrow { padding: .6rem 2rem; }
  .bar ol { padding: .45rem 2rem; }
  main { padding-left: 2rem; padding-right: 2rem; }
  footer { padding-left: 2rem; padding-right: 2rem; }
  .hero { min-height: 70vh; padding-top: 7rem; }
}

@media (min-width: 1100px) {
  .side { position: sticky; }
  .hero h1 { max-width: 11em; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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