/* 密码生成器工具样式 */

/* 工具头部 */
.tool-header {
    background-color: #16213e;
    padding: 40px 0;
    text-align: center;
}

.tool-header h1 {
    font-size: 2.2rem;
    color: #4cc9f0;
    margin-bottom: 10px;
}

.tool-header p {
    font-size: 1.1rem;
    color: #b0b0c0;
}

/* 工具内容区域 */
.tool-content {
    padding: 50px 0;
}

.password-tool-container {
    display: flex;
    gap: 30px;
}

.password-generator {
    flex: 1;
    background-color: #16213e;
    border-radius: 8px;
    padding: 30px;
}

.password-options {
    margin-bottom: 30px;
}

.password-options h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #4cc9f0;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    margin-bottom: 8px;
    color: #e2e2e2;
}

.option-group input[type="number"] {
    width: 100px;
    padding: 8px 12px;
    background-color: #1a1a2e;
    border: 1px solid #2a2a42;
    border-radius: 5px;
    color: #e2e2e2;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4361ee;
}

.password-result {
    background-color: #1a1a2e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.password-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.password-display input {
    flex: 1;
    padding: 12px 15px;
    background-color: #121212;
    border: 1px solid #2a2a42;
    border-radius: 5px;
    color: #e2e2e2;
    font-size: 1.1rem;
    font-family: monospace;
}

.strength-meter {
    margin-top: 15px;
}

.strength-meter h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #e2e2e2;
}

.strength-bar-container {
    height: 10px;
    background-color: #1a1a2e;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.strength-weak {
    background-color: #ef4444;
}

.strength-medium {
    background-color: #f59e0b;
}

.strength-strong {
    background-color: #10b981;
}

.strength-text {
    font-size: 0.9rem;
    font-weight: bold;
}

.generator-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.password-info {
    flex: 0 0 300px;
    background-color: #16213e;
    border-radius: 8px;
    padding: 30px;
}

.password-info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #4cc9f0;
}

.info-section {
    margin-bottom: 25px;
}

.info-section h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #e2e2e2;
}

.info-section ul {
    list-style-position: inside;
    color: #b0b0c0;
}

.info-section ul li {
    margin-bottom: 8px;
}

.strength-guide {
    background-color: #1a1a2e;
    border-radius: 5px;
    padding: 15px;
}

.strength-level {
    margin-bottom: 10px;
}

.spanlevel {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .password-tool-container {
        flex-direction: column;
    }
    
    .password-info {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .generator-actions {
        flex-direction: column;
    }
    
    .generator-actions button {
        width: 100%;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
}
