/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局变量 */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --dark-gray: #666;
    --white: #fff;
    --max-width: 1200px;
    --header-height: 60px;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 基础样式 */
body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

/* H1 标题样式 */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 2rem 0;
    padding: 0 1rem;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* 响应式设计中的 H1 样式 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin: 1.5rem 0;
    }
}

/* 头部样式 */
header {
    background-color: var(--white);
    height: var(--header-height);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    color: var(--primary-color);
}

.language-switcher {
    display: flex;
    gap: 1rem;
}

.language-switcher button {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher button.active,
.language-switcher button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 主要内容区域 */
main {
    margin-top: var(--header-height);
    padding: 2rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* 游戏展示区 */
.game-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 宽高比 */
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.fullscreen-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fullscreen-btn:hover {
    background-color: var(--secondary-color);
}

/* 内容区域通用样式 */
.content-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.content-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* 特性卡片 */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 游戏特点 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 游戏指南 */
.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.guide-step {
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.guide-step:hover {
    transform: translateY(-5px);
}

.guide-step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 游戏发展历史 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    padding-left: 50%;
}

.timeline-date {
    position: absolute;
    top: 0;
    width: 120px;
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    border-radius: var(--border-radius);
    font-weight: bold;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: 0;
    transform: translateX(50%);
}

.timeline-item:nth-child(even) .timeline-date {
    left: 0;
    transform: translateX(-50%);
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* How to Play OvO */
.how-to-play-content {
    max-width: 800px;
    margin: 0 auto;
}

.how-to-play-step {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-text {
    flex-grow: 1;
}

.step-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* What Players Love OvO */
.players-love-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.love-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.love-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.love-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.love-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Why Players Love Two OvO */
.two-ovo-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    align-items: center;
}

.two-ovo-text h3 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
}

.two-ovo-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.two-ovo-text li {
    margin-bottom: 0.5rem;
}

.two-ovo-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-image {
    width: 100%;
    height: 300px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    border: 2px dashed var(--primary-color);
}

/* 玩家评价 */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.review {
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.review p {
    font-style: italic;
    margin-bottom: 1rem;
}

.reviewer {
    color: var(--dark-gray);
    font-weight: 500;
}

/* 页脚样式 */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    main {
        padding: 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .feature-cards,
    .guide-content,
    .reviews,
    .features-grid,
    .players-love-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 0;
        transform: translateX(-50%);
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -40px;
    }
    
    .two-ovo-content {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.5s ease-out;
} 