:root {
  --ink: #000000;
  --paper: #ffffff;
  --mute: #6b6b6b;
  --line: rgba(0, 0, 0, 0.14);
  --glass: rgba(255, 255, 255, 0.58);
  --r: 28px;
}

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

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

body {
  margin: 0;
  padding: 0 0 122px;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(58vw 58vw at 10% -10%, #ececec 0%, rgba(236, 236, 236, 0) 62%),
    radial-gradient(52vw 52vw at 98% 14%, #f3f3f3 0%, rgba(243, 243, 243, 0) 64%),
    radial-gradient(46vw 46vw at 60% 92%, #efefef 0%, rgba(239, 239, 239, 0) 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

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

::selection {
  background: #000;
  color: #fff;
}

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
  border-radius: 6px;
}

div[id] {
  scroll-margin-top: 20px;
  scroll-margin-bottom: 124px;
}

/* ---- 底部固定条 ---- */
.dock {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}

.mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.mark-i {
  width: 26px;
  height: 26px;
  object-fit: contain;
  background: #fff;
  border-radius: 7px;
  padding: 2px;
}

.dock-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.dock-nav p {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dock-nav p::-webkit-scrollbar {
  display: none;
}

.dock-a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 16px;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

.dock-x {
  flex: 0 0 auto;
  width: 1px;
  height: 20px;
  margin: 0 4px;
  background: var(--line);
}

/* ---- 主体网格 ---- */
.grid {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 46px) clamp(14px, 3vw, 32px) 0;
  align-items: start;
}

.rail {
  position: sticky;
  top: 24px;
  align-self: start;
}

.rail-h {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.pip {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 2px;
  background: #000;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rail-li {
  border-bottom: 1px solid var(--line);
}

.rail-a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 2px;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.3;
  color: #111;
  transition: padding-left 0.25s ease, color 0.25s ease;
}

.rail-a:hover,
.rail-a:focus-visible {
  padding-left: 8px;
  color: #000;
}

.rail-n {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

/* ---- 头图区 ---- */
.sheet {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(16px, 3vw, 38px);
  align-items: center;
  min-height: 62vh;
  margin: 0 0 clamp(26px, 4vw, 52px);
}

.hero-fig {
  position: relative;
  margin: 0;
  height: clamp(280px, 60vh, 540px);
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(140deg, #0a0a0a 0%, #3d3d3d 55%, #dcdcdc 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

.hero-i {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.hero-cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.hero-txt {
  text-align: right;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: var(--glass);
  backdrop-filter: blur(10px);
  font-size: 14px;
  letter-spacing: 0.16em;
  animation: bob 7s ease-in-out infinite;
}

h1 {
  margin: 0.34em 0 0;
  font-size: clamp(2.1rem, 6.4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: break-word;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---- 玻璃卡 ---- */
.lede,
.prose {
  border-radius: var(--r);
  border: 1px solid rgba(0, 0, 0, 0.09);
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.06);
  padding: clamp(20px, 3vw, 42px);
}

.lede {
  margin: 0 0 clamp(20px, 3vw, 34px);
}

.sec-h {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 0.55em;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.pull {
  margin: 0;
  padding: 2px 0 2px clamp(14px, 2vw, 24px);
  border-left: 3px solid #000;
  font-size: clamp(1.15rem, 2.3vw, 1.65rem);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.pull p {
  margin: 0;
}

/* ---- 正文 ---- */
.prose {
  max-width: 100%;
}

.prose > div + div {
  margin-top: clamp(26px, 3.5vw, 44px);
  padding-top: clamp(26px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin: 0 0 0.6em;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.16;
  letter-spacing: -0.032em;
  font-weight: 700;
  text-wrap: balance;
}

.prose h3 {
  margin: 1.5em 0 0.5em;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.prose p {
  margin: 0 0 1.05em;
  max-width: 68ch;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose div:first-of-type > p:first-of-type::first-letter {
  float: left;
  padding: 0.07em 0.1em 0 0;
  font-size: 3.3em;
  line-height: 0.82;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 0.15em 0 0.15em 1.1em;
  border-left: 3px solid #000;
  font-size: 1.12em;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

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

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

.prose li {
  margin: 0.3em 0;
}

.prose figure {
  margin: 1.4em 0;
}

.prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.prose figcaption {
  margin-top: 0.55em;
  font-size: 14px;
  color: var(--mute);
  letter-spacing: 0.02em;
}

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

.prose strong {
  font-weight: 700;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 16px;
}

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

.prose pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 16px;
  background: #0a0a0a;
  color: #fff;
  font-size: 15px;
}

/* ---- 页脚 ---- */
.foot {
  max-width: 1200px;
  margin: clamp(40px, 7vw, 90px) auto 0;
  padding: clamp(20px, 3vw, 38px) clamp(14px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 40px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.foot-b {
  grid-column: 1;
  margin: 0;
  font-size: clamp(2.6rem, 10.5vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 700;
  overflow-wrap: break-word;
}

.foot-l {
  grid-column: 2;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 16px;
  max-width: 360px;
}

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

.foot-l a:hover {
  border-bottom-color: #000;
}

.foot-c {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--mute);
  letter-spacing: 0.03em;
}

/* ---- 动效 ---- */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .badge {
    animation: none;
  }
  .hero-i {
    transform: none !important;
  }
}

/* ---- 移动端 ---- */
@media (max-width: 900px) {
  body {
    padding-bottom: 112px;
  }

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

  .rail {
    position: static;
  }

  .rail-h {
    margin-bottom: 9px;
    letter-spacing: 0.14em;
  }

  .rail-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-top: 0;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .rail-list::-webkit-scrollbar {
    display: none;
  }

  .rail-li {
    border-bottom: 0;
    flex: 0 0 auto;
  }

  .rail-a {
    white-space: nowrap;
    padding: 0 12px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.66);
  }

  .rail-n {
    font-size: 11px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 14px;
  }

  .hero-fig {
    height: 26vh;
    min-height: 148px;
    max-height: 260px;
  }

  h1 {
    font-size: clamp(1.95rem, 8.4vw, 2.9rem);
  }

  .badge {
    animation: none;
    font-size: 13px;
  }

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

  .foot-l {
    grid-column: 1;
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .dock-a {
    padding: 0 10px;
    font-size: 15px;
  }

  .dock-x {
    margin: 0 2px;
  }
}

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