:root {
            --primary-color: #e74c3c;
            --secondary-color: #3498db;
            --success-color: #2ecc71;
            --text-color: #333;
            --light-gray: #f5f5f5;
            --border-radius: 8px;
        }
        
        * {
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            margin: 0;
            background-color: var(--light-gray);
            color: var(--text-color);
            line-height: 1.6;
        }
        
        .container {
            max-width: 800px;
            margin: 20px auto;
            background-color: white;
            padding: 20px;
            border-radius: var(--border-radius);
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        
        h1 {
            color: var(--primary-color);
            text-align: center;
            margin-top: 0;
            font-size: clamp(1.5rem, 4vw, 2rem);
        }
        
        .lottery-type {
            margin-bottom: 20px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }
        
        select, button {
            padding: 10px 15px;
            border-radius: var(--border-radius);
            border: 1px solid #ddd;
            font-size: 16px;
        }
        
        select {
            flex: 1;
            min-width: 200px;
        }
        
        button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.3s;
            flex: 1;
            min-width: 120px;
        }
        
        button:hover {
            background-color: #c0392b;
        }
        
        .result {
            margin-top: 20px;
            padding: 15px;
            background-color: #f9f9f9;
            border-radius: var(--border-radius);
            font-size: clamp(16px, 2vw, 18px);
        }
        
        .ball {
            display: inline-block;
            width: clamp(30px, 8vw, 40px);
            height: clamp(30px, 8vw, 40px);
            line-height: clamp(30px, 8vw, 40px);
            text-align: center;
            border-radius: 50%;
            margin: 5px;
            font-weight: bold;
            font-size: clamp(14px, 3vw, 16px);
        }
        
        .red {
            background-color: var(--primary-color);
            color: white;
        }
        
        .blue {
            background-color: var(--secondary-color);
            color: white;
        }
        
        .other {
            background-color: var(--success-color);
            color: white;
        }
        
        .info {
            margin-top: 20px;
            font-size: clamp(14px, 2vw, 16px);
            color: #666;
        }
        
        .info ul {
            padding-left: 20px;
        }
        
        @media (max-width: 600px) {
            .lottery-type {
                flex-direction: column;
                align-items: stretch;
            }
            
            select, button {
                width: 100%;
            }
            
            .ball {
                margin: 3px;
            }
        }