.password-generator {
    max-width: 800px;
    margin: 95px auto;
    padding: 45px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.option-group {
    margin: 15px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

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

.checkbox-group span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.result-area {
    margin-top: 20px;
}

#password-output {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* 历史记录相关样式 */
.history-settings {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

#history-panel {
    margin-top: 10px;
}

.history-header {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

#history-output {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    resize: vertical;
}

#clear-history-btn {
    padding: 4px 8px;
    font-size: 12px;
    background: #dc3545;
    margin-left: 10px;
}

#clear-history-btn:hover {
    background: #c82333;
}

/* Dark mode styles */
body.dark-mode .password-generator {
    background: #1e1e1e;
    color: #fff;
}

body.dark-mode .option-group {
    background: #2d2d2d;
}

body.dark-mode #password-output,
body.dark-mode #history-output {
    background: #2d2d2d;
    border-color: #444;
    color: #fff;
}

body.dark-mode select,
body.dark-mode input[type="text"] {
    background: #2d2d2d;
    border-color: #444;
    color: #fff;
}

body.dark-mode button {
    background: #0A84FF;
}

body.dark-mode button:hover {
    background: #0056b3;
}

body.dark-mode #clear-history-btn {
    background: #dc3545;
}

body.dark-mode #clear-history-btn:hover {
    background: #c82333;
}

body.dark-mode .history-header {
    color: #aaa;
} 

.info-box h2 {
    position: relative; /* 关键 */
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.info-box h2::after {
    content: '';
    position: absolute;
    bottom: -4px;       /* 下划线离文本的距离 */
    left: 0;
    width: 60px;        /* 下划线长度 */
    height: 2px;        /* 下划线粗细 */
    background: linear-gradient(90deg, #3498db, transparent);
}

.info-box {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 40px;
    border-left: 4px solid #3498db;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-box h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.info-box h2 i {
    color: #3498db;
    margin-right: 10px;
}

.info-box p {
    color: #7f8c8d;
    margin: 10px 0;
    line-height: 1.6;
}