:root {
            --primary-color: #3498db;
            --primary-hover: #2980b9;
            --success-color: #2ecc71;
            --success-hover: #27ae60;
            --danger-color: #e74c3c;
            --danger-hover: #c0392b;
        }
        
        * {
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Arial', sans-serif;
            max-width: 100%;
            margin: 0;
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            max-width: 800px;
            margin: 20px auto;
        }
        
        h1 {
            color: #2c3e50;
            text-align: center;
            margin-bottom: 30px;
            font-size: clamp(1.5rem, 2.5vw, 2rem);
        }
        
        .control-group {
            margin-bottom: 20px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }
        
        input[type="range"] {
            width: 100%;
        }
        
        .range-value {
            display: inline-block;
            width: 30px;
            text-align: right;
            margin-left: 10px;
        }
        
        .checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 10px;
        }
        
        .checkbox-item {
            display: flex;
            align-items: center;
            min-width: 120px;
        }
        
        .checkbox-item input {
            margin-right: 5px;
        }
        
        button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
            width: 100%;
        }
        
        button:hover {
            background-color: var(--primary-hover);
        }
        
        .result {
            margin-top: 20px;
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 4px;
            border: 1px solid #ddd;
        }
        
        .password-display {
            font-size: clamp(16px, 3vw, 20px);
            font-family: monospace;
            word-break: break-all;
            margin: 10px 0;
            padding: 10px;
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 4px;
            overflow-wrap: break-word;
        }
        
        .copy-btn {
            background-color: var(--success-color);
            margin-left: 0;
            margin-top: 10px;
        }
        
        .copy-btn:hover {
            background-color: var(--success-hover);
        }
        
        .history {
            margin-top: 30px;
        }
        
        .history h2 {
            border-bottom: 1px solid #ddd;
            padding-bottom: 10px;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }
        
        .history-list {
            max-height: 300px;
            overflow-y: auto;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 10px;
            background-color: #fff;
        }
        
        .history-item {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #eee;
            flex-wrap: wrap;
        }
        
        .history-item:last-child {
            border-bottom: none;
        }
        
        .history-password {
            font-family: monospace;
            margin-right: 15px;
            word-break: break-all;
            flex: 1;
            min-width: 150px;
        }
        
        .history-time {
            color: #7f8c8d;
            font-size: 0.9em;
            white-space: nowrap;
        }
        
        .clear-history {
            background-color: var(--danger-color);
            margin-top: 10px;
        }
        
        .clear-history:hover {
            background-color: var(--danger-hover);
        }
        
        .strength-meter {
            height: 10px;
            background-color: #ecf0f1;
            border-radius: 5px;
            margin-top: 10px;
            overflow: hidden;
        }
        
        .strength-bar {
            height: 100%;
            width: 0%;
            transition: width 0.3s, background-color 0.3s;
        }
        
        .strength-weak {
            background-color: #e74c3c;
            width: 25%;
        }
        
        .strength-medium {
            background-color: #f39c12;
            width: 50%;
        }
        
        .strength-strong {
            background-color: #2ecc71;
            width: 75%;
        }
        
        .strength-very-strong {
            background-color: #27ae60;
            width: 100%;
        }
        
        .strength-label {
            margin-top: 5px;
            font-size: 0.9em;
            color: #7f8c8d;
        }
        
        /* 响应式布局调整 */
        @media (min-width: 600px) {
            button {
                width: auto;
            }
            
            .copy-btn {
                margin-left: 10px;
                margin-top: 0;
            }
            
            .checkbox-item {
                min-width: 150px;
            }
        }