/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* 基本样式设置 - 手机界面 */
body {
    background-color: #0d1829;
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    background-color: #0a1422;
    min-height: 100vh;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* 头部样式 */
.header {
    background: linear-gradient(to right, #071018, #0d1829);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-container {
    width: 150px;
}

.logo {
    width: 100%;
    height: auto;
}

.nav-toggle {
    font-size: 24px;
    color: #ffc107;
    cursor: pointer;
}

/* 头部按钮 */
.header-buttons {
    display: flex;
    gap: 10px;
}

.header-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 13px;
    transition: all 0.3s;
    min-width: 90px;
}

.header-btn i {
    font-size: 14px;
    margin-right: 5px;
    margin-bottom: 0;
}

.register-btn {
    background-color: #ffc107;
    color: #071018;
}

.login-btn {
    background-color: #28a745;
    color: #ffffff;
}

.header-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* 主横幅样式 */
.main-banner {
    width: 30%;
    height: 0;
    padding-bottom: 30%; /* 使容器为正方形 */
    margin: 15px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 15px #ffffff,
                0 0 25px rgba(255, 255, 255, 0.5),
                0 0 35px rgba(255, 255, 255, 0.3);
    position: relative;
    animation: glowing 3s infinite alternate;
}

@keyframes glowing {
    0% {
        box-shadow: 0 0 15px #ffffff,
                    0 0 25px rgba(255, 255, 255, 0.5),
                    0 0 35px rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 20px #ffffff,
                    0 0 30px rgba(255, 255, 255, 0.6),
                    0 0 40px rgba(255, 255, 255, 0.4);
    }
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* 欢迎区域 */
.welcome-section {
    padding: 25px 15px 25px 30px;
    text-align: left;
    background: linear-gradient(135deg, #071018, #0a1422, #132639);
    border-radius: 0 0 15px 15px;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #009c3b, #ffdf00, #002776);
    z-index: 5;
}

.welcome-section h2 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInLeft 0.8s ease-out;
}

.welcome-section h1 {
    color: #ffdf00;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    animation: pulse 2s infinite;
}

.vip-title {
    font-size: 38px !important;
    letter-spacing: 3px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 10px rgba(238, 255, 0, 0.3) !important;
    margin: 5px 0 18px 0 !important;
    background: linear-gradient(to right, rgb(238, 255, 0), hsl(59, 100%, 50%), hwb(52 0% 0%));
    -webkit-background-clip: text;
    background-clip: text;
    color: #ffdf00;
    position: relative;
    display: inline-block;
}

.welcome-section p {
    color: #e0e0e0;
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
    position: relative;
    padding-left: 20px;
    animation: fadeInRight 0.8s ease-out;
    animation-fill-mode: both;
}

.welcome-section p:nth-child(3) {
    animation-delay: 0.1s;
}

.welcome-section p:nth-child(4) {
    animation-delay: 0.2s;
}

.welcome-section p:nth-child(5) {
    animation-delay: 0.3s;
}

.welcome-section p:nth-child(6) {
    animation-delay: 0.4s;
}

.welcome-section p:nth-child(7) {
    animation-delay: 0.5s;
}

.welcome-section p::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffdf00;
    font-weight: bold;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 快速访问按钮 */
.quick-access {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    margin: 10px 0;
}

.access-button {
    width: 45%;
    text-align: center;
    padding: 12px 0;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.access-button i {
    font-size: 24px;
    margin-bottom: 8px;
}

.register {
    background-color: #ffc107;
    color: #071018;
}

.login {
    background-color: #28a745;
    color: #ffffff;
}

.access-button:hover {
    transform: scale(1.05);
}

/* 游戏分类 */
.popular-games {
    padding: 20px 15px;
}

.popular-games h2 {
    color: #4d79ff;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.game-item {
    background: linear-gradient(135deg, #132639 0%, #1a3349 100%);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid #4d79ff;
}

.game-item:hover {
    background-color: #1a3349;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-icon {
    width: 50px;
    height: 50px;
    background-color: #071018;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
}

.game-icon i {
    font-size: 22px;
    color: #4d79ff;
}

/* 促销区域 */
.promotions {
    padding: 20px 15px;
    background: linear-gradient(135deg, #132639 0%, #1e3a57 100%);
    margin: 20px 0;
    border-radius: 8px;
}

.promotions h2 {
    color: #ff6b6b;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.promo-card {
    background-color: #0a1422;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid #ff6b6b;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.5s ease-out;
    transition: all 0.3s ease;
    text-align: center;
}

.promo-card h3 {
    color: #ff6b6b;
    margin-bottom: 8px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-icon {
    margin-right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 107, 107, 0.15);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.promo-icon i {
    font-size: 16px;
    color: #ff6b6b;
}

.promo-card p {
    font-size: 14px;
    margin-bottom: 12px;
}

.promo-button {
    background: linear-gradient(to right, #ff6b6b, #ff8e8e);
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    min-width: 140px;
    width: 60%;
    margin: 0 auto;
    display: block;
}

.promo-button:hover {
    background: linear-gradient(to right, #ff5252, #ff7676);
    transform: translateY(-2px);
}

/* 每日特惠区域 */
.daily-offers {
    padding: 20px 15px;
    margin: 0 0 20px 0;
    background-color: transparent;
}

.daily-offers h2 {
    color: #4ecdc4;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.offers-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.offer-card {
    flex: 1;
    background: linear-gradient(135deg, #132639 0%, #1a3349 100%);
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border-bottom: 3px solid #4ecdc4;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.offer-icon {
    margin-right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(78, 205, 196, 0.15);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.offer-icon i {
    font-size: 16px;
    color: #4ecdc4;
}

.offer-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.offer-card p {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.4;
}

/* 支付方式 */
.payment-methods {
    padding: 20px 15px;
    text-align: center;
}

.payment-methods h2 {
    color: #a17fe0;
    font-size: 20px;
    margin-bottom: 15px;
}

.payment-icons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.payment-icon {
    background: linear-gradient(135deg, #132639 0%, #1a3349 100%);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
    border: 1px solid rgba(161, 127, 224, 0.3);
}

.payment-icon i {
    font-size: 26px;
    color: #a17fe0;
}

/* 页脚 */
.footer {
    padding: 20px 15px;
    background: linear-gradient(to bottom, #071018, #0d1829);
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    margin: 5px 10px;
}

.social-media {
    margin-bottom: 15px;
}

.social-media a {
    color: #4d79ff;
    margin: 0 10px;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-media a:hover {
    transform: scale(1.2);
}

.social-media a:nth-child(2) {
    color: #ff6b6b;
}

.social-media a:nth-child(3) {
    color: #4ecdc4;
}

.social-media a:nth-child(4) {
    color: #a17fe0;
}

.copyright {
    font-size: 12px;
    color: #999;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.popular-games h2:after, .promotions h2:after, .daily-offers h2:after, .payment-methods h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: 0;
    left: 25%;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease-out;
}

.popular-games h2:hover:after, .promotions h2:hover:after, .daily-offers h2:hover:after, .payment-methods h2:hover:after {
    transform: scaleX(1);
}

.logo-text i {
    animation: pulse 2s infinite;
}

.payment-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(161, 127, 224, 0.3);
}

.game-icon {
    transition: all 0.3s ease;
}

.game-item:hover .game-icon {
    transform: rotate(10deg);
}

.promo-icon, .offer-icon {
    transition: all 0.3s ease;
}

.promo-card:hover .promo-icon, .offer-card:hover .offer-icon {
    transform: scale(1.1);
}

.popular-games h2, .promotions h2, .daily-offers h2, .payment-methods h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.promo-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.2);
}

.brazil-flag-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, #009c3b 50%);
    z-index: 2;
}

.brazil-flag-corner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    background-color: #ffdf00;
    border-radius: 50%;
    transform: translate(-30%, -30%);
}

.welcome-section a {
    text-decoration: none;
    display: block;
}

.cta-banner {
    background: linear-gradient(to right, #009c3b, #006400);
    color: #ffdf00;
    text-align: center;
    padding: 8px 15px;
    font-weight: bold;
    margin-top: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulse 1.5s infinite;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* 友情博彩品牌链接区域 */
.partner-brands {
    margin: 25px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-brands h3 {
    color: #4d79ff;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 10px;
    max-width: 440px;
    margin: 0 auto;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s ease;
    padding: 8px 5px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
}

.partner-logo:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.partner-logo i {
    font-size: 20px;
    margin-bottom: 6px;
    color: #4d79ff;
}

.partner-logo span {
    font-size: 11px;
    text-align: center;
}

/* 不同颜色的图标 - 第一排 */
.partner-logo:nth-child(1) i { color: #4d79ff; }
.partner-logo:nth-child(2) i { color: #ff6b6b; }
.partner-logo:nth-child(3) i { color: #ffc107; }
.partner-logo:nth-child(4) i { color: #28a745; }

/* 第二排 */
.partner-logo:nth-child(5) i { color: #a17fe0; }
.partner-logo:nth-child(6) i { color: #e83e8c; }
.partner-logo:nth-child(7) i { color: #20c997; }
.partner-logo:nth-child(8) i { color: #fd7e14; }

/* 第三排 */
.partner-logo:nth-child(9) i { color: #6f42c1; }
.partner-logo:nth-child(10) i { color: #17a2b8; }
.partner-logo:nth-child(11) i { color: #dc3545; }
.partner-logo:nth-child(12) i { color: #ffcc00; }

/* 第四排 */
.partner-logo:nth-child(13) i { color: #ff8800; }
.partner-logo:nth-child(14) i { color: #0099cc; }
.partner-logo:nth-child(15) i { color: #ff3366; }
.partner-logo:nth-child(16) i { color: #669900; }

/* 第五排 */
.partner-logo:nth-child(17) i { color: #9966cc; }
.partner-logo:nth-child(18) i { color: #00cc99; }
.partner-logo:nth-child(19) i { color: #cc6600; }
.partner-logo:nth-child(20) i { color: #0066ff; }

/* 第六排 */
.partner-logo:nth-child(21) i { color: #ff9999; }
.partner-logo:nth-child(22) i { color: #33ccff; }
.partner-logo:nth-child(23) i { color: #cc66ff; }
.partner-logo:nth-child(24) i { color: #ffcc33; }

/* 页脚样式调整 */
.copyright {
    margin-top: 10px;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}