/* 补充样式，用于处理iframe和其他自定义元素 */

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background-color: #f5f5f7;
}

::-webkit-scrollbar-thumb {
  background-color: #86868b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0071e3;
}

/* 游戏容器增强样式 */
.game-container {
  transition: all 0.3s ease;
}

.game-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

/* 自定义焦点样式 */
a:focus, button:focus {
  outline: 2px solid #0071e3;
  outline-offset: 2px;
}

/* 提高移动端可访问性 */
@media (max-width: 768px) {
  button, a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
}

/* 图片响应式处理 */
img {
  max-width: 100%;
  height: auto;
}

/* 动画效果 */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn-primary:hover:after {
  transform: translateX(0);
}

/* 确保iframe正确显示 */
iframe {
  display: block;
  border: none;
  overflow: hidden;
}

/* 增强阅读体验 */
p, li {
  line-height: 1.6;
}

/* 打印样式 */
@media print {
  .game-container, nav, footer {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  main {
    width: 100%;
    margin: 0;
    padding: 0;
  }
}

/* 动态加载指示器 */
.loading {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 113, 227, 0.3);
  border-radius: 50%;
  border-top-color: #0071e3;
  animation: spin 1s ease-in-out infinite;
}

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