body {
    margin: 0;
    padding: 24px;
    font-size: 16px;
    /* 深色科技感背景 */
    background: #0a0e1a;
    /* 添加渐变背景 */
    background: radial-gradient(ellipse at center, #1a2332 0%, #0a0e1a 50%, #020408 100%);
    /* 添加网格纹理 */
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* 添加动态背景效果 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 创建网格图案 */
    background-image: 
        linear-gradient(rgba(0, 255, 100, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 100, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* 添加扫描线效果 */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        0deg,
        transparent 0%,
        rgba(0, 255, 100, 0.03) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    animation: scanlines 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes scanlines {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 20px;
    }
}

/* 添加浮动光点效果 */
.light-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(0, 255, 100, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
}

.light-particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation: float-particle 15s infinite ease-in-out;
}

.light-particle:nth-child(2) {
    top: 70%;
    left: 80%;
    animation: float-particle 20s infinite ease-in-out reverse;
}

.light-particle:nth-child(3) {
    top: 40%;
    left: 10%;
    animation: float-particle 18s infinite ease-in-out;
}

.light-particle:nth-child(4) {
    top: 80%;
    left: 50%;
    animation: float-particle 22s infinite ease-in-out reverse;
}

.light-particle:nth-child(5) {
    top: 20%;
    left: 90%;
    animation: float-particle 16s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(20px) translateX(-30px);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-20px) translateX(-20px);
        opacity: 0.8;
    }
}

/* 瞄准镜效果 */
.crosshair {
    position: fixed;
    width: 150px;
    height: 150px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.3;
    animation: rotate-crosshair 30s linear infinite;
}

.crosshair::before,
.crosshair::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, transparent 45%, rgba(0, 255, 100, 0.5) 45%, rgba(0, 255, 100, 0.5) 55%, transparent 55%);
}

.crosshair::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.crosshair::after {
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    background: linear-gradient(0deg, transparent 45%, rgba(0, 255, 100, 0.5) 45%, rgba(0, 255, 100, 0.5) 55%, transparent 55%);
}

.crosshair-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 255, 100, 0.3);
    border-radius: 50%;
    box-sizing: border-box;
}

.crosshair-circle::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border: 1px solid rgba(0, 255, 100, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.crosshair-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(0, 255, 100, 0.6);
}

.crosshair-corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.crosshair-corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.crosshair-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.crosshair-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.crosshair.crosshair-1 {
    top: 15%;
    left: 10%;
    animation-duration: 35s;
}

.crosshair.crosshair-2 {
    top: 60%;
    right: 15%;
    animation-duration: 40s;
    animation-direction: reverse;
}

@keyframes rotate-crosshair {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 数字雨效果 */
.matrix-rain {
    position: fixed;
    font-family: monospace;
    font-size: 14px;
    color: rgba(0, 255, 100, 0.1);
    pointer-events: none;
    z-index: 1;
    animation: matrix-fall linear infinite;
}

.matrix-rain:nth-child(odd) {
    animation-duration: 8s;
}

.matrix-rain:nth-child(even) {
    animation-duration: 10s;
}

@keyframes matrix-fall {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* 安全扫描框 */
.security-frame {
    position: fixed;
    border: 1px solid rgba(0, 255, 100, 0.2);
    pointer-events: none;
    z-index: 4;
}

.security-frame::before {
    content: 'SECURE';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 12px;
    color: rgba(0, 255, 100, 0.5);
    font-family: monospace;
    letter-spacing: 2px;
}

.security-frame.frame-1 {
    width: 200px;
    height: 100px;
    top: 20%;
    right: 10%;
    animation: pulse-frame 4s ease-in-out infinite;
}

.security-frame.frame-2 {
    width: 150px;
    height: 80px;
    bottom: 25%;
    left: 8%;
    animation: pulse-frame 5s ease-in-out infinite reverse;
}

@keyframes pulse-frame {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.02);
    }
}

/* 雷达扫描效果 */
.radar {
    position: fixed;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(0, 255, 100, 0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

.radar::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 50%, rgba(0, 255, 100, 0.2) 100%);
    animation: radar-sweep 3s linear infinite;
    transform-origin: center;
}

.radar::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    border: 1px solid rgba(0, 255, 100, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radar.radar-1 {
    bottom: 10%;
    right: 5%;
}

@keyframes radar-sweep {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cfgd_card {
    background-image: url("../img/bg.png");
    width: 75vw;  /* 与原始文件相同 */
    height: 60vw;  /* 与原始文件相同 */
    background-size: 100% 100%;
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 7.6vw 7.25vw;  /* 与原始文件相同 */
    box-sizing: border-box;
    z-index: 10;  /* 确保游戏界面在背景效果之上 */
    /* 添加发光效果 */
    filter: drop-shadow(0 0 30px rgba(0, 255, 100, 0.3));
}

.cfgd_card_title {
    font-size: 3.2vw;  /* 与原始文件相同 */
    color: #8DFFB1;
    text-shadow: 0 0.360vw 0.721vw #34ce36;
    font-weight: bold;
    text-align: center;
    font-style: italic;
}

.cfgd_card_con {
    width: 61.5vw;  /* 与原始文件相同 */
    height: 35.5vw;  /* 与原始文件相同 */
    position: relative;
}

.cfgd_card_con .kuang {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: url("../img/kuang1.png");
    background-size: 100% 100%;
    z-index: 11;  /* 降低z-index，让绿色指针框在上面 */
    pointer-events: none;
}

/* 绿色指针框（kuang.png）的样式设置 - 用于指示中奖行 */
.cfgd_card_con .active {
    /* ============ 调整指针框位置 ============ */
    --kuang-top-position: 8.14vw;   /* 🎯 修改这个值来调整上下位置！数值越大越往下 */
    --kuang-height: 11vw;         /* 🎯 修改这个值来调整框的高度 */
    --kuang-left: 2.8vw;           /* 🎯 修改这个值来调整左边距 */
    --kuang-right: 2.8vw;          /* 🎯 修改这个值来调整右边距 */
    /* ========================================= */
    
    position: absolute;          /* 绝对定位，相对于父容器.cfgd_card_con */
    top: 0;                      /* 从顶部开始计算位置 */
    left: var(--kuang-left);     /* 使用CSS变量控制左边距 */
    right: var(--kuang-right);   /* 使用CSS变量控制右边距 */
    height: var(--kuang-height); /* 使用CSS变量控制高度 */
    margin-top: var(--kuang-top-position); /* 使用CSS变量控制上下位置 */
    background-image: url("../img/kuang.png");  /* 使用kuang.png作为背景图 */
    background-size: contain;     /* 保持图片比例，完整显示不裁剪 */
    background-position: center;  /* 背景图居中对齐 */
    background-repeat: no-repeat; /* 背景图不重复 */
    z-index: 9999;               /* 最高层级，确保在所有元素之上不被遮挡 */
    pointer-events: none;        /* 禁用鼠标事件，点击可穿透到下方元素 */
    overflow: visible;           /* 确保溢出内容可见 */
}

.cfgd_card_con .gdt {
    display: flex;
    padding: 2.17vw 8vw;  /* 与原始文件相同 */
    position: relative;
    z-index: 10;
    gap: 0.72vw;  /* 与原始文件相同 */
    height: 100%;
    box-sizing: border-box;
}

.cfgd_card_con .gdt .col {
    background: #01130a;
    flex: 1;
    position: relative;
    padding: 0 0.72vw;  /* 与原始文件相同 */
    overflow: hidden;
    box-shadow: 0 0 0.5vw 0.3vw rgba(0,0,0,0.5);  /* 增大阴影 */
    border-radius: 0.4vw;  /* 添加轻微圆角 */
}

.cfgd_card_con .gdt .col .slot-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.cfgd_card_con .gdt .col .slot-reel {
    position: absolute;
    width: 100%;
    transition: transform 0.1s linear;
}

.cfgd_card_con .gdt .col.spinning .slot-reel {
    animation: spin 0.1s linear infinite;
}

@keyframes spin {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}

.cfgd_card_con .gdt .col .img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    padding: 0.42vw 0;  /* 与原始文件相同 */
    box-sizing: border-box;
}

.cfgd_card_con .gdt .col .img img {
    width: 100%;
    display: block;
}

.cfgd_card_con .gdt .col .img .icon {
    position: absolute;
    top: 6%;  /* 进一步减小边距 */
    left: 6%;  /* 进一步减小边距 */
    width: 88%;  /* 进一步增大图标 */
    height: 88%;  /* 进一步增大图标 */
    object-fit: contain;
    z-index: 9;
}

.cfgd_card_btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfgd_card_btn button {
    width: 16vw;  /* 与原始文件相同 */
    height: 5.35vw;  /* 与原始文件相同 */
    background-color: transparent;
    border: none;
    background-image: url("../img/btn.png");
    background-size: 100% 100%;
    font-size: 2vw;  /* 与原始文件相同 */
    color: #8DFFB1;
    line-height: 2.4vw;
    text-shadow: 0 0.144vw 0 rgba(0,170,80,0.76);
    font-weight: bold;
    margin-top: -0.521vw;
    font-style: italic;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cfgd_card_btn button:hover:not(:disabled) {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.cfgd_card_btn button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 右上角控制栏 */
.top-controls {
    position: fixed;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.top-controls button {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.08) 0%, rgba(0, 255, 100, 0.03) 100%);
    border: 1px solid rgba(0, 255, 100, 0.4);
    border-radius: 8px;
    color: #8DFFB1;
    font-size: 13px;
    font-weight: 500;
    font-family: monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.top-controls button svg {
    width: 16px;
    height: 16px;
    stroke: #8DFFB1;
    fill: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(141, 255, 177, 0.4));
}

.top-controls button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 100, 0.2), transparent);
    transition: left 0.5s ease;
}

.top-controls button:hover::before {
    left: 100%;
}

.top-controls button:hover {
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.15) 0%, rgba(0, 255, 100, 0.08) 100%);
    border-color: rgba(0, 255, 100, 0.6);
    box-shadow: 0 4px 15px rgba(0, 255, 100, 0.25);
    transform: translateY(-1px);
}

.top-controls button:hover svg {
    stroke: #00ff64;
    filter: drop-shadow(0 0 5px rgba(0, 255, 100, 0.6));
    transform: scale(1.05);
}

.top-controls button:active {
    transform: translateY(0);
}

/* 图标样式 */
.top-controls button i {
    margin-right: 8px;
    font-size: 16px;
}

/* 登录按钮特殊样式 */
.btn-login {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.1) 0%, rgba(0, 255, 100, 0.1) 100%) !important;
    border-color: rgba(0, 200, 255, 0.5) !important;
}

.btn-login:hover {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.2) 0%, rgba(0, 255, 100, 0.2) 100%) !important;
    border-color: rgba(0, 200, 255, 0.8) !important;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.3) !important;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px 10px;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 100, 0.4);
    border-radius: 20px;
    color: #8DFFB1;
    box-shadow: 0 2px 10px rgba(0, 255, 100, 0.15),
                inset 0 0 10px rgba(0, 255, 100, 0.03);
    animation: fadeInSlide 0.5s ease;
    font-size: 13px;
}

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

.user-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.user-info-item svg {
    width: 15px;
    height: 15px;
    stroke: #8DFFB1;
    filter: drop-shadow(0 0 3px rgba(141, 255, 177, 0.5));
}

.user-info-divider {
    width: 1px;
    height: 18px;
    background: linear-gradient(to bottom, 
        transparent,
        rgba(0, 255, 100, 0.3),
        transparent);
    margin: 0 6px;
}

.lottery-count {
    position: relative;
}

.lottery-count .count-number {
    display: inline-block;
    min-width: 20px;
    padding: 1px 6px;
    margin-left: 3px;
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.15), rgba(0, 255, 100, 0.08));
    border: 1px solid rgba(0, 255, 100, 0.4);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #00ff64;
    text-align: center;
    text-shadow: 0 0 6px rgba(0, 255, 100, 0.6);
    animation: pulse 2s infinite;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px !important;
    margin-left: 6px;
    background: rgba(255, 107, 107, 0.08) !important;
    border: 1px solid rgba(255, 107, 107, 0.3) !important;
    border-radius: 15px;
    color: #ff6b6b !important;
    font-size: 12px !important;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 107, 107, 0.2) !important;
    border-color: rgba(255, 107, 107, 0.8) !important;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
    transform: scale(1.05);
}

.btn-logout svg {
    width: 14px;
    height: 14px;
    stroke: #ff6b6b;
    filter: drop-shadow(0 0 2px rgba(255, 107, 107, 0.4));
}

/* 用户名特殊样式 */
#userName {
    color: #00ff64;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

/* 开箱记录弹窗 */
.record-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.record-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-content {
    width: 600px;
    max-height: 70vh;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 255, 100, 0.5);
    border-radius: 10px;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 255, 100, 0.3);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 100, 0.2);
}

.record-header h2 {
    color: #8DFFB1;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 100, 0.5);
}

.close-btn {
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid rgba(0, 255, 100, 0.5);
    color: #8DFFB1;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    transform: rotate(90deg);
}

.record-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* 自定义滚动条 */
.record-list::-webkit-scrollbar {
    width: 8px;
}

.record-list::-webkit-scrollbar-track {
    background: rgba(0, 255, 100, 0.1);
    border-radius: 4px;
}

.record-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 100, 0.5);
    border-radius: 4px;
}

.record-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 100, 0.7);
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(0, 255, 100, 0.05);
    border: 1px solid rgba(0, 255, 100, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.record-item:hover {
    background: rgba(0, 255, 100, 0.1);
    border-color: rgba(0, 255, 100, 0.4);
}

.record-time {
    color: rgba(0, 255, 100, 0.6);
    font-size: 12px;
    font-family: monospace;
}

.record-result {
    color: #8DFFB1;
    font-size: 14px;
    font-weight: 600;
}

.record-prize {
    color: #FFD700;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.no-records {
    text-align: center;
    color: rgba(0, 255, 100, 0.4);
    font-size: 14px;
    padding: 40px;
    font-style: italic;
}

