/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --text-color: #333;
    --background-color: #fff;
    --header-height: 60px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 响应式容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 */
.main-header {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 20px;
}

.logo h1 {
    color: white;
    font-size: 1.5rem;
}

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

.nav-menu li {
    margin-left: 20px;
}

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

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

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

/* 英雄区域 */
.hero {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

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

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #45a049;
}

/* 游戏网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* 关于和联系部分 */
.about-section,
.contact-section {
    padding: 40px 20px;
    text-align: center;
}

/* 页脚 */
.main-footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 15px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

/* 游戏iframe容器 */
.game-iframe-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
}

.game-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fullscreen-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    top: auto;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.fullscreen-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.fullscreen-btn svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* 全屏状态下iframe样式 */
.game-iframe.fullscreen-active {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .game-iframe {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 10px 20px;
    }

    .game-iframe {
        height: 400px;
    }
}

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

.hero-content,
.games-grid,
.about-section,
.contact-section {
    animation: fadeIn 1s ease-out;
}

/* 游戏卡片样式 */
.game-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.game-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-iframe-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.play-iframe-btn:hover {
    background: #45a049;
}

.game-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.game-info p {
    margin: 0 0 15px 0;
    color: #666;
    flex-grow: 1;
}

.play-button {
    display: inline-block;
    padding: 8px 16px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background: #1976D2;
}

/* Doodle Baseball介绍区域样式 */
.game-intro {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.intro-image img:hover {
    transform: scale(1.05);
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.game-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.game-features li {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .intro-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }

    .intro-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .game-intro {
        padding: 60px 0;
    }

    .intro-text h2 {
        font-size: 1.8rem;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .game-features li {
        font-size: 1rem;
    }
}

/* Doodle Baseball 专题介绍区域样式 */
.doodle-intro-bg {
  background: #eaf7ed;
  border-radius: 16px;
  margin: 40px auto;
  padding: 40px 0 0 0;
  max-width: 1200px;
}

.doodle-intro-header {
  text-align: center;
  margin-bottom: 40px;
}

.doodle-intro-banner {
  width: 80%;
  max-width: 700px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.doodle-intro-title {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1a3d2f;
}

.doodle-intro-slogan {
  font-size: 1.2rem;
  color: #3a5d4a;
  margin-bottom: 0;
}

.doodle-intro-main {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  color: #222;
}

.doodle-intro-main h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #1976D2;
}

.doodle-intro-feature, .doodle-intro-env {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  background: #f6fff9;
  border-radius: 12px;
  padding: 32px 24px;
}

.doodle-intro-feature .feature-img,
.doodle-intro-env .env-img {
  flex: 1;
}

.doodle-intro-feature .feature-text,
.doodle-intro-env .env-text {
  flex: 2;
}

.doodle-intro-feature img,
.doodle-intro-env img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.doodle-intro-feature h3,
.doodle-intro-env h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #1976D2;
}

.doodle-intro-feature ul {
  list-style: none;
  padding: 0;
}

.doodle-intro-feature li {
  margin-bottom: 10px;
  font-size: 1.08rem;
  color: #2d4a3a;
}

@media (max-width: 900px) {
  .doodle-intro-feature, .doodle-intro-env {
    flex-direction: column;
    gap: 20px;
    padding: 24px 10px;
  }
  .doodle-intro-banner {
    width: 100%;
  }
}

/* Doodle Baseball FAQ 区域样式 */
.doodle-faq {
  background: #f6fff9;
  border-radius: 12px;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.doodle-faq h3 {
  font-size: 1.5rem;
  color: #1976D2;
  margin-bottom: 24px;
  text-align: left;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #eaf7ed;
  border-radius: 8px;
  padding: 18px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.faq-item b {
  color: #1a3d2f;
  font-size: 1.08rem;
}
.faq-item p {
  margin: 8px 0 0 0;
  color: #333;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .doodle-faq {
    padding: 20px 8px;
  }
} 