/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* rem 布局基础设置 */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

/* 响应式变量 */
:root {
  --base-font-size: 16px;
  --container-width: 430px;
  --container-height: 932px;
  --header-height: 60px;
  --bottom-nav-height: 60px;
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 34px);
  --deep-space: #0A0A16;
  --cyber-blue: #32F5FF;
  --neon-pink: #FF4DD8;
  --quantum-green: #00FF9D;
  --sky-blue: #00E0FF;
  --purple-crystal: #6B48FF;
  --gold: #FFD700;
  --alert-red: #FF4D4D;
  --eco-green: #00CC66;
}

/* 通用按钮样式 */
.btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s;
}

.btn:hover:before {
  left: 100%;
}

/* 毛玻璃效果容器 */
.glassmorphism {
  background: rgba(20, 20, 36, 0.4);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 分割线 */
.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.divider:before, .divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.divider:before {
  margin-right: 10px;
}

.divider:after {
  margin-left: 10px;
}

/* 链接样式 */
.link {
  color: var(--cyber-blue);
  text-decoration: none;
  transition: color 0.3s;
}

.link:hover {
  color: var(--neon-pink);
  text-decoration: underline;
}

/* 霓虹文字效果 */
.neon-text {
  background: linear-gradient(45deg, var(--cyber-blue), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* 通用动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.8;
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 15px rgba(50, 245, 255, 0.3), 0 0 15px rgba(255, 77, 216, 0.3);
  }
  100% {
    box-shadow: 0 0 25px rgba(50, 245, 255, 0.5), 0 0 25px rgba(255, 77, 216, 0.5);
  }
}

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