/* 首页专用样式 */

/* 英雄区域增强样式 - 霓虹科技风格 */
.hero-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.3) 0%, rgba(22, 33, 62, 0.3) 100%);
    padding: 2.5rem 0;
    margin: 1rem 0;
    border-radius: 20px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3), inset 0 0 50px rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-section h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 40px rgba(0, 212, 255, 0.5);
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.hero-section p {
    color: #d0d0ff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    position: relative;
    z-index: 1;
}

.hero-section .btn {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 0 40px rgba(0, 212, 255, 0.4);
    position: relative;
    z-index: 1;
}

/* Featured Games Section - 霓虹科技设计 */
.featured-games-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.featured-games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, rgba(139, 92, 246, 0.03) 0px, transparent 1px, transparent 2px, rgba(139, 92, 246, 0.03) 3px),
        repeating-linear-gradient(90deg, rgba(0, 212, 255, 0.03) 0px, transparent 1px, transparent 2px, rgba(0, 212, 255, 0.03) 3px);
    opacity: 0.5;
    pointer-events: none;
}

.featured-games-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.8), 0 0 60px rgba(0, 212, 255, 0.6);
    background: linear-gradient(135deg, #8b5cf6 0%, #00d4ff 50%, #06ffa5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section-subtitle {
    font-size: 1.2rem;
    color: #a0a0ff;
    opacity: 0.9;
    margin-bottom: 0;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.game-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(22, 33, 62, 0.6) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2), inset 0 0 30px rgba(139, 92, 246, 0.05);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(0, 212, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6), 0 0 60px rgba(0, 212, 255, 0.4), 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.8);
}

.featured-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(0, 212, 255, 0.2) 100%);
    border: 2px solid rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5), 0 15px 35px rgba(0, 0, 0, 0.4);
}

.featured-card:hover {
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.8), 0 0 70px rgba(0, 212, 255, 0.6), 0 25px 50px rgba(0, 0, 0, 0.5);
}

.game-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Image sizing for game icons */
.game-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: inline-block;
}

@media (max-width: 480px) {
    .game-icon img {
        width: 192px;
        height: 192px;
    }
}

.game-content {
    text-align: center;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.8), 0 0 30px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-description {
    font-size: 1rem;
    color: #b0b0ff;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.3);
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, #8b5cf6 0%, #00d4ff 100%);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6), 0 0 25px rgba(0, 212, 255, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.game-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #06ffa5 0%, #00d2d3 100%);
    color: #0a0a0f;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(6, 255, 165, 0.6), 0 0 40px rgba(0, 210, 211, 0.4);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(6, 255, 165, 0.5);
}

.game-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.game-btn:hover::before {
    left: 100%;
}

.game-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px rgba(6, 255, 165, 0.8), 0 0 60px rgba(0, 210, 211, 0.6);
    color: #0a0a0f;
    text-decoration: none;
    border-color: rgba(6, 255, 165, 0.8);
}

.btn-icon {
    font-style: normal;
    transition: transform 0.3s ease;
}

.game-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-games-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-card {
        padding: 1.5rem;
    }
    
    .game-icon {
        font-size: 2.5rem;
    }
    
    .game-title {
        font-size: 1.3rem;
    }
    
    .game-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .featured-games-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .game-card {
        padding: 1.2rem;
    }
    
    .game-icon {
        font-size: 2rem;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
    
    .game-features {
        gap: 0.3rem;
    }
    
    .feature-tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* 导航菜单当前页面高亮 - 霓虹效果 */
.nav-menu a[href="index.html"] {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(0, 212, 255, 0.3) 100%);
    color: #00d4ff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 4px 15px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.6);
}

.nav-menu a[href="index.html"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), rgba(0, 212, 255, 0.5), transparent);
    transition: left 0.6s ease;
}

.nav-menu a[href="index.html"]:hover::before {
    left: 100%;
}

/* 首页导航特殊样式 */
.nav-menu .nav-item:first-child .nav-link {
    position: relative;
}

.nav-menu .nav-item:first-child .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b5cf6, #00d4ff, transparent);
    border-radius: 2px;
    animation: pulse-neon 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

@keyframes pulse-neon {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scaleX(1); box-shadow: 0 0 10px rgba(139, 92, 246, 0.8); }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1.1); box-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
}

/* 覆盖内联样式 - 卡片背景 */
.feature-card[style*="background"] {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%) !important;
    border: 2px solid rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3), inset 0 0 40px rgba(139, 92, 246, 0.05) !important;
}

/* 覆盖内联样式 - 黄色标题 */
h3[style*="color: #FFEB3B"],
h3[style*="color:#FFEB3B"] {
    color: #00d4ff !important;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 40px rgba(139, 92, 246, 0.6) !important;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 覆盖内联样式 - 浅黄色文字 */
ul[style*="color: #FFF9C4"],
li[style*="color: #FFF9C4"],
td[style*="color: #FFF9C4"],
th[style*="color: #FFF9C4"],
p[style*="color: #FFF9C4"] {
    color: #a0a0ff !important;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.4) !important;
}

/* 覆盖内联样式 - 橙色文字 */
td[style*="color: #FFA726"],
th[style*="color: #FFA726"],
td[style*="color: #FF6F00"],
th[style*="color: #FF6F00"] {
    color: #00d4ff !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8) !important;
}

/* 覆盖内联样式 - 黄色高亮文字 */
td[style*="color: #FFEB3B"],
th[style*="color: #FFEB3B"] {
    color: #06ffa5 !important;
    text-shadow: 0 0 10px rgba(6, 255, 165, 0.8) !important;
    font-weight: bold !important;
}

/* 覆盖内联样式 - 表格背景 */
table[style*="background"] {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%) !important;
    border: 2px solid rgba(139, 92, 246, 0.4) !important;
}

/* 覆盖内联样式 - 表头背景 */
tr[style*="background: linear-gradient(135deg, #8D6E63"] {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6) 0%, rgba(0, 212, 255, 0.4) 100%) !important;
}

/* 覆盖内联样式 - 表格行背景 */
tr[style*="background: rgba(255, 167, 38"] {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%) !important;
}

tr[style*="background: rgba(255, 255, 255, 0.02)"] {
    background: rgba(26, 26, 46, 0.3) !important;
}

/* 覆盖内联样式 - 表格边框 */
th[style*="border-bottom: 3px solid #FFA726"] {
    border-bottom: 3px solid rgba(139, 92, 246, 0.8) !important;
}

tr[style*="border-bottom: 1px solid rgba(255, 255, 255, 0.1)"] {
    border-bottom: 1px solid rgba(139, 92, 246, 0.2) !important;
}

/* 覆盖内联样式 - 徽章和标签背景 */
span[style*="background: #D32F2F"],
span[style*="background: #F57C00"],
span[style*="background: #388E3C"],
span[style*="background: #FFA726"],
span[style*="background: #1976D2"] {
    background: linear-gradient(135deg, #8b5cf6 0%, #00d4ff 100%) !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6), 0 0 25px rgba(0, 212, 255, 0.4) !important;
    border: 1px solid rgba(139, 92, 246, 0.5) !important;
}

/* 覆盖内联样式 - section背景 */
section[style*="background: linear-gradient(180deg, rgba(141, 110, 99"] {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.3) 0%, rgba(22, 33, 62, 0.3) 100%) !important;
    border: 2px solid rgba(139, 92, 246, 0.4) !important;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3) !important;
}

/* 覆盖内联样式 - 绿色文字(RTP) */
td[style*="color: #4CAF50"],
th[style*="color: #4CAF50"] {
    color: #06ffa5 !important;
    text-shadow: 0 0 10px rgba(6, 255, 165, 0.8) !important;
}

/* 覆盖内联样式 - 金银铜牌颜色 */
td[style*="color: #C0C0C0"] {
    color: #a0a0ff !important;
}

td[style*="color: #CD7F32"] {
    color: #ffa500 !important;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.8) !important;
}

/* 响应式图片样式 */
.feature-hero-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-radius: 2rem;
}

.feature-card-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-radius: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0;
        text-align: center;
        margin: 0.5rem 0;
        border-radius: 15px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section p {
        margin-bottom: 0.75rem;
    }
    
    .game-highlight {
        padding: 1.5rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .featured-games {
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .featured-games::before {
        border-radius: 17px;
    }
    
    .feature-hero-image,
    .feature-card-image {
        max-width: 100%;
        margin: 1rem auto;
    }
    
    /* 移动端防止图片溢出 */
    body {
        overflow-x: hidden;
    }
    
    section {
        overflow-x: hidden;
    }
    
    section img {
        max-width: 100%;
        height: auto;
    }
    
    .col-12 img,
    .col-lg-6 img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .feature-hero-image,
    .feature-card-image {
        margin: 0.75rem auto;
    }
    
    /* 强制所有图片在小屏幕上自适应 */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}