/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #0a0e17;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
}

.navbar-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #00f0ff;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #00f0ff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #00f0ff;
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.admin-btn {
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.admin-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

/* 动态背景 */
.dynamic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  background: linear-gradient(135deg, #0a0e17, #12192c, #1e133a, #2d1b55);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.8) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  animation: gridPulse 8s ease-in-out infinite;
}

.glow-circle {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  z-index: -1;
}

.glow-circle.blue {
  background: #00f0ff;
  width: 800px;
  height: 800px;
  top: -400px;
  left: -200px;
  animation: float 30s ease-in-out infinite;
}

.glow-circle.purple {
  background: #9d4edd;
  width: 700px;
  height: 700px;
  bottom: -350px;
  right: -250px;
  animation: float 25s ease-in-out infinite reverse;
}

.glow-circle.pink {
  background: #ff2a6d;
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 10s ease-in-out infinite;
}

/* 鼠标轨迹 */
.mouse-trail {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.4), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: width 0.2s, height 0.2s, opacity 0.3s;
  opacity: 0.7;
}

/* 粒子样式 */
.particle {
  position: fixed;
  background: rgba(0, 240, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* 主内容区域 */
main {
  padding-top: 70px; /* 为导航栏预留空间 */
}

/* 英雄区域 */
.hero-section {
  width: 100%;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  z-index: 5;
}

.logo {
  width: clamp(100px, 25vw, 160px);
  height: auto;
  margin-bottom: 30px;
  animation: iconPulse 4s ease-in-out infinite;
}

h1 {
  font-size: clamp(2.5rem, 10vw, 5.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
  background: linear-gradient(90deg, #00f0ff, #9d4edd, #ff2a6d, #00f0ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 
               0 0 20px rgba(157, 78, 221, 0.3), 
               0 0 30px rgba(255, 42, 109, 0.2);
  animation: gradientShift 8s ease infinite;
}

.intro {
  max-width: 800px;
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #e0e0e0;
  line-height: 1.8;
}

.intro p {
  margin-bottom: 15px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.intro p:nth-child(1) { animation-delay: 0.2s; }
.intro p:nth-child(2) { animation-delay: 0.4s; }
.intro p:nth-child(3) { animation-delay: 0.6s; }

.main-btn {
  position: relative;
  padding: 15px 40px;
  border-radius: 50px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.2), rgba(157, 78, 221, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-btn:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(157, 78, 221, 0.2);
}

.main-btn:active {
  transform: translateY(2px) scale(0.98);
}

.main-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.7s ease;
}

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

.main-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(90deg, #00f0ff, #9d4edd);
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.main-btn:hover::after {
  opacity: 0.3;
}

/* 内容区域通用样式 */
.content-section {
  min-height: 100vh;
  padding: 80px 50px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.content-section h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 40px;
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* 页脚样式 */
footer {
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 50px;
  position: relative;
  z-index: 5;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-links {
  display: flex;
  gap: 30px;
  margin-bottom: 10px;
}

.footer-links a {
  color: #888888;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00f0ff;
}

.record {
  color: #888888;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.record:hover {
  opacity: 1;
  color: #00f0ff;
}

.copyright {
  color: #666666;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* 动画定义 */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(157, 78, 221, 0.8)); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

@keyframes particleMove {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }
  
  .nav-links {
    display: none; /* 在移动设备上隐藏导航链接，可根据需要添加汉堡菜单 */
  }
  
  .content-section {
    padding: 60px 20px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}