/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.big-btn {
    font-size: 20px;
    padding: 15px 30px;
    width: 100%;
}

.logout-btn {
    background-color: #e74c3c;
    display: block;
    margin: 30px auto 0;
    width: 150px;
}

.logout-btn:hover {
    background-color: #c0392b;
}

/* 账号列表样式 */
.account-list, .employee-list, .history-list {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.account-item, .employee-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.account-item:last-child, .employee-item:last-child {
    border-bottom: none;
}

.account-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

/* 员工信息样式 */
.employee-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* 当前账号样式 */
.current-number {
    margin-top: 20px;
    padding: 20px;
    font-size: 24px;
    text-align: center;
    background-color: #2ecc71;
    color: white;
    border-radius: 5px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder {
    color: rgba(255,255,255,0.7);
}

/* 历史记录项样式 */
.history-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.modal h3 {
    margin-bottom: 20px;
}

.modal input, .modal textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal textarea {
    height: 150px;
    resize: vertical;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .account-item, .employee-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .account-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
}