
.hero-banner {
    padding: 30px 0 20px;
    background: #0D82FF;
    max-height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 100%;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 默认PC端布局：每页展示5个游戏 */
.slide {
    flex: 0 0 100%;
    display: flex;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 12px;
    min-height: 260px;
}

.slide-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.slide-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

@media (max-width: 768px) {
    .slide-card:active {
        transform: scale(0.95);
    }
}

.slide-card.featured {
    grid-column: 1;
    grid-row: 1 / 3;
}

.slide-card:hover {
    transform: scale(1.02);
}

.slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.slide-card .card-badge {
    display: inline-block;
    background: #5a4a42;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.slide-card.featured .card-badge {
    background: #ff6b35;
}

.slide-card .card-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-card.featured .card-title {
    font-size: 1.5rem;
    white-space: normal;
}

.slide-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.slide-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* Slider Navigation */
.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.1s ease;
}

.nav-btn:hover {
    background: #fff;
    color: #0D82FF;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.dot:active {
    transform: scale(0.9);
    transition: all 0.1s ease;
}

.dot.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

.categories-bar {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.category-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #5a4a42 0%, #3d2e26 100%);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-pill:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.category-pill i {
    font-size: 1.1rem;
}

.game-section {
    padding: 40px 0;
}

.game-section.alt-bg {
    background: rgba(255, 255, 255, 0.03);
}

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

.section-header h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: #fff;
}

.view-all {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.view-all:hover {
    gap: 10px;
}

.game-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: #5a4a42 transparent;
}


.game-carousel::-webkit-scrollbar {
    height: 6px;
}

.game-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.game-carousel::-webkit-scrollbar-thumb {
    background: #5a4a42;
    border-radius: 3px;
}

/* Carousel Card */
.carousel-card {
    flex: 0 0 220px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #2a1f1a;
    transition: transform 0.3s ease;
}

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

.carousel-card .thumb {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.carousel-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-card:hover .thumb img {
    transform: scale(1.1);
}

.carousel-card .info {
    padding: 12px;
}

.carousel-card .game-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.carousel-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-card .category-tag {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.carousel-card .rating {
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 600;
}

.carousel-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    z-index: 10;
}

.carousel-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1);
}

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

.grid-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #3d2e26 0%, #2a1f1a 100%);
    transition: all 0.3s ease;
    text-decoration: none;
}

.grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.grid-card .thumb {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.grid-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-card:hover .thumb img {
    transform: scale(1.15);
}

.grid-card .info {
    padding: 12px;
    text-align: center;
}

.grid-card .game-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-card .rating {
    color: #ffd700;
    font-size: 0.8rem;
    margin-top: 5px;
}

.grid-card .play-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #001037 0%, #000719 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-card:hover .play-overlay {
    opacity: 1;
}

.grid-card .play-overlay i {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
}

.grid-card .play-overlay span {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}


.category-section {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-section:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.category-header h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

.category-header .game-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-left: auto;
}

.category-games {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}



@media (max-width: 1400px) {
    .game-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .category-games {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .slide {
        min-height: 380px;
    }

    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-games {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 平板端布局：每页展示3个游戏 */
@media (max-width: 992px) and (min-width: 769px) {
    .slide {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 12px;
        min-height: 400px;
    }

    .slide-card.featured .card-title {
        font-size: 1.2rem;
    }

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

    .category-games {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-bar {
        top: 60px;
    }
}

@media (max-width: 992px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-games {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-bar {
        top: 60px;
    }
}

/* 移动端布局：每页展示1个游戏 */
@media (max-width: 768px) {
    .hero-banner {
        padding: 20px 0 15px;
        max-height: 100vh;
    }

    .slide {
        display: flex;
        height: 60vh;
        max-height: 400px;
        min-height: 250px;
    }

    .slide-card {
        flex: 1;
    }

    .slide-card.featured {
        flex: 1;
    }

    .slide-card.featured .card-title {
        font-size: 1.1rem;
    }

    .nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .slider-nav {
        gap: 10px;
        margin-top: 15px;
    }

    .slider-dots {
        max-width: 80vw;
        overflow-x: auto;
        padding: 0 10px;
    }

    .game-section {
        padding: 25px 0;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .carousel-card {
        flex: 0 0 160px;
    }

    .carousel-card .thumb {
        height: 120px;
    }

    .category-section {
        padding: 30px 0;
    }

    .category-header h2 {
        font-size: 1.3rem;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .category-games {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .slide-card:active {
        transform: scale(0.98);
    }

    .nav-btn:active {
        transform: scale(0.9);
    }

    .dot:active {
        transform: scale(0.9);
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 15px 0 10px;
        max-height: 100vh;
    }

    .slide {
        display: flex;
        height: 50vh;
        max-height: 350px;
        min-height: 200px;
    }

    .slide-card .card-overlay {
        padding: 12px;
    }

    .slide-card .card-title {
        font-size: 0.85rem;
    }

    .slide-card.featured .card-title {
        font-size: 1rem;
    }

    .slide-card .card-badge {
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    .nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 24px;
    }

    .slider-nav {
        gap: 8px;
        margin-top: 12px;
    }

    .slider-dots {
        max-width: 85vw;
        padding: 0 5px;
    }

    .category-pills {
        gap: 8px;
    }

    .category-pill {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .grid-card .info {
        padding: 8px;
    }

    .grid-card .game-title {
        font-size: 0.8rem;
    }

    .slide-card:active {
        transform: scale(0.98);
    }

    .nav-btn:active {
        transform: scale(0.9);
    }

    .dot:active {
        transform: scale(0.9);
    }
}

@media (max-width: 360px) {
    .hero-banner {
        padding: 12px 0 8px;
        max-height: 100vh;
    }

    .slide {
        display: flex;
        height: 45vh;
        max-height: 300px;
        min-height: 180px;
    }

    .slide-card .card-overlay {
        padding: 10px;
    }

    .slide-card .card-title {
        font-size: 0.8rem;
    }

    .slide-card.featured .card-title {
        font-size: 0.9rem;
    }

    .slide-card .card-badge {
        padding: 2px 6px;
        font-size: 0.6rem;
    }

    .nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .dot.active {
        width: 20px;
    }

    .slider-nav {
        gap: 6px;
        margin-top: 10px;
    }

    .slider-dots {
        max-width: 90vw;
        padding: 0 3px;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .category-header h2 {
        font-size: 1.2rem;
    }

    .category-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .slide-card:active {
        transform: scale(0.98);
    }

    .nav-btn:active {
        transform: scale(0.9);
    }

    .dot:active {
        transform: scale(0.9);
    }
}