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

:root {
  --ink: #0E1B2C;
  --ink-2: #14273D;
  --amber: #F2A33C;
  --paper: #F5F6F7;
  --line: rgba(245, 246, 247, 0.15);
  --muted: rgba(245, 246, 247, 0.66);
  --edge: clamp(16px, 4vw, 44px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--ink); }

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

.pagegrid {
  display: grid;
  grid-template-columns: minmax(170px, 218px) minmax(0, 1fr);
  column-gap: clamp(22px, 4vw, 54px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--edge);
  align-items: start;
}

/* ---------- 左侧竖排侧栏 ---------- */

.rail {
  grid-column: 1;
  grid-row: 2 / -1;
  position: sticky;
  top: 18px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
  text-decoration: none;
  color: var(--paper);
}

.brand .mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 4px;
  object-fit: cover;
}

.brand .mark--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.04em;
}

.bname {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.railhead {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.railhead span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--amber);
}

.railnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.railnav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 11px 10px;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 4px;
  color: rgba(245, 246, 247, 0.82);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.railnav a:hover,
.railnav a:focus-visible {
  background: rgba(242, 163, 60, 0.16);
  color: var(--paper);
  transform: translateX(3px);
}

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 1px;
  transform: rotate(45deg);
  opacity: 0.85;
}

.railcta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 12px 16px;
  background: var(--amber);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.railcta:hover { transform: translateY(-2px); background: #ffb44f; }

/* ---------- 首屏 ---------- */

.hero {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 45vh;
  padding: clamp(30px, 7vh, 66px) 0 clamp(34px, 7vh, 66px);
}

.swoosh {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(24px, 4.6vw, 48px);
  z-index: -1;
  background: linear-gradient(90deg, rgba(242, 163, 60, 0) 0%, rgba(242, 163, 60, 0.82) 34%, rgba(242, 163, 60, 0.18) 100%);
  transform: skewY(-2.2deg);
  transform-origin: left bottom;
}

.herobrand {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--amber);
}

.mega {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2.4rem, 8.6vw, 6.4rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.mega .ch {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  transform: translateY(0.5em) scaleY(1.16);
  transition: transform 0.72s cubic-bezier(0.2, 0.72, 0.2, 1), opacity 0.5s ease;
  transition-delay: calc(var(--i, 0) * 26ms);
}

.mega.lit .ch { opacity: 1; transform: none; }

.lede {
  margin: 6px 0 0;
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--muted);
}

/* ---------- 走马灯条 ---------- */

.strip {
  grid-column: 2;
  padding: 20px 0;
}

.ticker {
  margin: 0;
  padding: 12px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tick-track {
  display: flex;
  gap: 38px;
  width: max-content;
  white-space: nowrap;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--amber);
  animation: tick 26s linear infinite;
}

@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 正文 ---------- */

main > div:not(.hero):not(.strip) {
  grid-column: 2;
  padding: clamp(30px, 6vh, 58px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 22px;
}

main > div:not(.hero):not(.strip):last-of-type { border-bottom: 0; }

main div h2 {
  margin: 0 0 16px;
  font-size: clamp(1.42rem, 3.4vw, 2.05rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

main div h3 {
  margin: 28px 0 10px;
  font-size: clamp(1.14rem, 2.4vw, 1.4rem);
  line-height: 1.32;
  font-weight: 600;
  text-wrap: balance;
}

main div :is(h2, h3) > span {
  display: inline;
  padding-bottom: 3px;
  border-bottom: 3px solid var(--amber);
  box-decoration-break: clone;
}

main div p {
  margin: 0 0 15px;
  max-width: 63ch;
  color: rgba(245, 246, 247, 0.86);
}

main div ul,
main div ol {
  margin: 0 0 18px;
  padding-left: 1.2em;
  max-width: 63ch;
}

main div li { margin: 0 0 9px; }
main div li::marker { color: var(--amber); }
main div strong { color: var(--paper); font-weight: 600; }
main div a { color: var(--amber); text-underline-offset: 3px; }

main div blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--ink-2);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
}

main div blockquote p:last-child { margin-bottom: 0; }

main div figure {
  margin: 22px 0;
  padding: 14px;
  background: var(--ink-2);
  border-radius: 4px;
}

main div figure img { border-radius: 3px; }

main div figure figcaption {
  margin-top: 9px;
  font-size: 16px;
  color: var(--muted);
}

main div hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

main div time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */

.sitefoot {
  margin-top: clamp(34px, 7vh, 76px);
  border-top: 1px solid var(--line);
}

.footcta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(28px, 4.4vw, 48px) var(--edge) clamp(44px, 7vw, 72px);
  background: var(--amber);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%);
}

.ctatext {
  margin: 0;
  font-size: clamp(1.6rem, 5.2vw, 3rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ctatext span { display: inline-block; }

.ctabtn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.18s ease;
}

.ctabtn:hover { transform: translateY(-2px); }

.footline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 26px;
  padding: 22px var(--edge) 40px;
  max-width: 1240px;
  margin: 0 auto;
}

.footnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
}

.footnav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 9px;
  font-size: 16px;
  text-decoration: none;
  color: var(--muted);
  border-radius: 4px;
  transition: color 0.18s ease, background 0.18s ease;
}

.footnav a:hover,
.footnav a:focus-visible {
  color: var(--paper);
  background: rgba(245, 246, 247, 0.08);
}

.copy {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- 滚动进入 ---------- */

.js main > div:not(.hero):not(.strip) {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.js main > div.in {
  opacity: 1;
  transform: none;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 880px) {
  .pagegrid {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 var(--edge);
  }

  .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
    padding: 14px 0 12px;
    gap: 10px;
    border-bottom: 1px solid var(--line);
  }

  .railnav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .railnav a {
    padding: 10px 12px;
    min-height: 42px;
    font-size: 16px;
  }

  .railhead { margin: 4px 0 0; }

  .railcta { align-self: flex-start; padding: 11px 18px; }

  .hero {
    grid-row: auto;
    min-height: 0;
    padding: 26px 0 34px;
  }

  .mega { font-size: clamp(2.2rem, 10.6vw, 3.4rem); }

  .swoosh { height: 22px; transform: skewY(-3.4deg); }

  main > div:not(.hero):not(.strip),
  .strip { grid-column: 1; }

  .footline {
    justify-content: flex-start;
    padding-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tick-track { animation: none; }
  .mega .ch { transition: none; opacity: 1; transform: none; }
  .js main > div:not(.hero):not(.strip) { opacity: 1; transform: none; transition: none; }
  .railnav a:hover, .railcta:hover, .ctabtn:hover { transform: none; }
}

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