/* 苹果经典色系 */
:root {
    --apple-blue: #007AFF;
    --apple-green: #34C759;
    --apple-indigo: #5856D6;
    --apple-orange: #FF9500;
    --apple-pink: #FF2D55;
    --apple-purple: #AF52DE;
    --apple-red: #FF3B30;
    --apple-teal: #5AC8FA;
    --apple-yellow: #FFCC00;
    --apple-gray1: #8E8E93;
    --apple-gray2: #AEAEB2;
    --apple-gray3: #C7C7CC;
    --apple-gray4: #D1D1D6;
    --apple-gray5: #E5E5EA;
    --apple-gray6: #F2F2F7;
    --apple-background: #F5F5F7;
    --apple-dark-background: #1D1D1F;
    --apple-text: #1D1D1F;
    --apple-dark-text: #F5F5F7;
}

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

body {
    font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--apple-text);
    background-color: var(--apple-background);
    padding-top: 80px;
}

a {
    text-decoration: none;
    color: var(--apple-text);
}

ul {
    list-style: none;
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 2rem;
    color: var(--apple-blue);
}

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

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--apple-text);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--apple-blue);
}

/* 首页主标题样式 */
.main-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--apple-blue);
    margin: 1.5rem 0;
}

/* 副标题样式 */
.sub-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--apple-gray1);
    margin-bottom: 2rem;
}

/* 主要内容样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

.hero {
    text-align: center;
    padding: 3rem 0;
    background-color: white;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--apple-text);
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    color: var(--apple-gray1);
}

/* 游戏卡片样式 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.game-thumbnail {
    height: 150px;
    overflow: hidden;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.05);
}

.game-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--apple-text);
}

.game-card p {
    padding: 0 1rem 1rem;
    color: var(--apple-gray1);
    font-size: 0.9rem;
}

.play-btn {
    display: block;
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    padding: 0.7rem 0;
    background-color: var(--apple-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.play-btn:hover {
    background-color: #0062cc;
}

/* 游戏展示区域 */
#game-display {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-display.hidden {
    display: none;
}

.game-container {
    width: 90%;
    max-width: 1000px;
    height: 80%;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--apple-gray5);
    color: var(--apple-text);
}

#close-game {
    padding: 0.5rem 1rem;
    background-color: var(--apple-red);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.iframe-container {
    flex: 1;
    position: relative;
}

#game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 页脚样式 */
footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 2rem;
    background-color: #333;
    color: white;
    flex-wrap: wrap;
}

footer .about,
footer .quick-links {
    flex: 1;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    text-align: left;
    width: 100%;
}

footer h2 {
    margin: 0;
    font-size: 1.5rem;
}

footer .quick-links a {
    color: white;
    text-decoration: none;
    margin: 0.5rem 0;
}

footer .quick-links a:hover {
    text-decoration: underline;
}

/* 关于我们部分 */
.about-section {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.about-section h2 {
    margin-bottom: 1rem;
    color: var(--apple-text);
    font-weight: 600;
}

.about-section p {
    color: var(--apple-gray1);
    line-height: 1.8;
}

/* 游戏分类标题 */
.game-category h2 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--apple-text);
    border-bottom: 1px solid var(--apple-gray5);
    padding-bottom: 0.5rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--apple-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

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

.back-to-top:hover {
    background-color: #0062cc;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        margin-top: 1rem;
        width: 100%;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.75rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-container {
        width: 95%;
        height: 90%;
    }
} 