@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: #14151A;
  --red: #E23A2E;
  --paper: #F4F1EA;
  --muted: rgba(244, 241, 234, 0.62);
  --line: rgba(244, 241, 234, 0.16);
  --cond: 'Barlow Condensed', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --body: 'Barlow', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* ---------- 顶部细条 ---------- */

.ticker {
  background: var(--red);
  color: var(--ink);
  overflow: hidden;
  transform: rotate(-1.1deg) scale(1.03);
  margin: 6px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.ticker-track {
  display: flex;
  gap: 2.4rem;
  white-space: nowrap;
  padding: 7px 0;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.24em;
  animation: slide 30s linear infinite;
  will-change: transform;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
}

.ticker-track span::after {
  content: "•";
  margin-left: 2.4rem;
  letter-spacing: 0;
}

@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 顶栏 ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(16px, 4vw, 40px) 10px;
}

.logo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.logo:hover {
  border-color: var(--red);
  transform: rotate(-4deg);
}

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

.logo-txt {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 21px;
  color: var(--red);
  line-height: 1;
}

.pills {
  flex: 1 1 auto;
  min-width: 0;
}

.pills ol {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px 2px 6px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.pills ol::-webkit-scrollbar { height: 4px; }
.pills ol::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.pills a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.pills a:hover,
.pills a:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: var(--ink);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10vh clamp(18px, 6vw, 72px) 12vh;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60vw 50vh at 15% 20%, rgba(226, 58, 46, 0.16), transparent 70%),
    radial-gradient(50vw 40vh at 90% 80%, rgba(244, 241, 234, 0.08), transparent 70%);
  z-index: -1;
}

.hero-title {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 16em;
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2.7rem, 11.5vw, 8.5rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  background-image: linear-gradient(96deg, var(--paper) 44%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: break-word;
}

.hero-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.34em, 0) rotate(4deg);
  animation: chIn 0.62s cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
  background-image: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes chIn {
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
}

.slash {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 11%;
  height: 15vh;
  min-height: 76px;
  background: var(--red);
  transform: rotate(-6deg);
  z-index: 1;
  box-shadow: 0 18px 60px rgba(226, 58, 46, 0.28);
}

/* ---------- 粘性锚点条 ---------- */

.anchorbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(20, 21, 26, 0.94);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.anchorbar ol {
  display: flex;
  margin: 0;
  padding: 0 clamp(16px, 4vw, 40px);
  list-style: none;
  overflow-x: auto;
  counter-reset: anc;
  scrollbar-width: none;
}

.anchorbar ol::-webkit-scrollbar { display: none; }

.anchorbar li { counter-increment: anc; }

.anchorbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 15px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.anchorbar a::before {
  content: counter(anc, decimal-leading-zero);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--red);
  opacity: 0.85;
}

.anchorbar a:hover,
.anchorbar a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--red);
}

/* ---------- 正文骨架 ---------- */

main {
  padding: clamp(44px, 7vw, 92px) clamp(16px, 4vw, 40px) clamp(56px, 8vw, 104px);
}

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: clamp(30px, 5vw, 64px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.prose {
  counter-reset: sec;
  max-width: 70ch;
  overflow-wrap: break-word;
}

.prose section {
  position: relative;
  counter-increment: sec;
  margin-top: clamp(34px, 5vw, 60px);
  padding-top: clamp(26px, 4vw, 42px);
  border-top: 1px solid var(--line);
}

.prose > section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose section::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 0.35em;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  color: var(--red);
}

section[id] { scroll-margin-top: 76px; }

.prose h2 {
  margin: 0.1em 0 0.34em;
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  line-height: 1.16;
  letter-spacing: -0.005em;
}

.prose h3 {
  margin: 1.5em 0 0.4em;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.3;
}

.prose p { margin: 0 0 1.05em; }

.prose ul,
.prose ol { margin: 0 0 1.2em; padding-left: 1.35em; }

.prose li { margin-bottom: 0.45em; }

.prose .subtitle,
.prose p.subtitle,
.prose p.lead,
.prose p.desc,
.prose p.subhead {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.prose a {
  color: var(--red);
  text-underline-offset: 3px;
}

.prose strong { color: #fff; font-weight: 600; }

.prose blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--red);
  color: var(--muted);
}

.prose img { border-radius: 18px; }

/* ---------- 侧栏 ---------- */

.rail {
  position: sticky;
  top: 76px;
  align-self: start;
  padding-left: 20px;
  border-left: 2px solid var(--red);
}

.rail h2 {
  margin: 0;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.rail .subtitle {
  margin: 0.3em 0 1.1em;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

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

.rail-list li { counter-increment: rl; }

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.rail-list a::before {
  content: counter(rl, decimal-leading-zero);
  font-family: var(--cond);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--red);
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: var(--paper);
  padding-left: 4px;
}

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

.foot { border-top: 1px solid var(--line); }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  padding: clamp(38px, 7vw, 78px) clamp(16px, 5vw, 56px);
  background: var(--red);
  color: var(--ink);
}

.cta-word {
  margin: 0;
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2.1rem, 9vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

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

.foot-nav {
  padding: 20px clamp(16px, 4vw, 40px) 16px;
  border-bottom: 1px solid var(--line);
}

.foot-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.foot-nav a:hover { color: var(--red); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 16px clamp(16px, 4vw, 40px) 40px;
  font-size: 0.85rem;
  color: var(--muted);
}

.foot-base p { margin: 0; }

.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper);
  text-decoration: none;
}

.foot-base a:hover { color: var(--red); }

/* ---------- 滚动显现 ---------- */

.rv {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.rv.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.72, 0.2, 1);
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .prose { max-width: none; }
  .rail {
    position: static;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 2px solid var(--red);
  }
  .rail .subtitle { margin-bottom: 0.7em; }
  .rail-list { display: grid; grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { min-height: 86vh; min-height: 86svh; padding: 12vh 18px 14vh; }
  .hero-title { font-size: clamp(2.3rem, 13.5vw, 4.2rem); }
  .slash { bottom: 8%; height: 12vh; min-height: 62px; }
  .ticker-track { font-size: 12px; letter-spacing: 0.18em; }
  .cta { align-items: flex-start; }
  .cta-word { font-size: clamp(1.9rem, 11vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .hero-title .ch { opacity: 1; transform: none; animation: none; }
  .rv { opacity: 1; transform: none; }
  .logo:hover,
  .cta-btn:hover { transform: none; }
  .rail-list a:hover { padding-left: 0; }
}

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