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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #007aff; /* Apple blue */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* 按钮样式 */
button, .btn {
    cursor: pointer;
    background-color: #007aff; /* Apple blue */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    background-color: #0062cc; /* Darker Apple blue */
}

/* 头部导航样式 */
header {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #007aff; /* Apple blue */
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
}

nav ul li a.active {
    color: #007aff; /* Apple blue */
    font-weight: 600;
}

.search-box {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-box input {
    width: 180px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.search-box button {
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
}

/* 首页英雄区域 */
.hero {
    background: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%); /* Apple blue gradient */
    padding: 60px 0;
    text-align: center;
    color: white;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    font-weight: 600;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 400;
}

/* 游戏卡片和网格 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.game-card {
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 25px;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.game-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.08);
}

.game-card-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 122, 255, 0.9);
    color: white;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.game-card-info {
    padding: 18px;
}

.game-card-info h3 {
    font-size: 19px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.game-card-info p {
    color: #666;
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.play-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007aff;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.play-btn:hover {
    background-color: #0062cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
    color: white;
}

.game-card-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(255, 59, 48, 0.9);
    color: white;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 分类卡片和网格 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #007aff 0%, #34c759 100%);
    height: 160px;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.category-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    text-decoration: none;
    height: 100%;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.category-card a:hover {
    background: rgba(0, 0, 0, 0.5);
    color: white;
}

.category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    color: white;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.btn-small {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-small:hover {
    background-color: white;
    color: #007aff;
    transform: scale(1.05);
}

/* 每个类别使用不同的渐变色背景 */
.category-card:nth-child(1) {
    background: linear-gradient(135deg, #FF3B30 0%, #FF9500 100%); /* Action - 红橙渐变 */
}

.category-card:nth-child(2) {
    background: linear-gradient(135deg, #34C759 0%, #007AFF 100%); /* Adventure - 绿蓝渐变 */
}

.category-card:nth-child(3) {
    background: linear-gradient(135deg, #5AC8FA 0%, #AF52DE 100%); /* Puzzle - 蓝紫渐变 */
}

.category-card:nth-child(4) {
    background: linear-gradient(135deg, #FF9500 0%, #AF52DE 100%); /* Strategy - 橙紫渐变 */
}

/* 分类标题 */
section h2 {
    font-size: 24px;
    margin: 40px 0 15px;
    color: #333;
    position: relative;
    padding-left: 15px;
    font-weight: 600;
}

section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: #007aff; /* Apple blue */
    border-radius: 2px;
}

/* 按钮样式 */
.more-btn {
    display: inline-block;
    margin: 10px 0;
    padding: 8px 20px;
    background-color: #fff;
    color: #007aff; /* Apple blue */
    border: 1px solid #007aff; /* Apple blue */
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.more-btn:hover {
    background-color: #007aff; /* Apple blue */
    color: white;
}

/* 页面分区 */
section {
    padding: 30px 0;
}

.featured-games, .new-games {
    background-color: white;
}

.game-categories {
    background-color: #f9f9f9;
}

/* 页脚样式 */
footer {
    background-color: #f2f2f7; /* Apple light gray */
    color: #333;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-logo h2 {
    color: #007aff; /* Apple blue */
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-logo p {
    color: #666;
    font-size: 14px;
}

.footer-links h3, .social-media h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #007aff; /* Apple blue */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: #e5e5ea; /* Apple light gray */
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #007aff; /* Apple blue */
}

.social-icons img {
    width: 20px;
    height: 20px;
    margin-top: 8px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #d1d1d6; /* Apple light gray */
    color: #888;
    font-size: 14px;
}

/* 分类页面样式 */
.category-banner {
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%); /* Apple green gradient */
    padding: 40px 0;
    text-align: center;
    color: white;
}

.category-banner h2 {
    font-size: 30px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    font-weight: 600;
}

.category-banner p {
    font-size: 16px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #d1d1d6; /* Apple light gray */
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: transparent;
    color: #333;
    border: none;
    margin-right: 5px;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

.tab-btn.active {
    color: #007aff; /* Apple blue */
    border-bottom-color: #007aff; /* Apple blue */
}

.category-section {
    margin-bottom: 40px;
}

.category-section h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .game-grid, .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul {
        margin: 15px 0;
    }
    
    nav ul li {
        margin-left: 0;
        margin-right: 15px;
    }
    
    .search-box {
        margin-left: 0;
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .game-grid, .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .game-grid, .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    section h2 {
        font-size: 22px;
    }
    
    .game-card h3 {
        font-size: 16px;
    }
}

/* 精选游戏板块样式优化 */
.featured-games {
    text-align: center;
    padding: 40px 0;
}

.featured-games .section-title {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.featured-games .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #007aff; /* Apple blue */
    border-radius: 2px;
}

.games-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.game-slide-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.game-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
}

.game-slide-overlay h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.game-slide-overlay p {
    font-size: 16px;
    margin-bottom: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.game-slide-overlay .btn {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 25px;
    background-color: #007aff;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-slide-overlay .btn:hover {
    background-color: transparent;
    border-color: white;
    transform: scale(1.05);
}

.game-slide-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.game-slide-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 122, 255, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.game-slide-controls button:hover {
    background-color: #007aff;
    transform: scale(1.1);
}

/* 游戏卡片网格布局优化 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* 页脚快速链接区域样式优化 - 更紧凑版本 */
.footer-quick-links {
    background-color: #f5f5f7;
    padding: 25px 0 15px;
    border-top: 1px solid #e5e5ea;
}

.quick-links-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-info {
    flex: 0 0 100%;
    margin-bottom: 20px;
    text-align: center;
    max-width: 100%;
}

.site-info h2 {
    font-size: 22px;
    font-weight: 600;
    color: #007aff;
    margin-bottom: 5px;
}

.site-info p {
    color: #666;
    max-width: 600px;
    margin: 0 auto 15px;
    line-height: 1.5;
    font-size: 14px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    color: #007aff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    background-color: #007aff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.25);
}

.link-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
    gap: 20px;
}

.link-section {
    min-width: 120px;
    flex: 0 1 auto;
}

.link-section h3 {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 6px;
}

.link-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 25px;
    height: 2px;
    background-color: #007aff;
}

.link-section ul {
    list-style: none;
    padding: 0;
}

.link-section ul li {
    margin-bottom: 8px;
}

.link-section ul li a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
    display: block;
    padding: 2px 0;
}

.link-section ul li a:hover {
    color: #007aff;
}

.copyright-bar {
    text-align: center;
    padding: 12px 0;
    background-color: #f2f2f7;
    border-top: 1px solid #e5e5ea;
}

.copyright-bar p {
    color: #888;
    font-size: 12px;
}

/* 分隔线样式优化 */
.section-divider {
    padding: 15px 0;
    margin: 10px 0 0;
    background-color: #f9f9f9;
}

.divider-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.divider-icon {
    width: 40px;
    height: 40px;
    background-color: #007aff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.25);
}

.divider-line {
    position: absolute;
    height: 2px;
    width: 80%;
    max-width: 800px;
    background: linear-gradient(90deg, rgba(0,122,255,0) 0%, rgba(0,122,255,0.5) 50%, rgba(0,122,255,0) 100%);
}

@media (max-width: 768px) {
    .divider-line {
        width: 60%;
    }
}

/* 常见问题和帮助支持区域样式 */
.help-support-section h3 {
    margin-bottom: 15px;
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.help-support-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-support-section ul li {
    margin-bottom: 8px;
}

.help-support-section ul li a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
    display: block;
    padding: 2px 0;
}

.help-support-section ul li a:hover {
    color: #007aff;
}

/* 紧凑型页脚样式 */
.footer-compact {
    background-color: #f5f5f7;
    padding: 15px 0 0;
    font-size: 12px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 5px;
}

.footer-col {
    flex: 0 1 30%;
}

.footer-links {
    flex: 0 1 22%;
}

.footer-col h3 {
    font-size: 14px;
    margin-bottom: 6px;
    color: #007aff;
}

.footer-col p {
    color: #666;
    line-height: 1.4;
    margin-bottom: 5px;
    font-size: 12px;
}

.social-compact {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.social-compact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fff;
    color: #007aff;
    font-size: 11px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.social-compact a:hover {
    background-color: #007aff;
    color: #fff;
    transform: translateY(-2px);
}

.footer-links-group {
    margin-bottom: 5px;
    flex: 0 1 auto;
    padding-right: 15px;
}

.footer-links-group h4 {
    color: #333;
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: 600;
    position: relative;
    padding-bottom: 3px;
}

.footer-links-group h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 16px;
    height: 1px;
    background-color: #007aff;
}

.footer-links-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-group ul li {
    margin-bottom: 3px;
}

.footer-links-group ul li a {
    color: #666;
    text-decoration: none;
    font-size: 11px;
    transition: color 0.2s ease;
}

.footer-links-group ul li a:hover {
    color: #007aff;
}

.copyright {
    text-align: center;
    padding: 6px 0;
    background-color: #f2f2f7;
    border-top: 1px solid #e5e5ea;
    margin-top: 5px;
}

.copyright p {
    color: #888;
    font-size: 10px;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
    }
    
    .footer-col {
        flex: 0 1 100%;
        margin-bottom: 10px;
    }
    
    .footer-links {
        flex: 0 1 100%;
        margin-bottom: 8px;
    }
    
    .social-compact {
        justify-content: flex-start;
    }
    
    .footer-links-group h4::after {
        left: 0;
        transform: none;
    }
    
    .footer-links-group {
        margin-bottom: 8px;
    }
} 