/* ==========================================================================
   公共样式文件 - Common Styles (更新版)
   适用于整个网站的基础样式
   ========================================================================== */

/* 重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: linear-gradient(135deg, #f8fffe 0%, #e8f8f5 30%, #d5f4e6 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Favicon 圆角样式 */
link[rel="icon"] {
  border-radius: 50%;
}

/* 通用容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(180, 239, 78, 0.2);
  box-shadow: 0 2px 20px rgba(180, 239, 78, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Logo 样式 - iOS 风格圆角 */
#logo {
  height: 50px;
  width: 50px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(180, 239, 78, 0.2);
  object-fit: cover;
}

#logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(180, 239, 78, 0.3);
}

/* 导航样式 */
nav#navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav#navigation ul li a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  background: linear-gradient(135deg, transparent 0%, transparent 100%);
}

nav#navigation ul li a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #B4EF4E 0%, #9DE83F 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(180, 239, 78, 0.3);
}

nav#navigation ul li a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #B4EF4E 0%, #9DE83F 100%);
  box-shadow: 0 4px 15px rgba(180, 239, 78, 0.3);
}

/* 页脚样式 */
footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  padding: 3rem 0 2rem;
  text-align: center;
  margin-top: auto;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #B4EF4E 0%, #FF39D2 50%, #1A66FF 100%);
}

footer p {
  color: #bdc3c7;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

footer a {
  color: #B4EF4E;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

footer a:hover {
  color: #FF39D2;
  text-shadow: 0 0 8px rgba(255, 57, 210, 0.3);
}

/* 按钮样式 */
.btn-primary {
  background: linear-gradient(135deg, #B4EF4E 0%, #9DE83F 100%);
  color: #2c3e50;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(180, 239, 78, 0.3);
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(180, 239, 78, 0.4);
  background: linear-gradient(135deg, #9DE83F 0%, #8BD636 100%);
}

.btn-secondary {
  background: linear-gradient(135deg, #1A66FF 0%, #0052E6 100%);
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(26, 102, 255, 0.3);
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 102, 255, 0.4);
  background: linear-gradient(135deg, #0052E6 0%, #003FCC 100%);
}

.btn-accent {
  background: linear-gradient(135deg, #FF39D2 0%, #E625B8 100%);
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 57, 210, 0.3);
  text-decoration: none;
  display: inline-block;
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 57, 210, 0.4);
  background: linear-gradient(135deg, #E625B8 0%, #CC119E 100%);
}

/* 卡片样式 */
.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(180, 239, 78, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(180, 239, 78, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav#navigation ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .container {
    padding: 0 15px;
  }
  
  #logo {
    height: 45px;
    width: 45px;
  }
}

@media (max-width: 480px) {
  nav#navigation ul {
    gap: 0.5rem;
  }
  
  nav#navigation ul li a {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  #logo {
    height: 40px;
    width: 40px;
    border-radius: 10px;
  }
}

/* 通用动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* 通用工具类 */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

.text-center {
  text-align: center;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #B4EF4E 0%, #9DE83F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #FF39D2 0%, #E625B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: linear-gradient(135deg, #1A66FF 0%, #0052E6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 特殊效果 */
.glow-primary {
  box-shadow: 0 0 20px rgba(180, 239, 78, 0.3);
}

.glow-accent {
  box-shadow: 0 0 20px rgba(255, 57, 210, 0.3);
}

.glow-secondary {
  box-shadow: 0 0 20px rgba(26, 102, 255, 0.3);
}