/* 强密码生成器样式 */

/* 工具页面通用样式 */
.tool-page-section {
    padding: 100px 0 40px;
}

.tool-card-wrapper {
    margin-bottom: 40px;
}

.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #333;
}

.tool-header p {
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.tool-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.info-content {
    margin-top: 15px;
    line-height: 1.8;
}

.info-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #555;
}

.info-content p {
    margin-bottom: 10px;
    color: #666;
}

.faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.tool-advantage {
    margin: 30px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

.tool-advantage p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* 输入输出区域样式 */
.input-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

/* 范围输入 */
.range-input {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.range-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.range-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #6366f1;
}

/* 长度预设 */
.length-presets {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: #e5e7eb;
}

.preset-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* 复选框组 */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

/* 工具输入框 */
.tool-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.tool-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.button-group .btn {
    flex: 1;
}

/* 按钮样式 */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn {
    background: #6366f1;
    color: white;
}

.primary-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.secondary-btn {
    background: #e5e7eb;
    color: #333;
}

.secondary-btn:hover {
    background: #d1d5db;
}

.success-btn {
    background: #10b981;
    color: white;
}

.success-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* 输出区域 */
.output-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.output-section h2 {
    margin-bottom: 16px;
    color: #333;
}

/* 密码结果 */
.password-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.password-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.password-text {
    flex: 1;
    font-family: monospace;
    font-size: 16px;
    color: #333;
    word-break: break-all;
}

.password-copy-btn {
    padding: 6px 12px;
    background: #e5e7eb;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.password-copy-btn:hover {
    background: #d1d5db;
}

/* 安全强度分析 */
.security-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.security-section h2 {
    margin-bottom: 16px;
    color: #333;
}

.security-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.security-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
}

.security-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.security-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* 安全强度条 */
.security-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.security-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s, background-color 0.3s;
}

.security-bar.weak .security-bar-fill {
    width: 25%;
    background: #ef4444;
}

.security-bar.medium .security-bar-fill {
    width: 50%;
    background: #f59e0b;
}

.security-bar.strong .security-bar-fill {
    width: 75%;
    background: #10b981;
}

.security-bar.very-strong .security-bar-fill {
    width: 100%;
    background: #3b82f6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
    }
    
    .length-presets {
        justify-content: center;
    }
    
    .security-info {
        grid-template-columns: 1fr;
    }
    
    .tool-header h1 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .tool-header h1 {
        font-size: 1.8em;
    }
}