﻿:root {
    --primary-color: #1e3a8a; /* 深蓝色背景，替换原深绿色 */
    --secondary-color: #3b82f6; /* 中蓝色，替换原中绿色 */
    --accent-color: #f3f4f6; /* 浅灰白色作为强调色，替换原金黄色 */
    --text-color: #ffffff; /* 白色文字 */
    --text-secondary: #d1d5db; /* 浅灰色次要文字 */
    --card-bg: #2563eb; /* 卡片背景色为淡蓝色，替换原浅绿色 */
    --bottom-nav-bg: #1e3a8a; /* 底部导航栏背景色，与主背景一致 */
    --bottom-nav-active: #f3f4f6; /* 底部导航栏激活颜色，与强调色一致 */
    --button-gradient: linear-gradient(90deg, #3b82f6, #2563eb); /* 蓝色渐变按钮 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px; /* 为底部导航留出空间 */
    max-width: 500px; /* 限制最大宽度，保持手机样式 */
    margin: 0 auto; /* 在桌面端居中 */
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 500px;
}

.logo img {
    height: 40px;
}

.login-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.btn {
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.login {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.register {
    background: var(--button-gradient);
    border: none;
    color: white;
}

/* 第一部分：主横幅 */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 25px 20px 30px;
    background-color: var(--card-bg);
    margin: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2); /* 蓝色阴影 */
    border: 1px solid rgba(59, 130, 246, 0.1); /* 蓝色边框 */
}

.hero-content {
    z-index: 2;
    position: relative;
    margin-bottom: 25px;
    padding: 0 5px; /* 添加轻微内边距 */
}

.main-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: white; /* 改为白色，在蓝色背景上更突出 */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.sub-title {
    font-size: 15px;
    margin-bottom: 25px;
    color: var(--text-color);
    max-width: 95%;
    line-height: 1.6;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.cta-btn {
    background: var(--button-gradient);
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); /* 蓝色阴影 */
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
    margin: 5px auto 0;
    width: fit-content;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4); /* 蓝色阴影 */
}

.hero-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    height: auto;
    min-height: 300px;
    background-color: var(--card-bg);
}

.hero-image img {
    width: 100%;
    display: block;
    object-fit: contain;
    padding: 10px;
}

/* 第二部分：特色卡片 */
.section-title {
    text-align: center;
    margin: 30px 0 20px;
    color: white; /* 改为白色，更协调 */
    font-size: 24px;
    font-weight: 600;
}

.features-section {
    padding: 0 20px 30px;
}

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

.feature-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.1); /* 蓝色边框 */
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: white; /* 变为白色边框 */
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2); /* 蓝色阴影 */
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 32px;
    color: white; /* 改为白色图标 */
}

.feature-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: white; /* 改为白色 */
}

.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 第三部分：支付方式 */
.payment-section {
    padding: 0 20px 30px;
    background-color: var(--card-bg);
    margin: 20px;
    border-radius: 15px;
}

.payment-methods {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    padding: 10px;
    overflow-x: auto;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
    flex: 1;
}

.payment-method i {
    font-size: calc(16px + 1vw);
    color: var(--accent-color);
    margin-bottom: 5px;
}

.payment-method span {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

/* 第四部分：活动优惠 */
.promotions-section {
    padding: 0 20px 30px;
}

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

.promotion-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.promotion-image {
    width: 100%;
    height: 120px;
    background-color: var(--card-bg);
}

.promotion-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.promotion-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promotion-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: white; /* 改为白色 */
}

.promotion-content p {
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    flex: 1;
}

.promo-btn {
    font-size: 13px;
    padding: 6px 15px;
    background: var(--button-gradient);
    color: white;
    align-self: flex-start;
}

.promotion-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color), #1e40af); /* 调整为蓝色渐变 */
    height: 120px;
    position: relative;
}

.promotion-icon i {
    font-size: 48px;
    color: white; /* 改为白色，在蓝色背景上更清晰 */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white; /* 改为白色 */
    color: var(--primary-color); /* 深蓝色文字 */
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 游戏区域样式 */
.games-section {
    padding: 0 20px 30px;
    margin-bottom: 20px;
}

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

.game-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1 / 1.1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    transform-origin: center;
    background-color: var(--card-bg);
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--card-bg);
    transition: transform 0.5s ease;
    padding: 5px;
}

.game-item:hover img {
    transform: scale(1.05); /* 图片悬停时轻微放大 */
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: center;
    justify-content: center; /* 居中游戏名称 */
    opacity: 0.7; /* 默认半透明 */
    transition: opacity 0.3s ease, padding 0.3s ease;
    height: 30%; /* 覆盖更多区域 */
}

.game-item:hover .game-overlay {
    padding-bottom: 20px; /* 悬停时增加底部内边距 */
    opacity: 1; /* 完全不透明 */
}

.game-name {
    font-weight: 700; /* 更粗的字体 */
    font-size: 16px; /* 更大的字体 */
    color: #ffffff; /* 白色文字更醒目 */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* 文字阴影提高可读性 */
    letter-spacing: 0.5px; /* 增加字母间距 */
    text-align: center;
    transition: transform 0.3s ease;
}

.game-item:hover .game-name {
    transform: translateY(-5px); /* 名称上移动画 */
}

/* 添加游戏标签 */
.game-overlay::before {
    content: "PG Soft";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white; /* 改为白色 */
    color: var(--primary-color); /* 深蓝色文字 */
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-item:hover .game-overlay::before {
    opacity: 1;
    transform: translateY(0);
}

/* 游戏详情模态框样式 */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--card-bg); /* 使用淡蓝色卡片背景，与整体风格一致 */
    max-width: 90%;
    width: 320px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-appear 0.3s ease;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.game-modal-header {
    position: relative;
}

#modal-game-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: var(--card-bg); /* 使用淡蓝色背景，与整体风格一致 */
    padding: 5px;
}

.modal-game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

#modal-game-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: white; /* 改为白色 */
}

#modal-game-provider {
    font-size: 14px;
    opacity: 0.8;
}

.game-details {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: white; /* 改为白色 */
}

#modal-game-description {
    padding: 15px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.game-features {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background-color: rgba(255,255,255,0.1);
    color: white; /* 改为白色 */
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.play-btn {
    display: block;
    margin: 15px auto;
    width: calc(100% - 30px);
    text-align: center;
    background-color: var(--secondary-color); /* 使用中蓝色 */
    color: white;
    border: none;
    padding: 12px 0;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); /* 蓝色阴影 */
}

.play-btn:hover {
    background-color: #1d4ed8; /* 深一点的蓝色，悬停效果 */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); /* 蓝色阴影 */
}

/* 底部导航栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bottom-nav-bg);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    max-width: 500px; /* 限制最大宽度，保持与内容区域一致 */
    margin: 0 auto; /* 在桌面端居中 */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
    width: 20%;
    text-align: center;
}

.nav-item.active {
    color: var(--bottom-nav-active);
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-icon i {
    font-size: 20px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-item.active .nav-icon i {
    color: var(--bottom-nav-active);
}

/* 存款按钮特殊样式 */
.nav-item:nth-child(3) {
    transform: translateY(-20px);
}

.nav-item:nth-child(3) .nav-icon {
    background-color: var(--secondary-color); /* 使用中蓝色 */
    border-radius: 50%;
    padding: 10px;
    width: 50px;
    height: 50px;
    position: relative;
}

.nav-item:nth-child(3) .nav-icon i {
    font-size: 24px;
    color: white;
}

.nav-item:nth-child(3) .nav-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background-color: rgba(59, 130, 246, 0.3); /* 蓝色光晕 */
    border-radius: 50%;
    z-index: -1;
} 