/* Clown Game Center 首页优化样式 */

/* ========== 英雄区域 ========== */
.hero {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.9) 0%, rgba(255, 107, 53, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title span {
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active,
.hero-dot:hover {
    background: #ff6b35;
    border-color: #ff6b35;
}

/* ========== 新闻滚动条 ========== */
.news-ticker {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    overflow: hidden;
    position: relative;
}

.news-ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 150px;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
}

.news-ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    padding-left: 150px;
}

.news-ticker-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
    white-space: nowrap;
}

.news-ticker-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.news-ticker-tag.new { background: #ff4444; color: #fff; }
.news-ticker-tag.hot { background: #ffaa00; color: #000; }
.news-ticker-tag.steam { background: #5381ff; color: #fff; }
.news-ticker-tag.strategy { background: #8d54f0; color: #fff; }

.news-ticker-name {
    color: #fff;
    font-size: 14px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== 游戏展示 ========== */
.featured-games {
    padding: 80px 40px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card-featured {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.game-card-featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-card-featured .game-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.game-card-featured:hover .game-bg {
    transform: scale(1.1);
}

.game-card-featured .game-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.9));
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.game-card-featured .game-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: #ff4444;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.game-card-featured .game-badge.hot {
    background: #ffaa00;
    color: #000;
}

.game-card-featured h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.game-card-featured p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ========== 最近游戏 ========== */
.recent-games {
    padding: 80px 40px;
    background: linear-gradient(180deg, #0a0a14 0%, #1a1a2e 100%);
}

.section-header-center {
    text-align: center;
    margin-bottom: 50px;
}

.section-header-center h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.section-header-center p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.recent-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.recent-game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.recent-game-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
}

.recent-game-card .game-img {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    position: relative;
}

.recent-game-card .game-img .new-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: #ff4444;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.recent-game-card .game-info {
    padding: 20px;
}

.recent-game-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.recent-game-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.recent-game-card .game-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.game-action-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.game-action-btn.star {
    background: rgba(255, 166, 0, 0.2);
    color: #ffaa00;
}

.game-action-btn.star:hover {
    background: #ffaa00;
    color: #000;
}

.game-action-btn.heart {
    background: rgba(255, 85, 127, 0.2);
    color: #ff557f;
}

.game-action-btn.heart:hover {
    background: #ff557f;
    color: #fff;
}

/* ========== 赛事预告 ========== */
.tournaments {
    padding: 80px 40px;
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.tournament-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tournament-header {
    padding: 20px;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
}

.tournament-card:nth-child(2) .tournament-header {
    background: linear-gradient(135deg, #8d54f0, #a855f7);
}

.tournament-header span {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

.tournament-content {
    display: flex;
    padding: 25px;
    gap: 20px;
}

.tournament-img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.tournament-details {
    flex: 1;
}

.tournament-details h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffaa00;
    margin-bottom: 15px;
}

.tournament-details p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.tournament-details p strong {
    color: rgba(255, 255, 255, 0.9);
}

/* ========== 游戏评测 ========== */
.reviews {
    padding: 80px 40px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: scale(1.02);
}

.review-card .review-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.review-card .review-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.95));
}

.review-card .review-score {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    z-index: 1;
}

.review-card:nth-child(1) .review-score { background: #ff6b35; }
.review-card:nth-child(2) .review-score { background: #8d54f0; }
.review-card:nth-child(3) .review-score { background: #55aa7f; }
.review-card:nth-child(4) .review-score { background: #ff557f; }

.review-card .review-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 1;
}

.review-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.review-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
}

@media (max-width: 900px) {
    .recent-games-grid { grid-template-columns: 1fr; max-width: 400px; }
    .tournaments-grid { grid-template-columns: 1fr; max-width: 500px; }
}

@media (max-width: 768px) {
    .hero { min-height: 500px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 14px; }
    
    .featured-games, .recent-games, .tournaments, .reviews {
        padding: 50px 20px;
    }
    
    .games-grid { 
        grid-template-columns: 1fr; 
        max-width: 300px;
    }
    
    .game-card-featured { aspect-ratio: 16/10; }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tournament-content { flex-direction: column; }
    .tournament-img { width: 100%; height: 200px; }
    
    .news-ticker-label { width: 100px; font-size: 12px; }
    .news-ticker-content { padding-left: 100px; }
    .news-ticker-item { padding: 0 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .hero-btn { padding: 12px 24px; font-size: 14px; }
    
    .section-header-center h2 { font-size: 24px; }
    
    .games-grid, .reviews-grid { max-width: 100%; }
    
    .recent-games-grid { max-width: 100%; }
    
    .news-ticker-label { 
        width: 80px; 
        font-size: 11px;
        padding: 0 10px;
    }
    .news-ticker-content { padding-left: 80px; }
    .news-ticker-tag { 
        padding: 3px 8px; 
        font-size: 10px;
    }
    .news-ticker-name { font-size: 12px; }
}
