/* ============================================
   落樱塬小镇服务器 - 主样式表
   支持浅色/深色模式 + 响应式设计
   参考: popcraft.cn 动画效果
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ============================================
   CSS 变量定义
   ============================================ */
:root {
  /* 主题色 */
  --primary: #4A90E2;
  --primary-dark: #3a7bc8;
  --primary-light: #6BA3E8;
  --accent-pink: #FF5577;
  --accent-purple: #8B5CF6;
  --accent-rose: #F43F5E;
  
  /* 浅色模式 */
  --bg-primary: #f0f9ff;
  --bg-secondary: #e0f2fe;
  --bg-gradient-start: #e0f2fe;
  --bg-gradient-mid: #f0f9ff;
  --bg-gradient-end: #e8f4fd;
  
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: rgba(31, 38, 135, 0.15);
  
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(255, 255, 255, 0.3);
  
  --nav-bg: rgba(255, 255, 255, 0.85);
  --nav-border: rgba(255, 255, 255, 0.3);
  
  --footer-bg: linear-gradient(135deg, #111827, #1f2937);
  --footer-text: #9ca3af;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(31, 38, 135, 0.15);
  --shadow-lg: 0 15px 50px rgba(31, 38, 135, 0.2);
  --shadow-glow: 0 0 40px rgba(74, 144, 226, 0.3);
  
  /* 圆角 */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* 过渡 - 优化后的流畅动画曲线 */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  
  /* 间距 */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* 字体 */
  --font-family: 'Noto Sans SC', 'Segoe UI', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
}

/* ============================================
   深色模式变量
   ============================================ */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-gradient-start: #0f172a;
  --bg-gradient-mid: #1e293b;
  --bg-gradient-end: #0f172a;
  
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  --glass-bg: rgba(30, 41, 59, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  
  --card-bg: rgba(30, 41, 59, 0.85);
  --card-border: rgba(255, 255, 255, 0.1);
  
  --nav-bg: rgba(15, 23, 42, 0.9);
  --nav-border: rgba(255, 255, 255, 0.1);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.5);
}

/* 系统偏好深色模式 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-gradient-start: #0f172a;
    --bg-gradient-mid: #1e293b;
    --bg-gradient-end: #0f172a;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;
    
    --glass-bg: rgba(30, 41, 59, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    
    --card-bg: rgba(30, 41, 59, 0.85);
    --card-border: rgba(255, 255, 255, 0.1);
    
    --nav-bg: rgba(15, 23, 42, 0.9);
    --nav-border: rgba(255, 255, 255, 0.1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.5);
  }
}

/* ============================================
   基础样式重置 + 性能优化
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GPU加速优化 */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .loading-screen {
    display: none !important;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition-slow), color var(--transition-slow);
}

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

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

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

@keyframes slideIn {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

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

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(74, 144, 226, 0.3); }
  50% { box-shadow: 0 0 50px rgba(74, 144, 226, 0.6); }
}

@keyframes slideUpFade {
  from { 
    opacity: 0; 
    transform: translateY(60px) scale(0.95);
    filter: blur(8px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cardHover {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
  100% { transform: translateY(-6px) scale(1.01); }
}

/* ============================================
   玻璃态卡片 - 增强高斯模糊 + 性能优化
   ============================================ */
.glass-card {
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-smooth), 
              box-shadow var(--transition-smooth);
  will-change: transform, box-shadow;
  transform: translateZ(0);
  contain: layout style paint;
  content-visibility: auto;
}

/* 悬停时禁用content-visibility以确保动画流畅 */
.glass-card:hover {
  content-visibility: visible;
}

.glass-card:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(74, 144, 226, 0.15);
  transform: translateY(-6px) scale(1.01);
  backdrop-filter: blur(32px) saturate(220%);
  -webkit-backdrop-filter: blur(32px) saturate(220%);
}

/* ============================================
   导航栏 - 增强毛玻璃效果
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid var(--nav-border);
  transition: all var(--transition-smooth);
  transform: translateZ(0);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(40px) saturate(220%);
  -webkit-backdrop-filter: blur(40px) saturate(220%);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.navbar-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  transition: all var(--transition-bounce);
  box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
}

.navbar-brand:hover img {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 0 25px rgba(74, 144, 226, 0.5);
}

.navbar-brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter var(--transition-fast);
}

.navbar-brand:hover .navbar-brand-text {
  filter: brightness(1.1);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: all var(--transition-fast);
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  transition: all var(--transition-normal);
  transform: translateX(-50%);
  border-radius: 2px;
}

.navbar-nav a:hover {
  color: var(--primary);
}

.navbar-nav a:hover::after {
  width: 100%;
}

/* 公告导航链接 */
.announcement-nav-link {
  position: relative;
}

.announcement-nav-link::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -4px;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: pulse 2s ease-in-out infinite;
}

/* 服务器状态指示器 */
.server-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: #22c55e;
  transition: all var(--transition-fast);
}

.server-status-indicator:hover {
  background: rgba(34, 197, 94, 0.25);
  transform: scale(1.05);
}

.server-status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* 主题切换按钮 */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-bounce);
  transform: translateZ(0);
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
}

.theme-toggle i {
  transition: transform var(--transition-bounce);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--glass-bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--primary);
  color: white;
}

/* ============================================
   移动端菜单 - 增强动画
   ============================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid var(--nav-border);
  padding: 1rem;
  transform: translateY(-120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  display: block;
  padding: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  margin-bottom: 0.5rem;
}

.mobile-menu a:hover {
  background: var(--glass-bg);
  color: var(--primary);
  transform: translateX(8px);
}

/* ============================================
   Hero 区域
   ============================================ */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  animation: slideUpFade 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .gradient-text-pink {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 公告展示 - 优化样式 */
.announcement-banner {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-bounce);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateZ(0);
}

.announcement-item:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.announcement-item .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.announcement-item.info {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.announcement-item.info .pulse-dot { background: #3b82f6; }

.announcement-item.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.announcement-item.success .pulse-dot { background: #22c55e; }

.announcement-item.warning {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.announcement-item.warning .pulse-dot { background: #eab308; }

.announcement-item.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.announcement-item.danger .pulse-dot { background: #ef4444; }

/* 按钮样式 - 优化过渡 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px rgba(74, 144, 226, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--primary);
  border: 2px solid var(--primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

/* Hero 图片区域 */
.hero-image {
  position: relative;
  animation: slideUpFade 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.hero-image-bg {
  position: absolute;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero-image-bg:nth-child(2) {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  animation-delay: -4s;
  right: 0;
  bottom: 0;
}

.hero-image-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-smooth);
}

.hero-image-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px rgba(31, 38, 135, 0.25);
}

.hero-image-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.hero-image-card:hover img {
  transform: scale(1.08);
}

/* ============================================
   区块标题
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* ============================================
   特色功能区域
   ============================================ */
.features {
  padding: 6rem 2rem;
}

.features-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  text-align: center;
  transition: all var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  transition: all var(--transition-bounce);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(8deg);
}

.feature-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.feature-icon.green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.feature-icon.purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.feature-icon.rose { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.feature-icon.yellow { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   FAQ 区域 - 优化手风琴动画
   ============================================ */
.faq {
  padding: 6rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.faq-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
  background: rgba(74, 144, 226, 0.05);
}

.faq-question i {
  transition: transform var(--transition-bounce);
  color: var(--primary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              padding 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
  opacity: 0;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 1.5rem 1.5rem;
  opacity: 1;
}

.faq-answer-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-answer-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.faq-answer-content code {
  background: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* ============================================
   服务器状态区域
   ============================================ */
.server-status {
  padding: 6rem 2rem;
}

.server-status-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  text-align: center;
}

.server-address-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition-smooth);
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.server-address-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow), 0 0 30px rgba(74, 144, 226, 0.2);
  transform: translateY(-3px) scale(1.01);
}

.server-address-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: all var(--transition-bounce);
}

.server-address-box:hover .server-address-icon {
  transform: scale(1.1) rotate(5deg);
}

.server-address-info {
  flex: 1;
  text-align: left;
}

.server-address-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.server-address-value {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.server-address-copy {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition-bounce);
}

.server-address-box:hover .server-address-copy {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.server-status-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
}

.server-status-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   联系我们区域
   ============================================ */
.contact {
  padding: 6rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-card {
  display: block;
  padding: 3rem 2rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.contact-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-bounce);
}

.contact-card:hover .contact-icon {
  transform: scale(1.15) rotate(-5deg);
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.contact-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-card.qq .contact-value { color: #3b82f6; }
.contact-card.bilibili .contact-value { color: #ec4899; }
.contact-card.email .contact-value { color: #22c55e; }
.contact-card.cloud .contact-value { color: #06b6d4; }

/* ============================================
   页脚
   ============================================ */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all var(--transition-bounce);
}

.footer-brand:hover img {
  transform: scale(1.1) rotate(5deg);
}

.footer-brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  text-decoration: none;
  transition: all var(--transition-bounce);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: white;
  transform: translateX(8px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-bottom i {
  color: #ef4444;
  animation: pulse 1.5s infinite;
}

/* ============================================
   加载动画 - 优化
   ============================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--glass-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}

/* ============================================
   提示消息 - 优化
   ============================================ */
.toast {
  position: fixed;
  top: 100px;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(150%) scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.toast.show {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.toast.success {
  border-color: #22c55e;
  color: #22c55e;
}

.toast.error {
  border-color: #ef4444;
  color: #ef4444;
}

/* ============================================
   滚动显示动画 - 优化（支持打断）
   ============================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.4s ease;
  will-change: opacity, transform, filter;
  contain: layout style;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* 打断动画支持 */
.scroll-reveal.interruptible {
  transition: opacity 0.3s ease-out,
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.25s ease-out;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-image {
    order: 0;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .server-status-indicator {
    display: none;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .features,
  .faq,
  .server-status,
  .contact {
    padding: 4rem 1rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .announcement-banner {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .navbar-brand-text {
    font-size: 1.125rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .server-address-value {
    font-size: 1.25rem;
  }
}

/* ============================================
   打印样式
   ============================================ */
@media print {
  .navbar,
  .mobile-menu,
  .loading-screen,
  .theme-toggle,
  .footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}
