@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --paper: #fdfbf7;
  --wash: #f5f5f5;
  --ink: #1a1a1a;
  --line: #e0e0e0;
  --gray: #565656;
  --rail: 62px;
  --pad: 18px;
  --radius: 28px;
}

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

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

body {
  margin: 0;
  padding-left: var(--rail);
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  transition: none;
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

a {
  color: inherit;
}

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

/* ---------- 左侧固定栏 ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--ink);
  min-height: 56px;
}

.brand-logo {
  display: block;
  width: 30px;
  height: auto;
  filter: grayscale(1);
}

.brand-mark {
  display: inline-block;
  font-family: "Bebas Neue", "Source Sans 3", sans-serif;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.08em;
  border: 1px solid var(--ink);
  padding: 5px 5px 4px;
}

.brand-name {
  writing-mode: vertical-rl;
  letter-spacing: 0.22em;
  font-size: 14px;
  font-weight: 600;
}

.burger {
  writing-mode: vertical-rl;
  width: 44px;
  min-height: 96px;
  padding: 14px 0;
  border: 1px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.burger:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- 右上主按钮 ---------- */
.cta {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 31;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.cta:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* ---------- 全屏遮罩菜单 ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 18px var(--pad) 40px;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
}

.menu[hidden] {
  display: none;
}

.menu :focus-visible {
  outline-color: var(--paper);
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(253, 251, 247, 0.2);
  padding-bottom: 14px;
}

.menu-brand {
  font-size: 16px;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.menu-close {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(253, 251, 247, 0.65);
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.menu-close:hover {
  background: var(--paper);
  color: var(--ink);
}

.menu-nav ul {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.menu-nav li {
  animation: rise 0.18s both;
  animation-delay: calc(var(--i) * 26ms);
}

.menu-nav a {
  display: block;
  padding: 15px 2px;
  min-height: 48px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid rgba(253, 251, 247, 0.16);
}

.menu-nav a:hover {
  padding-left: 10px;
  background: rgba(253, 251, 247, 0.08);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  min-height: 45vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.hero-in {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 70px 16px 44px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: "Bebas Neue", "Source Sans 3", sans-serif;
  font-size: clamp(30px, 6.6vw, 62px);
  line-height: 1.06;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.hero-num {
  position: absolute;
  right: 6px;
  bottom: -10px;
  z-index: 1;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(88px, 24vw, 210px);
  line-height: 0.8;
  opacity: 0.18;
  color: var(--paper);
}

/* ---------- 布局 ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px var(--pad) 44px;
}

.side {
  background: var(--wash);
  border-radius: var(--radius);
  padding: 20px 18px;
  align-self: start;
}

.side-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

hr {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 10px 0 12px;
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 6px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px dotted #d5d5d5;
}

.side-list a:hover {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: var(--ink);
}

.doc {
  min-width: 0;
  max-width: 780px;
}

.lede {
  margin: 0 0 26px;
  padding: 4px 0 4px 14px;
  border-left: 3px solid var(--ink);
  font-size: 17px;
  line-height: 1.75;
}

/* ---------- 正文 ---------- */
.doc-body {
  overflow-wrap: break-word;
  font-family: Georgia, "Songti SC", "Source Han Serif SC", serif;
}

.doc-body > section {
  scroll-margin-top: 22px;
}

.doc-body > section + section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.doc-body h2 {
  margin: 0 0 14px;
  font-family: "Bebas Neue", "Source Sans 3", sans-serif;
  font-size: clamp(23px, 4.4vw, 32px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.doc-body h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.doc-body p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.85;
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.doc-body li {
  margin: 0 0 9px;
  line-height: 1.8;
}

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

.doc-body a:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.doc-body blockquote {
  margin: 0 0 18px;
  padding: 16px 20px;
  background: var(--wash);
  border-radius: var(--radius);
}

.doc-body blockquote p:last-child {
  margin-bottom: 0;
}

.doc-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 18px;
  border-radius: 14px;
  filter: grayscale(1);
}

.doc-body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 16px;
}

.doc-body th,
.doc-body td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.doc-body pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--wash);
  border-radius: 14px;
}

.doc-body hr {
  margin: 28px 0;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 14px;
  padding: 26px var(--pad) 22px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 34px;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1180px;
  margin: 0 auto;
}

.foot-addr {
  font-style: normal;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.foot-nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin: 0;
}

.foot-nav dt {
  width: 100%;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.foot-nav dd {
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-nav a:hover {
  border-bottom-color: var(--ink);
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: 1180px;
  margin: 16px auto 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.copy {
  margin: 0;
  font-size: 14px;
  color: var(--gray);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-links a:hover {
  border-bottom-color: var(--ink);
}

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  :root {
    --rail: 84px;
    --pad: 30px;
  }

  .brand-logo {
    width: 36px;
  }

  .layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 40px;
    padding-top: 34px;
  }

  .side {
    position: sticky;
    top: 20px;
  }

  .menu-nav ul {
    margin-top: 40px;
  }

  .menu-nav a {
    font-size: 26px;
    padding: 18px 2px;
  }
}

@media (min-width: 1080px) {
  :root {
    --pad: 44px;
  }

  .layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .hero {
    min-height: 45vh;
  }
}

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

  .menu-nav li {
    animation: none;
  }
}

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