body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.keygen-tool {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.keygen-tool h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.options-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* 长度滑块样式 */
.length-option {
    margin-bottom: 2rem;
}

.length-option label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 1rem;
    display: block;
}

.form-range {
    height: 1.5rem;
}

.form-range::-webkit-slider-thumb {
    background: #4a90e2;
}

.length-marks {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-top: 0.5rem;
}

.length-marks span {
    color: #6c757d;
    font-size: 0.85rem;
}

/* 字符选项样式 */
.char-options {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-check {
    margin-bottom: 1rem;
}

.form-check:last-child {
    margin-bottom: 0;
}

.form-check-label {
    font-size: 0.95rem;
    color: #495057;
}

/* 按钮样式 */
.actions {
    display: flex;
    gap: 1rem;
}

/* 结果区域样式 */
.result-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.result-section h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.result-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.result-container pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    font-size: 0.9rem;
    color: #495057;
}

.result-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* 密码强度指示器 */
.key-strength {
    margin-top: 1rem;
}

.strength-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.strength-indicator {
    height: 100%;
    width: 70%;
    background: #ffd43b;
    border-radius: 3px;
    transition: all 0.3s;
}

.strength-indicator.weak {
    width: 30%;
    background: #ff6b6b;
}

.strength-indicator.medium {
    width: 70%;
    background: #ffd43b;
}

.strength-indicator.strong {
    width: 100%;
    background: #51cf66;
}

.strength-text {
    font-size: 0.85rem;
    color: #6c757d;
}

/* 复制成功提示 */
.copy-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-tooltip.show {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .actions {
        flex-direction: column;
    }
    
    .actions button {
        width: 100%;
    }
} 