/**
 * 前端样式文件
 */

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

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

/* 顶部导航栏 */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    align-items: center;
    max-width: 100%;
    position: relative;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #FFD700;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* 轮播横幅 */
.banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: auto;
}

.banner-item {
    display: none;
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 15px;
    min-height: 200px;
}

.banner-item.active {
    display: block;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 60%;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
}

.banner-subtitle {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.banner-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.banner-period {
    font-size: 12px;
    margin-bottom: 15px;
    opacity: 0.9;
    background-color: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.btn-view-detail {
    display: inline-block;
    background-color: #2196F3;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-view-detail:hover {
    background-color: #1976D2;
}


/* 轮播指示点 */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background-color: #f5f5f5;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #2196F3;
}

/* 公告栏 */
.announcement-bar {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 15px;
    margin-bottom: 10px;
}

.announcement-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-icon {
    flex-shrink: 0;
}

.announcement-icon img {
    width: 20px;
    height: 20px;
}

.speaker-icon {
    font-size: 18px;
}

.announcement-text-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 20px;
    line-height: 20px;
}

.announcement-text-scroll {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    padding-right: 100px;
    animation: scroll-announcement 20s linear infinite;
}

@keyframes scroll-announcement {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.announcement-text-wrapper:hover .announcement-text-scroll {
    animation-play-state: paused;
}

/* 快捷服务区 */
.service-section {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

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

.official-website {
    flex-shrink: 0;
    color: #333;
    font-size: 16px;
    font-weight: 700;
}

.service-icons {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.service-item {
    text-align: center;
}

.service-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 5px;
}

.service-item img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
}

.service-icon-placeholder {
    font-size: 24px;
}

.service-item span {
    font-size: 12px;
}

.service-item:hover {
    color: #2196F3;
}

/* 游戏平台区 */
.platform-section {
    padding: 15px;
    background-color: #fff;
}

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

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.star-icon {
    color: #FFD700;
    font-size: 20px;
}

.view-all-btn {
    color: #2196F3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.view-all-btn:hover {
    text-decoration: underline;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.game-card {
    position: relative;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.2s;
}

.game-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.official-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #2196F3;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

.game-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.game-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.domain {
    font-size: 10px;
    color: #666;
    margin-top: 5px;
}

.game-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.game-slogan {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.enter-game-btn {
    display: block;
    width: 100%;
    background-color: #2196F3;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s;
}

.enter-game-btn:hover {
    background-color: #1976D2;
}

.no-games {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner-content {
        max-width: 100%;
    }
    
    .game-grid {
        grid-template-columns: repeat(3, 1fr);  /* 手机也保持3列 */
        gap: 10px;
    }
    
    .service-icons {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);  /* 手机也保持3列 */
        gap: 8px;
    }
    
    .game-card {
        padding: 10px;
    }
    
    .game-logo {
        width: 60px;
        height: 60px;
    }
    
    .game-name {
        font-size: 14px;
    }
    
    .game-slogan {
        font-size: 11px;
    }
    
    .enter-game-btn {
        padding: 6px;
        font-size: 12px;
    }
    
    .service-icons {
        gap: 10px;
    }
    
    .service-item span {
        font-size: 11px;
    }
}



