@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 {
  --bg: #000000;
  --panel: #121212;
  --panel-lo: #0a0a0a;
  --blue: #0c1220;
  --ink: #e9eaee;
  --dim: #949aa4;
  --faint: #6d737d;
  --neon: #ff4d5a;
  --glow: 0 0 10px rgba(255, 77, 90, 0.55);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --ff: 'Barlow Condensed', 'Barlow', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --fb: 'Barlow', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fb);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: clip;
}

a {
  color: #ffb9be;
  text-decoration-color: rgba(255, 77, 90, 0.45);
  text-underline-offset: 3px;
}

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 顶部 */
.top {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 150% at 10% -30%, #17181d 0%, #000 62%),
    var(--bg);
}

.top-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px clamp(14px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.mark {
  width: 13px;
  height: 13px;
  background: var(--neon);
  box-shadow: var(--glow);
  transform: rotate(45deg);
  display: block;
  flex: none;
}

.brand-name {
  font-family: var(--ff);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 77, 90, 0.3);
}

.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(18, 18, 18, 0.9);
  overflow: hidden;
}

.search input {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0 12px;
  min-height: 42px;
  min-width: 0;
  width: 148px;
}

.search input::placeholder {
  color: var(--faint);
}

.search button {
  font: inherit;
  font-family: var(--ff);
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #150609;
  background: var(--neon);
  border: 0;
  min-height: 42px;
  padding: 0 14px;
  cursor: pointer;
}

.search button:hover {
  filter: brightness(1.12);
}

/* 锚点条 */
.jump {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.86);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.jump ol {
  list-style: none;
  margin: 0 auto;
  padding: 0 clamp(8px, 3vw, 30px);
  max-width: 1240px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--dim);
  font-family: var(--ff);
  font-size: 16px;
  letter-spacing: 0.1em;
  transition: color 0.18s ease;
}

.dot {
  width: 5px;
  height: 5px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}

.jump a:hover,
.jump a:focus-visible,
.jump a[aria-current='true'] {
  color: #fff;
}

.jump a:hover .dot,
.jump a[aria-current='true'] .dot {
  background: var(--neon);
  box-shadow: var(--glow);
}

/* 首屏 */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(20px, 4.5vw, 46px) clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(16px, 3.6vw, 40px);
  min-height: 45vh;
  border-bottom: 1px solid var(--line-soft);
}

.hero-lone {
  grid-template-columns: 1fr;
}

.hero h1 {
  margin: 0;
  font-family: var(--ff);
  font-weight: 700;
  font-size: clamp(2rem, 6.4vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 77, 90, 0.22);
}

.hero-media {
  position: relative;
  margin: 0;
  border-radius: 4px;
}

.hero-media img {
  display: block;
  width: 100%;
  height: clamp(170px, 30vh, 310px);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  filter: brightness(0.88);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 10px;
  border: 1px solid rgba(255, 77, 90, 0.55);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffd8db;
  font-family: var(--ff);
  font-size: 13px;
  letter-spacing: 0.18em;
  backdrop-filter: blur(4px);
  text-shadow: var(--glow);
}

/* 正文外壳 */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px) clamp(30px, 6vw, 64px);
}

.sheet {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 24px);
  align-items: start;
}

/* 侧栏 */
.rail {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 62px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, #141414, #080808);
  padding: 14px 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rail-k {
  display: block;
  margin-bottom: 8px;
  font-family: var(--ff);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--neon);
  text-transform: uppercase;
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
}

.rail a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 2px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px dashed var(--line-soft);
}

.rail a:hover {
  color: var(--neon);
}

.rail a:hover .dot {
  background: var(--neon);
  box-shadow: var(--glow);
}

.totop {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--dim);
  font-size: 16px;
  text-decoration: none;
}

.totop:hover {
  color: #fff;
  border-color: var(--neon);
}

/* 正文区块 */
.sheet > div {
  grid-column: 2;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, #111111, #090909);
  padding: clamp(18px, 3vw, 30px);
  scroll-margin-top: 78px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.sheet > div small {
  display: block;
  margin-bottom: 7px;
  font-family: var(--ff);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--neon);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 77, 90, 0.45);
}

.sheet > div h2 {
  margin: 0 0 0.55em;
  font-family: var(--ff);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  line-height: 1.16;
  letter-spacing: 0.03em;
  color: #fff;
}

.sheet > div h3 {
  margin: 1.3em 0 0.4em;
  font-family: var(--ff);
  font-size: 1.22rem;
  letter-spacing: 0.03em;
  color: #ffd8db;
}

.sheet > div p {
  margin: 0 0 1em;
}

.sheet > div p:last-child,
.sheet > div ul:last-child,
.sheet > div ol:last-child {
  margin-bottom: 0;
}

.sheet > div ul,
.sheet > div ol {
  padding-left: 1.25em;
}

.sheet > div li {
  margin: 0.28em 0;
}

.sheet > div img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--line-soft);
}

.sheet > div blockquote {
  margin: 1.2em 0;
  padding: 10px 16px;
  border-left: 2px solid var(--neon);
  border-radius: 0 4px 4px 0;
  background: var(--blue);
  color: #cfd5e0;
}

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

.sheet > div th,
.sheet > div td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

.sheet > div th {
  background: #141414;
  color: #fff;
  font-weight: 600;
}

.sheet > div code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #17181c;
  padding: 1px 5px;
  border-radius: 3px;
}

/* 页脚 */
.foot {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0b0b0b, #000 55%);
  padding: clamp(26px, 5vw, 48px) clamp(16px, 4vw, 40px) 22px;
}

.foot-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(18px, 4vw, 44px);
  align-items: start;
}

.foot-desc {
  margin: 12px 0 0;
  max-width: 46ch;
  color: var(--dim);
  font-size: 16px;
}

.foot-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.foot-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: var(--dim);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}

.foot-nav a:hover {
  color: #fff;
}

.cta {
  max-width: 1240px;
  margin: clamp(24px, 4vw, 40px) auto 0;
  padding: clamp(20px, 3.4vw, 34px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  border: 1px solid rgba(255, 77, 90, 0.35);
  border-radius: 4px;
  background:
    radial-gradient(90% 140% at 6% 0%, #1d0e13 0%, #07070a 68%);
}

.cta small {
  flex-basis: 100%;
  font-family: var(--ff);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--neon);
  text-transform: uppercase;
}

.cta h2 {
  margin: 0;
  flex: 1 1 auto;
  font-family: var(--ff);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 77, 90, 0.28);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 3px;
  background: var(--neon);
  color: #160609;
  font-family: var(--ff);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(255, 77, 90, 0.25);
}

.cta-btn:hover {
  filter: brightness(1.12);
}

.foot-bar {
  max-width: 1240px;
  margin: 22px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 15px;
}

.foot-bar p {
  margin: 0;
}

/* 动效 */
.js .rv {
  opacity: 0;
  transform: translateY(14px);
}

.js .rv.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-media img {
    height: clamp(160px, 26vh, 240px);
  }
  .sheet {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: static;
    grid-row: auto;
    grid-column: 1;
  }
  .rail ol {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .rail ol::-webkit-scrollbar {
    display: none;
  }
  .rail a {
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 0 12px;
    white-space: nowrap;
  }
  .rail a .dot {
    display: none;
  }
  .totop {
    display: none;
  }
  .sheet > div {
    grid-column: 1;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .top-in {
    flex-wrap: wrap;
    gap: 10px;
  }
  .search {
    order: 3;
    flex: 1 1 100%;
  }
  .search input {
    flex: 1 1 auto;
    width: auto;
  }
  .foot-nav ol {
    grid-template-columns: 1fr;
  }
}

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