@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');

:root {
  --ink: #101820;
  --accent: #FF5A3C;
  --bone: #F2E9DE;
  --muted: rgba(242, 233, 222, .66);
  --line: rgba(242, 233, 222, .16);
  --panel: rgba(22, 33, 43, .62);
  --head: 'Barlow Condensed', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --body: 'Barlow', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  letter-spacing: .01em;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 680px at 82% -12%, rgba(255, 90, 60, .30), transparent 62%),
    radial-gradient(820px 560px at 4% 106%, rgba(255, 90, 60, .15), transparent 64%),
    linear-gradient(#0b1117, #101820 42%, #0a1015);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 233, 222, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 233, 222, .03) 1px, transparent 1px);
  background-size: 100% 36px, 340px 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
}

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

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

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 0 0 12px 12px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s ease;
}
.skip:focus { top: 0; }

/* ---------- 顶部两行：细条 + 品牌行 + 菜单行 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 19, 26, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.ticker {
  background: var(--accent);
  color: #101820;
}
.ticker p {
  margin: 0;
  padding: 5px 12px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .18em;
}

.top-in {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

.brandrow { padding: 10px 0 6px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  color: var(--bone);
  font-family: var(--head);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.1;
}
.brand:hover { color: #fff; }

.mark {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #ff9366);
  position: relative;
}
.mark::after {
  content: "";
  position: absolute;
  inset: 7px 8px 6px 7px;
  border-right: 3px solid #101820;
  border-bottom: 3px solid #101820;
  transform: rotate(-38deg) skewX(-8deg);
}

.menu p {
  margin: 0;
  padding: 0 0 8px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu p::-webkit-scrollbar { display: none; }

.menu a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.menu a:hover,
.menu a:focus-visible {
  color: var(--bone);
  background: rgba(242, 233, 222, .09);
}

/* ---------- 容器 ---------- */
.wrap,
.foot-form .in {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

/* ---------- 开场 ---------- */
.stage { padding: clamp(22px, 4vw, 46px) 0 clamp(26px, 4vw, 44px); }

.stage-in {
  display: grid;
  gap: 23px;
  align-items: center;
  min-height: 45vh;
}

.stage-copy h1 {
  margin: 0 0 14px;
  font-family: var(--head);
  font-size: clamp(31px, 7vw, 56px);
  line-height: 1.1;
  letter-spacing: .015em;
  font-weight: 700;
  text-wrap: balance;
}

.lead {
  margin: 0 0 20px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 47px;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background-color .22s ease, color .22s ease;
}
.cta:hover,
.cta:focus-visible {
  background: var(--accent);
  color: #101820;
}

.stage-media {
  margin: 0;
  min-height: 190px;
  height: clamp(190px, 32vh, 300px);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 70% 0%, rgba(255, 90, 60, .38), transparent 60%),
    linear-gradient(150deg, #182633, #0d151d);
  will-change: transform;
}
.stage-media .hero-pic,
.stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 正文章节 ---------- */
.wrap > div[id] {
  padding: clamp(32px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 132px;
}

.wrap h2 {
  margin: 0 0 12px;
  font-family: var(--head);
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: .02em;
}
.wrap h2::before {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-bottom: 15px;
  background: var(--accent);
}

.wrap h2 + p {
  margin-top: -4px;
  color: var(--muted);
  font-size: 17px;
}

.wrap p { margin: 0 0 17px; max-width: 70ch; }
.wrap ul, .wrap ol { max-width: 70ch; padding-left: 22px; margin: 0 0 18px; }
.wrap li { margin: 0 0 8px; }

.wrap h3 {
  margin: 26px 0 10px;
  font-family: var(--head);
  font-size: 21px;
  letter-spacing: .03em;
}

.wrap a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.wrap blockquote {
  margin: 22px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.wrap table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 16px; }
.wrap th, .wrap td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.wrap th { background: rgba(255, 90, 60, .1); }

.wrap hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

/* ---------- 右侧导航栏 ---------- */
.rail {
  margin: 28px 0 34px;
  padding: 20px 20px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.rail h2 {
  margin: 0 0 6px;
  font-family: var(--head);
  font-size: 20px;
  letter-spacing: .06em;
}

.rail .subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rail;
}

.rail li { counter-increment: rail; border-top: 1px solid var(--line); }
.rail li:first-child { border-top: 0; }

.rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--bone);
  text-decoration: none;
  font-size: 16px;
}
.rail a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--head);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--accent);
}
.rail a:hover { color: var(--accent); }

/* ---------- 订阅块 ---------- */
.foot-form {
  border-top: 1px solid var(--line);
  background: rgba(255, 90, 60, .07);
  padding: 32px 0;
}
.foot-form .in {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.foot-form p {
  margin: 0;
  font-family: var(--head);
  font-size: 20px;
  letter-spacing: .08em;
}
.foot-form form {
  display: flex;
  gap: 8px;
  flex: 1 1 250px;
  max-width: 420px;
}
.foot-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 47px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 16, 22, .5);
  color: var(--bone);
  font: inherit;
  font-size: 16px;
}
.foot-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.foot-form button {
  flex: 0 0 auto;
  min-height: 47px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #101820;
  font: inherit;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}
.foot-form button:hover { background: #ff7a5f; }

/* ---------- 页脚 ---------- */
.foot {
  padding: 26px 16px 36px;
  text-align: center;
}
.foot p {
  margin: 0 0 5px;
  font-family: var(--head);
  font-size: 16px;
  letter-spacing: .1em;
  color: var(--bone);
}
.foot small {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: .06em;
}

/* ---------- 动效 ---------- */
.js .fx {
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
}
.js .fx.in {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 桌面 ---------- */
@media (min-width: 760px) {
  .stage-in {
    grid-template-columns: 1.06fr .94fr;
    gap: clamp(26px, 5vw, 62px);
  }
  .menu p { flex-wrap: wrap; overflow-x: visible; padding-bottom: 10px; }
}

@media (min-width: 1000px) {
  .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 252px;
    column-gap: 56px;
    align-items: start;
  }
  .wrap > * { grid-column: 1; min-width: 0; }
  .wrap > .rail {
    grid-column: 2;
    grid-row: 1 / span 99;
    align-self: start;
    position: sticky;
    top: 108px;
    margin-top: 46px;
  }
  body { font-size: 17.5px; }
}

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

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