/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部提示栏 */
.top-alert {
    background-color: #fff;
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.top-alert .alert-text {
    color: #ff6b35;
    font-size: 12px;
}

/* 网站Logo */
.site-logo {
    background-color: #fff;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.site-logo img {
    max-width: 200px;
    height: auto;
}

/* 搜索框 */
.search-box {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ff6b35;
    border-radius: 25px 0 0 25px;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background-color: #ff6b35;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #e55a2a;
}

/* 导航栏 */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.navbar li {
    padding: 15px 20px;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: #ff6b35;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #fff;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #666;
}

.breadcrumb .breadcrumb-separator {
    margin: 0 5px;
    color: #ccc;
}

.breadcrumb .breadcrumb-item {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb .breadcrumb-item:hover {
    color: #ff6b35;
}

.breadcrumb .breadcrumb-item.active {
    color: #999;
    font-weight: 500;
}

/* 区块标题 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 15px;
    padding: 0 15px;
}

.section-title h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.section-title .more {
    color: #666;
    text-decoration: none;
    font-size: 12px;
}

.section-title .more:hover {
    color: #ff6b35;
}

/* 游戏卡片 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 0 15px 20px;
}

.game-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.game-card .game-icon {
    width: 100%;
    height: 100px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.game-card .game-info {
    padding: 10px;
}

.game-card .game-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card .game-type,
.game-card .game-operator {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 点击量样式 */
.click-count {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
    font-weight: normal;
}

.game-card .enter-game {
    display: block;
    background-color: #ff6b35;
    color: #fff;
    text-align: center;
    padding: 6px;
    text-decoration: none;
    font-size: 12px;
    border-radius: 4px;
    margin-top: 8px;
    transition: background-color 0.3s;
}

.game-card .enter-game:hover {
    background-color: #e55a2a;
}

/* 排行榜样式 */
.ranking-list {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 0 15px 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item .rank {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #ff6b35;
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    margin-right: 15px;
    font-size: 12px;
}

.ranking-item .rank:nth-child(2) {
    background-color: #ffd700;
}

.ranking-item .rank:nth-child(3) {
    background-color: #cd7f32;
}

.ranking-item .game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ranking-item .game-info .game-icon-wrapper {
    display: inline-block;
    margin-bottom: 10px;
}

.ranking-item .game-info .game-icon {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    vertical-align: middle;
}

.ranking-item .game-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.ranking-item .game-meta {
    font-size: 12px;
    color: #666;
}

.ranking-item .enter-game {
    background-color: #ff6b35;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    transition: background-color 0.3s;
}

.ranking-item .enter-game:hover {
    background-color: #e55a2a;
}

/* 资讯列表 */
.news-list {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 0 15px 20px;
}

.news-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .news-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-item .news-title:hover {
    color: #ff6b35;
}

.news-item .news-date {
    font-size: 12px;
    color: #999;
}

/* 页脚 */
.footer {
    background-color: #333;
    border-top: 1px solid #555;
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
    color: #ccc;
}

.footer .footer-content {
    margin-bottom: 15px;
}

.footer .footer-links {
    margin-bottom: 15px;
}

.footer .footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
    font-size: 12px;
}

.footer .footer-links a:hover {
    color: #ff6b35;
}

.footer .copyright {
    color: #aaa;
    font-size: 12px;
}

.footer .icp-info {
    margin-top: 10px;
    font-size: 12px;
    color: #aaa;
}

.footer .icp-info img {
    vertical-align: middle;
    margin-right: 5px;
    max-height: 16px;
}

/* 游戏详情页 */
.game-detail {
    background-color: #fff;
    padding: 20px 15px;
    margin-bottom: 20px;
}

.game-detail-header {
    display: flex;
    margin-bottom: 20px;
}

.game-detail-header .game-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.game-detail-header .game-info {
    flex: 1;
}

.game-detail-header .game-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.game-detail-header .game-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.game-detail-header .enter-game {
    background-color: #ff6b35;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    transition: background-color 0.3s;
    display: inline-block;
    margin-top: 10px;
}

.game-detail-header .enter-game:hover {
    background-color: #e55a2a;
}

.game-detail-content {
    margin-bottom: 20px;
}

.game-detail-content .section-title {
    padding: 0;
    margin: 0 0 15px 0;
}

.game-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.game-screenshots img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.game-description {
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .game-card {
        font-size: 12px;
    }
    
    .game-card .game-icon {
        height: 80px;
    }
    
    .navbar li {
        padding: 12px 10px;
    }
    
    .navbar a {
        font-size: 12px;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .ranking-item {
        flex-wrap: wrap;
    }
    
    .ranking-item .enter-game {
        margin-top: 10px;
    }
}

/* 加载更多按钮 */
.load-more {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ff6b35;
    color: #ff6b35;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.load-more:hover {
    background-color: #ff6b35;
    color: #fff;
}

/* 404页面 */
.not-found {
    text-align: center;
    padding: 50px 0;
    color: #666;
}

.not-found h1 {
    font-size: 72px;
    color: #ff6b35;
    margin-bottom: 20px;
}

.not-found p {
    margin-bottom: 20px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #ff6b35;
}

.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
    min-height: 100px;
}

.form-textarea:focus {
    border-color: #ff6b35;
}

.form-submit {
    background-color: #ff6b35;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit:hover {
    background-color: #e55a2a;
}
