@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

:root {
  --paper: #ffffff;
  --mist: #f5f5f5;
  --ink: #1f1f1f;
  --ink-soft: #555555;
  --line: rgba(31, 31, 31, 0.12);
  --line-soft: rgba(31, 31, 31, 0.07);
  --e1: 0 1px 2px rgba(31, 31, 31, 0.06), 0 3px 10px rgba(31, 31, 31, 0.05);
  --e2: 0 4px 10px rgba(31, 31, 31, 0.07), 0 12px 26px rgba(31, 31, 31, 0.07);
  --e3: 0 10px 22px rgba(31, 31, 31, 0.09), 0 24px 50px rgba(31, 31, 31, 0.09);
  --e4: 0 18px 40px rgba(31, 31, 31, 0.12), 0 44px 84px rgba(31, 31, 31, 0.13);
  --r: 18px;
  --head: 'Lexend Mega', 'Public Sans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shell: 1160px;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; }

a { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
}

/* 顶部细条 */
.strip {
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 40;
}

.in-strip {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.strip-brand {
  font-family: var(--head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.92;
}

.strip-top {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.strip-top:hover { background: rgba(255, 255, 255, 0.1); }

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}

.in-bar {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--ink);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--e2);
  overflow: hidden;
}

.mark img { width: 26px; height: 26px; object-fit: contain; display: block; }

.mark-glyph {
  font-family: var(--head);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
}

.mark:hover { box-shadow: var(--e3); transform: translateY(-1px); }

.menu-btn {
  font-family: var(--head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 44px;
  cursor: pointer;
  box-shadow: var(--e1);
}

.menu-btn:hover { background: var(--ink); color: #ffffff; }

/* Hero */
.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 24px 30px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 40px;
  align-items: center;
  min-height: 45vh;
}

.hero-media {
  position: relative;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--e3);
  aspect-ratio: 5 / 4;
  overflow: visible;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--r);
  background: #ffffff;
  box-shadow: var(--e2);
  z-index: -1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r);
}

.hero-plate {
  height: 100%;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #ffffff 0%, var(--mist) 100%);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.hero-plate span {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(28px, 5.4vw, 52px);
  letter-spacing: -0.03em;
  color: rgba(31, 31, 31, 0.16);
  padding: 0 12px;
  text-align: center;
}

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

.hero-copy h1 {
  font-size: clamp(28px, 4.4vw, 50px);
  letter-spacing: -0.03em;
}

.hero-copy .lead {
  margin: 16px 0 0;
  margin-left: auto;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 16.5px;
}

/* 主体 */
.wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.body-layer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 44px;
  align-items: start;
  padding: 44px 0 10px;
}

.content {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--e2);
  border: 1px solid var(--line-soft);
  padding: 40px;
}

.content article[id] {
  scroll-margin-top: 116px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px dashed var(--line);
}

.content article[id]:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.content h2 {
  font-size: clamp(21px, 2.5vw, 28px);
  margin: 6px 0 10px;
}

.content h3 {
  font-size: 19px;
  margin: 26px 0 10px;
}

.content p { margin: 0 0 16px; }

.content .subtitle,
.content .subhead,
.content .lead,
.content .desc {
  color: var(--ink-soft);
  font-size: 16.5px;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.content ul,
.content ol {
  margin: 0 0 18px;
  padding-left: 1.25em;
}

.content li { margin: 0 0 10px; }

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

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

.content img {
  height: auto;
  border-radius: 14px;
  box-shadow: var(--e2);
  margin: 6px 0 18px;
}

.content blockquote {
  margin: 0 0 18px;
  padding: 16px 20px;
  background: var(--mist);
  border-radius: 14px;
  box-shadow: var(--e1);
  border-left: 3px solid var(--ink);
}

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

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 16px;
}

.content th,
.content td {
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 12px;
  text-align: left;
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 92px;
  z-index: 3;
  background: var(--paper);
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  box-shadow: var(--e3);
  padding: 20px;
}

.rail-head {
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.rail-head h2 {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.rail-head .subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.rail nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail nav li { margin: 0 0 2px; }

.rail nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.35;
  transition: background 0.18s ease, transform 0.18s ease;
}

.rail nav a:hover {
  background: var(--mist);
  transform: translateX(-3px);
}

.rail nav a .idx {
  font-family: var(--head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
  opacity: 0.42;
  flex: 0 0 auto;
}

.rail nav a.on {
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--e2);
}

.rail nav a.on .idx { opacity: 0.7; }

/* 页脚 */
.foot {
  margin-top: 56px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -18px 40px rgba(31, 31, 31, 0.05);
}

.in-foot {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 0;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  border-radius: var(--r);
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(20px, 2.8vw, 30px);
  letter-spacing: 0.03em;
  box-shadow: var(--e4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover { transform: translateY(-3px); box-shadow: var(--e4), 0 0 0 3px rgba(31, 31, 31, 0.1); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 26px;
  padding: 40px 0 26px;
}

.foot-mark {
  font-family: var(--head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.foot-home { margin: 0; }

.foot-home a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

.foot dl { margin: 0; }

.foot dt {
  font-family: var(--head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.foot dd { margin: 0; }

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
}

.foot dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

.foot-base {
  border-top: 1px solid var(--line-soft);
  padding: 18px 0 22px;
  text-align: center;
}

.foot-base .copy {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

/* 动效 */
.rise {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 55ms);
}

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

/* 断点 */
@media (max-width: 980px) {
  .body-layer { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .rail {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(332px, 88vw);
    border-radius: 0;
    border: 0;
    overflow-y: auto;
    padding: 22px 20px 40px;
    transform: translateX(104%);
    transition: transform 0.32s ease;
    z-index: 70;
    box-shadow: var(--e4);
  }

  body.nav-open .rail { transform: none; }

  body.nav-open { overflow: hidden; }

  .content { padding: 28px 22px; }

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

@media (max-width: 720px) {
  body { font-size: 16.5px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    padding: 22px 20px 24px;
  }

  .hero-copy { text-align: left; }
  .hero-copy .lead { margin-left: 0; }
  .hero-media { aspect-ratio: 16 / 11; }
  .hero-media::after { inset: 12px -12px -12px 12px; }

  .wrap { padding: 0 20px; }
  .in-strip, .in-bar, .in-foot { padding-left: 20px; padding-right: 20px; }

  .body-layer { padding: 26px 0 6px; }

  .content article[id] { scroll-margin-top: 88px; }

  .cta { min-height: 84px; }

  .foot-grid { grid-template-columns: 1fr; gap: 14px; padding: 30px 0 20px; }
}

@media (min-width: 981px) {
  .menu-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { transition: none; opacity: 1; transform: none; }
  .rail { transition: none; }
  .cta, .mark, .rail nav a { transition: none; }
}

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