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

/* 工具标题区 */
.tool-header {
    background-color: #ebf5fb;
    padding: 40px 0;
    border-bottom: 1px solid #d6eaf8;
}

.tool-desc {
    font-size: 18px;
    color: #34495e;
    margin-top: 10px;
}

/* 工具主体区 */
.tool-body {
    padding: 40px 0;
}

/* 工具布局 */
.tool-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.tool-settings, .tool-results {
    flex: 1;
    min-width: 300px;
}

/* 设置项样式 */
.setting-group {
    margin-bottom: 25px;
}

.setting-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2c3e50;
}

.setting-desc {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* 长度控制 */
.length-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.length-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background-color: #e9ecef;
    outline: none;
}

.length-input {
    width: 80px;
    text-align: center;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.checkbox-item input {
    width: 16px;
    height: 16px;
}

/* 生成按钮 */
.generate-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}

.generate-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* 结果区域 */
.password-results {
    margin-top: 15px;
}

.password-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
    word-break: break-all;
}

.password-text {
    flex: 1;
    font-family: 'Courier New', monospace;
}

.password-item .copy-btn {
    white-space: nowrap;
    padding: 5px 10px;
}

/* 密码强度 */
.password-strength {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.strength-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.strength-meter {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
}

.strength-text {
    margin-top: 8px;
    font-size: 14px;
    color: #34495e;
}

/* 无结果状态 */
.no-results {
    padding: 30px;
    text-align: center;
    color: #999;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* 安全提示 */
.security-tips {
    margin-top: 20px;
}

.tips-list {
    margin-top: 15px;
    padding-left: 20px;
}

.tips-list li {
    margin-bottom: 10px;
    color: #34495e;
    position: relative;
    padding-left: 5px;
}

.tips-list li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* 使用说明区 */
.tool-guide {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.guide-content {
    margin-top: 20px;
}

.guide-item {
    margin-bottom: 30px;
}

.guide-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.guide-item p {
    margin-bottom: 10px;
    color: #34495e;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tool-layout {
        flex-direction: column;
    }
}
