/* CSS变量定义 */
:root {
  --primary: #6C63FF;
  --secondary: #36D1DC;
  --accent: #FF5E62;
  --light: #f8f9fa;
  --dark: #343a40;
  --success: #28a745;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --dpi-scale: 1.2;
}

/* 招募开发者样式 */
.recruit-details {
    margin: 20px 0;
    text-align: left;
}

.recruit-details p {
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.recruit-details ul {
    margin: 10px 0 20px 20px;
    color: #555;
}

.recruit-details li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 8px;
    margin: 15px 0;
    color: #333;
}

.contact-info i {
    color: #12b7f5;
    font-size: 1.2rem;
}

.contact-info span {
    font-weight: 600;
}

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'PingFang SC', -apple-system, sans-serif;
}

body {
  min-height: 100vh;
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
  transform: scale(var(--dpi-scale));
  transform-origin: top left;
  width: calc(100% / var(--dpi-scale));
  height: calc(100vh * var(--dpi-scale));
  transition: background 1.5s ease;
}

/* 淡色渐变方案 */
.gradient-1 { background: linear-gradient(180deg, #a8edea 0%, #fed6e3 100%); }
.gradient-2 { background: linear-gradient(180deg, #d4fc79 0%, #96e6a1 100%); }
.gradient-3 { background: linear-gradient(180deg, #fbc2eb 0%, #a6c1ee 100%); }
.gradient-4 { background: linear-gradient(180deg, #fad0c4 0%, #ffd1ff 100%); }
.gradient-5 { background: linear-gradient(180deg, #ffecd2 0%, #fcb69f 100%); }
.gradient-6 { background: linear-gradient(180deg, #a1c4fd 0%, #c2e9fb 100%); }
.gradient-7 { background: linear-gradient(180deg, #d9afd9 0%, #97d9e1 100%); }
.gradient-8 { background: linear-gradient(180deg, #f6d365 0%, #fda085 100%); }
.gradient-9 { background: linear-gradient(180deg, #e0c3fc 0%, #8ec5fc 100%); }
.gradient-10 { background: linear-gradient(180deg, #cd9cf2 0%, #f6f3ff 100%); }

/* 容器 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* 毛玻璃效果 */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 6s ease-in-out infinite;
  position: relative;
}

.glass:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 0;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalAppear 0.5s ease-out;
  overflow: hidden;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 25px;
  color: #333;
}

.modal-body p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #555;
}

.modal-actions {
  margin: 25px 0 20px;
  text-align: center;
}

.modal-checkbox {
  margin-top: 15px;
  text-align: center;
}

.modal-checkbox label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: #666;
  font-size: 0.9rem;
}

.modal-checkbox input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* 头部和导航 */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  animation: slideIn 1s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.announcement-bar:hover {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  padding-right: 35px;
}

.announcement-bar::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.announcement-bar:hover::after {
  transform: translateY(-50%) rotate(180deg);
}

.logo {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--dark), #5a5a5a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* 英雄区域 */
.hero {
  padding: 80px 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  perspective: 1000px;
}

.hero-content {
  flex: 1;
  text-align: left;
  max-width: 600px;
  animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.hero-icon {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.app-icon {
  width: 200px;
  height: 200px;
  border-radius: 25px;
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: rotate3d 10s linear infinite;
  transform-style: preserve-3d;
}

@keyframes rotate3d {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  25% { transform: rotateY(90deg) rotateX(10deg); }
  50% { transform: rotateY(180deg) rotateX(0deg); }
  75% { transform: rotateY(270deg) rotateX(-10deg); }
  100% { transform: rotateY(360deg) rotateX(0deg); }
}

.app-icon:hover {
  animation-play-state: paused;
  transform: scale(1.1) rotateY(15deg) rotateX(15deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  font-size: 3.5rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #333, #555);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 100%;
  animation: fadeIn 2s ease-out;
  color: #444;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 0.9; }
}

/* 按钮样式 */
.cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: translateY(-3px) scale(1.05);
}

/* 联系与支持 */
.support-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 60px;
}

.support-box {
  padding: 30px 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.support-box:hover {
  transform: translateY(-5px) scale(1.02);
}

.support-box i {
  font-size: 2.2rem;
  margin-bottom: 15px;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.support-box h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #333;
}

.support-box p {
  margin-bottom: 20px;
  opacity: 0.9;
  color: #444;
}

.support-btn {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.support-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 15px rgba(108, 99, 255, 0.3);
  text-decoration: none;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 40px 0;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 2s ease-out;
  color: #444;
}

footer a {
  color: var(--secondary);
  text-decoration: none;
}

/* 菜单样式 */
#menu-toggle {
  cursor: pointer;
  font-size: 1.8rem;
  color: white;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#side-nav {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  transition: left 0.3s ease;
  z-index: 1999;
  padding-top: 70px;
}

#side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  color: white;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: all 0.3s ease;
}

#side-nav a:hover {
  background: var(--primary);
  color: white;
  transform: translateX(5px);
}

#side-nav.open {
  left: 0;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1998;
  display: none;
}

/* 封禁提示样式 */
#banMask {
  display: none;
  position: fixed;
  inset: 0;
  background: #ff4757;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  z-index: 99999;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 20px;
}

#banMask i {
  margin-bottom: 20px;
  color: white;
}

#banMask h1 {
  font-size: 2.5rem;
  margin: 0 0 10px;
}

#banMask h2 {
  font-size: 1.8rem;
  margin: 0 0 20px;
}

#banText {
  font-size: 1.2rem;
}

/* 立即购买按钮样式 */
.purchase-btn {
  display: block;
  margin-top: 15px;
  padding: 10px 20px;
  background: linear-gradient(90deg, var(--accent), #ff8a8c);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  width: 100%;
  animation: bounce 2s infinite;
}

.purchase-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 94, 98, 0.4);
  text-decoration: none;
  color: white;
}

/* QQ浏览器提示样式 */
#qqbrowser-warning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.qqbrowser-warning-content {
  background: white;
  border-radius: 15px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  animation: zoomIn 0.5s ease-out;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.qqbrowser-warning-content h2 {
  color: #ff4d4d;
  margin-bottom: 15px;
}

.qqbrowser-warning-content p {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.qqbrowser-warning-content button {
  background: #6a11cb;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  animation: bounce 2s infinite;
}

.qqbrowser-warning-content button:hover {
  background: #2575fc;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 粒子效果 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0;1;0" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0;1;0" dur="4s" repeatCount="indefinite"/></circle><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0;1;0" dur="5s" repeatCount="indefinite"/></circle></svg>') repeat;
  pointer-events: none;
  z-index: 1;
}

/* 光晕效果 */
.glass::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 18px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.glass:hover::after {
  opacity: 0.3;
}

/* 光标消失动画 */
@keyframes cursorFade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  :root {
    --dpi-scale: 1;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 0 40px;
  }
  
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  
  .app-icon {
    width: 150px;
    height: 150px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .support-section {
    grid-template-columns: 1fr;
  }
}