/* Modern Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #2563eb;
  --secondary-color: #f59e0b;
  --accent-color: #10b981;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  z-index: -1;
}

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

header a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  transition: var(--transition);
}

header a:hover {
  color: var(--secondary-color);
  transform: translateY(-1px);
}

nav ul {
  display: flex;
  gap: 12px;
  list-style: none;
  align-items: center;
}

nav ul li a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  position: relative;
}

nav ul li a:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

nav ul li a:active {
  transform: scale(0.98);
}

/* Modern Section Cards */
section {
  max-width: 1000px;
  margin: 40px auto;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

section h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

section h2 {
  color: var(--primary-color);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  position: relative;
  padding-left: 20px;
}

section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--secondary-color);
  border-radius: 2px;
}

section h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 28px 0 12px 0;
  position: relative;
}

section ul {
  margin-left: 0;
  margin-bottom: 24px;
  list-style: none;
}

section li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.7;
}

section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

section li ul {
  margin-top: 8px;
  margin-left: 20px;
}

section li ul li::before {
  content: '•';
  color: var(--accent-color);
}

section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

em {
  color: var(--secondary-color);
  font-style: normal;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Modern Game Cards */
.game-card {
  display: inline-block;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin: 0 20px 20px 0;
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(245, 158, 11, 0.05));
  opacity: 0;
  transition: var(--transition);
}

.game-card:hover::before {
  opacity: 1;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.game-card a {
  text-decoration: none;
  color: inherit;
}

.game-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.game-card:hover img {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.game-card h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
  transition: var(--transition);
}

.game-card:hover h3 {
  color: var(--secondary-color);
}

/* Modern FAQ Styles */
#faq h2 {
  margin-top: 0;
}

#faq h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 32px 0 12px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(245, 158, 11, 0.05));
  border-left: 4px solid var(--secondary-color);
  border-radius: 0 8px 8px 0;
  position: relative;
}

#faq h3::before {
  content: 'Q';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary-color);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

#faq p {
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 2px solid rgba(37, 99, 235, 0.1);
  position: relative;
}

#faq p::before {
  content: 'A';
  position: absolute;
  left: -12px;
  top: 4px;
  background: var(--accent-color);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

/* Modern Button Styles */
a.button,
button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  margin-top: 16px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  letter-spacing: 0.025em;
}

a.button::before,
button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition);
}

a.button:hover::before,
button:hover::before {
  left: 100%;
}

a.button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

a.button:active,
button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

/* 游戏容器样式 */
.game-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 32px auto;
}

/* 游戏预览界面 */
.game-preview {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-secondary);
}

.game-preview:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

/* 游戏封面图片 */
.game-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.game-preview:hover .game-cover {
  transform: scale(1.05);
  filter: brightness(0.8);
}

/* 播放按钮覆盖层 */
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(245, 158, 11, 0.8));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.game-preview:hover .play-overlay {
  opacity: 1;
}

/* 播放按钮 */
.play-button {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  border: none;
  border-radius: 50px;
  padding: 20px 32px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.play-button:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.play-button:active {
  transform: scale(1.05);
}

/* 播放图标 */
.play-icon {
  width: 24px;
  height: 24px;
  transition: var(--transition);
}

.play-button:hover .play-icon {
  transform: translateX(2px);
}

/* 游戏描述文字 */
.game-description {
  color: white;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 16px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* 游戏iframe容器 */
.game-iframe-container {
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-secondary);
  position: relative;
}

.game-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
}

/* 加载动画 */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid rgba(37, 99, 235, 0.2);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {

  .game-preview,
  .game-iframe-container {
    height: 350px;
  }

  .play-button {
    padding: 16px 24px;
    font-size: 1.1rem;
  }

  .play-icon {
    width: 20px;
    height: 20px;
  }

  .game-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {

  .game-preview,
  .game-iframe-container {
    height: 280px;
  }

  .play-button {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .play-icon {
    width: 18px;
    height: 18px;
  }

  .game-description {
    font-size: 0.85rem;
    margin-top: 12px;
  }
}

/* Modern Footer */
footer {
  background: linear-gradient(135deg, var(--text-primary), #374151);
  color: white;
  padding: 48px 0 24px 0;
  text-align: center;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), var(--accent-color), transparent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-content p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-content a {
  color: var(--secondary-color);
  text-decoration: none;
  margin: 0 12px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.footer-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.footer-content a:hover::after {
  width: 100%;
}

.footer-content a:hover {
  color: white;
  transform: translateY(-1px);
}

/* Modern Responsive Design */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 20px;
  }

  section {
    margin: 32px 20px;
    padding: 36px 28px;
  }

  section h1 {
    font-size: 2.2rem;
  }

  section h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
  }

  nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  nav ul li a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  section {
    margin: 24px 16px;
    padding: 28px 20px;
  }

  section h1 {
    font-size: 1.9rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .game-card {
    margin: 0 12px 16px 0;
    padding: 20px;
  }

  .game-card img {
    width: 100px;
    height: 100px;
  }

  iframe {
    height: 350px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 16px 0;
  }

  .header-container {
    padding: 0 12px;
  }

  header a {
    font-size: 1.5rem;
  }

  nav ul {
    gap: 4px;
  }

  nav ul li a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  section {
    margin: 20px 12px;
    padding: 24px 16px;
  }

  section h1 {
    font-size: 1.7rem;
  }

  section h2 {
    font-size: 1.3rem;
  }

  section h3 {
    font-size: 1.1rem;
  }

  section li {
    padding-left: 20px;
  }

  .game-card {
    width: 100%;
    margin: 0 0 16px 0;
    padding: 16px;
  }

  .game-card img {
    width: 80px;
    height: 80px;
  }

  iframe {
    height: 280px;
  }

  #faq h3 {
    padding: 12px 16px;
    font-size: 1rem;
  }

  #faq p {
    padding-left: 16px;
  }

  footer {
    padding: 32px 0 20px 0;
  }

  .footer-content {
    padding: 0 16px;
  }

  .footer-content a {
    margin: 0 8px;
    font-size: 0.9rem;
  }
}

/* Animation Enhancements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {

  header,
  footer,
  nav,
  iframe {
    display: none;
  }

  section {
    box-shadow: none;
    border: 1px solid #ccc;
    margin: 20px 0;
    page-break-inside: avoid;
  }
}