/* 炫酷黑色主题样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

/*  轮播图样式 - 黑色主题 */
.carousel {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.carousel-container {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 轮播图幻灯片背景 - 统一暗黑主题风格 */
.carousel-slide {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
    animation: shine 3s infinite;
}

/* 动画效果 */
@keyframes shine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.slide-content {
    max-width: 600px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.slide-title {
    font-size: 42px;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.slide-desc {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}


/* 轮播图控制按钮 */
.carousel-controls {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    z-index: 3;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 25px;
}

.carousel-arrow.next {
    right: 25px;
}

/* 加载状态样式 - 暗黑主题 */
.loading-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    border: 1px solid #333;
}

/* 跑马灯 - 黑色主题 */
.marquee {
    width: 100%;
    height: 45px;
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a, #1a1a1a);
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.marquee-text {
    position: absolute;
    left: 100%;
    top: 0;
    height: 100%;
    line-height: 45px;
    white-space: nowrap;
    color: #ff6b6b;
    font-weight: 600;
    font-size: 16px;
    animation: marquee 25s linear infinite;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

@keyframes marquee {
    0% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

/* 游戏分类区 */
.game-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 26px;
    color: #fff;
    margin-bottom: 25px;
    border-left: 5px solid #ff4444;
    padding-left: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 游戏列表 */
.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.game-card {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 68, 68, 0.1) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 68, 68, 0.3);
    border-color: #ff4444;
}

.game-card:hover::before {
    opacity: 1;
}

.game-logo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-logo {
    transform: scale(1.05);
}

.game-info {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.game-title {
    font-size: 17px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.game-desc {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px; /* 2行文字的高度 */
}

/* 立即体验按钮样式 */
.play-button {
    background: linear-gradient(45deg, #ff4444, #ff6b6b);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.play-button:hover {
    background: linear-gradient(45deg, #ff6b6b, #ff4444);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.play-button:hover::before {
    left: 100%;
}

.play-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 68, 68, 0.3);
}

/* 底部公司信息 */
.footer {
    width: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    color: #b0b0b0;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #333;
}

.company-info {
    font-size: 14px;
    line-height: 2;
    max-width: 800px;
    margin: 0 auto;
}

.company-info p {
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel {
        height: 250px;
    }
    
    .slide-title {
        font-size: 28px;
    }
    
    .slide-desc {
        font-size: 16px;
    }
    
    .game-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
