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

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

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

body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: #000; }
:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.dock :focus-visible, footer :focus-visible { outline-color: #fff; }

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #000;
  color: #fff;
  border-top: 1px solid #000;
}

.dock .brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.dock .mark {
  width: 9px; height: 9px;
  background: #fff;
  border-radius: 2px;
  margin-right: 8px;
  flex: none;
}

.menu { position: relative; justify-self: end; }
.menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #fff;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary i {
  display: block;
  width: 15px; height: 2px;
  background: #fff;
  box-shadow: 0 5px 0 #fff, 0 -5px 0 #fff;
  transition: transform .18s ease;
}
.menu[open] summary { background: #fff; color: #000; }
.menu[open] summary i { background: #000; box-shadow: 0 5px 0 #000, 0 -5px 0 #000; }

.menu menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  margin: 0;
  padding: 8px;
  list-style: none;
  width: min(76vw, 292px);
  max-height: 62vh;
  overflow: auto;
  background: #fff;
  color: #000;
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(0,0,0,.30);
}
.menu menu li + li { border-top: 1px solid #ededed; }
.menu menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 16px;
  color: #000;
  text-decoration: none;
}
.menu menu a:hover { background: #f2f2f2; }
.menu .ico {
  width: 14px; height: 14px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.cta:hover { background: #dcdcdc; }

/* ---------- 主栅格 ---------- */
main { display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.col { min-width: 0; }

/* ---------- 顶部堆叠区 ---------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-height: 45vh;
  padding: 22px 0 6px;
}
.kicker {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 8.4vw, 66px);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 700;
}
.lead {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(18px, 3vw, 21px);
  line-height: 1.5;
  color: #111;
}
.lead::first-letter {
  float: left;
  font-family: Georgia, "Songti SC", "Times New Roman", serif;
  font-size: 3.1em;
  line-height: .84;
  padding: 7px 10px 0 0;
  font-weight: 700;
}

.hero-fig {
  margin: 8px 0 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(0,0,0,.16);
  background: #ededed;
}
.hero-fig .hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: translateY(var(--py, 0)) scale(1.06);
  will-change: transform;
}

.band {
  height: 12px;
  background: #000;
  transform: skewY(-0.7deg);
  transform-origin: left center;
  margin: 26px -20px 26px;
}

/* ---------- 正文 ---------- */
.prose { min-width: 0; }
.prose > article {
  padding: 32px 0 10px;
  border-top: 1px solid rgba(0,0,0,.16);
  scroll-margin-top: 24px;
}
.prose > article:first-of-type { border-top: 0; }

.prose h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4.6vw, 36px);
  line-height: 1.18;
  letter-spacing: -.028em;
  font-weight: 700;
}
.prose h3 {
  margin: 26px 0 8px;
  font-size: clamp(20px, 3.4vw, 24px);
  line-height: 1.25;
  letter-spacing: -.018em;
  font-weight: 700;
}
.prose h4 { margin: 22px 0 8px; font-size: 18px; letter-spacing: -.01em; }

hr {
  border: 0;
  border-top: 1px solid #000;
  margin: 0 0 18px;
}

.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose li::marker { font-weight: 700; }
.prose a {
  color: #000;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose strong { font-weight: 700; }

.prose blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 6px solid #000;
  background: #f4f4f4;
  border-radius: 0 18px 18px 0;
  font-family: Georgia, "Songti SC", "Times New Roman", serif;
  font-size: clamp(19px, 3vw, 22px);
  line-height: 1.45;
  letter-spacing: -.01em;
}
.prose blockquote p:last-child { margin: 0; }

.prose figure { margin: 0 0 20px; }
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}
.prose figcaption {
  margin-top: 8px;
  font-size: 16px;
  color: #4a4a4a;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 16px;
}
.prose th, .prose td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid #e3e3e3;
  vertical-align: top;
}
.prose th { font-weight: 700; }
.prose th:first-child, .prose td:first-child { padding-left: 0; }

.prose pre {
  margin: 0 0 20px;
  padding: 16px;
  overflow-x: auto;
  background: #000;
  color: #fff;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.55;
}
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- 右栏 ---------- */
.rail {
  min-width: 0;
  border-top: 3px solid #000;
  padding-top: 14px;
}
.rail h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2em;
}
.rail hr { margin: 0 0 14px; }
.rail-list { margin: 0 0 22px; padding: 0; list-style: none; }
.rail-list li + li { border-top: 1px solid #ececec; }
.rail-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  color: #000;
  text-decoration: none;
  font-size: 16px;
}
.rail-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rail-list i {
  font-style: normal;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: #8a8a8a;
  flex: none;
  min-width: 16px;
}
.rail .quote {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #000;
  font-family: Georgia, "Songti SC", "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -.01em;
}

/* ---------- 页脚 ---------- */
footer {
  background: #000;
  color: #fff;
  padding: 44px 20px calc(104px + env(safe-area-inset-bottom));
}
.f-in { max-width: 1180px; margin: 0 auto; }

.f-cta {
  display: grid;
  gap: 16px;
  padding-bottom: 30px;
  border-bottom: 1px solid #383838;
}
.f-big {
  margin: 0;
  font-size: clamp(28px, 6vw, 50px);
  line-height: 1.06;
  letter-spacing: -.032em;
  font-weight: 700;
}
.f-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.f-btn:hover { background: #dcdcdc; }

.f-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 28px 0;
}
footer dl { margin: 0; }
footer dt {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: .18em;
  color: #9b9b9b;
}
footer dd { margin: 0; }
footer dd a, footer dd span {
  display: inline-block;
  min-height: 40px;
  padding: 8px 0;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}
footer dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-brand dd:last-child span { color: #b9b9b9; }

.f-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #383838;
  font-size: 16px;
  color: #c9c9c9;
}
.f-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #fff;
}

/* ---------- 动效 ---------- */
.js .reveal,
.js .prose > article,
.js .rail { opacity: 0; transform: translateY(16px); }
.js .in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .65s cubic-bezier(.2,.7,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .prose > article, .js .rail { opacity: 1; transform: none; transition: none; }
  .hero-fig .hero-img { transform: none; }
}

/* ---------- 断点 ---------- */
@media (min-width: 560px) {
  .f-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) {
  .prose > article > ul,
  .prose > article > ol { columns: 2; column-gap: 36px; }
  .prose > article > ul li,
  .prose > article > ol li { break-inside: avoid; }
}

@media (min-width: 900px) {
  .dock { padding: 10px 24px calc(10px + env(safe-area-inset-bottom)); gap: 16px; }
  .wrap {
    grid-template-columns: minmax(0, 1fr) 288px;
    gap: 60px;
    padding: 0 32px 72px;
  }
  .band { margin-left: -32px; margin-right: -32px; }
  .rail { position: sticky; top: 24px; }
  footer { padding-left: 32px; padding-right: 32px; }
}

@media (min-width: 1180px) {
  .hero { min-height: 42vh; }
}

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