:root {
  --bg-color: #2556cf;
  --accent-color: rgba(255, 255, 255, 0.9);
  --glass-bg: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

body,
html {
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  position: fixed;
}

.app-container {
  width: 100%;
  height: 100%;
  position: relative;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-top: env(safe-area-inset-top, 0px);
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--bg-color);
  position: relative;
  overflow-y: auto;
  /* allow vertical scroll if image is very tall */
  -webkit-overflow-scrolling: touch;
}

.swiper-slide::-webkit-scrollbar {
  display: none;
}

/* Wrapper anchors hotspots directly to the scaled image pixels */
.relative-wrapper {
  position: relative;
  /* Anchor for absolute hotspots */
  width: 100%;
  height: auto;
}

.relative-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
}

/* Hotspot Buttons overlay logic */
.hotspot-btn {
  position: absolute;
  /* Coordinates are injected inline by JS via percentages */
  background: rgba(255, 255, 255, 0);
  /* completely invisible */
  z-index: 10;
  cursor: pointer;
}

.hotspot-btn:active {
  /*background: rgba(255, 255, 255, 0.2);*/
  /* Highlight on tap to give feedback */
  /*box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);*/
}


/* UI Elements */
.music-player {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.music-player svg {
  width: 20px;
  height: 20px;
}

.music-player.playing {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.swipe-up-arrow {
  position: fixed;
  bottom: max(30px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.8);
  z-index: 100;
  pointer-events: none;
  animation: bounce 1.5s infinite;
}

.swipe-up-arrow svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes bounce {

  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -15px);
    opacity: 0.5;
  }
}

.hidden {
  display: none !important;
}

/* Preview Image Wrapper */
.preview-img-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.preview-img-wrapper.hidden {
  opacity: 0;
  pointer-events: none;
}

.preview-img-wrapper img {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  animation: zoomIn 0.3s ease forwards;
}

@keyframes zoomIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
background-image: url('https://cdn.hxp.name/750img/bg.jpg');
background-size: contain;
    background-repeat: no-repeat;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  padding-top: 80%;
}

.spinner {
  width: 80px;
  height: 80px;
  border: 8px solid rgba(255, 255, 255, 0.1);
  border-top-color: #FFF;
  border-radius: 50%;
  animation: loading-spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes loading-spin {
  100% {
    transform: rotate(360deg);
  }
}

#loading-text {
  font-size: 32px;
  color: #FFF;
  font-weight: bold;
}

    table.single-border-table {
      font-size: 20px;
      width: 100%;
      border-collapse: collapse;
      /* 关键：合并相邻边框，实现单线效果 */
      text-align: left;
      /* 整体表格外边框（可选，让表格最外也有闭合单线） */
      border: 1px solid #d0d7de;
    }

    /* 所有单元格、表头单元格统一单线边框 */
    table.single-border-table th,
    table.single-border-table td {
      border: 1px solid #d0d7de;
      /* 细边框颜色，干净利落单线风格 */
      padding: 5px;
      vertical-align: middle;
    }