.container {
    margin: 2rem auto;
    border-radius: 1.5rem;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 
                0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

h1 {
    color: #2d3748;
    margin-bottom: 1rem !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.password-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: white;
    transition: all 0.3s ease;
}

.password-container:focus-within {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

#password {
    font-size: 1.25rem;
    border: none;
    outline: none;
    width: 100%;
    letter-spacing: 0.1em;
    font-family: 'Courier New', monospace;
    color: #1a202c;
}

.icon-buttons {
    display: flex;
    gap: 0.5rem;
}

.icon-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #4a5568;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-buttons button:hover {
    background-color: #f1f5f9;
    color: #2b6cb0;
}

.icon-buttons button:active {
    transform: scale(0.95);
}

#password-strength {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: white;
    padding: 0.75rem;
    border-radius: 0.75rem;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s ease;
}

.length-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

#password-length {
    flex: 1;
    margin: 0 1rem;
    height: 0.5rem;
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    border-radius: 0.25rem;
    outline: none;
}

#password-length::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #3182ce;
    cursor: pointer;
    transition: all 0.2s ease;
}

#password-length::-webkit-slider-thumb:hover {
    background: #2b6cb0;
    transform: scale(1.1);
}

#length-value {
    font-weight: 600;
    color: #3182ce;
    min-width: 2rem;
}

.checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
}

.checkboxes label:hover {
    background-color: #f8fafc;
    border-color: #cbd5e0;
}

.checkboxes input:checked + span {
    color: #2b6cb0;
    font-weight: 500;
}

.checkboxes input:checked + span::before {
    content: "✓ ";
    font-weight: bold;
}

.checkboxes input {
    display: none;
}

.jiamibutton {
    background-color: #3182ce;
    color: white;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(49, 130, 206, 0.1);
}

.jiamibutton:hover {
    background-color: #2b6cb0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(49, 130, 206, 0.15);
}

.jiamibutton:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.1);
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #1a202c;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    font-weight: normal;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1a202c transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        margin: 1rem auto;
        padding: 1.25rem;
        border-radius: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    #password {
        font-size: 1.1rem;
    }
    
    .checkboxes {
        gap: 0.5rem;
    }
    
    .checkboxes label {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}