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

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

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

body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font: 400 17px/1.65 'Poppins', 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-family: 'Righteous', 'Poppins', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  text-wrap: balance;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.1rem; }
:focus-visible { outline: 3px solid #000; outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: .8rem 1.2rem;
  background: #000;
  color: #fff;
  text-decoration: none;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- 顶栏 ---------- */
.mast {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 2px solid #000;
  background: #fff;
}

.rail { display: flex; flex-wrap: wrap; gap: .15rem; }
.rail-l { grid-column: 1 / 4; }
.rail-r { grid-column: 10 / 12; justify-content: flex-end; }

.rail a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding: .35rem .55rem;
  font-size: .84rem;
  letter-spacing: .01em;
  text-decoration: none;
  border-radius: 18px;
}
.rail a:hover, .rail a:focus-visible { background: #000; color: #fff; }
.rail a:hover .num { opacity: .7; }
.num { font-size: .68rem; opacity: .45; }

.brand {
  grid-column: 4 / 10;
  justify-self: center;
  padding: .5rem .3rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: 'Righteous', 'Poppins', 'PingFang SC', sans-serif;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  letter-spacing: .1em;
  text-decoration: none;
  text-align: center;
}

/* ---------- 全屏菜单 ---------- */
.sheet { grid-column: 12 / 13; justify-self: end; }

.sheet summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 2px solid #000;
  border-radius: 18px;
  background: #fff;
}
.sheet summary::-webkit-details-marker { display: none; }
.sheet .bar { display: block; width: 18px; height: 2px; background: #000; }
.sheet[open] summary {
  position: fixed;
  top: .7rem;
  right: clamp(1rem, 4vw, 2.5rem);
  z-index: 40;
}

.sheet menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  margin: 0;
  padding: clamp(4.5rem, 14vh, 8rem) clamp(1rem, 6vw, 4rem);
  list-style: none;
  background: #000;
  color: #fff;
  overflow: auto;
  display: grid;
  align-content: center;
  gap: .1rem;
  animation: fade .22s both;
}
.sheet menu li { border-bottom: 1px solid #2c2c2c; }
.sheet menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: .55rem .2rem;
  font-family: 'Righteous', 'Poppins', 'PingFang SC', sans-serif;
  font-size: clamp(1.35rem, 5vw, 2.5rem);
  letter-spacing: .02em;
  text-decoration: none;
}
.sheet menu a:hover, .sheet menu a:focus-visible { color: #000; background: #fff; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 粘性锚点条 ---------- */
.strip {
  position: sticky;
  top: 0;
  z-index: 15;
  background: #fff;
  border-bottom: 2px solid #000;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.strip nav {
  display: flex;
  min-width: max-content;
  padding: 0 clamp(.4rem, 3vw, 1.6rem);
}
.strip a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  padding: .7rem .75rem;
  font-size: .81rem;
  white-space: nowrap;
  text-decoration: none;
  border-right: 1px solid #e6e6e6;
}
.strip a b { font-weight: 400; font-size: .68rem; opacity: .45; }
.strip a:hover, .strip a:focus-visible { background: #000; color: #fff; }

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 1rem;
  min-height: 70vh;
  padding: clamp(1.4rem, 4vw, 2.6rem) clamp(1rem, 4vw, 2.5rem) clamp(1.6rem, 4vw, 2.6rem);
  border-bottom: 1px solid #000;
}

.hero-media {
  position: relative;
  grid-column: 1 / 7;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid #000;
  border-radius: 18px;
}
.hero-num {
  position: absolute;
  left: .1rem;
  bottom: -.6rem;
  font-family: 'Righteous', 'Poppins', sans-serif;
  font-size: clamp(3.5rem, 13vw, 9rem);
  line-height: 1;
  letter-spacing: -.05em;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

.hero-text {
  grid-column: 7 / 13;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.1rem;
  text-align: right;
}
.hero-text h1 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.015em; }
.lede { max-width: 34ch; margin: 0; font-size: 1rem; line-height: 1.6; }

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .7rem 1.7rem;
  border: 2px solid #000;
  border-radius: 18px;
  background: #000;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.cta:hover, .cta:focus-visible { background: #fff; color: #000; }

/* ---------- 正文骨架 ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1rem, 4vw, 2.5rem);
}

.body-sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.prose { min-width: 0; }
.prose article { padding-block: clamp(1.4rem, 4vw, 2.4rem); border-top: 1px solid #e6e6e6; }
.prose article:first-child { border-top: 0; padding-top: 0; }
.prose article[id] { scroll-margin-top: 108px; }

.prose h2 { font-size: clamp(1.35rem, 3vw, 2rem); margin-top: .4rem; }
.prose h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); margin-top: 1.4rem; }
.prose hr { border: 0; border-top: 2px solid #000; margin: .7rem 0 1.3rem; }
.prose p, .prose li { font-size: 1rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .45rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border: 1px solid #000; border-radius: 18px; margin: 1.1rem 0; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: .2rem 0 .2rem 1.1rem;
  border-left: 6px solid #000;
  font-weight: 500;
}
.prose strong { font-weight: 600; }

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 64px;
  padding-left: 1rem;
  border-left: 2px solid #000;
}
.side h2 { font-size: .95rem; letter-spacing: .16em; }
.side hr { border: 0; border-top: 2px solid #000; margin: .55rem 0 1rem; }
.idx { list-style: none; margin: 0; padding: 0; }
.idx a {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 40px;
  padding: .3rem 0;
  font-size: .89rem;
  text-decoration: none;
  border-bottom: 1px solid #e6e6e6;
}
.idx a span { font-size: .7rem; opacity: .45; }
.idx a:hover, .idx a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: clamp(1.5rem, 5vw, 3rem);
  border-top: 2px solid #000;
}
.foot-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: clamp(1.8rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid #000;
}
.foot-mark {
  font-family: 'Righteous', 'Poppins', 'PingFang SC', sans-serif;
  font-size: clamp(1.8rem, 7vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.015em;
  text-decoration: none;
}
.foot-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem 1.3rem;
  border: 2px solid #000;
  border-radius: 18px;
  font-size: .9rem;
  text-decoration: none;
}
.foot-jump:hover, .foot-jump:focus-visible { background: #000; color: #fff; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid #000;
}
.foot-cols dl { margin: 0; }
.foot-cols dt { font-size: .74rem; letter-spacing: .18em; opacity: .55; margin-bottom: .4rem; }
.foot-cols dd { margin: 0; }
.foot-cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .15rem 0;
  font-size: .9rem;
  text-decoration: none;
}
.foot-cols dd a:hover, .foot-cols dd a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

.foot-base { padding: 1rem; text-align: center; }
.foot-base p { margin: 0; font-size: .82rem; opacity: .7; }

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .55s both; }
  .hero-text > *:nth-child(2) { animation-delay: .07s; }
  .hero-text > *:nth-child(3) { animation-delay: .14s; }
  .hero-num { animation: rise .6s .1s both; }

  .rv { animation: rise .5s both; }

  @supports (animation-timeline: view()) {
    .rv {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }

  .idx li { animation: rise .4s both; }
  .idx li:nth-child(2) { animation-delay: .04s; }
  .idx li:nth-child(3) { animation-delay: .08s; }
  .idx li:nth-child(4) { animation-delay: .12s; }
  .idx li:nth-child(5) { animation-delay: .16s; }
  .idx li:nth-child(6) { animation-delay: .2s; }
  .idx li:nth-child(7) { animation-delay: .24s; }
}

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

/* ---------- 断点 ---------- */
@media (max-width: 1000px) {
  .rail { display: none; }
  .brand { grid-column: 1 / 11; justify-self: start; text-align: left; }
  .sheet { grid-column: 12 / 13; }
}

@media (max-width: 860px) {
  .mast { padding: .7rem 1rem; gap: .5rem; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: .9rem;
  }
  .hero-media, .hero-text { grid-column: 1 / -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .hero-num { font-size: clamp(3rem, 17vw, 5.5rem); bottom: -.3rem; }
  .hero-text h1 { font-size: clamp(1.75rem, 8vw, 2.6rem); }
  .body-sec { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: static;
    order: 2;
    padding-left: 0;
    padding-top: 1rem;
    border-left: 0;
    border-top: 2px solid #000;
  }
  .foot-cols { gap: .6rem; }
  .foot-cols dd a { font-size: .84rem; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .foot-mark { font-size: 1.7rem; }
  .foot-jump { padding: .5rem 1rem; }
}

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