body { font-family: Arial, sans-serif; background: #f4f4f4; padding: 20px; }
#login-box { max-width: 400px; margin: 100px auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
#login-box input, #login-box button { display: block; width: 100%; padding: 10px; margin: 10px 0; }
#app { max-width: 1400px; margin: 0 auto; background: #fff; padding: 20px; border-radius: 8px; overflow-x: auto; }
#toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
#toolbar input, #toolbar button { padding: 8px; }
#toolbar input[type="number"] { width: 100px; }
table { width: 100%; border-collapse: collapse; table-layout: auto; }
th, td { padding: 8px 6px; border-bottom: 1px solid #ddd; text-align: left; white-space: nowrap; }
th { background: #f2f2f2; }
.actions button { margin: 0 2px; padding: 2px 6px; cursor: pointer; font-size: 12px; }
.error { color: red; }
.success { color: green; }
#msg { margin: 10px 0; }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.8em; cursor: pointer; user-select: none; }
.status-enabled { background: #d4edda; color: #155724; }
.status-disabled { background: #f8d7da; color: #721c24; }
.clickable { cursor: pointer; color: #007bff; text-decoration: underline; }
.clickable:hover { color: #0056b3; }

/* 模态框统一样式 */
.modal-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    min-width: 350px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}
.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
}
.form-group input[type="checkbox"] {
    margin-left: 10px;
}
.modal-actions {
    margin-top: 20px;
    text-align: right;
}
.modal-actions button {
    margin-left: 10px;
    padding: 8px 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}
.btn-primary {
    background: #007bff;
    color: #fff;
}
.btn-primary:hover {
    background: #0056b3;
}
.btn-secondary {
    background: #6c757d;
    color: #fff;
}
.btn-secondary:hover {
    background: #5a6268;
}

/* 别名列表样式 */
#alias-list .alias-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}
#alias-list .alias-item .del-alias {
    color: red;
    cursor: pointer;
}