* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.logo i {
    color: #e74c3c;
    margin-right: 8px;
    font-size: 24px;
}

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

.nav ul li a {
    padding: 8px 15px;
    text-decoration: none;
    color: #ecf0f1;
    transition: color 0.3s;
    font-size: 14px;
}

.nav ul li a:hover,
.nav ul li a.active {
    color: #e74c3c;
}

.header-actions .search-btn {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* 轮播图 */
.slider-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 3px;
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

/* APP下载栏 */
.app-download {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 20px 0;
}

.app-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px 20px;
}

.app-icon i {
    font-size: 40px;
    color: #fff;
}

.app-info h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
}

.app-info p {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

.app-buttons {
    display: flex;
    gap: 10px;
}

.app-buttons a {
    padding: 8px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 12px;
    transition: transform 0.3s;
}

.app-buttons a:hover {
    transform: translateY(-2px);
}

.btn-android {
    background: #3ddc84;
    color: #000;
}

.btn-ios {
    background: #000;
    color: #fff;
}

/* 分类区域 */
.categories {
    padding: 40px 0;
    background: #fff;
}

.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #e74c3c;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
}

.category-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-3px);
}

.category-item i {
    font-size: 30px;
    color: #e74c3c;
    margin-bottom: 8px;
}

.category-item span {
    display: block;
    color: #333;
    font-size: 12px;
}

/* 游戏区域 */
.games-section {
    padding: 40px 0;
}

.games-section.bg-gray {
    background: #f5f7fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.more-link {
    color: #e74c3c;
    text-decoration: none;
    font-size: 13px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.game-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

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

.game-icon {
    text-align: center;
    padding: 20px 0 10px;
}

.game-icon img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
}

.game-info {
    padding: 0 12px 12px;
    text-align: center;
}

.game-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta {
    font-size: 11px;
    color: #999;
}

.download-btn {
    background: #e74c3c;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    border-radius: 20px;
    margin: 0 10px 12px;
}

/* 双栏布局 */
.row-section {
    padding: 40px 0;
    background: #fff;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* 游戏列表 */
.game-list-item,
.news-list-item {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.game-list-item a,
.news-list-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.game-list-item img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.news-list-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.game-list-item .info,
.news-list-item .info {
    flex: 1;
}

.game-list-item h4,
.news-list-item h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.game-list-item p,
.news-list-item p {
    font-size: 12px;
    color: #999;
}

.download-badge {
    background: #e74c3c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
}

.date {
    font-size: 11px;
    color: #999;
}

/* 友情链接 */
.links {
    background: #f8f9fa;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
}

.links-content a {
    color: #666;
    margin-right: 15px;
    text-decoration: none;
}

/* 底部 */
.footer {
    background: #1a1a2e;
    color: #ecf0f1;
    padding: 40px 0 20px;
}

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

.footer-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-info p {
    font-size: 13px;
    color: #bdc3c7;
    margin-bottom: 8px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

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

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

.footer-links ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 13px;
}

.footer-links ul li a:hover {
    color: #e74c3c;
}

.footer-qrcode {
    text-align: center;
}

.qrcode i {
    font-size: 60px;
    color: #fff;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2c3e50;
    font-size: 12px;
    color: #bdc3c7;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

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

/* 游戏详情页 */
.breadcrumb {
    
    padding: 12px 0;
    font-size: 12px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.game-detail {
    padding: 30px 0;
}

.detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.game-icon-large img {
    width: 120px;
    height: 120px;
    border-radius: 24px;
}

.game-info-large {
    flex: 1;
}

.game-info-large h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.game-info-large .game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.game-info-large .game-meta span {
    font-size: 13px;
    color: #666;
}

.game-info-large .game-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.download-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-download {
    background: #e74c3c;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #c0392b;
}

.qr-code img {
    width: 60px;
    height: 60px;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: #1a1a2e;
        transition: left 0.3s;
        z-index: 999;
    }
    
    .nav.show {
        left: 0;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav ul li a {
        display: block;
        padding: 12px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .app-box {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .download-box {
        justify-content: center;
    }
    
    .slider-container {
        height: 150px;
    }
}