/* 增强视觉设计 */
:root {
  --primary-color: #6c5ce7;
  --secondary-color: #a29bfe;
  --accent-color: #fd79a8;
  --background: #1a1a2e;
  --card-bg: #16213e;
  --text-color: #e2e8f0;
  --text-secondary: #94a3b8;
  --nav-height: 70px;
}

body {
  background: var(--background);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
}

/* 导航栏优化 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav {
  background: rgba(22, 33, 62, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 2rem;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s;
}

nav a:hover {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
}

/* 主要内容区域 */
main {
  margin-top: var(--nav-height);
  padding: 0;
}

section {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

/* 游戏区域优化 */
.game-section {
  padding: 0;
  margin: 0;
  max-width: 100%;
  width: 100%;
  background: var(--card-bg);
}

.game-container {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  max-height: calc((100vw - 40px) * 9/16);
  margin: 0 auto;
  background: #000;
  overflow: hidden;
}

/* 优化iframe样式 */
.game-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

/* 加载状态优化 */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 1s linear infinite;
}

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

/* 游戏控制按钮优化 */
.game-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.game-controls button {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.game-controls button:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

/* 全屏模式样式 */
.game-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  border-radius: 0;
}

/* 指南步骤优化 */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s;
}

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

.step i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* 评论区优化 */
.comments-container {
  display: grid;
  gap: 2rem;
}

.comment {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  transition: all 0.3s;
}

.comment:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.comment img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

/* 表单样式优化 */
.comment-form {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 15px;
  margin-top: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-color);
  transition: all 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(253, 121, 168, 0.2);
}

/* 动画效果 */
.animate-fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* 响应式优化 */
@media (max-width: 768px) {
  nav {
    padding: 0 1rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  main {
    padding: 0;
  }
  
  section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .comment {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .comment img {
    margin: 0 auto;
  }
  
  .game-container {
    height: calc(100vh - var(--nav-height));
    max-height: 56.25vw;
  }
  
  .game-controls {
    bottom: 0.5rem;
    right: 0.5rem;
  }
  
  .game-controls button {
    width: 36px;
    height: 36px;
  }
}

/* 添加在文件最前面 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 确保iframe正确显示 */
iframe {
  width: 100%;
  height: 600px;
  border: none;
}

/* 按钮样式 */
button {
  cursor: pointer;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

button:hover {
  transform: translateY(-2px);
  background: var(--secondary-color);
}

/* 游戏控制按钮 */
.game-controls button {
  padding: 10px 20px;
  font-size: 1rem;
}

/* 社交分享按钮 */
.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.share-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* 其他内容区域调整 */
section:not(.game-section) {
  margin: 2rem auto;
  padding: 2rem;
  max-width: 1200px;
} 