/* 首页样式 */

/* Banner 区域 */
.banner {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 50%, #ffa502 100%);
    padding: 80px 0 60px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.banner-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Top Badge */
.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

/* Main Heading */
.banner h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
    line-height: 1.1;
}

/* Subtitle */
.banner-subtitle {
    font-size: 24px;
    margin-bottom: 35px;
    font-weight: 500;
    opacity: 0.95;
}

/* Feature Tags */
.banner-features {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

/* CTA Button */
.banner-cta {
    display: inline-block;
    background: white;
    color: #ff4757;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.banner-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    color: #ff4757;
}

/* Stats */
.banner-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px 50px;
    border-radius: 20px;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-number {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    color: white;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.9;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* 统计数据区 */
.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 50px 0;
    margin-bottom: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 71, 87, 0.2);
}

.stat-icon {
    font-size: 50px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.stat-number {
    font-size: 30px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 分类导航 */
.categories-nav {
    margin-bottom: 60px;
}

.categories-nav h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(255, 71, 87, 0.2);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-item {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category-item .icon {
    font-size: 36px;
}

.category-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* 游戏部分 */
.section {
    margin-bottom: 60px;
}

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

.section-header h2 {
    font-size: 32px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(255, 71, 87, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 .icon {
    font-size: 36px;
}

.section-header a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.section-header a:hover {
    color: var(--primary-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.game-card {
    cursor: pointer;
}

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

.game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.game-info {
    padding: 15px;
}

.game-title {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 8px;
}

.game-date {
    font-size: 13px;
    color: var(--text-light);
}

/* 每日精选 */
.daily-pick-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    margin-bottom: 60px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.daily-pick-section::before {
    content: '✨';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    top: -50px;
    right: -50px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.daily-pick-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.daily-pick-header h2 {
    font-size: 42px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.daily-pick-header p {
    font-size: 18px;
    opacity: 0.9;
}

.daily-pick-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    transition: all 0.3s ease;
    position: relative;
}

.daily-pick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.daily-pick-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

.daily-pick-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 5px;
}

.daily-pick-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.daily-pick-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
    width: fit-content;
}

.daily-pick-title {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: bold;
}

.daily-pick-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.daily-pick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.daily-pick-tag {
    background: var(--bg-gray);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.daily-pick-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
    width: fit-content;
}

.daily-pick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

/* 游戏卡片增强 */
.game-card {
    position: relative;
}

.game-card .new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.4);
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.game-card .game-image {
    transition: transform 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 36px;
    }

    .banner p {
        font-size: 18px;
    }

    .banner-buttons {
        flex-direction: column;
        align-items: center;
    }

    .banner .btn {
        width: 80%;
    }

    .floating-shapes .shape {
        font-size: 25px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .daily-pick-card {
        grid-template-columns: 1fr;
    }

    .daily-pick-image {
        height: 250px;
    }

    .daily-pick-info {
        padding: 30px 20px;
    }

    .daily-pick-title {
        font-size: 24px;
    }

    .daily-pick-header h2 {
        font-size: 32px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .category-item {
        padding: 20px 10px;
        font-size: 16px;
    }

    .category-item .icon {
        font-size: 28px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-header h2 {
        font-size: 26px;
    }

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

    .game-image {
        height: 140px;
    }

    .game-title {
        font-size: 16px;
    }

    /* Banner 响应式 */
    .banner h1 {
        font-size: 36px;
    }

    .banner-subtitle {
        font-size: 18px;
    }

    .banner-features {
        gap: 10px;
    }

    .feature-tag {
        padding: 10px 20px;
        font-size: 14px;
    }

    .banner-cta {
        padding: 16px 40px;
        font-size: 16px;
    }

    .banner-stats {
        padding: 20px 30px;
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 动画 */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}
