@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --paper2: #f5f5f5;
  --mute: #6a6a6a;
  --soft: #e2e2e2;
  --e1: 0 1px 0 rgba(31, 31, 31, .09);
  --e2: 0 5px 16px rgba(31, 31, 31, .10);
  --e3: 0 14px 36px rgba(31, 31, 31, .17);
  --e4: 0 26px 64px rgba(31, 31, 31, .26);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .01em;
  overflow-x: clip;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(31, 31, 31, .045) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(31, 31, 31, .035) 0 1px, transparent 1px 28px);
  opacity: .9;
}

body.lock { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
p { margin: 0 0 14px; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.anchor { display: block; height: 0; }

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- 顶部两行 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 6px 14px 10px;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  border-bottom: 1px solid var(--ink);
  box-shadow: var(--e2);
}

.brandrow {
  display: flex;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  max-width: 100%;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .07em;
}

.brand .mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: var(--e1);
}

.bname { overflow-wrap: anywhere; }

.menurow { margin-top: 6px; }

.burger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: .22em;
  box-shadow: var(--e1);
  transition: box-shadow .25s ease, transform .25s ease;
}

.burger:hover { box-shadow: var(--e2); transform: translateY(-1px); }
.burger:active { transform: translateY(0); }

.bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
}

/* ---------- 全屏遮罩菜单 ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(31, 31, 31, .38);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.scrim.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 76px 22px 30px;
  overflow-y: auto;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--e4);
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.2, .85, .2, 1);
}

.drawer.open { transform: translateX(0); }

.dlist { list-style: none; margin: 0; padding: 0; }

.dlist li {
  border-bottom: 1px solid var(--soft);
  opacity: 0;
  transform: translateX(22px);
  transition: opacity .34s ease, transform .34s ease;
}

.dlist li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 8px 4px;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: .05em;
}

.dlist li a::after { content: '\2192'; opacity: .5; }

.drawer.open .dlist li { opacity: 1; transform: translateX(0); }
.drawer.open .dlist li:nth-child(1) { transition-delay: .06s; }
.drawer.open .dlist li:nth-child(2) { transition-delay: .11s; }
.drawer.open .dlist li:nth-child(3) { transition-delay: .16s; }
.drawer.open .dlist li:nth-child(4) { transition-delay: .21s; }
.drawer.open .dlist li:nth-child(5) { transition-delay: .26s; }
.drawer.open .dlist li:nth-child(6) { transition-delay: .31s; }
.drawer.open .dlist li:nth-child(7) { transition-delay: .36s; }

.closer {
  align-self: flex-start;
  margin-top: 22px;
  min-height: 44px;
  padding: 0 20px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: .16em;
  box-shadow: var(--e1);
}

/* ---------- 主体 ---------- */
main { flex: 1 0 auto; padding-bottom: 44px; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 14px;
}

.stage { padding-top: 14px; }

.hero {
  position: relative;
  z-index: 3;
  height: 45vh;
  min-height: 292px;
  max-height: 440px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(148deg, #1f1f1f 0%, #414141 58%, #1a1a1a 100%);
  box-shadow: var(--e4);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%);
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(178deg, rgba(31, 31, 31, .16) 0%, rgba(31, 31, 31, .82) 100%);
}

.hero-in {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;
  z-index: 2;
  padding: 0 16px;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 7vw, 2.35rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: .02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .55);
}

.body {
  position: relative;
  z-index: 4;
  margin: -30px 0 0;
  padding: 22px 16px 30px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 10px;
}

.body::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translate(7px, 7px);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 10px;
}

.lead {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.lead h2 {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  font-size: 1.26rem;
  letter-spacing: .06em;
}

.subtitle {
  margin: 0;
  color: var(--mute);
  font-size: 16px;
  letter-spacing: .04em;
}

.body h2 {
  margin: 36px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--ink);
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .03em;
}

.body h3 {
  margin: 24px 0 8px;
  font-size: 1.02rem;
  font-weight: 500;
}

.body ul, .body ol { margin: 0 0 14px; padding-left: 20px; }
.body li { margin-bottom: 6px; }

.body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.body div[id] { scroll-margin-top: 128px; }

.body div + div {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px dashed var(--soft);
}

.body blockquote {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--paper2);
  border: 1px solid var(--soft);
  border-radius: 10px;
}

.body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.body th, .body td { padding: 8px 10px; border: 1px solid var(--soft); text-align: left; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 8px;
  padding: 30px 14px 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--e3);
}

.fgrid {
  display: grid;
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto;
}

.fbrand {
  margin: 0;
  font-size: 15px;
  letter-spacing: .08em;
}

.faddr {
  margin-top: 6px;
  font-style: normal;
  color: #c8c8c8;
  font-size: 15px;
}

.sub { display: flex; flex-wrap: wrap; gap: 8px; }

.sub input {
  flex: 1 1 130px;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 10px;
}

.sub input::placeholder { color: #9a9a9a; }

.sub button {
  min-height: 44px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #fff;
  border-radius: 10px;
  cursor: pointer;
}

.flist {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 14px;
}

.flist a {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 15px;
  color: #e8e8e8;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.flist a:hover { color: #fff; }

.fbase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1040px;
  margin: 22px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .26);
  font-size: 15px;
}

.copy { margin: 0; color: #d6d6d6; }

.top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  border-bottom: 1px solid #fff;
}

/* ---------- 滚动显现 ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2, .75, .25, 1);
}

.js .rv.in { opacity: 1; transform: translateY(0); }

/* ---------- 断点 ---------- */
@media (min-width: 720px) {
  .topbar { padding: 8px 22px 12px; }
  .brand { font-size: 16px; }
  .wrap { padding: 0 22px; }
  .stage { padding-top: 20px; }
  .hero { min-height: 360px; }
  .hero-in { padding: 0 32px; bottom: 66px; }
  .body { margin-top: -38px; padding: 30px 34px 38px; }
  .body h2 { font-size: 1.24rem; }
  .lead h2 { font-size: 1.5rem; }
  .fgrid { grid-template-columns: 1.05fr 1.15fr .9fr; gap: 30px; }
  .flist { columns: 1; }
}

@media (min-width: 1024px) {
  .wrap { padding: 0 26px; }
  .body { padding: 36px 46px 44px; }
  h1 { font-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .dlist li { opacity: 1; transform: none; transition: none; }
  .drawer { transition: none; }
  .scrim { transition: none; }
}

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