/* Yuebaotong Self-Hosted 360 VR Factory Tour Styles (Zero External Dependency) */
.ybt-vr-band {
  background: #0a101d;
  color: #f8fafc;
  padding: 76px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ybt-vr-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ybt-vr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 3px solid #f59e0b;
  font-family: var(--mono, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fbbf24;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.ybt-vr-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  color: #ffffff;
}
.ybt-vr-head p {
  margin: 0;
  color: #94a3b8;
  font-size: 14.5px;
  max-width: 62ch;
  line-height: 1.65;
}
.ybt-vr-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.ybt-vr-ext-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

/* Interactive Stage Box (Click-to-Load Cover + Live Pannellum WebGL Canvas) */
.ybt-vr-stage {
  position: relative;
  width: 100%;
  height: 540px;
  border-radius: 14px;
  overflow: hidden;
  background: #050a14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
}
.ybt-vr-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  z-index: 5;
  background: #050a14;
}
.ybt-vr-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(1.06);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}
.ybt-vr-cover:hover > img {
  transform: scale(1.03);
  filter: brightness(0.72) saturate(1.1);
}
.ybt-vr-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 16, 29, 0.28) 0%, rgba(10, 16, 29, 0.78) 100%);
  pointer-events: none;
}
.ybt-vr-launch-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
}
.ybt-vr-orb {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(29, 78, 216, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 12px rgba(29, 78, 216, 0.22), 0 16px 36px rgba(0, 0, 0, 0.45);
  font-family: var(--mono, monospace);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.ybt-vr-cover:hover .ybt-vr-orb {
  transform: scale(1.07);
  background: #2563eb;
  box-shadow: 0 0 0 16px rgba(37, 99, 235, 0.3), 0 18px 42px rgba(0, 0, 0, 0.55);
}
.ybt-vr-launch-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.ybt-vr-launch-sub {
  font-size: 13.5px;
  color: #cbd5e1;
  background: rgba(10, 16, 29, 0.65);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Active Pannellum Viewport & Custom HUD */
.ybt-vr-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.ybt-vr-canvas .pnlm-container {
  background: #050a14 !important;
  font-family: inherit !important;
}
.ybt-vr-canvas .pnlm-load-box {
  background: rgba(10, 16, 29, 0.88) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px !important;
  color: #f8fafc !important;
}
.ybt-vr-canvas .pnlm-lbar-fill {
  background: #f59e0b !important;
}
.ybt-vr-canvas .pnlm-about-msg {
  display: none !important;
}

.ybt-vr-hud-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.ybt-vr-badge {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 9px;
  background: rgba(10, 16, 29, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}
.ybt-vr-badge b {
  color: #fbbf24;
  font-family: var(--mono, monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.ybt-vr-tools {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ybt-vr-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 16, 29, 0.78);
  backdrop-filter: blur(12px);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ybt-vr-tool-btn:hover,
.ybt-vr-tool-btn.is-active {
  background: rgba(29, 78, 216, 0.88);
  border-color: rgba(147, 197, 253, 0.5);
  color: #ffffff;
}

.ybt-vr-hud-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  pointer-events: none;
}
.ybt-vr-scenes {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ybt-vr-scene-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 6px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 16, 29, 0.82);
  backdrop-filter: blur(12px);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.ybt-vr-scene-btn img {
  width: 44px;
  height: 28px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}
.ybt-vr-scene-btn:hover {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}
.ybt-vr-scene-btn.is-active {
  background: rgba(29, 78, 216, 0.92);
  border-color: #f59e0b;
  color: #ffffff;
}
.ybt-vr-wa-cta {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 9px;
  background: #16a34a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, transform 0.2s;
}
.ybt-vr-wa-cta:hover {
  background: #15803d;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Graceful Fallback (No WebGL) */
.ybt-vr-fallback {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: #0a101d;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 14px;
  overflow-y: auto;
}
.ybt-vr-fallback p {
  margin: 0;
  font-size: 13.5px;
  color: #cbd5e1;
}
.ybt-vr-fallback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
}
.ybt-vr-fallback-grid figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ybt-vr-fallback-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.ybt-vr-fallback-grid figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 600;
}

/* Homepage Trigger Button & Fullscreen VR Modal */
.ybt-notes-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.ybt-notes-ctas .ink-link {
  margin-top: 0 !important;
}
.ybt-vr-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(29, 78, 216, 0.28);
  background: #0a101d;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ybt-vr-open-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.25);
}
.ybt-vr-open-btn b {
  color: #fbbf24;
  font-family: var(--mono, monospace);
  font-size: 12px;
}

.ybt-vr-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(4, 8, 16, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.ybt-vr-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.ybt-vr-modal-shell {
  width: min(1240px, 100%);
  height: min(760px, 88vh);
  display: flex;
  flex-direction: column;
}
.ybt-vr-modal-shell .ybt-vr-stage {
  height: 100%;
  flex: 1;
}

/* Dedicated Fullscreen /vr/ and /en/vr/ Page */
body.ybt-vr-standalone {
  margin: 0;
  background: #050a14;
  color: #f8fafc;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ybt-vr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 22px;
  background: #0a101d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 20;
  flex-shrink: 0;
}
.ybt-vr-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.ybt-vr-brand-link {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
}
.ybt-vr-brand-link img {
  height: 28px;
  width: auto;
  display: block;
}
.ybt-vr-page-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ybt-vr-page-title strong {
  font-size: 14px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ybt-vr-page-title span {
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ybt-vr-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ybt-vr-top-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s, color 0.2s;
}
.ybt-vr-top-actions a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.ybt-vr-top-actions a.is-primary {
  background: #1d4ed8;
  border-color: #2563eb;
  color: #ffffff;
}
.ybt-vr-top-actions a.is-primary:hover {
  background: #2563eb;
}
.ybt-vr-fullstage {
  position: relative;
  flex: 1;
  min-height: 0;
}
.ybt-vr-fullstage .ybt-vr-stage {
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .ybt-vr-band { padding: 52px 0; }
  .ybt-vr-stage { height: 420px; }
  .ybt-vr-hud-top { top: 10px; left: 10px; right: 10px; }
  .ybt-vr-badge { padding: 6px 10px; font-size: 12px; }
  .ybt-vr-tool-btn { padding: 6px 10px; font-size: 12px; }
  .ybt-vr-tool-btn span.ybt-vr-lbl { display: none; }
  .ybt-vr-hud-bottom { left: 10px; right: 10px; bottom: 10px; gap: 8px; }
  .ybt-vr-scene-btn { padding: 5px 9px 5px 5px; font-size: 11.5px; }
  .ybt-vr-scene-btn img { width: 32px; height: 22px; }
  .ybt-vr-wa-cta { padding: 7px 11px; font-size: 12px; }
  .ybt-vr-topbar { padding: 8px 12px; gap: 8px; }
  .ybt-vr-page-title { display: none; }
  .ybt-vr-top-actions a { padding: 7px 10px; font-size: 12px; }
  .ybt-vr-fallback-grid { grid-template-columns: 1fr; }
  .ybt-vr-modal { padding: 10px; }
  .ybt-vr-modal-shell { height: 84vh; }
}

/* YBT-VR-POLISH-202612022310 */
.ybt-vr-launch-btn {
  gap: 10px;
}
.ybt-vr-orb {
  width: 156px;
  height: 110px;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: grid;
  place-items: center;
  padding: 0;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.58));
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), filter 0.34s ease;
}
.ybt-vr-orb img {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: none !important;
  transform: none !important;
  display: block;
  pointer-events: none;
}
.ybt-vr-cover:hover .ybt-vr-orb {
  transform: translateY(-4px) scale(1.07);
  background: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 18px 34px rgba(37, 99, 235, 0.44)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.52));
}

/* Prominent Crimson Exit Button on Standalone /vr/ & /en/vr/ */
.ybt-vr-top-actions a.is-lang {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  padding: 8px 13px;
}
.ybt-vr-top-actions a.is-lang:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.ybt-vr-top-actions a.is-exit {
  background: #dc2626;
  border: 1px solid rgba(254, 202, 202, 0.38);
  color: #ffffff;
  padding: 8px 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ybt-vr-top-actions a.is-exit i {
  font-size: 15px;
  line-height: 1;
}
.ybt-vr-top-actions a.is-exit:hover {
  background: #ef4444;
  border-color: rgba(254, 226, 226, 0.65);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@media (max-width: 650px) {
  .ybt-vr-orb { width: 126px; height: 88px; }
  .ybt-vr-brand-link { padding: 3px 7px; }
  .ybt-vr-brand-link img { height: 22px; }
  .ybt-vr-top-actions { gap: 7px; }
  .ybt-vr-top-actions a { white-space: nowrap; font-size: 12px; }
  .ybt-vr-top-actions a.is-lang { padding: 6px 10px; }
  .ybt-vr-top-actions a.is-exit { padding: 6px 12px; }
}
