/* 大Banner轮播 */
.hero-banner {
    height: 500px;
    position: relative;
    overflow: hidden;
}
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.slider-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slider-item.active {
    opacity: 1;
}
.hero-content {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    text-align: left;
}
.hero-title {
    font-size: 28px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}
/* 轮播指示器 */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.indicator.active {
    background: #ff3333;
    width: 30px;
    border-radius: 6px;
}
/* 轮播箭头 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    font-size: 24px;
}
.slider-arrow:hover {
    background: rgba(255, 51, 51, 0.8);
}
.slider-arrow.prev {
    left: 20px;
}
.slider-arrow.next {
    right: 20px;
}
/* 主体容器 */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
}
/* 推广卡片 */
.promotion-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.promo-card {
    width: 425px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 30px;
	height: 180px;
    text-align: left;
    transition: all 0.3s;
    cursor: pointer;
}
.promo-card:hover {
    transform: translateY(-5px);
    border-color: #ff3333;
    box-shadow: 0 5px 20px rgba(255, 51, 51, 0.3);
}
.user-info-card {
    padding-left: 10px;
	padding-top: 13px;  /* 减小这个值，内容往上移动 */
}
.user-info-card .user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-left: -250px;
}
.user-info-card .user-info p {
    display: block;
    margin: 0;
    padding: 8px 30;
    font-size: 16px;
}
.promo-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.promo-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffd700;
}
.promo-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}
.promo-btn {
    background: #ff3333;
    color: white;
    padding: 10px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}
.promo-btn:hover {
    background: #ff5555;
}
/* 游戏分类标签 */
.game-categories {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
}
.category-tag {
    background: #1a1a1a;
    color: #999;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #333;
}
.category-tag:hover,
.category-tag.active {
    background: #ff3333;
    color: white;
    border-color: #ff3333;
}
.search-box {
    display: flex;
    gap: 10px;
    width: 325px;
}
.search-input {
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    flex: 1;
    outline: none;
}
.search-input:focus {
    border-color: #ff3333;
}
.search-btn {
    background: #ff3333;
    color: white;
    padding: 8px 20px;
    border: 1px solid #ff3333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.search-btn:hover {
    background: #ff5555;
}
/* 游戏列表 */
.games-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.game-card {
    width: 425px;
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #333;
    position: relative;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 51, 51, 0.3);
    border-color: #ff3333;
}
.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
/* 标签设置 */
.game-tag {
    position: absolute;
    top: 210px;
    right: 10px;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    color: white;
}
.game-tag.red {
    background: linear-gradient(135deg, #ff3333 0%, #ff5555 100%);
}
.game-tag.orange {
    background: linear-gradient(135deg, #ff8800 0%, #ffaa00 100%);
}
.game-tag.pink {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
}
.game-tag.blue {
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
}
.game-tag.green {
    background: linear-gradient(135deg, #00cc66 0%, #00ff88 100%);
}
.game-info {
    padding: 15px;
}
.game-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
}
.game-desc {
    color: #999;
    margin-bottom: 15px;
    height: 36px;
    overflow: hidden;
}
.game-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}
.game-btn {
    padding: 8px 0;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #999;
    text-align: center;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}
.game-btn:hover {
    border-color: #ff3333;
    color: #ff3333;
}
.game-btn.primary {
    background: #ff3333;
    color: white;
    border-color: #ff3333;
}
.game-btn.primary:hover {
    background: #ff5555;
}
/* 右侧悬浮工具栏 */
.float-toolbar {
    position: fixed;
    right: 0px;

	bottom: 20px;
    z-index: 999;
}
.float-item {
    background: #2a2a2a;
    border: 1px solid #333;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.float-item:hover {
    background: #ff3333;
    border-color: #ff3333;
}
.float-icon {
    font-size: 24px;
    margin-bottom: 5px;
}
.float-text {
    font-size: 11px;
    color: #999;
}
.float-item:hover .float-text {
    color: white;
}
}
/* 弹窗样式 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
}
.popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* 弹窗位置样式 */
.popup-overlay.active.popup-position-左下角 {
    justify-content: flex-start;
    align-items: flex-end;
    padding: 20px;
}
.popup-overlay.active.popup-position-右下角 {
    justify-content: flex-end;
    align-items: flex-end;
    padding: 20px;
}
.popup-content {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #ff3333;
    border-radius: 15px;
    padding: 0;
    max-width: 650px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    animation: popupSlideIn 0.4s ease-out;
    box-shadow: 0 10px 50px rgba(255, 51, 51, 0.3),
                0 0 30px rgba(255, 51, 51, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
@keyframes popupSlideIn {
    from {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 51, 51, 0.2);
    border: 1px solid #ff3333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ff3333;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
    z-index: 10;
}
.popup-close:hover {
    background: #ff3333;
    color: white;
    transform: rotate(90deg);
}
.popup-title {
    font-size: 26px;
    font-weight: bold;
    color: #ffd700;
    margin: 0;
    padding: 25px 60px 20px 30px;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.2) 0%, rgba(255, 51, 51, 0.05) 100%);
    border-bottom: 2px solid rgba(255, 51, 51, 0.3);
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    position: relative;
}
.popup-title:before {
    content: '📢';
    margin-right: 10px;
    font-size: 24px;
}
.popup-body {
    color: #ddd;
    line-height: 1.8;
    font-size: 16px;
    padding: 30px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}
.popup-body::-webkit-scrollbar {
    width: 8px;
}
.popup-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.popup-body::-webkit-scrollbar-thumb {
    background: #ff3333;
    border-radius: 4px;
}
.popup-body::-webkit-scrollbar-thumb:hover {
    background: #ff5555;
}

/* 客服二维码小框 */
.service-qrcode-box {
    display: none;
    position: absolute;
    right: 100%;
    top: 0;
    margin-right: 15px;
    background: #2a2a2a;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 160px;
    z-index: 10000;
}
.service-qrcode-box img {
    width: 100%;
    display: block;
}

/* 对联广告 */
.couplet-ad-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}
.couplet-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
}
.couplet-ad-left {
    left: 10px;
}
.couplet-ad-right {
    right: 10px;
}
.couplet-ad img {
    width: 260px;
    height: auto;
    display: block;
    cursor: pointer;
}
@media (max-width: 1400px) {
    .couplet-ad {
        display: none;
    }
}

/* 兑换充值模态框 */
.recharge-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.recharge-modal.active {
    display: flex;
}
.recharge-modal-content {
    background: #2a2a2a;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #e74c3c;
}
.recharge-modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.recharge-modal-header h3 {
    color: #fff;
    font-size: 20px;
    margin: 0;
}
.recharge-modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}
.recharge-modal-close:hover {
    color: #fff;
}
.recharge-modal-body {
    padding: 25px;
}
.user-diamonds {
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.diamond-count {
    font-size: 24px;
    font-weight: bold;
    margin-top: 5px;
}
.exchange-tip {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}
.game-account-input {
    margin-bottom: 25px;
}
.game-account-input label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
}
.game-account-input input[type="text"],
.game-account-input input[type="number"] {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
}
.recharge-plans-title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}
.recharge-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.recharge-plan-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}
.recharge-plan-card:hover {
    border-color: #e74c3c;
    transform: translateY(-3px);
}
.recharge-plan-card .plan-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}
.recharge-plan-card .plan-name {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}
.recharge-plan-card .plan-gold {
    color: #f39c12;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}
.recharge-plan-card .plan-diamond {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}
.plan-exchange-btn {
    width: 100%;
    padding: 10px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.plan-exchange-btn:hover {
    background: #c0392b;
}
@media (max-width: 768px) {
    .recharge-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .recharge-plans-grid {
        grid-template-columns: 1fr;
    }
}
