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

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

:root {
  --ink: #121417;
  --ink-2: #171B20;
  --ink-3: #1E242B;
  --ink-0: #0C0E11;
  --hot: #FF4D2E;
  --sun: #FFD23F;
  --text: #EFE9DE;
  --muted: #A7ADB5;
  --line: #262C34;
  --pad: 16px;
  --rail: 232px;
  --r: 10px;
  --head: "Barlow Condensed", "Barlow", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}

img { max-width: 100%; }
a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

/* ---------- 左侧竖排胶囊导航 ---------- */
.rail {
  background: #0E1013;
  border-bottom: 3px solid var(--hot);
  padding: 12px var(--pad) 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: var(--hot);
  color: #fff;
  font-family: var(--head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

.bname {
  font-family: var(--head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--sun);
}

.rail-h {
  margin: 10px 0 8px;
  font-family: var(--head);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--muted);
  line-height: 1.5;
}

.rail-h span { border-left: 4px solid var(--sun); padding-left: 8px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--ink-3);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.pill:hover,
.pill:focus-visible {
  background: var(--sun);
  color: var(--ink);
}

.pill:first-child {
  background: var(--hot);
  color: #fff;
}

.pill:first-child:hover,
.pill:first-child:focus-visible {
  background: var(--sun);
  color: var(--ink);
}

/* ---------- 主体 ---------- */
.stage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px var(--pad) 0;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 45vh;
  margin: 0 calc(var(--pad) * -1) 22px;
  background: var(--ink-2);
  border-radius: 0;
}

.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .58;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(18, 20, 23, .48);
}

.hero-dots {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(var(--sun) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .2;
  pointer-events: none;
}

.hero-in { position: relative; z-index: 3; padding: 26px var(--pad) 30px; width: 100%; }

h1 {
  margin: 0 0 10px;
  font-family: var(--head);
  font-size: clamp(32px, 6.6vw, 64px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .01em;
  color: #fff;
}

.lead {
  margin: 0 0 18px;
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.65;
  color: #DCD5C9;
}

.jump {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.jump:hover,
.jump:focus-visible { background: var(--hot); color: #fff; }

/* ---------- 正文 ---------- */
.panel {
  background: var(--ink-2);
  border-radius: var(--r);
  border-top: 4px solid var(--hot);
  padding: 6px var(--pad) 28px;
}

.doc { max-width: 72ch; }

.doc div[id] { scroll-margin-top: 24px; }

.doc div {
  padding: 22px 0;
  border-bottom: 2px solid var(--line);
}

.doc div:last-child { border-bottom: 0; padding-bottom: 6px; }

.doc h2,
.doc h3 {
  font-family: var(--head);
  line-height: 1.28;
  margin: 0 0 12px;
  color: var(--sun);
}

.doc h2 { font-size: 26px; font-weight: 700; }
.doc h3 { font-size: 21px; font-weight: 600; color: var(--text); }

.doc h2 span { display: inline-block; border-left: 6px solid var(--hot); padding-left: 10px; }
.doc h3 span { display: inline-block; border-left: 4px solid var(--sun); padding-left: 9px; }

.doc p { margin: 0 0 15px; }
.doc p:last-child { margin-bottom: 0; }

.doc a { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--hot); }

.doc ul,
.doc ol { margin: 0 0 15px; padding-left: 1.25em; }
.doc li { margin: 0 0 7px; }

.doc strong { color: #fff; }

.doc img { border-radius: 6px; height: auto; }

.doc blockquote {
  margin: 0 0 15px;
  padding: 12px 14px;
  background: var(--ink-3);
  border-left: 5px solid var(--sun);
  border-radius: 0 4px 4px 0;
}

.doc blockquote p { margin: 0; }

.doc table { width: 100%; border-collapse: collapse; margin: 0 0 15px; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--line); }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 40px;
  background: var(--ink-0);
  border-top: 4px solid var(--sun);
  padding: 0 var(--pad) 26px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 24px;
  border-bottom: 2px solid var(--line);
}

.cta h2 {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(30px, 7vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--sun);
}

.cta h2 span { display: inline-block; }

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.to-top:hover,
.to-top:focus-visible { background: var(--sun); color: var(--ink); }

.fgrid { display: grid; gap: 24px; padding: 24px 0 8px; }

.flogo {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-family: var(--head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--sun);
  text-decoration: none;
}

.fnav { display: grid; gap: 20px; }

.fnav dl { margin: 0; }

.fnav dt {
  margin: 0 0 6px;
  font-family: var(--head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--hot);
}

.fnav dd { margin: 0; }

.fnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  transition: color 150ms ease;
}

.fnav a:hover,
.fnav a:focus-visible { color: var(--sun); }

.fbase {
  border-top: 2px solid var(--line);
  padding-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

.fbase p { margin: 0; }

/* ---------- 滚动显隐 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms ease, transform 480ms ease;
}

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

/* ---------- 平板以上 ---------- */
@media (min-width: 620px) {
  :root { --pad: 26px; }
  .doc h2 { font-size: 30px; }
  .hero { min-height: 45vh; }
}

@media (min-width: 780px) {
  .fgrid { grid-template-columns: 1.1fr 3fr; align-items: start; }
  .fnav { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 桌面：固定左栏 ---------- */
@media (min-width: 940px) {
  .rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail);
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 20px 30px;
    border-right: 3px solid var(--hot);
    border-bottom: 0;
    z-index: 30;
  }

  .stage { margin-left: var(--rail); }

  .nav { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
  .pill { width: 100%; justify-content: flex-start; min-height: 42px; }

  .rail-h { margin: 4px 0 0; }

  .wrap { padding-top: 30px; }

  .hero { margin-bottom: 30px; }
  .hero-in { padding: 38px 40px 40px; }

  .panel { padding: 10px 38px 34px; }

  .doc div { padding: 28px 0; }

  .foot { padding-bottom: 30px; }
  .cta { padding: 44px 0 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { transform: none !important; }
}

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