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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  scroll-padding-bottom: 96px;
}

body {
  margin: 0;
  padding-bottom: 92px;
  background: #000;
  color: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lock { overflow: hidden; }

img { max-width: 100%; height: auto; }

a { color: #fff; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- 顶部固定底栏 ---------- */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
}

.brand .mark-img,
.hero-mark .mark-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.hero-mark .mark-img {
  width: 30px;
  height: 30px;
}

.glyph {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.bar-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bar-nav::-webkit-scrollbar { display: none; }

.bar-nav p {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.bar-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.bar-nav a:hover,
.bar-nav a:focus-visible {
  background: #fff;
  color: #000;
}

.menu-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- 全屏遮罩菜单 ---------- */
.ovl {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background: #000;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ovl.open {
  opacity: 1;
  visibility: visible;
}

.ovl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.ovl-brand {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ovl-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.ovl-nav {
  margin: auto 0;
  overflow-y: auto;
}

.ovl-nav p {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.ovl-nav a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: clamp(22px, 6vw, 36px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.ovl-nav a:hover { color: rgba(255, 255, 255, 0.55); }

/* ---------- 版心与栅格 ---------- */
.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
  padding-top: 20px;
}

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

.col { min-width: 0; }

@media (min-width: 960px) {
  .wrap { width: min(1180px, 100% - 72px); padding-top: 32px; }
  .lead {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 56px;
  }
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 45vh;
  padding: 32px 0 22px;
  overflow: hidden;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-bg {
  position: absolute;
  top: 50%;
  right: -0.06em;
  transform: translateY(-50%);
  font-size: clamp(64px, 18vw, 190px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.06);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
  will-change: transform;
}

.hero-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 100%;
}

.hero-mark {
  display: inline-flex;
  padding: 7px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.hero-h {
  margin: 0;
  font-size: clamp(30px, 7vw, 58px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.hero-deck {
  margin: 14px 0 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- 正文 ---------- */
.body { padding-top: 8px; }

.body > section {
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  scroll-margin-top: 24px;
}

.body > section:first-child { border-top: 0; padding-top: 28px; }

.body h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.body h3 {
  margin: 28px 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.body p,
.body ul,
.body ol {
  max-width: 64ch;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.8);
}

.body ul,
.body ol { padding-left: 20px; }

.body li { margin: 6px 0; }

.body strong { color: #fff; font-weight: 600; }

.body a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.body blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid #fff;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.body blockquote p { margin: 0 0 8px; max-width: 48ch; }

.body figure { margin: 26px 0; }

.body figure img { border-radius: 10px; display: block; }

.body figcaption {
  margin-top: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
}

.body > section:first-child > p:first-of-type::first-letter {
  float: left;
  padding: 6px 10px 0 0;
  font-size: 58px;
  font-weight: 700;
  line-height: 0.82;
}

.body hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin: 28px 0;
}

@media (min-width: 760px) {
  .body blockquote { padding-left: 26px; }
  .body > section:first-child > p:first-of-type { font-size: 18px; }
}

/* ---------- 右侧栏 ---------- */
.rail {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  align-self: start;
}

@media (min-width: 960px) {
  .rail {
    position: sticky;
    top: 24px;
  }
}

.rail-kicker {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.5);
}

.rail-h {
  margin: 6px 0 14px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}

.rail-list a:hover { color: #fff; }

.rail-list .n {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- 页脚 ---------- */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  width: min(1180px, 100% - 40px);
  margin: 48px auto 0;
  padding: 22px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
}

footer section { margin: 0; }

footer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

footer a {
  display: inline-block;
  padding: 10px 4px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

@media (min-width: 720px) {
  footer { width: min(1180px, 100% - 72px); }
  footer p { font-size: 14px; }
}

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

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ovl, .bar-nav a { transition: none; }
  .hero-bg { transform: translateY(-50%); }
}

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