:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --ink: #1f1f1f;
  --ink-soft: #5c5c5c;
  --ink-faint: #8a8a8a;
  --line: #e6e6e6;
  --line-strong: #d0d0d0;
  --radius: 18px;
  --e1: 0 1px 2px rgba(31, 31, 31, 0.06);
  --e2: 0 6px 16px rgba(31, 31, 31, 0.08);
  --e3: 0 14px 32px rgba(31, 31, 31, 0.1);
  --e4: 0 26px 54px rgba(31, 31, 31, 0.16);
  --font: "Poppins", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: radial-gradient(1100px 520px at 82% -8%, #ffffff 0%, rgba(255, 255, 255, 0) 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- 顶部导航 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--e1);
  transition: box-shadow 0.35s ease;
}

html.is-scrolled .masthead {
  box-shadow: var(--e3);
}

.masthead-inner {
  padding: 9px max(clamp(16px, 3.5vw, 44px), calc((100% - 1120px) / 2)) 6px;
}

.nav-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.pill:hover {
  background: var(--bg);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.pill-cta {
  margin-left: 6px;
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  box-shadow: var(--e2);
}

.pill-cta:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  transform: translateY(-2px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  z-index: 2;
}

.brand-dot {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(31, 31, 31, 0.2);
  flex: none;
}

.rail-nav {
  margin-top: 7px;
  border-top: 1px solid var(--line);
  padding-top: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.rail-nav ol {
  display: flex;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: max-content;
}

.rail-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.rail-nav a:hover {
  color: var(--ink);
  background: var(--bg);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  min-height: 70vh;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 5vw, 60px) max(clamp(16px, 3.5vw, 44px), calc((100% - 1120px) / 2))
    clamp(64px, 8vw, 100px);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(40px, 7vw, 78px);
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 8%, 100% 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-layer {
  position: absolute;
  inset: -12% 0 auto 0;
  height: 130%;
  z-index: 0;
  background: radial-gradient(620px 320px at 76% 22%, #ececec 0%, rgba(236, 236, 236, 0) 70%),
    radial-gradient(420px 240px at 12% 82%, #f2f2f2 0%, rgba(242, 242, 242, 0) 72%);
  will-change: transform;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 700;
  max-width: 15em;
}

.hero-lead {
  margin: 0 0 26px;
  max-width: 26em;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.75;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  box-shadow: var(--e3);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--e4);
}

.hero-figure {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--e4);
  transform: rotate(-1deg) translateY(-6px);
}

.hero-frame {
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(31, 31, 31, 0.06);
}

.hero-slides {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(150deg, #f0f0f0, #e2e2e2);
}

.hero-slides .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slides .shot.is-on {
  opacity: 1;
}

.hero-blank {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, #efefef 0 12px, #e8e8e8 12px 24px);
}

/* ---------- 正文区 ---------- */
.content-zone {
  display: grid;
  grid-template-columns: minmax(0, 262px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding: clamp(34px, 5vw, 66px) max(clamp(16px, 3.5vw, 44px), calc((100% - 1120px) / 2))
    clamp(30px, 4vw, 52px);
}

.rail {
  position: sticky;
  top: 154px;
  z-index: 2;
  align-self: start;
  padding: 20px 18px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--e2);
}

.rail-h {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.subtitle {
  margin: 0 0 14px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: none;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rail-list a:hover {
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink);
  transform: translateX(3px);
}

.article-col {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.article-col > div {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(20px, 3.2vw, 36px);
  scroll-margin-top: 168px;
}

.article-col > div:nth-child(even) {
  transform: translateX(7px);
}

.article-col h2 {
  margin: 0 0 12px;
  font-size: clamp(1.28rem, 2.5vw, 1.72rem);
  line-height: 1.3;
  letter-spacing: -0.018em;
  font-weight: 700;
}

.article-col h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.article-col p {
  margin: 0 0 14px;
  color: #2b2b2b;
}

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

.article-col ul,
.article-col ol {
  margin: 0 0 14px;
  padding-left: 1.3em;
}

.article-col li {
  margin-bottom: 6px;
}

.article-col blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--ink);
  background: var(--bg);
  border-radius: 0 12px 12px 0;
}

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

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

.article-col figure {
  margin: 18px 0;
}

.article-col figcaption {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 8px;
}

.article-col img {
  border-radius: 12px;
}

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px 26px;
  margin-top: clamp(20px, 4vw, 44px);
  padding: clamp(34px, 5vw, 64px) max(clamp(16px, 3.5vw, 44px), calc((100% - 1120px) / 2)) 26px;
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
}

.foot-brand {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.foot-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.foot-links {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-faint);
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-right: 2px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

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

.foot-copy {
  grid-column: 1 / -1;
  display: block;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.72rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--e3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}

.back-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  box-shadow: var(--e4);
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .nav-main {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .brand {
    order: -1;
    justify-content: center;
    width: 100%;
  }

  .nav-side {
    justify-content: center;
    flex-wrap: wrap;
  }

  .pill {
    padding: 0 11px;
    font-size: 0.9rem;
  }

  .pill-cta {
    margin-left: 0;
  }

  .rail-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 26px;
    padding-bottom: 54px;
    gap: 26px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .hero-lead {
    margin-bottom: 20px;
  }

  .hero-figure {
    transform: none;
  }

  .hero-slides {
    aspect-ratio: 16 / 11;
  }

  .hero::after {
    height: 34px;
  }

  .content-zone {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }

  .article-col {
    order: 1;
  }

  .rail {
    order: 2;
    position: static;
  }

  .article-col > div:nth-child(even) {
    transform: none;
  }

  .article-col > div {
    scroll-margin-top: 130px;
  }

  .foot {
    grid-template-columns: 1fr 1fr;
  }

  .foot-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .foot {
    grid-template-columns: 1fr;
  }

  .foot-brand {
    font-size: clamp(2.1rem, 15vw, 3.4rem);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .hero-layer {
    transform: none !important;
  }
}

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