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

:root {
  --white: #ffffff;
  --gray: #f5f5f5;
  --ink: #1f1f1f;
  --ink-2: #4d4d4d;
  --ink-3: #7c7c7c;
  --line: #e6e6e6;
  --r: 18px;
  --e1: 0 1px 2px rgba(31, 31, 31, .05), 0 3px 10px rgba(31, 31, 31, .05);
  --e2: 0 4px 12px rgba(31, 31, 31, .07), 0 14px 28px rgba(31, 31, 31, .06);
  --e3: 0 10px 30px rgba(31, 31, 31, .10), 0 26px 56px rgba(31, 31, 31, .08);
  --e4: 0 20px 60px rgba(31, 31, 31, .16), 0 44px 90px rgba(31, 31, 31, .12);
  --f: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  padding-bottom: 6rem;
  background: var(--gray);
  color: var(--ink);
  font: 400 17px/1.75 var(--f);
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.28; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: 0 0 .35rem; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- 底部固定条 ---------- */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 34px rgba(31, 31, 31, .09);
}

.brand {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .35rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .05em;
}

.bar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
  box-shadow: var(--e2);
  transition: transform .18s ease, box-shadow .18s ease;
}

.bar-cta:hover { transform: translateY(-2px); box-shadow: var(--e3); }

.burger {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: 0 .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--e1);
  cursor: pointer;
}

.burger-i {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, background .2s ease;
}

.burger-i::before,
.burger-i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease;
}

.burger-i::before { top: -5px; }
.burger-i::after { top: 5px; }

body.menu-open .burger-i { background: transparent; }
body.menu-open .burger-i::before { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger-i::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 全屏遮罩菜单 ---------- */
.dock {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .26s ease, transform .3s cubic-bezier(.2, .7, .3, 1), visibility .26s;
}

body.menu-open .dock {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dock p {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 6.4rem;
}

.dock a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: .35rem .1rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
  font-weight: 500;
  transition: padding-left .2s ease, color .2s ease;
}

.dock a:hover { padding-left: .5rem; color: var(--ink-2); }
.dock a:last-child { border-bottom: 0; }

/* ---------- 首屏 ---------- */
.stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 64vh;
  padding: 7.5rem 1rem 1.3rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white), var(--gray));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  will-change: transform;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, rgba(31, 31, 31, .10), rgba(31, 31, 31, .34));
}

.hero-media.is-plain {
  background:
    repeating-linear-gradient(135deg, rgba(31, 31, 31, .045) 0 2px, transparent 2px 12px),
    linear-gradient(150deg, #ffffff, #ededed 55%, #e2e2e2);
}

.hero-media.is-plain::after { background: linear-gradient(185deg, rgba(31, 31, 31, .04), rgba(31, 31, 31, .12)); }

.hero-band {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -2px;
  z-index: 2;
  height: 16%;
  background: linear-gradient(90deg, var(--white), var(--gray));
  transform: skewY(-2.6deg);
  transform-origin: right bottom;
}

.hero-card {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 44rem;
  padding: 1.55rem 1.25rem 1.35rem;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--e4);
}

.hero-card h1 {
  font-size: clamp(1.85rem, 6.2vw, 3.15rem);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.hero-desc {
  max-width: 42ch;
  margin: .7rem 0 1.05rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
  box-shadow: var(--e2);
  transition: transform .18s ease, box-shadow .18s ease;
}

.hero-go:hover { transform: translateY(-2px); box-shadow: var(--e3); }

/* ---------- 主体 ---------- */
main {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1rem 1.6rem;
}

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.3rem;
  max-width: 72rem;
  margin: 0 auto;
}

.sheet { min-width: 0; }

.prose > div {
  position: relative;
  z-index: 1;
  margin: 0 0 1.15rem;
  padding: 1.5rem 1.15rem 1.15rem;
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--e1);
  scroll-margin-top: 1.5rem;
  transition: box-shadow .25s ease, transform .25s ease;
}

.prose > div:hover { box-shadow: var(--e2); transform: translateY(-2px); }
.prose > div:last-child { margin-bottom: 0; }

.prose > div > p:last-child,
.prose > div > ul:last-child,
.prose > div > ol:last-child { margin-bottom: .25rem; }

.prose h2 {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin: .1rem 0 .85rem;
  font-size: clamp(1.28rem, 3.6vw, 1.68rem);
}

.prose h2::before {
  content: "";
  flex: 0 0 auto;
  width: .48rem;
  height: .48rem;
  margin-bottom: .2rem;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}

.prose h3 {
  margin: 1.3rem 0 .6rem;
  font-size: 1.14rem;
}

.prose h3::before {
  content: "";
  display: inline-block;
  width: .55rem;
  height: .55rem;
  margin-right: .45rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  vertical-align: baseline;
}

.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); border-bottom: 1px solid var(--line); }
.prose a:hover { border-bottom-color: var(--ink); }
.prose img { margin: 1rem 0; border-radius: 14px; box-shadow: var(--e1); }

.prose blockquote {
  margin: 1rem 0;
  padding: .8rem 1rem;
  border-left: 3px solid var(--ink);
  border-radius: 0 12px 12px 0;
  background: var(--gray);
}

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

.prose table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 1rem;
}

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

/* ---------- 右侧栏 ---------- */
.rail {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.rail-card {
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--e3);
}

.rail-t {
  display: block;
  margin: 0 0 .55rem;
  font-size: 1rem;
  letter-spacing: .1em;
}

.rail-t span { border-bottom: 2px solid var(--ink); padding-bottom: 2px; }

.rail-list { display: flex; flex-direction: column; margin: 0; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .2rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 1rem;
  transition: color .18s ease, padding-left .18s ease;
}

.rail-list a:last-child { border-bottom: 0; }
.rail-list a:hover { color: var(--ink); padding-left: .35rem; }

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  padding: 1.9rem 1rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.2rem;
  max-width: 72rem;
  margin: 0 auto;
}

.foot-ad {
  font-style: normal;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .05em;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links li { margin: 0; }

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-3);
  font-size: 1rem;
}

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

.foot-big {
  max-width: 72rem;
  margin: 1.1rem auto .2rem;
  color: #e9e9e9;
  font-size: clamp(2.5rem, 13.5vw, 6.5rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.045em;
  white-space: nowrap;
  overflow: hidden;
}

.foot-copy {
  max-width: 72rem;
  margin: 0 auto;
  color: var(--ink-3);
  font-size: 1rem;
}

/* ---------- 滚动显现 ---------- */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}

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

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .stage { padding: 8.5rem 1.6rem 1.8rem; min-height: 70vh; }
  .hero-card { padding: 2rem 1.9rem 1.7rem; }
  main { padding: 2rem 1.6rem 2rem; }
  .prose > div { padding: 2rem 1.9rem 1.5rem; margin-bottom: 1.5rem; }
  .foot { padding: 2.2rem 1.6rem 1.8rem; }
}

@media (min-width: 940px) {
  .wrap { grid-template-columns: minmax(0, 1fr) 17rem; gap: 2rem; align-items: start; }
  .rail { position: sticky; top: 1.6rem; }
  .hero-card { margin-left: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .prose > div, .bar-cta, .hero-go, .rail-list a, .dock a { transition: none; }
  .prose > div:hover, .bar-cta:hover, .hero-go:hover { transform: none; }
}

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