/* ========== 全局禁止长按 + 禁止选择 + 禁止缩放 ========== */
* {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
  user-select: none !important;
  pointer-events: auto;
  touch-action: manipulation !important;
}

img {
  -webkit-touch-callout: none !important;
  pointer-events: none !important;
}

input, textarea {
  -webkit-user-select: auto !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== 全站深色主体 ========== */
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #191d2b !important;
  color: #ffffff !important;
  padding: 16px 12px 32px;
  padding-top: 70px !important;
  max-width: 438px;
  margin: 0 auto;
  position: relative;
  box-shadow: none;
  min-height: 100vh;
}

/* ========== 顶部区域 深色 ========== */
.LYAD-CC {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 438px;
  padding: 0 12px;
  background: #191d2b !important;
  z-index: 998;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #191d2b !important;
  padding: 8px 0;
  color: #fff !important;
}

.left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.ava {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #2a2e3a;
}

.text p {
  font-size: 14px;
  color: #ccc !important;
  margin-bottom: 4px;
}

.text-min {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  animation: colorChange 3s ease-in-out infinite;
}

@keyframes colorChange {
  0% { color: #fff; }
  25% { color: #2ecc71; }
  50% { color: #e74c3c; }
  75% { color: #f39c12; }
  100% { color: #fff; }
}

.text-min img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.right img {
  width: 28px;
  height: 28px;
  cursor: pointer;
}

/* ========== 轮播图 ========== */
.banner-swiper-wrap {
  width: 100%;
  margin: 0 auto 12px;
  border-radius: 16px;
  overflow: hidden;
  background: #2a2e3a !important;
}

.banner-swiper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.swiper-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.swiper-slide.active {
  opacity: 1;
  z-index: 1;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* ========== 公告栏 ========== */
.notice-bar {
  width: 100%;
  margin: 0 auto 10px;
  height: 36px;
  background: linear-gradient(90deg, #40a9ff, #1890ff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.notice-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.notice-text-wrap {
  flex: 1;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
}

.notice-text {
  display: inline-block;
  white-space: nowrap;
  animation: scrollText 10s linear infinite;
}

@keyframes scrollText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ========== 按钮组 ========== */
.btn-group {
  width: 100%;
  margin: 0 auto 12px;
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  background: #2a2e3a !important;
}

.btn-item {
  flex: 1;
  height: 38px;
  line-height: 38px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #ccc !important;
  cursor: pointer;
}

.btn-item.active {
  background: linear-gradient(90deg, #40a9ff, #1890ff);
  color: #fff !important;
}

/* ========== 模态框 ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 438px;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.modal-overlay.show {
  display: flex !important;
}

.modal {
  background: #2a2e3a !important;
  color: #fff !important;
  border-radius: 16px;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3a3e4a !important;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.modal-logo {
  margin-top: 32px;
  margin-bottom: 16px;
}

.modal-logo img {
  width: 80px;
  height: 80px;
}

.modal-title {
  font-size: 20px;
  color: #40a9ff !important;
  padding: 0 32px;
  text-align: left;
  margin-bottom: 16px;
}

.modal-content {
  font-size: 16px;
  color: #fff !important;
  padding: 0 32px;
  text-align: left;
  margin-bottom: 24px;
}

.modal-footer-info {
  text-align: right;
  padding: 0 32px 16px;
  color: #40a9ff !important;
  font-size: 16px;
}

.modal-footer-time {
  text-align: right;
  padding: 0 32px 24px;
  color: #ccc !important;
  font-size: 14px;
}

.modal-btn {
  width: calc(100% - 64px);
  margin: 0 auto 32px;
  height: 56px;
  background: linear-gradient(90deg, #40a9ff, #1890ff);
  color: #fff;
  border-radius: 28px;
  font-size: 18px;
  border: none;
  cursor: pointer;
}

/* ========== 图标网格 ========== */
.icon-grid {
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 100%;
  margin: 0 auto 24px;
}

.icon-grid.active {
  display: grid;
}

.icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.icon-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 16px;
  background: #2a2e3a !important;
  object-fit: cover;
}

.icon-text {
  margin-top: 8px;
  font-size: 11px;
  color: #fff !important;
  text-align: center;
}

/* ========== 底部导航 ========== */
.bottom-nav { 
  position:fixed;
  bottom:14px;
  left:50%;
  transform:translateX(-50%);
  width:88%;
  max-width: 380px;
  background:#2a2e3a !important;
  display:flex;
  padding:6px 2px;
  border-radius:30px;
  box-shadow:0 2px 12px rgba(0,0,0,0.3);
  z-index:999; 
}
.nav-item { 
  flex:1;
  text-align:center;
  color:#ccc !important;
  font-size:11px;
  padding:5px 0;
  border-radius:24px;
  cursor:pointer;
  border:none;
  background:transparent;
  display:block;
  pointer-events: auto !important;
}
.nav-item.active { 
  color:#fff !important;
  background:linear-gradient(90deg,#00b7ff,#008fff);
  margin:0 3px;
}
.nav-icon { 
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:2px;
  height:22px;
}
.nav-icon svg { width:20px;height:20px; }

/* 全局隐藏滚动条 */
html, body {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* ========== 活动页面 ========== */
.filter-wrapper {
  padding: 10px 12px;
}
.block-selector.flex {
  display: flex;
  background: #2a2e3a !important;
  border-radius: 10px;
  padding: 2px;
}
.block-selector .select-item {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 14px;
  color: #ccc !important;
}
.block-selector .select-item.active {
  background: #3a3e4a !important;
  color: #fff !important;
  font-weight: bold;
}

.main-area {
  padding: 0 12px;
}
.acitvity-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.activity {
  position: relative;
  border-radius: 12px;
  overflow: visible;
  margin: 4px 0 12px;
}
/* ========== 活动页面 ========== */
.filter-wrapper {
  padding: 10px 12px;
}
.block-selector.flex {
  display: flex;
  background: #2a2e3a !important;
  border-radius: 10px;
  padding: 2px;
}
.block-selector .select-item {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 14px;
  color: #ccc !important;
}
.block-selector .select-item.active {
  background: #3a3e4a !important;
  color: #fff !important;
  font-weight: bold;
}

.main-area {
  padding: 0 12px;
}
.acitvity-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.activity {
  position: relative;
  border-radius: 12px;
  overflow: visible;
  margin: 4px 0 12px;
}
.activity .card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #2a2e3a !important;
}
.picture {
  display: block;
  width: 100%;
  height: 110px;  /* 修改这里：390px 改为 110px */
}
.fit-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* 确保图片比例正确填充 */
}

/* 标签图片保持原比例 */
.activity .label .fit-image {
  height: auto;
  width: auto;
  max-width: 60px;
  max-height: 60px;
}

.bottom-nav-spacer {
  height: 60px;
}

/* ========== 弹窗 ========== */
.home-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}
.home-popup-overlay.show {
  display: flex !important;
}

.home-popup-content {
  position: relative;
  width: 100%;
  max-width: 330px;
  background: #2a2e3a !important;
  border-radius: 16px;
  padding: 12px;
  box-sizing: border-box;
  box-shadow: 0 0 0 2px #8b5cf6, 0 0 25px rgba(139,92,246,0.5);
}

.popup-close-btn {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #555;
  border: 2px solid #fff;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.vertical-fit-image {
  width: 100%;
  height: auto;
  aspect-ratio: 327.21 / 116.48;
  object-fit: cover;
}

.popup-btn {
  width: 100%;
  padding: 12px 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  animation: popupBtnBreath 0.8s infinite alternate ease-in-out;
}

@keyframes popupBtnBreath {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* ========== 发现页深色 ========== */
.discover-container {
  background-color: #191d2b !important;
  color: #fff !important;
}
.sidebar {
  background: #2a2e3a !important;
  border-right: 1px solid #3a3e4a !important;
}
.main-content {
  color: #fff !important;
  background: #191d2b !important;
}
.category-title {
  color: #fff !important;
}
.game-card {
  background: #2a2e3a !important;
}

/* ========== 客服页面 ========== */
.kefu-page-container {
  padding: 20px 12px;
  background: #191d2b !important;
  color: #fff !important;
}
.kefu-card {
  background: #2a2e3a !important;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  color: #fff !important;
}
.kefu-card-header h3,
.kefu-card-header p {
  color: #fff !important;
}
.kefu-copy-bar {
  background: #32384a !important;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kefu-copy-text {
  color: #fff !important;
}
.kefu-copy-btn {
  background: #40a9ff !important;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
}
.kefu-btn-group {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.contact-btn {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}
.contact-btn.btn-primary {
  background: #40a9ff !important;
  color: #fff !important;
  border: none;
}
.contact-btn.btn-outline {
  border: 1px solid #40a9ff !important;
  color: #40a9ff !important;
  background: transparent !important;
}
/* ========== 复制 ========== */
.copy-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a2e3a !important;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 9999;
  display: none;
}
.copy-toast.show {
  display: block !important;
}

/* ========== 赚钱页面 ========== */
#moneyPage {
  padding: 20px 12px;
  background: #191d2b !important;
  color: #fff !important;
  line-height: 1.8;
}

/* ========== 底部信息 ========== */
#homeFooter {
  color: #ccc !important;
  text-align: center;
  padding: 12px 10px;
  font-size: 12px;
  line-height: 1.4;
}

.activity .label {
  position: absolute;
  top: -8px;
  left: -10px;
  display: block;
  width: 68px;
  height: auto;
  z-index: 10;
}

/* 小图弹窗 */
.home-popup-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.85);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.home-popup-content {
  position: relative;
  max-width: 330px;
  background: #2a2e3a;
  border-radius: 16px;
  padding: 12px;
}
.popup-close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #555;
  border: 2px solid #fff;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}
.popup-btn {
  width: 100%;
  padding: 12px 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
  color: #fff;
  font-weight: bold;
  border: none;
  margin-top: 10px;
}

/* 大图开屏弹窗 */
.app-open-ad-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
}
.app-open-ad-box {
  position: relative;
  width: 90%;
  max-width: 380px;
}
.app-open-ad-img {
  width: 342px;
  height: 342px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: cover;  /* 保持图片比例填充，不变形 */
}
/* 关闭按钮 → 图片底部正中间 */
.app-open-ad-close {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #fff;
  color: #fff;
  font-size: 22px;
  line-height: 46px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
}

/* 小图弹窗 */
.home-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.home-popup-content {
  background: #1f1f1f;
  border-radius: 16px;
  padding: 15px;
  position: relative;
  max-width: 340px;
}
.popup-close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #333;
  border: 2px solid #fff;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
}
.popup-btn {
  width: 100%;
  padding: 12px 0;
  margin-top: 10px;
  background: #722ed1;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
}