
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', 'PingFang SC', Roboto, Arial, sans-serif;
    background: #fff;
    color: #333;
    font-size: 12px;
    line-height: 1.5;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    position: relative;
}

/* Top Navigation */
.top-nav {
    background: #f8f8f8;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.logo a {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo .spark {
    color: #ff6600;
}

.user-area a {
    margin-left: 15px;
    text-decoration: none;
    color: #666;
    font-size: 12px;
}

.user-area a:hover {
    color: #ff6600;
}

/* Main Navigation */
.main-nav {
    background: #fff;
    border-bottom: 2px solid #ff6600;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
}

.nav-container a {
    padding: 6px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.2s;
}

.nav-container a:hover,
.nav-container a.active {
    background: #ff6600;
    color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    padding: 12px 20px;
    background: #f4f4f4;
    color: #999;
    font-size: 12px;
}

.breadcrumb a {
    color: #999;
    text-decoration: none;
    margin: 0 5px;
}

.breadcrumb a:hover {
    color: #ff6600;
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.left-col {
    flex: 1;
    min-width: 0;
}

.right-col {
    width: 300px;
    flex-shrink: 0;
}

/* Section Headers */
.section-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff6600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header .title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: inline-block;
    border-left: 4px solid #ff6600;
    padding-left: 10px;
}

.section-header .more {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}

.section-header .more:hover {
    color: #ff6600;
}

/* Slider Styles */
.special-recommend {
    margin-bottom: 25px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-item {
    flex: 0 0 100%;
    position: relative;
}

.slider-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 30px 15px 10px;
    font-size: 14px;
    font-weight: bold;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background: #ff6600;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    list-style: none;
    margin-bottom: 25px;
}

.game-grid li {
    text-align: center;
}

.game-grid li a {
    text-decoration: none;
    color: #333;
}

.game-grid li img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s;
}

.game-grid li img:hover {
    transform: scale(1.02);
}

.game-grid li span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Game List (for hot games) */
.game-list {
    list-style: none;
}

.game-list li {
    margin-bottom: 12px;
    padding: 8px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.game-list li:hover {
    background: #fafafa;
}

.game-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
}

.game-list li img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.game-list li .game-info {
    flex: 1;
}

.game-list li .game-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.game-list li .game-category {
    font-size: 11px;
    color: #999;
}

/* Personal Recommendation */
.personal-rec {
    margin-bottom: 25px;
}

.rec-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rec-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: #fafafa;
    border-radius: 8px;
    transition: all 0.2s;
}

.rec-item:hover {
    background: #f0f0f0;
    transform: translateX(2px);
}

.rec-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.rec-item .rec-info {
    flex: 1;
}

.rec-item .rec-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
    text-decoration: none;
}

.rec-item .rec-desc {
    font-size: 11px;
    color: #999;
}

/* Game Categories */
.game-categories {
    margin-bottom: 25px;
}

.category-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-list li {
    width: calc(50% - 4px);
}

.category-list li a {
    display: block;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    transition: all 0.2s;
}

.category-list li a:hover {
    background: #ff6600;
    color: #fff;
}

/* Ranking List */
.most-played {
    margin-bottom: 25px;
}

.tab-switch {
    display: flex;
    gap: 10px;
}

.tab-btn {
    font-size: 12px;
    color: #999;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 12px;
}

.tab-btn.active {
    background: #ff6600;
    color: #fff;
}

.ranking-list {
    list-style: none;
}

.ranking-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-list .rank {
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
}

.ranking-list .rank.top3 {
    background: #ff6600;
    color: #fff;
}

.ranking-list .rank-info {
    flex: 1;
}

.ranking-list .rank-name {
    font-size: 13px;
    color: #333;
    text-decoration: none;
}

.ranking-list .rank-stats {
    font-size: 11px;
    color: #999;
}

/* Info Section */
.info-section {
    margin-bottom: 20px;
}

.info-content {
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: #666;
}

.info-content p {
    margin-bottom: 10px;
}

/* Footer Links */
.footer-links {
    background: #2c2c2c;
    padding: 30px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.footer-col {
    flex: 1;
    min-width: 150px;
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-col a {
    display: block;
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #ff6600;
}

/* Copyright */
.copyright {
    background: #1a1a1a;
    padding: 15px 20px;
    text-align: center;
    font-size: 11px;
    color: #888;
}

/* Responsive */
@media (max-width: 800px) {
    .main-content {
        flex-direction: column;
    }

    .right-col {
        width: 100%;
    }

    .nav-container {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* 顶部搜索框 */
.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 4px 8px;
    width: 240px;
}

.search-box input {
    border: none;
    outline: none;
    padding: 6px 8px;
    font-size: 12px;
    width: 81%;
    background: transparent;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    color: #999;
    font-size: 14px;
}

.search-box button:hover {
    color: #ff6600;
}

.search-icon {
    font-style: normal;
}
.footer-col a {
    float:left;
    margin-right:10px;
}