:root {
  --primary-color: #FF6B6B;
  --secondary-color: #4ECDC4;
  --dark-color: #2C3E50;
  --light-color: #F7F9FC;
  --gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: var(--light-color);
  color: var(--dark-color);
  margin: 0;
  padding: 0;
}

/* Header Styles */
.header {
  background: var(--gradient);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.header h1 {
  font-size: 1.5rem;
  color: white;
  margin: 0;
}

.highlight {
  background: rgba(255,255,255,0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.main-nav a:hover {
  opacity: 0.8;
}

/* Main Container Styles */
.game-container {
  max-width: 1200px;
  margin: 6rem auto 2rem;
  padding: 0 1rem;
}

/* Game Frame Styles */
.game-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
}


.game-wrapper::before {
  display: none;
}

.game-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
  background-color: #f8f9fa;
}

.game-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  z-index: 1;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Controls Styles */
.controls {
  text-align: center;
  margin: 1rem 0;
}

.fullscreen-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

.fullscreen-btn:hover {
  transform: translateY(-2px);
}

/* Info Card Styles */
.info-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

h2 {
  color: var(--dark-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Game Steps Styles */
.game-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
  background: var(--light-color);
  border-radius: 10px;
  transition: transform 0.3s;
}

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

/* Tips List Styles */
.tips-list {
  list-style: none;
  padding: 0;
}

.tips-list li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.tips-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
}

/* Features Grid Styles */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--light-color);
  border-radius: 10px;
  transition: transform 0.3s;
}

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

/* Footer Styles */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

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

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .main-nav ul {
    gap: 1rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .game-steps {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}

.nav-up {
  transform: translateY(-100%);
}

.nav-down {
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 850px) {
  .game-wrapper {
    height: 500px;
  }
}

@media (max-width: 500px) {
  .game-wrapper {
    height: 400px;
    border-radius: 0;
  }
  
  .game-wrapper iframe {
    border-radius: 0;
  }
}

/* 全屏模式样式 */
.game-wrapper.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh !important;
  max-width: none;
  z-index: 9999;
  border-radius: 0;
}