:root {
  --xb-black: #000;
  --xb-white: #fff;
}

* { box-sizing: border-box; }

html {
  background: #000;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
}

body.xb-home {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background: #000;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  body.xb-home { overflow: hidden; }
}

.xb-shell {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  width: 100%;
  background: #000;
  padding: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .xb-shell {
    height: 100vh;
    height: 100dvh;
    padding: 16px;
  }
}

.xb-frame {
  width: 100%;
  min-height: calc(100vh - 24px);
  min-height: calc(100dvh - 24px);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .xb-frame {
    height: 100%;
    min-height: 0;
  }
}

.xb-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, rgba(40, 40, 40, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 40% at 70% 70%, rgba(30, 30, 30, 0.4), transparent 65%),
    #000;
}

.xb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.xb-video.is-failed,
html.no-video .xb-video {
  opacity: 0;
  pointer-events: none;
}

.xb-video-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

.xb-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
}

@media (min-width: 768px) {
  .xb-nav { padding: 32px 40px 0; }
}

.xb-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
}

.xb-logo {
  width: 56px;
  height: 56px;
}

@media (min-width: 768px) {
  .xb-logo { width: 64px; height: 64px; }
}

.xb-brand-text {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.4em;
  font-weight: 300;
  color: #fff;
}

@media (min-width: 768px) {
  .xb-brand-text { font-size: 12px; }
}

.xb-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hide-sm { display: none; }
@media (min-width: 768px) {
  .hide-sm { display: inline-flex; }
}

.xb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  clip-path: polygon(
    12px 0%, calc(100% - 12px) 0%, 100% 12px, 100% calc(100% - 12px),
    calc(100% - 12px) 100%, 12px 100%, 0% calc(100% - 12px), 0% 12px
  );
}

.xb-btn-solid {
  background: #fff;
  color: #000;
}
.xb-btn-solid:hover { background: rgba(255,255,255,0.9); color: #000; }

.xb-btn-border {
  position: relative;
  background: #fff;
  color: #fff;
}
.xb-btn-border::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: #000;
  z-index: 0;
  clip-path: polygon(
    11px 0%, calc(100% - 11px) 0%, 100% 11px, 100% calc(100% - 11px),
    calc(100% - 11px) 100%, 11px 100%, 0% calc(100% - 11px), 0% 11px
  );
}
.xb-btn-border > * {
  position: relative;
  z-index: 1;
}
.xb-btn-border:hover { background: rgba(255,255,255,0.85); }

.xb-btn-sm {
  width: 40px;
  height: 40px;
  padding: 0;
  background: #fff;
  color: #000;
  clip-path: polygon(
    8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px
  );
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.xb-btn-sm:hover { background: rgba(255,255,255,0.9); color: #000; }

.xb-btn-cta {
  width: 100%;
  max-width: 280px;
  padding: 14px 20px;
  font-weight: 500;
}

.xb-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 24px 32px;
}

@media (min-width: 768px) {
  .xb-main { padding: 0 40px 40px; }
}

.xb-hero {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}

.xb-side {
  display: none;
  flex-direction: column;
  gap: 24px;
  position: absolute;
  left: 0;
  top: 18%;
}

@media (min-width: 1024px) {
  .xb-side { display: flex; }
}

.xb-side-copy {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  line-height: 1.6;
  max-width: 220px;
}

.xb-side-meta { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.xb-dots { display: flex; gap: 4px; align-items: center; }
.xb-dots span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
}
.xb-side-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.xb-side-label { color: rgba(255,255,255,0.7); font-size: 12px; }
.xb-side-num { color: rgba(255,255,255,0.5); font-size: 12px; }

.xb-center {
  width: 100%;
  text-align: center;
}

.xb-center h1 {
  margin: 0;
  color: #fff;
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

@media (min-width: 640px) { .xb-center h1 { font-size: 2.25rem; } }
@media (min-width: 768px) { .xb-center h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .xb-center h1 { font-size: 3.75rem; } }
@media (min-width: 1280px) { .xb-center h1 { font-size: 4.5rem; } }

.xb-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
}

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

.xb-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .xb-col { justify-content: flex-end; }
}

.xb-col p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  max-width: 260px;
  text-align: center;
}

@media (min-width: 768px) {
  .xb-col p {
    text-align: left;
    margin-left: auto;
  }
}

.xb-col-mid {
  flex-direction: column;
  gap: 32px;
  justify-content: center !important;
}

@media (min-width: 768px) {
  .xb-col-mid { gap: 96px; }
}

.xb-mid-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .xb-mid-title { font-size: 1.875rem; }
}

.xb-mid-links {
  display: flex;
  gap: 16px;
  font-size: 12px;
}
.xb-mid-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.xb-mid-links a:hover { color: #fff; }

.xb-col-social { gap: 12px; }

.xb-mini {
  width: 40px;
  height: 40px;
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  clip-path: polygon(
    8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px
  );
}

.xb-social { text-decoration: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.anim-stagger {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.anim-fade {
  opacity: 0;
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* === cs-qr-float 20260726 === */
.xb-cs-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1200;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.18em;
  padding: 18px 10px;
  margin: 0;
  border: none;
  border-radius: 10px 0 0 10px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease, color 0.2s ease, padding-right 0.2s ease;
}
.xb-cs-float:hover,
.xb-cs-float:focus-visible {
  background: #f2f2f2;
  outline: none;
  padding-right: 14px;
}

.xb-cs-modal[hidden] { display: none !important; }
.xb-cs-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.xb-cs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.xb-cs-modal-panel {
  position: relative;
  z-index: 1;
  width: min(320px, 92vw);
  padding: 28px 24px 24px;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.xb-cs-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.xb-cs-modal-close:hover { color: #fff; }
.xb-cs-modal-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.xb-cs-modal-qr {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
}
body.xb-cs-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .xb-cs-float {
    padding: 14px 8px;
    font-size: 13px;
  }
  .xb-cs-modal-qr { width: 200px; }
}
