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

:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --mist: #f5f5f5;
  --soft: #6a6a6a;
  --hair: #e2e2e2;
  --gap: 16px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
.brand,
.cta {
  font-family: "Space Grotesk", "Inter", "PingFang SC", sans-serif;
  letter-spacing: -0.01em;
}

menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

small {
  display: block;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--soft);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- 顶栏 ---------- */
.mast {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 9px 18px;
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

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

.nav-side a,
.brand,
.chip,
.more summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-side a:hover,
.chip:hover,
.more summary:hover {
  background: var(--mist);
}

.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-color: var(--ink);
}

.chip {
  border-color: var(--ink);
}

.more {
  position: relative;
}

.more summary {
  cursor: pointer;
  list-style: none;
  border-color: var(--ink);
  user-select: none;
}

.more summary::-webkit-details-marker {
  display: none;
}

.more summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 9px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
}

.more[open] summary {
  background: var(--ink);
  color: #fff;
}

.more[open] summary::after {
  border-color: #fff;
  transform: rotate(-135deg) translateY(-2px);
}

.more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 70;
  min-width: 236px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--ink);
}

.more-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 0;
  font-size: 16px;
}

.more-menu a:hover {
  background: var(--mist);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  min-height: calc(100vh - 63px);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.hero-bg {
  position: absolute;
  left: -2%;
  top: 46%;
  transform: translateY(-50%);
  z-index: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(72px, 13vw, 190px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px #d9d9d9;
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}

.hero-media {
  position: relative;
  z-index: 1;
  min-height: 100%;
  background: var(--mist);
  border-right: 1px solid var(--ink);
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  justify-self: center;
  max-width: 560px;
  padding: 48px 28px;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.12;
  font-weight: 700;
}

.hero-lead {
  margin: 0;
  max-width: 30em;
  color: var(--soft);
  font-size: 17px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 30px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cta:hover {
  opacity: 0.82;
}

/* ---------- 正文与侧栏 ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 28px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 18px 72px;
}

.content {
  min-width: 0;
}

section {
  display: grid;
  gap: var(--gap);
  counter-reset: sec;
}

section > article {
  position: relative;
  padding: 32px 30px 36px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

section > article:nth-child(even) {
  background: var(--mist);
}

section > article::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #a3a3a3;
}

article[id] {
  scroll-margin-top: 104px;
}

section small {
  margin-bottom: 6px;
}

section h2 {
  margin: 0 0 14px;
  padding-right: 36px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
  font-weight: 700;
}

section h3 {
  margin: 1.4em 0 0.5em;
  padding-right: 36px;
  font-size: 20px;
  line-height: 1.35;
}

section p {
  margin: 0 0 1em;
}

section p:last-child {
  margin-bottom: 0;
}

section ul,
section ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

section li {
  margin: 0.35em 0;
}

section strong {
  font-weight: 700;
}

section blockquote {
  margin: 1em 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--ink);
  color: var(--soft);
}

.rail {
  position: sticky;
  top: 88px;
  padding: 20px 18px;
  border: 1px solid var(--ink);
  background: var(--mist);
}

.rail h2 {
  margin: 2px 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--hair);
  font-size: 16px;
  text-decoration: none;
}

.rail a:hover {
  background: var(--paper);
}

/* ---------- 页脚 ---------- */
footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  border-top: 1px solid var(--ink);
  background: var(--mist);
}

footer > article {
  padding: 30px 24px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--ink);
}

footer > article:nth-child(3) {
  border-right: 0;
}

footer h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.f-desc {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
}

.f-sub form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.f-sub input {
  flex: 1 1 150px;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}

.f-sub button {
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.f-sub button:hover {
  opacity: 0.82;
}

.f-jump menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.f-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 16px;
  text-decoration: none;
}

.f-jump a:hover {
  background: var(--ink);
  color: #fff;
}

.f-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-right: 0;
}

.f-bar p {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
}

.f-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 16px;
  text-decoration: none;
}

.f-bar a:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- 动效 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  .nav {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 14px;
  }

  .brand {
    order: -1;
    justify-self: start;
  }

  .nav-side {
    flex-wrap: wrap;
    gap: 6px;
  }

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

  .more-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .more-menu a {
    border: 1px solid var(--ink);
    border-radius: 999px;
    margin-bottom: 6px;
    background: var(--paper);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    order: 1;
    justify-self: stretch;
    max-width: none;
    padding: 40px 20px 34px;
  }

  .hero-media {
    order: 2;
    min-height: 44vh;
    border-right: 0;
    border-top: 1px solid var(--ink);
  }

  .hero-bg {
    top: 30%;
    font-size: clamp(56px, 20vw, 120px);
  }

  .wrap {
    grid-template-columns: 1fr;
    padding: 24px 14px 56px;
  }

  .rail {
    position: static;
  }

  section > article {
    padding: 26px 20px 30px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer > article {
    border-right: 0;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cta,
  .nav-side a,
  .chip,
  .more summary {
    transition: none;
  }
}

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