﻿
:root {
  --primary: #ff0055;
  --wa-green: #25D366;
  --glass: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.2);
}

/* 优化后的晃动+高亮动画 */
@keyframes intense-shake {

  0%,
  100% {
    left: 0;
  }

  20% {
    left: -10px;
  }

  40% {
    left: 10px;
  }

  60% {
    left: -10px;
  }

  80% {
    left: 10px;
  }
}

@keyframes green-glow {

  0%,
  100% {
    border-color: var(--border);
    box-shadow: none;
  }

  50% {
    border-color: var(--wa-green);
    box-shadow: 0 0 30px var(--wa-green);
  }
}

/* 强制应用到 login-card */
.login-card-active {
  position: relative !important;
  /* 必须有定位才能动 */
  animation: intense-shake 0.4s ease-in-out, green-glow 0.8s ease-in-out !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body,
html {
  height: 100%;
  background: #000;
  color: #fff;
  overflow: hidden;
}

/* 背景视频/图片适配 */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1);
  animation: slowZoom 30s infinite alternate;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.15);
  }
}

/* 顶部导航 */
header {
  position: fixed;
  top: 15px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-weight: 900;
  font-size: 20px;
  text-shadow: 0 0 15px var(--primary);
}

.logo span {
  color: var(--primary);
}

.live-tag {
  background: rgba(255, 0, 85, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid var(--primary);
}

/* 内容布局 */
.main-content {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 8vh;
  /* 从 15vh 减小到 8vh，显著上移 */
  align-items: center;
}

/* 标题上移 */
.visual-headline {
  text-align: center;
  margin-bottom: 20px;
  /* 从 40px 减小到 20px */
  z-index: 10;
}

.visual-headline h1 {
  font-size: 42px;
  line-height: 0.9;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -1px;
}

/* 图片轨道显著放大 */
.scroller-container {
  width: 100%;
  overflow: hidden;
  margin-top: 50px;
  /* 额外向上拉 10px */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.scroller-track {
  display: flex;
  gap: 18px;
  padding: 10px 0;
  width: max-content;
  animation: infiniteScroll 20s linear infinite;
}

@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* 放大后的媒体卡片 */
.media-card {
  width: 220px;
  /* 增加宽度 */
  height: 320px;
  /* 增加高度 */
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*filter: blur(1px);  模糊增加诱惑感 */
  transform: scale(1.1);
}

.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lock-icon {
  font-size: 32px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.play-hint {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
}

/* --- WhatsApp 登录区 --- */
.auth-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 35px;
  background: linear-gradient(to top, #000 85%, transparent);
  z-index: 200;
}

.login-card {
  background: rgba(35, 35, 50, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 15px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.login-card h3 {
  text-align: center;
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.input-group {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  height: 60px;
  transition: all 0.3s;
}

.input-group:focus-within {
  border-color: var(--wa-green);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
}

.country-code {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.05);
  border-right: 1px solid var(--border);
}

.flag {
  width: 24px;
  border-radius: 3px;
}

.code {
  font-weight: 600;
  font-size: 16px;
}

.phone-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 15px;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 70px;
  background: linear-gradient(90deg, #1bd741, var(--wa-green));
  border-radius: 22px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  border: none;
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.hint {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 15px;
  letter-spacing: 0.5px;
}

  .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
  }

.loading-ring {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(191, 149, 247, 0.1);
  border-top-color: #ff0055;
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 15px;
}

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

#screen-loading {
  display: flex;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(0, 242, 255, 0.1);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 25px;
}

.loading-text {
  color: var(--neon);
  font-family: monospace;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.input-label {
  font-size: 1.25rem !important;
  color: #fff !important;
  display: block;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 700 !important;
}

.iti {
  width: 100%;
}

.iti__flag-container {
  padding: 2px;
  border-right: 1px solid #444;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px 0 0 8px;
}

.iti__selected-flag {
  background-color: transparent !important;
}

#phone {
  width: 100%;
  height: 50px;
  background: transparent;
  border: 1px solid #333;
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  padding-left: 105px !important;
  outline: none;
  border: 2px solid rgba(191, 149, 247, 0.3);
}

.iti__country-list {
  background-color: #1a1a1a !important;
  color: #fff !important;
  border: 1px solid var(--primary) !important;
  border-radius: 8px;
  width: 90vw !important;
  max-width: 500px !important;
  min-width: 280px !important;
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  box-shadow: 0 8px 32px rgba(118, 52, 234, 0.3) !important;
  z-index: 1000 !important;
  top: 100px !important;
  bottom: 50px !important;
}

.iti__search-wrapper {
  background: #1a1a1a;
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(118, 52, 234, 0.2);
}

.iti__search-field {
  width: 100% !important;
  height: 40px !important;
  background: #222 !important;
  border: 1px solid rgba(118, 52, 234, 0.4) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
}

.iti__search-field:focus {
  background: #2a2a2a !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 10px rgba(118, 52, 234, 0.2) !important;
}

.iti__country {
  display: flex !important;
  align-items: center !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.2s ease !important;
}

.iti__country:hover {
  background-color: rgba(118, 52, 234, 0.2) !important;
  padding-left: 16px;
}

.iti__country-name {
  color: #fff !important;
  font-size: 14px !important;
}

.iti__dial-code {
  color: var(--primary) !important;
  font-size: 12px !important;
  margin-left: auto;
  font-weight: 600;
}

/* .iti__flag {
    margin-right: 10px !important;
    width: 28px !important;
    height: 20px !important;
    object-fit: cover !important;
    border-radius: 2px !important;
} */

.iti__search-input {
  background: #333;
  color: white;
  border: 1px solid #555;
}

#custom-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(255, 77, 77, 0.95);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: bold;
  z-index: 10000;
  transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

#custom-toast.show {
  transform: translateX(-50%) translateY(0);
}

.code-display-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.code-char {
  width: 32px;
  height: 42px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: rgba(0, 210, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 5px var(--primary);
}

.copy-btn {
  width: 100%;
  max-width: 360px;
  height: 55px;
  background: var(--primary) !important;
  border: none;
  border-radius: 30px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(234, 52, 61, 0.4);
}

.copy-btn:active {
  background: var(--primary);
  color: #000;
}

.tip-img {
  width: 100%;
  max-width: 240px;
  border-radius: 10px;
  margin: 15px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.verification-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--primary);
  padding: 10px;
  margin: 15px 0;
  border-radius: 8px;
}

.retry-btn {
  width: 100%;
  background: var(--primary) !important;
  padding: 12px 0;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(234, 52, 61, 0.4);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal {
  width: 90%;
  /* max-width: 320px; */
  background: rgba(51, 33, 33, 0.8);
  padding: 35px 25px;
  border-radius: 20px;
  text-align: center;
  border: 2px solid var(--purple-border);
  z-index: 2002;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal .prize-val {
  font-size: 4.5rem;
  font-weight: 900;
  color: #fff;
  margin: 15px 0;
}
