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

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

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

body {
  margin: 0;
  background: #f5f5f7;
  color: #1f1f1f;
  font-family: 'Archivo', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Archivo', system-ui, 'PingFang SC', 'Noto Sans SC', sans-serif;
  font-weight: 600;
  letter-spacing: -.02em;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid #1f1f1f;
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 90;
  background: #1f1f1f;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  transition: top .2s ease;
}
.skip:focus { top: 12px; }

/* ---------- 顶部两行导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid #e8e8ec;
}

.brandrow {
  padding: 8px 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  text-decoration: none;
  font-family: 'Space Grotesk', system-ui, 'PingFang SC', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -.015em;
}

.brand-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #1f1f1f;
  flex: none;
}

.menurow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  padding: 0 24px 8px;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  min-width: 0;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: #55555d;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.menu-link:hover { color: #1f1f1f; border-bottom-color: #1f1f1f; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-left: auto;
  padding: 0 24px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}
.cta:hover { background: #000; transform: translateY(-1px); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 0;
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 0 24px;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0 24px;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(31, 31, 31, .14) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(120deg, #000 20%, transparent 85%);
  mask-image: linear-gradient(120deg, #000 20%, transparent 85%);
  opacity: .7;
  pointer-events: none;
}

.hero-media-wrap {
  position: relative;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .05), 0 18px 40px rgba(0, 0, 0, .06);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-slide.is-on { opacity: 1; }

.hero-slide img,
.hero-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 600;
}

.hero-lead {
  margin: 20px 0 0 auto;
  max-width: 40ch;
  color: #5b5b64;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.hero--solo { grid-template-columns: 1fr; }

/* ---------- 主体 ---------- */
.shell {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.side {
  position: sticky;
  top: 140px;
  background: #fff;
  border-radius: 28px;
  padding: 22px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .05);
}

.side-title {
  margin: 0 0 10px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: #7a7a83;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-list li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 2px 0;
  color: #3c3c44;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid #f1f1f4;
  transition: color .16s ease, padding-left .16s ease;
}
.side-list li:last-child a { border-bottom: 0; }
.side-list li a:hover { color: #1f1f1f; padding-left: 4px; }

.prose { min-width: 0; }

.content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.content > article {
  min-width: 0;
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .05);
  scroll-margin-top: 140px;
  transition: opacity .5s ease, transform .5s ease, box-shadow .3s ease;
}

.content > article:nth-child(3n + 1) { grid-column: span 2; }

.content > article:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .08); }

.content h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  line-height: 1.28;
}
.content h2 > span {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 3px solid #1f1f1f;
}

.content h3 {
  margin: 22px 0 10px;
  font-size: 1.1875rem;
  line-height: 1.35;
}
.content h3 > span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid #d9d9de;
}

.content p { margin: 0 0 14px; }
.content p:last-child { margin-bottom: 0; }

.content a {
  color: #1f1f1f;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.content ul, .content ol { margin: 0 0 14px; padding-left: 1.2em; }
.content li { margin: .3em 0; }

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.content blockquote {
  margin: 0 0 14px;
  padding: 14px 18px;
  background: #f5f5f7;
  border-radius: 16px;
  color: #3c3c44;
}

.content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  font-size: 1rem;
}
.content th, .content td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid #ececf0;
  vertical-align: top;
}
.content th { font-weight: 600; background: #f7f7f9; }

.content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9375rem;
  background: #f5f5f7;
  border-radius: 6px;
  padding: 1px 5px;
}

.content hr { border: 0; border-top: 1px solid #ececf0; margin: 20px 0; }

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  gap: 16px;
  max-width: 1180px;
  margin: 48px auto 0;
  padding: 0 24px 44px;
}

.foot article { border-radius: 28px; }

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 36px;
  background: #1f1f1f;
  color: #fff;
}

.foot-cta h2 {
  margin: 0;
  font-size: clamp(1.375rem, 3vw, 2rem);
  letter-spacing: -.03em;
}

.foot-cta h2 > span {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 3px solid #fff;
}

.foot-cta .cta { background: #fff; color: #1f1f1f; margin-left: auto; }
.foot-cta .cta:hover { background: #f5f5f7; }

.foot-cols {
  background: #fff;
  padding: 26px 28px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .05);
}

.foot-cols h3 {
  margin: 0 0 8px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: #7a7a83;
}

.foot-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0 18px;
  margin: 0;
}
.foot-dl dt, .foot-dl dd { margin: 0; }

.foot-dl a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #3c3c44;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.foot-dl a:hover { color: #1f1f1f; border-bottom-color: #1f1f1f; }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 4px 6px 0;
  color: #78787f;
}

.copy { margin: 0; font-size: 1rem; }

.foot-mini { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-mini a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #55555d;
  font-size: 1rem;
  text-decoration: none;
}
.foot-mini a:hover { color: #1f1f1f; }

/* ---------- 入场 ---------- */
html.js .hero,
html.js .side,
html.js .content > article {
  opacity: 0;
  transform: translateY(16px);
}

html.js .hero.is-in,
html.js .side.is-in,
html.js .content > article.is-in {
  opacity: 1;
  transform: none;
}

html.js .content > article.is-in:hover { transform: scale(1.012); }

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .content { grid-template-columns: minmax(0, 1fr); }
  .content > article:nth-child(3n + 1) { grid-column: auto; }
}

@media (max-width: 760px) {
  .topbar { position: static; }
  .brandrow { padding: 10px 16px 0; }
  .menurow { padding: 0 16px 10px; gap: 0 16px; }
  .menu { gap: 0 16px; }
  .menu-link { min-height: 42px; font-size: .96875rem; }
  .cta { padding: 0 18px; font-size: .96875rem; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    margin-top: 8px;
    padding: 0 16px;
    gap: 20px;
  }
  .hero::before { inset: 0 16px; }
  .hero-copy { order: -1; text-align: left; }
  .hero-lead { margin-left: 0; max-width: none; font-size: 1rem; }
  .hero-media-wrap { aspect-ratio: 16 / 10; }

  .shell { margin-top: 26px; padding: 0 16px; gap: 12px; }
  .side { padding: 18px 16px; }
  .content { gap: 12px; }
  .content > article { padding: 22px 18px; scroll-margin-top: 14px; }

  .foot { margin-top: 30px; padding: 0 16px 32px; gap: 12px; }
  .foot-cta { padding: 26px 22px; }
  .foot-cols { padding: 22px 18px; }
  .foot-legal { padding: 2px 2px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .hero,
  html.js .side,
  html.js .content > article {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js .content > article.is-in:hover { transform: none; }
  .hero-slide { transition: none; }
}

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