:root {
  --ink: #000000;
  --blue: #3bb1ff;
  --red: #ff5252;
  --paper: #fffdf6;
  --shade: #f0ece0;
  --soft: #d6efff;
  --bw: 3px;
  --hard: 6px 6px 0 #000000;
  --hard-sm: 4px 4px 0 #000000;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Outfit', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
  text-rendering: optimizeLegibility;
}

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

img {
  max-width: 100%;
}

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

/* ---------- 顶部 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: var(--bw) solid var(--ink);
}

.brandrow {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--blue);
  border-bottom: var(--bw) solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 14px 5px 6px;
  background: #fff;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--hard-sm);
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand:hover {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--red);
  border: var(--bw) solid var(--ink);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  flex: none;
}

img.mark {
  object-fit: cover;
}

.bname {
  text-transform: uppercase;
}

.menurow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  background: #fff;
}

.nav {
  min-width: 0;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mItem {
  position: relative;
}

.mLink {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: var(--bw) solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mLink:hover,
.mLink:focus-visible {
  background: var(--blue);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.hasSub > .mLink::after {
  content: '▾';
  margin-left: 6px;
  font-size: 11px;
}

.mSub {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 10;
  display: none;
  min-width: 180px;
  margin: 4px 0 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--hard);
}

.hasSub:hover .mSub,
.hasSub:focus-within .mSub {
  display: block;
}

.mSub a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.mSub a:hover,
.mSub a:focus-visible {
  background: var(--red);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--red);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--hard-sm);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- 版心 ---------- */
.sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  align-items: start;
  gap: 36px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 0;
}

.doc {
  min-width: 0;
}

/* ---------- 首屏 ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  min-height: 70vh;
  padding: 32px 0 40px;
  text-align: right;
}

.chip {
  display: inline-block;
  margin-right: 4px;
  padding: 6px 14px;
  background: var(--blue);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--hard-sm);
  font-weight: 900;
  letter-spacing: 0.14em;
  transform: rotate(-2.5deg);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6.6vw, 4.4rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 20ch;
}

/* ---------- 正文 ---------- */
div > article {
  scroll-margin-top: 170px;
  padding: 34px 0 10px;
  border-top: var(--bw) solid var(--ink);
}

div > article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

div h2 {
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 10px solid var(--blue);
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  line-height: 1.18;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

div h3 {
  margin: 26px 0 10px;
  font-size: 1.2rem;
  font-weight: 900;
}

div h4 {
  margin: 20px 0 8px;
  font-size: 1.05rem;
  font-weight: 900;
}

div p {
  margin: 0 0 16px;
}

.subtitle {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 16px;
  color: #2b2b2b;
}

div ul,
div ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

div li {
  margin: 0 0 8px;
}

div a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

div a:hover {
  background: var(--blue);
}

div strong,
div b {
  font-weight: 900;
  background: var(--soft);
  padding: 0 3px;
}

div img {
  display: block;
  height: auto;
  margin: 0 0 20px;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--hard);
}

div figure {
  margin: 0 0 20px;
}

div figcaption {
  font-size: 16px;
  font-weight: 700;
}

div blockquote {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: #fff;
  border: var(--bw) solid var(--ink);
  border-left: 12px solid var(--red);
  box-shadow: var(--hard-sm);
}

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

div table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  background: #fff;
  border: var(--bw) solid var(--ink);
  font-size: 16px;
}

div th,
div td {
  padding: 10px 12px;
  border: 2px solid var(--ink);
  text-align: left;
  vertical-align: top;
}

div th {
  background: var(--blue);
  font-weight: 900;
}

div code {
  padding: 1px 5px;
  border: 2px solid var(--ink);
  background: var(--shade);
  font-size: 15px;
}

div hr {
  height: 0;
  margin: 26px 0;
  border: 0;
  border-top: var(--bw) solid var(--ink);
}

.card {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: #fff;
  border: var(--bw) solid var(--ink);
  border-bottom-width: 8px;
  border-radius: 4px;
  box-shadow: var(--hard-sm);
}

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 168px;
  padding: 16px;
  background: #fff;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--hard);
  border-radius: 4px;
}

.rail h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail .subtitle {
  margin-bottom: 12px;
}

.railNav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.railNav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  background: var(--shade);
  border: var(--bw) solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.railNav a:hover,
.railNav a:focus-visible {
  background: var(--blue);
}

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 14px;
  max-width: 1180px;
  margin: 56px auto 0;
  padding: 26px 20px 44px;
  border-top: 4px solid var(--ink);
}

.fbrand {
  margin: 0;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.flinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: 0;
}

.flinks a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  background: #fff;
  border: var(--bw) solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.flinks a:hover {
  background: var(--blue);
}

.fcta {
  grid-column: 1 / -1;
  margin: 6px 0 0;
}

.fcta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  background: var(--blue);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--hard);
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fcta a:hover {
  background: var(--red);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.fnote {
  grid-column: 1 / -1;
  font-size: 16px;
  font-weight: 700;
}

/* ---------- 动效 ---------- */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .sheet {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 18px;
  }

  .rail {
    position: static;
    order: 2;
  }

  .hero {
    min-height: 56vh;
    padding: 22px 0 30px;
  }

  div > article {
    scroll-margin-top: 210px;
  }

  .mSub {
    position: static;
    display: block;
    margin: 4px 0 8px;
    min-width: 0;
    padding: 4px;
    box-shadow: none;
    border-width: 2px;
  }

  .hasSub > .mLink::after {
    content: '';
  }

  .menurow {
    justify-content: flex-start;
    padding-bottom: 12px;
  }

  .cta {
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .brandrow {
    padding: 8px 14px;
  }

  .menurow {
    padding: 8px 14px 12px;
  }

  .sheet {
    padding-left: 14px;
    padding-right: 14px;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 14px;
    padding-right: 14px;
  }

  .flinks {
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  div img,
  div table,
  .card {
    box-shadow: 4px 4px 0 var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .brand:hover,
  .cta:hover,
  .fcta a:hover {
    transform: none;
  }
}

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