:root {
    --primary-color: #FFD700;
    --background-color: #000;
    --text-color: #fff;
    --gold-gradient: linear-gradient(to right, #FFD700, #FFA500);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    min-height: 100vh;
    position: relative;
    background-image: url('../img/ff.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.pc-container {
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    z-index: 1;
}

/* 头部样式 */
header {
    padding: 20px 50px;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
}

.admin-entry,
.ios-guide {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.ios-guide img {
    width: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    position: relative;
    min-height: 80vh;
    width: 100%;
}

/* 调整中间内容区域样式 */
.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* LOGO样式 */
.logo-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.y-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 修改主标题样式 */
.main-title {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.main-title h1 {
    /* 移除原有的文字样式 */
    font-size: 0;
    color: transparent;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    /* 添加背景图片 */
    width: 400px; /* 根据实际图片尺寸调整 */
    height: 100px; /* 根据实际图片尺寸调整 */
    margin: 0 auto;
    background-image: url('../img/cy2.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

/* 修改登录按钮样式 */
.login-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.login-btn {
    width: 362px; /* 设置固定宽度 */
    height: 64px; /* 设置固定高度 */
    border: none;
    cursor: pointer;
    background-color: transparent; /* 移除原背景色 */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s;
    color: transparent; /* 隐藏文字 */
    font-size: 0; /* 隐藏文字 */
}

/* 点击登录按钮 */
.login-btn:nth-child(1) {
    background-image: url('../img/dd3.png');
}

/* 电话登录按钮 */
.login-btn:nth-child(2) {
    background-image: url('../img/dd2.png');
}

/* 悬浮效果 */
.login-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 装饰元素样式 */
.left-decorations,
.right-decorations {
    position: absolute;
    top: 0;
    width: 300px;
    height: 100%;
}

.left-decorations {
    left: 0;
}

.right-decorations {
    right: 0;
}

.floating-item {
    position: absolute;
    animation: float 3s infinite ease-in-out;
}

/* 底部区域样式 */
footer {
    display: none; /* 完全隐藏 footer */
}

/* 在移动端显示 footer */
@media (max-width: 768px) {
    .pc-container {
        display: none;
    }

    .mobile-container {
        display: block;
        min-height: 100vh;
        position: relative;
    }

    /* footer 样式 */
    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.8);
    }

    .qr-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .qr-code img {
        width: 150px;
        height: 150px;
        margin-bottom: 10px;
    }

    .qr-code p {
        color: #999;
        font-size: 14px;
        margin: 5px 0;
    }

    .download-section {
        width: 90%;
        max-width: 300px;
    }

    .download-btn {
        width: 100%;
        padding: 12px 0;
        background: linear-gradient(45deg, #FFD700, #FFA500);
        border-radius: 5px;
        text-align: center;
        color: #fff;
        text-decoration: none;
        margin-bottom: 10px;
        font-size: 16px;
    }
}

.qr-section {
    text-align: center;
    margin-bottom: 30px;
}

.qr-code img {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
}

.qr-code p {
    color: #999;
    margin: 5px 0;
}

.download-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 300px;
}

.download-btn {
    padding: 15px 0;
    background: #007BFF;
    color: var(--text-color);
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background: #0056b3;
}

/* 客服按钮样式 */
.customer-service {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.customer-service img {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-title h1 {
        font-size: 56px;
    }

    .left-decorations,
    .right-decorations {
        width: 46%;
    }
}

/* 添加遮罩层，用于放置 nn6.png */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/nn6.png');
    background-size: 1711px 616px;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: all 0.5s ease;
    pointer-events: none;
}

/* 悬浮效果 */
body:hover::before {
    transform: scale(1.05);
    filter: brightness(1.2);
    animation: glow 2s infinite;
}

@keyframes glow {
    0% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
    100% {
        filter: brightness(1);
    }
}

/* 确保其他元素在背景之上 */
.center-content,
.left-decorations,
.right-decorations {
    position: relative;
    z-index: 1;
}

/* 移除之前的背景容器相关样式 */
.background-container,
.bg-image,
.hover-image {
    display: none;
}

/* 修改后台登录入口样式 */
.admin-entry {
    width: 200px; /* 根据图片调整宽度 */
    height: 40px; /* 根据图片调整高度 */
    background-image: url('../img/btht.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0; /* 移除内边距 */
    border-radius: 0; /* 移除圆角 */
    background-color: transparent; /* 移除背景色 */
    color: transparent; /* 隐藏文字 */
    font-size: 0; /* 隐藏文字 */
    display: block;
    transition: transform 0.2s, filter 0.2s;
}

/* 悬浮效果 */
.admin-entry:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 调整头部右侧布局 */
.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
}

/* 添加移动端容器样式 */
.mobile-container {
    display: none;
}

/* 移除重复的样式，整合移动端样式 */

/* 默认隐藏移动端容器和footer */
.mobile-container {
    display: none;
}

footer {
    display: none;
}

/* 移动端样式 */
@media screen and (max-width: 768px) {
    body {
        background: #000; /* 纯黑背景 */
    }

    body::before {
        display: none; /* 移除PC端装饰 */
    }

    .pc-container {
        display: none;
    }

    .mobile-container {
        display: block;
        min-height: 100vh;
        width: 100%;
        background-color: #000;
        padding: 20px;
    }

    /* LOGO样式 */
    .mobile-logo {
        width: 120px;
        height: 120px;
        margin: 20px auto;
        display: block;
    }

    /* 下载按钮组样式 */
    .download-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .download-btn {
        width: 100%;
        height: 50px;
        background: #1E90FF; /* 蓝色背景 */
        border-radius: 0;
        display: flex;
        align-items: center;
        padding: 0 20px;
        text-decoration: none;
        color: #fff;
        font-size: 16px;
        position: relative;
    }

    /* 按钮图标 */
    .download-btn::before {
        content: '';
        width: 24px;
        height: 24px;
        margin-right: 10px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    /* 手机APP下载按钮 */
    .download-btn:nth-child(1) {
        background: #4169E1;
    }
    .download-btn:nth-child(1)::before {
        background-image: url('../img/download-icon.png');
    }

    /* H5快速游戏按钮 */
    .download-btn:nth-child(2) {
        background: #00BFFF;
    }
    .download-btn:nth-child(2)::before {
        background-image: url('../img/h5-icon.png');
    }

    /* 代理后台系统按钮 */
    .download-btn:nth-child(3) {
        background: #1E90FF;
    }
    .download-btn:nth-child(3)::before {
        background-image: url('../img/system-icon.png');
    }

    /* 二维码区域 */
    .qr-section {
        margin-top: 40px;
        text-align: center;
    }

    .qr-code img {
        width: 200px;
        height: 200px;
        margin-bottom: 15px;
    }

    .qr-code p {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
    }

    /* 苹果安装教程按钮 */
    .ios-install {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #007AFF;
        color: #fff;
        text-decoration: none;
        padding: 10px 20px;
        border-radius: 20px;
        margin: 20px auto;
        width: fit-content;
    }

    .ios-install img {
        width: 20px;
        height: 20px;
    }
}

/* 登录弹窗样式 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.login-content {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 5px;
    border: 1px solid #333;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.login-content h2 {
    color: #D4AF37;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #D4AF37;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: #000;
    border: 1px solid #D4AF37;
    border-radius: 3px;
    color: #fff;
    font-size: 16px;
}

.form-group input::placeholder {
    color: #666;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.free-btn {
    padding: 10px 30px;
    background-color: #D4AF37;
    border: none;
    border-radius: 3px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.login-submit {
    padding: 10px 30px;
    background-color: #333;
    border: 1px solid #D4AF37;
    border-radius: 3px;
    color: #D4AF37;
    cursor: pointer;
}

.free-btn:hover, .login-submit:hover {
    opacity: 0.9;
}

/* 显示弹窗的样式 */
.login-modal.show {
    display: flex;
}

/* 添加错误提示样式 */
.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group input.error {
    border-color: #ff4444;
} 