/* 蓝绿渐变风格设计 */
:root {
  --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-solid: #667eea;
  --secondary: #6b7280;
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --accent: #764ba2;
  --border: #e2e8f0;
  --shadow: rgba(102, 126, 234, 0.1);
}

* {
  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: var(--text);
  background-color: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
  background: var(--surface);
  box-shadow: 0 2px 10px var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand h1 {
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.8rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* 首屏英雄区域 */
.hero-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 120px 0 80px;
  text-align: center;
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.game-iframe-container {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow);
}

.game-iframe-container iframe {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* 按钮样式 */
.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-solid);
  border: 2px solid var(--primary-solid);
}

.btn-secondary:hover {
  background: var(--primary-solid);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary-solid);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--primary-solid);
  color: white;
}

/* 关于部分 */
.about-section {
  padding: 80px 0;
  background: var(--surface);
}

.about-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.about-item {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.about-item:hover {
  transform: translateY(-5px);
}

.about-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.about-item h3 {
  color: var(--primary-solid);
  margin-bottom: 1rem;
}

/* 社区部分 */
.community-section {
  padding: 80px 0;
  background: var(--background);
}

.community-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.community-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.community-text h3 {
  color: var(--primary-solid);
  margin-bottom: 1rem;
}

.community-text ul {
  list-style: none;
  margin-top: 1rem;
}

.community-text li {
  padding: 0.5rem 0;
  color: var(--secondary);
}

.community-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow);
}

/* 工具部分 */
.tools-section {
  padding: 80px 0;
  background: var(--surface);
}

.tools-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tool-card {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
}

.tool-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tool-card h3,
.tool-card p {
  padding: 0 1.5rem;
}

.tool-card h3 {
  color: var(--primary-solid);
  margin: 1rem 0 0.5rem;
}

.tool-card .btn {
  margin: 1rem 1.5rem 1.5rem;
}

/* 优势部分 */
.advantages-section {
  padding: 80px 0;
  background: var(--background);
}

.advantages-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.advantages-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.advantage-item {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px var(--shadow);
  text-align: center;
}

.advantage-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.advantage-item h3 {
  color: var(--primary-solid);
  margin-bottom: 1rem;
}

/* 画廊部分 */
.gallery-section {
  padding: 80px 0;
  background: var(--surface);
}

.gallery-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 2rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* 教程部分 */
.tutorials-section {
  padding: 80px 0;
  background: var(--background);
}

.tutorials-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tutorial-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px var(--shadow);
  border-left: 4px solid var(--primary-solid);
}

.tutorial-card h3 {
  color: var(--primary-solid);
  margin-bottom: 1rem;
}

.tutorial-link {
  color: var(--primary-solid);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
}

.tutorial-link:hover {
  text-decoration: underline;
}

/* FAQ部分 */
.faq-section {
  padding: 80px 0;
  background: var(--surface);
}

.faq-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--background);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-solid);
}

.faq-item h3 {
  color: var(--primary-solid);
  margin-bottom: 0.5rem;
}

/* 页脚 */
.footer {
  background: #1e293b;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #667eea;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  padding: 0.25rem 0;
}

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

.footer-section a:hover {
  color: #667eea;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .game-iframe-container iframe {
    width: 100%;
    height: 300px;
  }
  
  .community-content {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-menu {
    display: none;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .game-iframe-container iframe {
    height: 250px;
  }
  
  section {
    padding: 40px 0;
  }
}

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

.hero-content,
.about-item,
.tool-card,
.advantage-item {
  animation: fadeInUp 0.6s ease-out;
}

/* 滚动平滑 */
html {
  scroll-behavior: smooth;
}