:root {
  --xbh-bg: #0c0b14;
  --xbh-surface: rgba(255, 255, 255, 0.06);
  --xbh-glass: rgba(22, 20, 36, 0.72);
  --xbh-text: #eceaf4;
  --xbh-muted: #9b96ad;
  --xbh-coral: #ff6b4a;
  --xbh-violet: #8b6cff;
  --xbh-teal: #3dd9c4;
  --xbh-gold: #f5c842;
  --xbh-radius: 18px;
  --xbh-nav-h: 58px;
  --xbh-sticky-h: 0px;
  --xbh-font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--xbh-font);
  background: var(--xbh-bg);
  color: var(--xbh-text);
  line-height: 1.75;
  font-size: 15px;
  overflow-x: hidden;
}

body.xbh-lock {
  overflow: hidden;
}

a {
  color: var(--xbh-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--xbh-coral);
}

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

.xbh-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--xbh-coral);
  color: #fff;
}

.xbh-skip:focus {
  left: 12px;
  top: 12px;
}

.xbh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--xbh-nav-h);
  background: var(--xbh-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.xbh-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.xbh-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--xbh-text);
  font-weight: 700;
  font-size: 17px;
}

.xbh-brand img {
  border-radius: 10px;
  width: 34px;
  height: 34px;
  object-fit: cover;
}

.xbh-ham {
  width: 42px;
  height: 42px;
  border: none;
  background: var(--xbh-surface);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.xbh-ham span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--xbh-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.xbh-ham[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.xbh-ham[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.xbh-ham[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.xbh-panel {
  position: fixed;
  top: var(--xbh-nav-h);
  left: 0;
  right: 0;
  z-index: 850;
  background: rgba(12, 11, 20, 0.96);
  backdrop-filter: blur(20px);
  padding: 20px 16px 28px;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.xbh-panel.xbh-panel-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.xbh-panel ul {
  list-style: none;
  max-width: 1140px;
  margin: 0 auto;
}

.xbh-panel li + li {
  margin-top: 4px;
}

.xbh-panel a {
  display: block;
  padding: 14px 16px;
  color: var(--xbh-text);
  border-radius: 12px;
  font-size: 16px;
}

.xbh-panel a:hover,
.xbh-panel a[aria-current="page"] {
  background: var(--xbh-surface);
  color: var(--xbh-coral);
}

.xbh-sticky-dl {
  position: fixed;
  top: var(--xbh-nav-h);
  left: 0;
  right: 0;
  z-index: 800;
  background: linear-gradient(180deg, rgba(12, 11, 20, 0.95) 0%, rgba(12, 11, 20, 0.88) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 108, 255, 0.2);
  padding: 10px 12px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.xbh-sticky-dl.xbh-sticky-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.xbh-dl-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 6px;
  max-width: 1140px;
  margin: 0 auto;
}

.xbh-dl-item {
  width: calc(20% - 6px);
  text-align: center;
}

.xbh-dl-item a {
  display: block;
}

.xbh-dl-item img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin: 0 auto;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.xbh-dl-item span {
  display: block;
  font-size: 10px;
  color: var(--xbh-muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .xbh-dl-item {
    width: calc(12.5% - 6px);
  }

  .xbh-dl-item img {
    width: 52px;
    height: 52px;
  }
}

.xbh-hero {
  padding: calc(var(--xbh-nav-h) + 36px) 16px 48px;
  position: relative;
  overflow: hidden;
}

.xbh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(139, 108, 255, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(255, 107, 74, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(61, 217, 196, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.xbh-hero-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  align-items: center;
  position: relative;
}

@media (min-width: 768px) {
  .xbh-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

.xbh-hero h1 {
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.35;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--xbh-teal) 50%, var(--xbh-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.xbh-hero-lead {
  color: var(--xbh-muted);
  font-size: 16px;
  margin-bottom: 20px;
}

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

.xbh-tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--xbh-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--xbh-teal);
}

.xbh-device {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

.xbh-device-ring {
  position: absolute;
  inset: -20px;
  border-radius: 32px;
  background: conic-gradient(from 180deg, var(--xbh-violet), var(--xbh-coral), var(--xbh-teal), var(--xbh-violet));
  opacity: 0.4;
  filter: blur(24px);
  animation: xbh-pulse 4s ease-in-out infinite;
}

@keyframes xbh-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.03); }
}

.xbh-device img {
  position: relative;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.xbh-promo {
  max-width: 1140px;
  margin: 0 auto 32px;
  padding: 0 16px;
}

.xbh-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px 60px;
  padding-top: calc(var(--xbh-sticky-h));
}

.xbh-block {
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.xbh-block.xbh-visible {
  opacity: 1;
  transform: translateY(0);
}

.xbh-block h2 {
  font-size: clamp(20px, 4vw, 28px);
  margin-bottom: 16px;
  color: #fff;
  position: relative;
  padding-left: 16px;
}

.xbh-block h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--xbh-coral), var(--xbh-violet));
}

.xbh-block h3 {
  font-size: 18px;
  margin: 24px 0 12px;
  color: var(--xbh-teal);
}

.xbh-block p {
  margin-bottom: 14px;
  color: #c8c4d6;
}

.xbh-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xbh-coral);
  margin-bottom: 10px;
  font-weight: 600;
}

.xbh-glass-card {
  background: var(--xbh-surface);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--xbh-radius);
  padding: 24px;
  margin-bottom: 20px;
}

.xbh-split {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 768px) {
  .xbh-split {
    grid-template-columns: 1fr 1fr;
  }

  .xbh-split-reverse .xbh-split-media {
    order: 2;
  }
}

.xbh-shot {
  border-radius: var(--xbh-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.xbh-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 768px) {
  .xbh-mosaic {
    grid-template-columns: repeat(4, 1fr);
  }
}

.xbh-mosaic-item {
  background: var(--xbh-surface);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.xbh-mosaic-item:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 108, 255, 0.4);
}

.xbh-mosaic-item img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin: 0 auto 10px;
  object-fit: cover;
}

.xbh-mosaic-item h3 {
  font-size: 14px;
  margin: 0 0 6px;
  color: #fff;
}

.xbh-mosaic-item p {
  font-size: 12px;
  margin: 0;
  color: var(--xbh-muted);
  line-height: 1.5;
}

.xbh-horiz-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.xbh-horiz-scroll::-webkit-scrollbar {
  height: 4px;
}

.xbh-horiz-scroll::-webkit-scrollbar-thumb {
  background: var(--xbh-violet);
  border-radius: 4px;
}

.xbh-scroll-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: linear-gradient(145deg, rgba(139, 108, 255, 0.15), rgba(255, 107, 74, 0.1));
  border-radius: var(--xbh-radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.xbh-scroll-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #fff;
}

.xbh-scroll-card p {
  font-size: 13px;
  margin: 0;
}

.xbh-highlight {
  border-left: 3px solid var(--xbh-gold);
  padding: 16px 20px;
  background: rgba(245, 200, 66, 0.08);
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
}

.xbh-highlight p {
  margin: 0;
  color: #e8e0c0;
  font-size: 14px;
}

.xbh-cta-zone {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(139, 108, 255, 0.2), rgba(255, 107, 74, 0.15));
  border-radius: var(--xbh-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.xbh-btn-dl {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--xbh-coral), var(--xbh-violet));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 107, 74, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xbh-btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(139, 108, 255, 0.4);
  color: #fff;
}

.xbh-btn-ghost {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--xbh-text);
  border-radius: 999px;
  font-size: 15px;
}

.xbh-btn-ghost:hover {
  border-color: var(--xbh-teal);
  color: var(--xbh-teal);
}

.xbh-footer {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 16px;
  margin-top: 20px;
}

.xbh-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}

.xbh-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.xbh-footer-nav a {
  color: var(--xbh-muted);
  font-size: 14px;
}

.xbh-footer-nav a:hover {
  color: var(--xbh-coral);
}

.xbh-footer-copy {
  font-size: 12px;
  color: #6b6780;
}

.xbh-crumb {
  max-width: 1140px;
  margin: calc(var(--xbh-nav-h) + 20px) auto 0;
  padding: 0 16px;
  font-size: 13px;
  color: var(--xbh-muted);
}

.xbh-crumb a {
  color: var(--xbh-muted);
}

.xbh-crumb a:hover {
  color: var(--xbh-teal);
}

.xbh-page-head {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

.xbh-page-head h1 {
  font-size: clamp(22px, 4.5vw, 32px);
  margin-bottom: 12px;
}

.xbh-legal {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.xbh-legal h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  color: #fff;
}

.xbh-legal h3 {
  font-size: 16px;
  margin: 20px 0 10px;
  color: var(--xbh-teal);
}

.xbh-legal p,
.xbh-legal li {
  color: #c8c4d6;
  margin-bottom: 12px;
}

.xbh-legal ul,
.xbh-legal ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.xbh-error {
  text-align: center;
  padding: calc(var(--xbh-nav-h) + 40px) 16px 60px;
  max-width: 560px;
  margin: 0 auto;
}

.xbh-error-code {
  font-size: 80px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--xbh-coral), var(--xbh-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.xbh-error h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.xbh-error p {
  color: var(--xbh-muted);
  margin-bottom: 24px;
}

.xbh-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
