/* 密码生成器专用样式 */
.password-tool-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.password-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: all 0.2s ease;
}
.password-header {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9edf4;
}
.password-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.password-header p {
    color: #475569;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.password-header p span {
    background: #eef2ff;
    color: #1e40af;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.password-main-panel {
    padding: 2rem 3rem;
    background: #ffffff;
}

.output-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}
.output-label-row label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.output-label-row label i {
    font-style: normal;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 400;
    color: #475569;
}
.password-output {
    width: 100%;
    padding: 1rem;
    font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    background: #f1f5f9;
    border: 1.5px solid #d1d9e6;
    border-radius: 20px;
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
    outline: none;
    transition: 0.15s;
    color: #0b1e33;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}
.password-output:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}

.control-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.count-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
}
.count-control label {
    font-size: 0.85rem;
    color: #475569;
}
.count-input {
    width: 70px;
    padding: 0.3rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    text-align: center;
    font-size: 0.9rem;
}
.btn-group {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.btn {
    background: white;
    border: 1px solid #cbd5e1;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.btn-primary {
    background: #1e293b;
    border-color: #1e293b;
    color: white;
    box-shadow: 0 8px 16px -6px rgba(30, 41, 59, 0.3);
}
.btn-primary:hover {
    background: #0f172a;
    border-color: #0f172a;
    transform: translateY(-1px);
}
.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.btn-success {
    background: #10b981;
    border-color: #10b981;
    color: white;
}
.btn-success:hover {
    background: #059669;
    border-color: #059669;
}
.btn-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.password-options {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.option-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.option-row:last-child {
    margin-bottom: 0;
}
.option-label {
    min-width: 90px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}
.length-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    flex-wrap: wrap;
}
.length-slider {
    flex: 1;
    min-width: 200px;
    height: 6px;
    -webkit-appearance: none;
    background: #e2e8f0;
    border-radius: 10px;
    outline: none;
}
.length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(59,130,246,0.3);
}
.length-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(59,130,246,0.3);
}
.length-value {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    padding: 0.2rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    min-width: 60px;
    text-align: center;
}
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    flex: 1;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}
.checkbox-item label {
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
}

.strength-meter {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    transition: opacity 0.2s;
}
.strength-label {
    font-size: 0.85rem;
    color: #64748b;
}
.strength-bars {
    display: flex;
    gap: 5px;
    flex: 1;
    max-width: 200px;
}
.strength-bar {
    height: 6px;
    width: 25%;
    border-radius: 10px;
    background: #e2e8f0;
    transition: background 0.2s;
}
.strength-bar.active:nth-child(1) { background: #ef4444; }
.strength-bar.active:nth-child(2) { background: #f59e0b; }
.strength-bar.active:nth-child(3) { background: #10b981; }
.strength-bar.active:nth-child(4) { background: #059669; }
.strength-meter.hidden {
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
}

.error-message {
    background: #fee2e2;
    border-left: 5px solid #ef4444;
    color: #b91c1c;
    padding: 0.9rem 1.5rem;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0.8rem;
}
.error-message.hidden {
    display: none;
}

.footer-note {
    margin-top: 1.2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    padding-top: 1.2rem;
}
.icon {
    font-size: 1.1rem;
    line-height: 1;
}