        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        :root {
            --primary-color: #ff6b6b;
            --secondary-color: #4ecdc4;
            --accent-color: #ffd93d;
            --dark-color: #2d3436;
            --light-color: #f9f9f9;
            --glass-bg: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.2);
            --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: var(--dark-color);
            min-height: 100vh;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }
        
        body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0.8; /* 控制渐变透明度 */
    z-index: -1;
}
        /*body::before {*/
        /*    content: '';*/
        /*    position: fixed;*/
        /*    top: 0;*/
        /*    left: 0;*/
        /*    width: 100%;*/
        /*    height: 100%;*/
        /*    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iODAiIGhlaWdodD0iODAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxwYXRoIGQ9Ik0wIDBoNDB2NDBIMHoiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wMykiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiLz48L3N2Zz4=');*/
        /*    z-index: -1;*/
        /*}*/
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        /* 头部区域 */
        .header {
            text-align: center;
            margin-bottom: 30px;
            animation: fadeInDown 0.8s ease;
        }
        
        .site-title {
            font-size: 2.8rem;
            font-weight: 800;
            background: linear-gradient(45deg, var(--accent-color), #ff9f43);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 10px;
            text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            letter-spacing: 1px;
        }
        
        .site-subtitle {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 300;
        }
        
        /* 用户ID区域 */
        .user-id-section {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: var(--shadow);
            border: 1px solid var(--glass-border);
            animation: slideInUp 0.6s ease 0.2s both;
        }
        
        .user-id-form {
            display: flex;
            gap: 15px;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        .user-id-input {
            flex: 1;
            max-width: 400px;
            padding: 16px 24px;
            border: 2px solid transparent;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.9);
            font-size: 16px;
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        
        .user-id-input:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 4px 20px rgba(255, 217, 61, 0.3);
            transform: translateY(-2px);
        }
        
        .user-id-btn {
            padding: 16px 36px;
            background: linear-gradient(45deg, var(--accent-color), #ff9f43);
            color: #2d3436;
            border: none;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 6px 20px rgba(255, 217, 61, 0.4);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .user-id-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(255, 217, 61, 0.5);
        }
        
        .user-id-btn:active {
            transform: translateY(-1px);
        }
        
        .user-id-hint {
            width: 100%;
            text-align: center;
            color: rgba(255, 255, 255, 0.7);
            font-size: 13px;
            margin-top: 10px;
        }
        
        /* 抽奖次数显示 */
        .draw-times {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 25px;
            text-align: center;
            box-shadow: var(--shadow);
            border: 1px solid var(--glass-border);
            animation: slideInUp 0.6s ease 0.3s both;
        }
        
        .draw-times-content {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
        }
        
        .time-item {
            text-align: center;
        }
        
        .time-label {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 5px;
        }
        
        .time-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--accent-color);
        }
        
        /* 标签页导航 */
        .tab-nav {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 30px;
            animation: slideInUp 0.6s ease 0.4s both;
        }
        
        .tab-btn {
            padding: 14px 30px;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 50px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .tab-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }
        
        .tab-btn.active {
            background: linear-gradient(45deg, var(--accent-color), #ff9f43);
            color: var(--dark-color);
            border-color: var(--accent-color);
            box-shadow: 0 6px 20px rgba(255, 217, 61, 0.3);
        }
        
        .tab-content {
            display: none;
            animation: fadeIn 0.5s ease;
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* 抽奖区域 */
        .lottery-section {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-radius: 25px;
            padding: 40px 20px;
            box-shadow: var(--shadow);
            border: 1px solid var(--glass-border);
            margin-bottom: 30px;
            animation: slideInUp 0.6s ease 0.5s both;
        }
        
        .lottery-wrapper {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .lottery-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            gap: 20px;
            position: relative;
        }
        
        .lottery-item {
            aspect-ratio: 1;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 15px;
            transition: var(--transition);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
            border: 3px solid transparent;
            overflow: hidden;
            position: relative;
        }
        
        .lottery-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            border-radius: 20px 20px 0 0;
        }
        
        .lottery-item.active {
            transform: scale(1.05);
            border-color: var(--accent-color);
            box-shadow: 0 10px 30px rgba(255, 217, 61, 0.4);
            animation: pulse 1s infinite;
        }
        
        .lottery-item img {
            width: 60px;
            height: 60px;
            object-fit: contain;
            margin-bottom: 10px;
        }
        
        .lottery-item span {
            font-size: 14px;
            font-weight: 600;
            text-align: center;
            color: var(--dark-color);
        }
        
        .lottery-center {
            grid-column: 2;
            grid-row: 2;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .draw-btn {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            border: none;
            color: white;
            font-size: 20px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            position: relative;
            overflow: hidden;
        }
        
        .draw-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transform: translateX(-100%);
        }
        
        .draw-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.7);
        }
        
        .draw-btn:hover::before {
            animation: shimmer 1.5s infinite;
        }
        
        .draw-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        .draw-btn i {
            font-size: 30px;
        }
        
        /* 任务区域 */
        .tasks-section {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-radius: 25px;
            padding: 40px;
            box-shadow: var(--shadow);
            border: 1px solid var(--glass-border);
            margin-bottom: 30px;
        }
        
        .section-title {
            text-align: center;
            font-size: 28px;
            font-weight: 700;
            color: var(--accent-color);
            margin-bottom: 30px;
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
            border-radius: 2px;
        }
        
        .tasks-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
        }
        
        .task-card {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
            border: 2px solid transparent;
        }
        
        .task-card:hover {
            transform: translateY(-8px);
            border-color: var(--accent-color);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }
        
        .task-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .task-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--dark-color);
        }
        
        .task-status {
            padding: 5px 12px;
            background: var(--secondary-color);
            color: white;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }
        
        .task-desc {
            color: #666;
            line-height: 1.6;
            margin-bottom: 20px;
        }
        
        .task-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .task-reward {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--primary-color);
            font-weight: 600;
        }
        
        .task-btn {
            padding: 10px 25px;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .task-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
        }
        
        .task-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        /* 记录区域 */
        .records-section {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-radius: 25px;
            padding: 40px;
            box-shadow: var(--shadow);
            border: 1px solid var(--glass-border);
        }
        
        .records-list {
            max-height: 500px;
            overflow-y: auto;
            padding-right: 10px;
        }
        
        .records-list::-webkit-scrollbar {
            width: 6px;
        }
        
        .records-list::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
        }
        
        .records-list::-webkit-scrollbar-thumb {
            background: var(--accent-color);
            border-radius: 10px;
        }
        
        .record-item {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: var(--transition);
            border-left: 5px solid var(--accent-color);
        }
        
        .record-item:hover {
            transform: translateX(5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }
        
        .record-info {
            flex: 1;
        }
        
        .record-prize {
            font-weight: 700;
            color: var(--dark-color);
            margin-bottom: 5px;
        }
        
        .record-time {
            font-size: 13px;
            color: #888;
        }
        
        .record-code {
            background: var(--light-color);
            padding: 8px 15px;
            border-radius: 10px;
            font-family: monospace;
            font-weight: 600;
            color: var(--primary-color);
        }
        
        /* 中奖弹窗 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s ease;
        }
        
        .modal.show {
            display: flex;
        }
        
        .modal-content {
            background: white;
            border-radius: 30px;
            width: 90%;
            max-width: 500px;
            padding: 40px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: scaleIn 0.5s ease;
            position: relative;
            overflow: hidden;
        }
        
        .modal-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 10px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
        }
        
        .close {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 24px;
            color: #888;
            cursor: pointer;
            transition: var(--transition);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .close:hover {
            background: #f5f5f5;
            color: var(--primary-color);
        }
        
        .modal-title {
            font-size: 32px;
            font-weight: 800;
            margin-bottom: 20px;
            background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .prize-image {
            width: 180px;
            height: 180px;
            object-fit: contain;
            margin: 20px auto;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .prize-name {
            /*font-size: 24px;*/
            font-weight: 700;
            color: var(--dark-color);
            margin-bottom: 20px;
        }
        
        .code-section {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 20px;
            margin: 20px 0;
        }
        
        .code-label {
            font-size: 14px;
            color: #888;
            margin-bottom: 10px;
        }
        
        .activation-code {
            font-family: 'Courier New', monospace;
            font-size: 20px;
            font-weight: 700;
            color: var(--primary-color);
            background: white;
            padding: 12px;
            border-radius: 10px;
            letter-spacing: 2px;
            margin-bottom: 15px;
        }
        
        .copy-btn {
            padding: 10px 20px;
            background: var(--dark-color);
            color: white;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .copy-btn:hover {
            background: #444;
            transform: translateY(-2px);
        }
        
        .modal-btn {
            padding: 15px 40px;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            margin-top: 20px;
            width: 100%;
        }
        
        .modal-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
        }
        
        /* 动画 */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }
        
        @keyframes pulse {
            0%, 100% { box-shadow: 0 10px 30px rgba(255, 217, 61, 0.4); }
            50% { box-shadow: 0 10px 40px rgba(255, 217, 61, 0.7); }
        }
        
        @keyframes shimmer {
            100% { transform: translateX(100%); }
        }
        
        /* 加载状态 */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .container {
                padding: 10px;
            }
            
            .site-title {
                font-size: 2rem;
            }
            
            .user-id-form {
                flex-direction: column;
            }
            
            .user-id-input {
                max-width: 100%;
            }
            
            .user-id-btn {
                width: 100%;
                justify-content: center;
            }
            
            .tab-nav {
                flex-direction: column;
                width: 100%;
            }
            
            .tab-btn {
                width: 100%;
                justify-content: center;
            }
            
            .lottery-grid {
                gap: 10px;
            }
            
            .lottery-item {
                padding: 10px;
            }
            
            .lottery-item img {
                width: 40px;
                height: 40px;
            }
            
            .draw-btn {
                width: 100px;
                height: 100px;
                font-size: 16px;
            }
            
            .tasks-grid {
                grid-template-columns: 1fr;
            }
            
            .tasks-section,
            .records-section {
                padding: 25px;
            }
            
            .modal-content {
                padding: 30px 20px;
            }
        }
        
        /* 空状态提示 */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #20b082de;
        }
        
        .empty-icon {
            font-size: 60px;
            color: #ddd;
            margin-bottom: 20px;
        }
        
        .empty-text {
            font-size: 18px;
        }
        /* 登录状态样式优化 */
#logoutBtn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05);
}

/* 用户信息容器动画 */
#userInfoContainer > div {
    transition: all 0.3s ease;
}

#userInfoContainer > div:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* 手机端适配 */
@media (max-width: 480px) {
    #userInfoContainer > div {
        padding: 4px 4px 4px 12px;
    }
    
    #displayNickname {
        max-width: 80px !important;
        font-size: 14px !important;
    }
    
    #displayUsername {
        font-size: 11px !important;
    }
}
/* 登录弹窗按钮优化 */
#showLoginBtn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#showLoginBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

#showLoginBtn i {
    transition: transform 0.3s ease;
}

#showLoginBtn:hover i {
    transform: translateX(3px);
}
/* 中奖名单滚动条样式 - 优化版（从右边开始） */
.winner-ticker {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    margin-bottom: 20px;
    padding: 8px 15px 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.6s ease 0.2s both;
}

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

.ticker-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ffd700, #ff9f43);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.3);
}

.ticker-icon i {
    color: #2d3436;
    font-size: 18px;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    height: 40px;
    position: relative;
}

.ticker-content {
    position: absolute;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    line-height: 40px;
    font-size: 15px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    /* 从最右边开始 */
    left: 100%;
    transform: translateX(0);
    will-change: transform;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        /* 向左移动150%，确保完全滚出左边 */
        transform: translateX(-330%); 
    }
}

.ticker-item {
    display: inline-block;
    margin-right: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.ticker-item i {
    margin: 0 5px;
    opacity: 0.7;
}

.ticker-item .congrats {
    color: #ffd700;
    font-weight: 600;
}

.ticker-item .user-name {
    color: #4ecdc4;
    font-weight: 600;
    margin: 0 3px;
}

.ticker-item .prize-name {
    color: #ff9f43;
    font-weight: 600;
    margin: 0 3px;
}

.ticker-item .time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-left: 5px;
}

.ticker-tag {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(255, 107, 107, 0.3);
}

/* 手机适配 */
@media (max-width: 768px) {
    .winner-ticker {
        padding: 5px 12px 5px 8px;
    }
    
    .ticker-icon {
        width: 30px;
        height: 30px;
    }
    
    .ticker-icon i {
        font-size: 14px;
    }
    
    .ticker-wrapper {
        height: 34px;
    }
    
    .ticker-content {
        line-height: 34px;
        font-size: 13px;
    }
    
    .ticker-item {
        margin-right: 30px;
    }
    
    .ticker-item .time {
        font-size: 11px;
    }
    
    .ticker-tag {
        font-size: 11px;
        padding: 3px 10px;
    }
}
/* 浮动按钮样式 */
.rules-float-btn {
    width: 100px;
    height: 100px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.95), rgba(255, 142, 83, 0.95));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    animation: float 3s ease-in-out infinite;
}

.rules-float-btn i {
    font-size: 32px;
    margin-bottom: 2px;
}

.rules-float-btn span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.rules-float-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
}

/* 弹窗样式 - 玻璃模糊效果 */
.rules-modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.rules-modal-content {
    animation: modalSlideUp 0.4s ease;
}

/* 可滚动内容区域样式 */
.rules-scroll-content::-webkit-scrollbar {
    width: 5px;
}

.rules-scroll-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.rules-scroll-content::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 10px;
}

.rules-scroll-content::-webkit-scrollbar-thumb:hover {
    background: #ff8e53;
}

/* 规则项悬停效果 */
.rule-item {
    transition: all 0.2s ease;
    padding: 0 5px;
    border-radius: 6px;
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

/* 动画 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 手机适配 */
@media (max-width: 768px) {
    .rules-float-btn {
        width: 80px;
        height: 80px;
    }
    
    .rules-float-btn i {
        font-size: 26px;
    }
    
    .rules-float-btn span {
        font-size: 12px;
    }
    
    .rules-modal-content {
        max-width: 92% !important;
    }
    
    .rules-scroll-content {
        padding: 12px 15px 15px 15px !important;
    }
}