* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 - 电脑版样式 */
.header {
    background: rgba(10, 10, 10, 0.95);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-bottom: 1px solid #333;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

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

.logo {
    flex-shrink: 0;
    transition: all 0.4s ease;
    cursor: pointer;
}

.logo img {
    width: 140px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: all 0.4s ease;
}

.header.scrolled .logo img {
    width: 120px;
    height: 50px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: rgba(30, 30, 30, 0.9);
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    border: 1px solid #333;
}

.header.scrolled .nav {
    padding: 6px 12px;
    border-radius: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    text-align: center;
    color: #e0e0e0;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 15px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    justify-content: center;
    border-radius: 5px;
}

.nav-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 204, 0, 0.1);
}

.nav-item.active {
    background: rgba(255, 204, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/dhbj.png') no-repeat center;
    background-size: cover;
    z-index: 1;
    border-radius: 5px;
    opacity: 0.7;
}

.nav-text {
    position: relative;
    z-index: 2;
}

/* 主要内容区域 */
.main-content {
    margin-top: 100px;
    transition: margin-top 0.4s ease;
}

.header.scrolled + .main-content {
    margin-top: 80px;
}

/* 轮播图 - 电脑版尺寸 */
.banner-container {
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    position: relative;
    background: #000;
    height: 400px;
}

.banner {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    height: 100%;
}

.banner::-webkit-scrollbar {
    display: none;
}

.banner-item {
    width: 100%;
    flex: 0 0 auto;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: hidden;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.indicator.active {
    background-color: #ffcc00;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255,204,0,0.7);
}

/* 游戏区 - 电脑版布局 */
.game-section {
    margin-top: 30px;
}

.game-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #ffcc00;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(50, 50, 50, 0.9));
    border-radius: 15px;
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.8),
        0 0 10px rgba(255,204,0,0.5);
    border: 1px solid #444;
    position: relative;
    overflow: hidden;
    letter-spacing: 2px;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    text-transform: uppercase;
}

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

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

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.game-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 220px;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255,204,0,0.2);
    border-color: #ffcc00;
}

.game-img-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    border-radius: 10px;
}

.game-card:hover .game-img {
    transform: scale(1.05);
}

/* 底部 */
.footer {
    background: rgba(10, 10, 10, 0.95);
    color: #aaa;
    text-align: center;
    padding: 25px 15px;
    margin-top: 30px;
    border-top: 1px solid #333;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffcc00, transparent);
}

.footer-img-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.footer-img-container img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.copyright {
    margin-top: 20px;
    line-height: 1.8;
    opacity: 0.8;
    font-size: 14px;
    position: relative;
    padding: 20px 0;
}

.copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #ffcc00;
}

.copyright a {
    color: #ffcc00;
    text-decoration: none;
    transition: all 0.3s;
}

.copyright a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 弹窗通用样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid #444;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s ease;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 16px 16px 0 0;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffcc00, transparent);
}

.modal-title {
    font-size: 22px;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: none;
    color: #ffcc00;
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    background: rgba(255, 204, 0, 0.1);
}

.modal-close:hover {
    background: rgba(255, 204, 0, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

/* 代理加盟弹窗样式 */
.agent-mode-section {
    margin-bottom: 30px;
}

.agent-mode-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffcc00;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    position: relative;
}

.agent-mode-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #ffcc00;
}

.agent-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
}

.agent-table th {
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid #444;
    font-weight: bold;
}

.agent-table td {
    padding: 14px 10px;
    text-align: center;
    border: 1px solid #444;
}

.agent-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.agent-table tr:hover {
    background: rgba(255, 204, 0, 0.08);
}

/* 开户注册表单样式 */
.register-form {
    width: 100%;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #e0e0e0;
    font-weight: 500;
}

.form-label .required {
    color: #ff5252;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid #555;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 15px;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
    background: rgba(50, 50, 50, 0.9);
}

.form-hint {
    font-size: 14px;
    color: #aaa;
    margin-top: 6px;
    font-style: italic;
}

.form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.refresh-btn {
    background: rgba(255, 204, 0, 0.8);
    color: #1a1a1a;
    border: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    white-space: nowrap;
    height: 50px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.refresh-btn:hover {
    background: rgba(255, 204, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.captcha-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-img {
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    border: 1px solid #555;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.captcha-img:hover {
    transform: scale(1.05);
}

.captcha-img img {
    max-height: 34px;
    max-width: 90px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.submit-btn, .reset-btn {
    flex: 1;
    padding: 16px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.submit-btn {
    background: linear-gradient(145deg, #ffcc00, #e6b800);
    color: #1a1a1a;
}

.submit-btn:hover {
    background: linear-gradient(145deg, #ffd633, #ffcc00);
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(255,204,0,0.4);
}

.reset-btn {
    background: rgba(100, 100, 100, 0.8);
    color: #e0e0e0;
}

.reset-btn:hover {
    background: rgba(120, 120, 120, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.4);
}

.form-message {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #8bc34a;
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #ff5252;
    display: block;
}

/* 会员登录弹窗样式 */
.login-content {
    text-align: center;
    padding: 20px 0;
}

.login-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: rgba(255, 204, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    color: #ffcc00;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 204, 0, 0.3);
}

.login-title {
    font-size: 26px;
    font-weight: bold;
    color: #ffcc00;
    margin-bottom: 15px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.login-desc {
    font-size: 16px;
    color: #bbb;
    margin-bottom: 35px;
    line-height: 1.7;
}

.login-btn {
    display: inline-block;
    background: linear-gradient(145deg, #ffcc00, #e6b800);
    color: #1a1a1a;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.login-btn:hover {
    background: linear-gradient(145deg, #ffd633, #ffcc00);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255,204,0,0.4);
}

.login-tips {
    font-size: 14px;
    color: #888;
    margin-top: 20px;
    font-style: italic;
}

/* 滚动到顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 204, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: rgba(255, 204, 0, 1);
    transform: translateY(-5px);
}

/* 游戏卡片闪烁效果 */
@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 4px 20px rgba(255,204,0,0.4); }
    100% { box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
}

.game-card.highlight {
    animation: pulse 2s infinite;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .nav {
        width: 100%;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .game-card {
        height: 170px;
    }
    
    .agent-table {
        font-size: 12px;
    }
    
    .agent-table th, .agent-table td {
        padding: 10px 5px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .refresh-btn {
        width: 100%;
    }
    
    .login-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .modal-body {
        padding: 20px;
    }
}