@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;900&display=swap');

:root {
  --ink: #0E0E12;
  --ink-2: #14141A;
  --ink-3: #0A0A0E;
  --hot: #FF4B1F;
  --paper: #F4EFE6;
  --line: rgba(244, 239, 230, 0.16);
  --soft: rgba(244, 239, 230, 0.62);
  --r: 28px;
  --head-h: 132px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Outfit', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -0.01em; }

/* ---------- 页头 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 3px solid var(--hot);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-glyph {
  width: 26px;
  height: 26px;
  display: block;
  background: var(--hot);
  transform: rotate(45deg);
  border-radius: 4px;
}

.brand-name {
  font-size: clamp(22px, 4.6vw, 30px);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-bar {
  flex: 1;
  height: 6px;
  min-width: 20px;
  background: repeating-linear-gradient(90deg, var(--hot) 0 14px, transparent 14px 24px);
  opacity: 0.85;
}

.menu-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 20px 12px;
}

.navwrap { flex: 1; min-width: 0; }

.navline {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.navline::-webkit-scrollbar { display: none; }

.nav-link,
.grp summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover,
.grp summary:hover,
.nav-link:focus-visible,
.grp summary:focus-visible {
  background: var(--hot);
  border-color: var(--hot);
  color: var(--ink);
}

.grp { position: relative; display: inline-block; }

.grp summary { list-style: none; }

.grp summary::-webkit-details-marker { display: none; }

.grp summary::after { content: '▾'; margin-left: 6px; font-size: 12px; }

.grp-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 176px;
  display: grid;
  gap: 4px;
  padding: 8px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  z-index: 30;
}

.grp:not([open]) .grp-list { display: none; }

.grp-list a {
  display: block;
  padding: 11px 12px;
  min-height: 42px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
}

.grp-list a:hover,
.grp-list a:focus-visible { background: var(--hot); color: var(--ink); }

.cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--hot);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 75, 31, 0.4);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 46vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 44px 20px 52px;
  border-bottom: 3px solid var(--hot);
  isolation: isolate;
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255, 75, 31, 0.22) 0 22px, transparent 22px 58px),
    radial-gradient(120% 90% at 22% 8%, #1d1d25 0%, #0b0b10 68%);
}

.hero-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.35) 0%, rgba(14, 14, 18, 0.86) 78%);
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: grayscale(0.35) contrast(1.15);
}

.geo {
  position: absolute;
  display: block;
  z-index: 0;
}

.geo-a {
  width: 120px;
  height: 120px;
  right: -28px;
  top: 12%;
  border: 10px solid var(--hot);
  border-radius: 50%;
  opacity: 0.55;
}

.geo-b {
  width: 84px;
  height: 84px;
  left: 6%;
  bottom: 8%;
  background: var(--paper);
  opacity: 0.14;
  transform: rotate(18deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-copy h1 {
  font-size: clamp(34px, 8.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  background: linear-gradient(96deg, var(--hot) 0%, var(--paper) 58%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shear 5.5s ease-in-out infinite;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-copy h1 { color: var(--paper); }
}

@keyframes shear {
  0%, 100% { transform: skewX(0deg) scale(1); }
  38% { transform: skewX(-2.6deg) scale(1.015); }
  70% { transform: skewX(1.8deg) scale(0.995); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.badge {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  background: var(--ink);
  border: 1px solid var(--hot);
  border-radius: 999px;
  transform: rotate(-3deg);
  animation: bob 5s ease-in-out infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hot);
}

@keyframes bob {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-7px); }
}

/* ---------- 跑马灯 ---------- */
.ticker {
  overflow: hidden;
  background: var(--hot);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 8px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  white-space: nowrap;
  animation: slide 24s linear infinite;
}

.tk {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.tk-sep { font-size: 12px; opacity: 0.7; }

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

/* ---------- 内容网格 ---------- */
.body-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 298px;
  gap: 38px;
  align-items: start;
}

.prose { min-width: 0; }

.prose > article {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--hot);
  border-radius: var(--r);
  padding: 30px 26px;
  margin: 0 0 26px;
  scroll-margin-top: calc(var(--head-h) + 14px);
}

.prose > article:last-child { margin-bottom: 0; }

.prose h2 {
  font-size: clamp(22px, 3.6vw, 31px);
  line-height: 1.22;
  margin: 0 0 14px;
}

.prose h2::before {
  content: '';
  display: inline-block;
  width: 0.52em;
  height: 0.52em;
  margin-right: 0.42em;
  background: var(--hot);
  transform: rotate(45deg) translateY(-0.04em);
}

.prose h2 > span,
.prose h3 > span { display: inline-block; }

.prose h3 {
  font-size: clamp(18px, 2.6vw, 22px);
  margin: 22px 0 10px;
  color: var(--paper);
}

.prose p { margin: 0 0 1em; line-height: 1.78; }

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

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

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

.prose li { margin: 0 0 0.45em; }

.prose blockquote {
  margin: 0 0 1em;
  padding: 14px 18px;
  border-left: 5px solid var(--hot);
  background: rgba(244, 239, 230, 0.05);
  border-radius: 0 16px 16px 0;
}

.prose figure {
  margin: 0 0 1em;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.prose img { width: 100%; height: auto; border-radius: 20px; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 0 0 1em;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  text-align: left;
}

.prose th { background: rgba(255, 75, 31, 0.16); }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  background: rgba(244, 239, 230, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: calc(var(--head-h) + 14px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 18px 22px;
}

.rail-title {
  font-size: 17px;
  letter-spacing: 0.1em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hot);
  margin-bottom: 12px;
}

.rail-title-2 { margin-top: 22px; }

.rail-title > span { display: inline-block; }

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 8px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.rail-list li:last-child a { border-bottom: 0; }

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

.rail-top { margin: 0; }

.rail-top a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  background: var(--hot);
  color: var(--ink);
  font-weight: 900;
  border-radius: 999px;
}

/* ---------- 页脚 ---------- */
.site-foot {
  background: var(--ink-3);
  border-top: 3px solid var(--hot);
  padding: 42px 20px 26px;
}

.foot-cols {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.foot-cols p { margin: 0; font-size: 16px; line-height: 1.6; }

.f-brand { font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }

.f-desc { color: var(--soft); }

.f-links { display: grid; gap: 4px; }

.f-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 700;
}

.f-links a:hover,
.f-links a:focus-visible,
.f-top a:hover { color: var(--hot); }

.f-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 700;
  color: var(--hot);
}

.f-copy {
  display: block;
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 16px;
  color: var(--soft);
}

/* ---------- 滚动显现 ---------- */
.js .prose > article,
.js .prose > figure,
.js .rail {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .prose > article.in,
.js .prose > figure.in,
.js .rail.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 940px) {
  .body-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 30px;
  }

  .rail { position: static; }

  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  :root { --head-h: 122px; }

  .brand-row { padding: 12px 14px 8px; }

  .menu-row { padding: 0 14px 10px; gap: 8px; }

  .nav-link,
  .grp summary { padding: 9px 12px; }

  .cta { padding: 9px 14px; }

  .hero { min-height: 42vh; padding: 40px 16px 44px; }

  .badge { left: 12px; top: 12px; }

  .body-grid { padding: 24px 14px 48px; }

  .prose > article { padding: 24px 18px; border-radius: 22px; }

  .site-foot { padding: 34px 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-copy,
  .hero-copy h1,
  .badge,
  .ticker-track { animation: none; }

  .js .prose > article,
  .js .prose > figure,
  .js .rail {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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