
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #0c1a2d 0%, #0d2b4a 50%, #0a3d62 100%);
            color: #e0f7ff;
            min-height: 100vh;
            padding: 20px;
            overflow-x: hidden;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: rgba(10, 30, 50, 0.7);
            border-radius: 15px;
            box-shadow: 0 0 30px rgba(0, 150, 255, 0.3);
            padding: 25px;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(64, 156, 255, 0.3);
        }
        
        .container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #00a8ff, #0097e6, #00a8ff);
            box-shadow: 0 0 10px #00a8ff;
        }
        .item-image {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid rgba(79, 195, 247, 0.1);
    font-size: 14px;
    color: #b3e5fc;
    cursor: pointer;
    transition: all 0.3s;
}

.history-item:hover {
    background: rgba(79, 195, 247, 0.1);
    transform: translateX(5px);
}

.history-preview {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-image {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-info {
    flex: 1;
}

.history-type {
    font-weight: bold;
    color: #4fc3f7;
}

.history-time {
    font-size: 12px;
    color: #81d4fa;
}

.history-count {
    font-size: 12px;
    color: #b3e5fc;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}.item-name {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px; /* 可以稍微调小一点给图片留空间 */
    color: #e1f5fe;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
        h1 {
            text-align: center;
            margin-bottom: 25px;
            color: #4fc3f7;
            text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
            font-size: 2.5rem;
            letter-spacing: 2px;
            position: relative;
            padding-bottom: 15px;
        }
        
        h1::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 150px;
            height: 3px;
            background: linear-gradient(90deg, transparent, #4fc3f7, transparent);
        }
        
        .controls {
            display: flex;
            justify-content: center;
            gap: 25px;
            margin-bottom: 35px;
        }
        
        button {
            padding: 15px 30px;
            font-size: 18px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: bold;
            position: relative;
            overflow: hidden;
            background: rgba(20, 60, 100, 0.7);
            color: #b3e5fc;
            border: 1px solid rgba(64, 156, 255, 0.5);
            box-shadow: 0 0 15px rgba(0, 150, 255, 0.2);
        }
        
        button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: 0.5s;
        }
        
        button:hover::before {
            left: 100%;
        }
        
        #singleDraw {
            background: linear-gradient(135deg, #0277bd 0%, #01579b 100%);
            color: #e1f5fe;
        }
        
        #multiDraw {
            background: linear-gradient(135deg, #0288d1 0%, #01579b 100%);
            color: #e1f5fe;
        }
        
        button:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0, 150, 255, 0.4);
        }
        
        button:active {
            transform: translateY(0);
        }
        
        .result-area {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            margin-bottom: 35px;
            min-height: 200px;
            padding: 20px;
            background: rgba(5, 25, 45, 0.5);
            border-radius: 10px;
            border: 1px solid rgba(64, 156, 255, 0.2);
        }
        
        .item {
            width: 7%;
            padding: 18px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            transition: all 0.4s;
            position: relative;
            overflow: hidden;
            background: rgba(15, 40, 70, 0.8);
        }
        
        .item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, #00a8ff, #0097e6, #00a8ff);
        }
        
        .item:hover {
            transform: translateY(-8px) scale(1.03);
            box-shadow: 0 8px 25px rgba(0, 150, 255, 0.3);
        }
        
        .item-name {
            font-weight: bold;
            margin-bottom: 8px;
            font-size: 12px;
            color: #e1f5fe;
            min-height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .item-probability {
            font-size: 13px;
            color: #81d4fa;
            font-weight: 500;
            display: none;
        }
        
        .low-probability {
            background: linear-gradient(135deg, rgba(229, 57, 53, 0.55) 0%, rgba(194, 24, 91, 0.2) 100%);
            border: 1px solid rgba(229, 57, 53, 0.5);
            box-shadow: 0 0 15px rgba(229, 57, 53, 0.2);
        }
        
        .medium-probability {
            background: linear-gradient(135deg, rgba(255, 179, 0, 0.55) 0%, rgba(245, 124, 0, 0.2) 100%);
            border: 1px solid rgba(255, 179, 0, 0.5);
            box-shadow: 0 0 15px rgba(255, 179, 0, 0.2);
        }
        
        .high-probability {
            background: linear-gradient(135deg, rgba(96, 125, 139, 0.15) 0%, rgba(69, 90, 100, 0.2) 100%);
            border: 1px solid rgba(96, 125, 139, 0.5);
            box-shadow: 0 0 15px rgba(96, 125, 139, 0.2);
        }
        
        .history {
            margin-top: 35px;
            padding: 20px;
            background: rgba(5, 25, 45, 0.5);
            border-radius: 10px;
            border: 1px solid rgba(64, 156, 255, 0.2);
        }
        
        .history h2 {
            margin-bottom: 15px;
            color: #4fc3f7;
            text-shadow: 0 0 5px rgba(79, 195, 247, 0.3);
            font-size: 1.5rem;
            border-bottom: 1px solid rgba(79, 195, 247, 0.3);
            padding-bottom: 10px;
        }
        
        #historyList {
            max-height: 200px;
            overflow-y: auto;
            padding-right: 10px;
        }
        
        #historyList::-webkit-scrollbar {
            width: 8px;
        }
        
        #historyList::-webkit-scrollbar-track {
            background: rgba(10, 30, 50, 0.5);
            border-radius: 4px;
        }
        
        #historyList::-webkit-scrollbar-thumb {
            background: rgba(79, 195, 247, 0.5);
            border-radius: 4px;
        }
        
        .history-item {
            padding: 10px;
            border-bottom: 1px solid rgba(79, 195, 247, 0.1);
            font-size: 14px;
            color: #b3e5fc;
        }
        
        .history-item:last-child {
            border-bottom: none;
        }
        
        .stats {
            display: flex;
            justify-content: space-around;
            margin-top: 25px;
            padding: 20px;
            background: rgba(5, 25, 45, 0.5);
            border-radius: 10px;
            border: 1px solid rgba(64, 156, 255, 0.2);
        }
        
        .stat-item {
            text-align: center;
            padding: 10px;
        }
        
        .stat-value {
            font-size: 2rem;
            font-weight: bold;
            color: #4fc3f7;
            text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
            margin-bottom: 5px;
        }
        
        .stat-label {
            font-size: 14px;
            color: #81d4fa;
        }
        
        .legend {
            display: flex;
            justify-content: center;
            gap: 25px;
            margin-top: 25px;
            flex-wrap: wrap;
        }
        
        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 15px;
            background: rgba(15, 40, 70, 0.7);
            border-radius: 6px;
            border: 1px solid rgba(64, 156, 255, 0.3);
        }
        
        .legend-color {
            width: 20px;
            height: 20px;
            border-radius: 4px;
        }
        
        .low-color {
            background: linear-gradient(135deg, rgba(229, 57, 53, 0.7) 0%, rgba(194, 24, 91, 0.7) 100%);
            border: 1px solid rgba(229, 57, 53, 0.8);
        }
        
        .medium-color {
            background: linear-gradient(135deg, rgba(255, 179, 0, 0.7) 0%, rgba(245, 124, 0, 0.7) 100%);
            border: 1px solid rgba(255, 179, 0, 0.8);
        }
        
        .high-color {
            background: linear-gradient(135deg, rgba(96, 125, 139, 0.7) 0%, rgba(69, 90, 100, 0.7) 100%);
            border: 1px solid rgba(96, 125, 139, 0.8);
        }
        
        .highlight {
            animation: highlight 1s ease;
        }
        
        @keyframes highlight {
            0% { transform: scale(1); box-shadow: 0 0 0 rgba(79, 195, 247, 0); }
            50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(79, 195, 247, 0.8); }
            100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
        }
        
        .grid-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(20, 80, 120, 0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(20, 80, 120, 0.1) 1px, transparent 1px);
            background-size: 30px 30px;
            pointer-events: none;
            z-index: -1;
        }
        
        .pulse {
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(79, 195, 247, 0.4); }
            70% { box-shadow: 0 0 0 15px rgba(79, 195, 247, 0); }
            100% { box-shadow: 0 0 0 0 rgba(79, 195, 247, 0); }
        }
        
        @media (max-width: 768px) {
            .controls {
                flex-direction: column;
                align-items: center;
            }
            
            button {
                width: 80%;
            }
            
            .item {
                width: 45%;
            }
            
            .stats {
                flex-direction: column;
                gap: 15px;
            }
            
            .legend {
                flex-direction: column;
                align-items: center;
            }
        }
