﻿/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1a102e;
    color: white;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
}

/* 头部样式 */
header {
    background-color: #2a1a47;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container h1 {
    color: #f8ad0d;
    font-size: 24px;
    font-weight: bold;
}

.header-icons {
    display: flex;
    gap: 15px;
    color: #f8ad0d;
    font-size: 22px;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(to bottom, #3a1a60, #25133f);
    border-radius: 15px;
    margin: 10px;
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
 
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    color: #ff5e62;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.promo-tag {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.highlight-text {
    background-color: #ff5e62;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.discount-text {
    background-color: #f8ad0d;
    color: #1a102e;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: #e0e0e0;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.benefits-list {
    list-style: none;
    margin-bottom: 15px;
}

.benefits-list li {
    color: #e0e0e0;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.benefits-list li i {
    color: #37b9ff;
    margin-right: 8px;
    font-size: 16px;
}

.countdown-container {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.countdown-label {
    color: #e0e0e0;
    font-size: 14px;
    margin-right: 10px;
}

.countdown-timer {
    color: #ff5e62;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary {
    background-color: #ff5e62;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: #37b9ff;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.live-winners {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 8px;
    margin-top: 15px;
    overflow: hidden; /* 确保图片不会溢出容器 */
}

.promo-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px; /* 轻微的圆角效果 */
    transition: transform 0.3s ease; /* 添加过渡效果 */
}

.promo-image:hover {
    transform: scale(1.02); /* 悬停时轻微放大效果 */
}

.fire-icon {
    color: #ff5e62;
    margin-right: 5px;
}

/* 广告轮播区域样式 */
.promotions {
    padding: 20px 10px;
    margin: 15px 0;
}

.section-title {
    color: #f8ad0d;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.promotion-slider {
    background: linear-gradient(to right, #3a1a60, #25133f);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-height: 150px; /* 确保轮播区域有足够的高度 */
    cursor: grab; /* 添加抓取光标，提示用户可以滑动 */
    touch-action: pan-y; /* 允许垂直滚动，水平滑动会被捕获 */
    user-select: none; /* 防止文本被选中 */
}

.promotion-slider:active {
    cursor: grabbing; /* 用户抓取时的光标样式 */
}

/* 轮播箭头样式 */
.slider-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 让箭头不影响轮播区域的滑动 */
    z-index: 5;
}

.arrow-left, .arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto; /* 恢复箭头的点击事件 */
    opacity: 0.7;
    transition: opacity 0.3s, background-color 0.3s;
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

.arrow-left:hover, .arrow-right:hover {
    opacity: 1;
    background-color: rgba(255, 94, 98, 0.7);
}

.slider-arrows i {
    color: white;
    font-size: 16px;
}

.promotion-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.promotion-slide.active {
    display: block;
}

.promotion-slide h3 {
    color: #ff5e62;
    font-size: 18px;
    margin-bottom: 10px;
    position: relative;
}

.promotion-slide h3::after {
    content: '🎁'; /* 添加礼物图标 */
    position: absolute;
    margin-left: 8px;
    font-size: 16px;
}

.promotion-slide p {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.promotion-btn {
    background: linear-gradient(to right, #ff5e62, #ff9966);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.promotion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    background: linear-gradient(to right, #ff9966, #ff5e62);
}

.promotion-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #6b4999;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #ff5e62;
    transform: scale(1.2);
}

.dot:hover {
    background-color: #f8ad0d;
}

/* 滑动提示样式 */
.swipe-tip {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    animation: pulse 2s infinite;
}

.swipe-tip i {
    margin-right: 5px;
    animation: swipeHint 1.5s infinite;
    display: inline-block;
}

@keyframes swipeHint {
    0% { transform: translateX(0); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 支付方式部分 */
.payment-methods {
    padding: 15px 10px;
    margin: 15px 0;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 10px;
}

.payment-card {
    background: linear-gradient(135deg, #3a1a60, #25133f);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 94, 98, 0.5);
}

.payment-card i {
    font-size: 28px;
    color: #f8ad0d;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.payment-card span {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

/* 游戏提供商 */
.game-providers {
    background-color: #25133f;
    padding: 15px 10px;
    margin: 20px 0;
}

.provider-logos {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.provider-logos img {
    height: 20px;
    object-fit: contain;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.nav-btn {
    background-color: #3a1a60;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.page-indicator {
    font-size: 14px;
    color: #e0e0e0;
}

.more-btn {
    background-color: #3a1a60;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
}

/* 特色游戏 */
.featured-games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 10px;
    margin-bottom: 20px;
}

.game-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background-color: #25133f;
}

.game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.game-card h3 {
    font-size: 12px;
    padding: 8px;
    text-align: center;
    color: #f8ad0d;
}

/* 平台优势部分 */
.features {
    padding: 20px 10px;
    margin-bottom: 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    background-color: #25133f;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    color: #f8ad0d;
    font-size: 24px;
    margin-bottom: 10px;
}

.feature-item h3 {
    color: #ff5e62;
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-item p {
    color: #e0e0e0;
    font-size: 12px;
    line-height: 1.4;
}

/* 底部信息链接 */
.info-links {
    padding: 20px 10px;
    margin-bottom: 80px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    background-color: #25133f;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.info-item h3 {
    color: #ff5e62;
    font-size: 16px;
    margin-bottom: 8px;
}

.info-item p {
    color: #e0e0e0;
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.info-link {
    color: #37b9ff;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.info-link:hover {
    text-decoration: underline;
}

/* 底部栏 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #25133f;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    max-width: 480px;
    margin: 0 auto;
    border-top: 1px solid #3a1a60;
}

/* 注册登录按钮样式 */
.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.register-btn, .login-btn {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.register-btn {
    background-color: #ff5e62;
    border: 1px solid #ff5e62;
}

.login-btn {
    background-color: transparent;
    border: 1px solid #37b9ff;
    color: #37b9ff;
}

.register-btn:hover {
    background-color: #ff4046;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(255, 94, 98, 0.4);
}

.login-btn:hover {
    background-color: rgba(55, 185, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(55, 185, 255, 0.3);
}

/* 原余额显示样式 - 已不再使用 
.balance {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8ad0d;
    font-weight: bold;
}
*/

/* 原存款按钮样式 - 已不再使用
.deposit-btn {
    background-color: #ff5e62;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}
*/

/* 响应式调整 */
@media (max-width: 380px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .featured-games {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-grid, .info-grid {
        grid-template-columns: 1fr;
    }
}

/* 页面动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-primary:hover {
    animation: pulse 1s infinite;
}

/* 添加脉冲效果 */
.pulse-effect {
    animation: pulse 0.5s;
} 