/* Global layout rules, variables, and fonts (from src/style.css) */
body {
  background: #000;
  margin: 0;
}

@font-face {
  font-family: 'FZDaBiaoSong-B06S';
  src: url('data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABpYABAAAAAAOowAABn6AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4bIBxgBlYAg3IRCAraAL4eC4IaAAE2AiQDg14EIAWHdQeDeAwIG3QqE+4wbBxAbMafAOC/TLCNZTX69xQNQuOyu7hciFGEPpZoGF+23vNSNMf/YYT5nbA1QpLZ/59f0+77+v77f76MMOAjiE6GGUyGgSA6iGgMSNIUUglEfJFScSA1IUnF0kPaFUsXsmZD2xUf1iz88/3BOvdTgE1UkAYcBJYFVNNM00zUgi/RKi7BW2oTk2/ytRNkcgLt5oWJCv1feI67ftVVhvMSTkqZ6t3305UvvXTST7cQJLCtrrXbmZYMd2w4DC58rsLw/8+Vb18KxOlpSq7CEaoKVV2hkvsmLzw7kyXMbGEyyzxl9oSyEgkUKWDLCp2qtOVPYKvG5DLIa1QOlqXp0afXMF3Sdtl+q/KIINjeubcqAKAlw6e7kTMAAP科学_sk_common.../truncated...') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --primary: #e0006a;
  --primary-dark: #b8005a;
  --primary-light: #ff3a8c;
  --gold: #f5c518;
  --gold-dark: #d4a017;
  --bg-dark: #0d0d0f;
  --bg-card: #1a1a20;
  --bg-card2: #141418;
  --text-primary: #ffffff;
  --text-secondary: #c8c8d4;
  --text-muted: #888898;
  --accent-pink: #ff1a8c;
  --accent-purple: #9b3cff;
  --gradient-hero: linear-gradient(180deg, rgba(13, 13, 15, 0) 0%, rgba(13, 13, 15, 0.6) 60%, #0d0d0f 100%);
  --gradient-primary: linear-gradient(135deg, #e0006a 0%, #b8005a 100%);
  --gradient-gold: linear-gradient(135deg, #f5c518 0%, #d4a017 100%);
  --gradient-purple: linear-gradient(135deg, #9b3cff 0%, #6a1fc2 100%);
  --border-radius: 12px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --header-height: 84px;
  --footer-height: 118px;
}

html,
body {
  background: #000;
  color: var(--text-primary);
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.page-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* AppHeader component styles */
.dow-nav {
  max-width: 480px;
  width: 100%;
  min-height: var(--header-height);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  box-sizing: border-box;
  gap: 8px;
}

.dow-nav-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex: 1;
  min-width: 0; /* allows text truncation */
  margin-right: 8px;
}

.logo-img {
  width: 43px;
  height: 43px;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-text-wrapper {
  margin-left: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.dow-nav-text1 {
  font-size: 12px;
  line-height: 1.3;
  color: #FFFFFF;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.dow-nav-text2 {
  font-size: 12px;
  line-height: 1.4;
  color: #4ea6ff;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dow-nav-but {
  border-radius: 36px;
  height: 36px;
  min-width: 82px;
  padding: 0 10px;
  background: #4ea6ff;
  text-align: center;
  line-height: 36px;
  font-size: 14px;
  color: white !important;
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
  display: block;
  text-decoration: none;
  transition: background-color 0.2s;
}

.dow-nav-but:hover {
  background-color: #3b8ee0;
}

/* MainScrollFlow component styles */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding-top: var(--header-height);
  padding-bottom: var(--footer-height);
  box-sizing: border-box;
}

.main-scroll-flow {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.flow-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  cursor: pointer;
  object-fit: cover;
}

/* Levitate images centered vertically */
.levitate-wrapper {
  position: fixed;
  top: calc(50% - 95px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 480px;
  height: 0;
  z-index: 98;
  pointer-events: none;
}

.levitate-item {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(34px, 10vw, 48px);
  pointer-events: auto;
  cursor: pointer;
  display: block;
}

.levitate-left {
  left: 0;
}

.levitate-right {
  right: 0;
}

.levitate-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Carousel container styles */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000;
  min-height: 120px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  object-fit: cover;
}

/* Dot indicators */
.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #ffffff;
  width: 16px; /* slightly elongated active dot for premium feel */
  border-radius: 4px;
}

/* FloatingButtons component styles */
.floating-buttons-wrapper {
  position: fixed;
  bottom: var(--footer-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  pointer-events: none;
  z-index: 99;
}

.float-kf {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: clamp(52px, 13vw, 64px);
  pointer-events: auto;
  cursor: pointer;
  display: block;
  transition: transform 0.2s ease-in-out;
}

.float-sw {
  bottom: 72px;
}

.float-kf img {
  width: 100%;
  height: auto;
  display: block;
}

.float-kf:hover {
  transform: scale(1.08);
}

.float-kf:active {
  transform: scale(0.95);
}

/* BottomBar component styles */
.dow-nav-wrapper {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  min-height: var(--footer-height);
  z-index: 100;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

/* Top Sub-Bar */
.dow-nav-foot {
  min-height: 58px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 4px;
  box-sizing: border-box;
  cursor: pointer;
}

.dow-nav-butq {
  display: none;
}

/* Bottom Sub-Bar containing buttons */
.dow-nav-foots {
  min-height: 58px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 10px;
  box-sizing: border-box;
}

.dow-nav-buts,
.dow-nav-wybuts {
  background: linear-gradient(to bottom, #4ea6ff, #236cf0);
  box-shadow: 0 0 8px rgba(78, 166, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  height: 38px;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  line-height: 38px;
  font-size: 14px;
  color: #FFFFFF !important;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dow-nav-buts:hover,
.dow-nav-wybuts:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 12px rgba(78, 166, 255, 0.8);
}

.dow-nav-buts:active,
.dow-nav-wybuts:active {
  transform: scale(0.97);
}

/* Heartbeat animation */
@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.08); }
  28% { transform: scale(1); }
  42% { transform: scale(1.08); }
  70% { transform: scale(1); }
}

.heartbeat-anim {
  display: inline-block;
  animation: heartBeat 2s infinite ease-in-out;
}

/* WeChat/QQ Guide Overlay styles (from App.vue) */
.guide-overlay {
  position: fixed;
  z-index: 1000000;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

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

/* Route loading placeholder (hidden by default) */
.route-placeholder {
  display: none;
  padding: 20px;
  color: #666;
  font-size: 18px;
}
.route-placeholder h3 {
  margin-top: 50%;
  text-align: center;
}

@media (max-width: 360px) {
  :root {
    --header-height: 78px;
    --footer-height: 110px;
  }

  .dow-nav {
    padding: 8px 10px;
  }

  .logo-img {
    width: 38px;
    height: 38px;
  }

  .dow-nav-text1 {
    font-size: 11px;
  }

  .dow-nav-text2 {
    font-size: 10px;
  }

  .dow-nav-but {
    min-width: 72px;
    height: 32px;
    line-height: 32px;
    font-size: 12px;
  }

  .levitate-item {
    width: clamp(32px, 10vw, 42px);
  }

  .levitate-left {
    left: 0;
  }

  .levitate-right {
    right: 0;
  }

  .dow-nav-buts,
  .dow-nav-wybuts {
    height: 34px;
    line-height: 34px;
    font-size: 13px;
  }
}
